diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 68d88854849..3a712b5619a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,11 +36,13 @@ Your pull request should: The library sources are in: [src/lib](https://github.com/Microsoft/TypeScript/tree/master/src/lib) -To build the library files, run +Library files in `built/local/` are updated by running ```Shell -jake lib +jake ``` +The files in `lib/` are used to bootstrap compilation and usually do not need to be updated. + #### `src/lib/dom.generated.d.ts` and `src/lib/webworker.generated.d.ts` These two files represent the DOM typings and are auto-generated. To make any modifications to them, please submit a PR to https://github.com/Microsoft/TSJS-lib-generator diff --git a/Jakefile.js b/Jakefile.js index 7cd36aaa8bd..beb16d2886f 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -40,6 +40,7 @@ var compilerSources = [ "utilities.ts", "binder.ts", "checker.ts", + "sourcemap.ts", "declarationEmitter.ts", "emitter.ts", "program.ts", @@ -59,6 +60,7 @@ var servicesSources = [ "utilities.ts", "binder.ts", "checker.ts", + "sourcemap.ts", "declarationEmitter.ts", "emitter.ts", "program.ts", @@ -111,7 +113,8 @@ var scriptSources = [ "tslint/nextLineRule.ts", "tslint/noNullRule.ts", "tslint/preferConstRule.ts", - "tslint/typeOperatorSpacingRule.ts" + "tslint/typeOperatorSpacingRule.ts", + "tslint/noInOperatorRule.ts" ].map(function (f) { return path.join(scriptsDirectory, f); }); @@ -475,7 +478,7 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca var nodeDefinitionsFileContents = definitionFileContents + "\r\nexport = ts;"; fs.writeFileSync(nodeDefinitionsFile, nodeDefinitionsFileContents); - // Node package definition file to be distributed without the package. Created by replacing + // Node package definition file to be distributed without the package. Created by replacing // 'ts' namespace with '"typescript"' as a module. var nodeStandaloneDefinitionsFileContents = definitionFileContents.replace(/declare (namespace|module) ts/g, 'declare module "typescript"'); fs.writeFileSync(nodeStandaloneDefinitionsFile, nodeStandaloneDefinitionsFileContents); @@ -541,7 +544,8 @@ compileFile(word2mdJs, // The generated spec.md; built for the 'generate-spec' task file(specMd, [word2mdJs, specWord], function () { var specWordFullPath = path.resolve(specWord); - var cmd = "cscript //nologo " + word2mdJs + ' "' + specWordFullPath + '" ' + specMd; + var specMDFullPath = path.resolve(specMd); + var cmd = "cscript //nologo " + word2mdJs + ' "' + specWordFullPath + '" ' + '"' + specMDFullPath + '"'; console.log(cmd); child_process.exec(cmd, function () { complete(); @@ -873,7 +877,8 @@ var tslintRules = ([ "noNullRule", "preferConstRule", "booleanTriviaRule", - "typeOperatorSpacingRule" + "typeOperatorSpacingRule", + "noInOperatorRule" ]); var tslintRulesFiles = tslintRules.map(function(p) { return path.join(tslintRuleDir, p + ".ts"); @@ -884,7 +889,7 @@ var tslintRulesOutFiles = tslintRules.map(function(p) { desc("Compiles tslint rules to js"); task("build-rules", tslintRulesOutFiles); tslintRulesFiles.forEach(function(ruleFile, i) { - compileFile(tslintRulesOutFiles[i], [ruleFile], [ruleFile], [], /*useBuiltCompiler*/ false, /*noOutFile*/ true, /*generateDeclarations*/ false, path.join(builtLocalDirectory, "tslint")); + compileFile(tslintRulesOutFiles[i], [ruleFile], [ruleFile], [], /*useBuiltCompiler*/ false, /*noOutFile*/ true, /*generateDeclarations*/ false, path.join(builtLocalDirectory, "tslint")); }); function getLinterOptions() { @@ -924,13 +929,17 @@ var lintTargets = compilerSources desc("Runs tslint on the compiler sources"); task("lint", ["build-rules"], function() { var lintOptions = getLinterOptions(); + var failed = 0; for (var i in lintTargets) { var result = lintFile(lintOptions, lintTargets[i]); if (result.failureCount > 0) { console.log(result.output); - fail('Linter errors.', result.failureCount); + failed += result.failureCount; } } + if (failed > 0) { + fail('Linter errors.', failed); + } }); /** @@ -947,7 +956,7 @@ function lintWatchFile(filename) { if (event !== "change") { return; } - + if (!lintSemaphores[filename]) { lintSemaphores[filename] = true; lintFileAsync(getLinterOptions(), filename, function(err, result) { diff --git a/doc/TypeScript Language Specification (Change Markup).docx b/doc/TypeScript Language Specification (Change Markup).docx index 893f2e7ed22..24e7d1b623a 100644 Binary files a/doc/TypeScript Language Specification (Change Markup).docx and b/doc/TypeScript Language Specification (Change Markup).docx differ diff --git a/doc/TypeScript Language Specification.docx b/doc/TypeScript Language Specification.docx index 4aaa3bf92fe..4eb94908b57 100644 Binary files a/doc/TypeScript Language Specification.docx and b/doc/TypeScript Language Specification.docx differ diff --git a/doc/spec.md b/doc/spec.md index fe2147be477..a7947b19926 100644 --- a/doc/spec.md +++ b/doc/spec.md @@ -1323,7 +1323,7 @@ x = "hello"; // Ok x = 42; // Ok x = test; // Error, boolean not assignable x = test ? 5 : "five"; // Ok -x = test ? 0 : false; // Error, number | boolean not asssignable +x = test ? 0 : false; // Error, number | boolean not assignable ``` it is possible to assign 'x' a value of type `string`, `number`, or the union type `string | number`, but not any other type. To access a value in 'x', a type guard can be used to first narrow the type of 'x' to either `string` or `number`: diff --git a/lib/README.md b/lib/README.md index b2837989505..583ddf91156 100644 --- a/lib/README.md +++ b/lib/README.md @@ -1,4 +1,4 @@ # Read this! These files are not meant to be edited by hand. -If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory. \ No newline at end of file +If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory. Running `jake LKG` will then appropriately update the files in this directory. diff --git a/scripts/tslint/noInOperatorRule.ts b/scripts/tslint/noInOperatorRule.ts new file mode 100644 index 00000000000..527e8c1b895 --- /dev/null +++ b/scripts/tslint/noInOperatorRule.ts @@ -0,0 +1,20 @@ +import * as Lint from "tslint/lib/lint"; +import * as ts from "typescript"; + + +export class Rule extends Lint.Rules.AbstractRule { + public static FAILURE_STRING = "Don't use the 'in' keyword - use 'hasProperty' to check for key presence instead"; + + public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] { + return this.applyWithWalker(new InWalker(sourceFile, this.getOptions())); + } +} + +class InWalker extends Lint.RuleWalker { + visitNode(node: ts.Node) { + super.visitNode(node); + if (node.kind === ts.SyntaxKind.InKeyword && node.parent && node.parent.kind === ts.SyntaxKind.BinaryExpression) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + } +} diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 7561783d139..a399efc8427 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -222,8 +222,21 @@ namespace ts { case SyntaxKind.ExportAssignment: return (node).isExportEquals ? "export=" : "default"; case SyntaxKind.BinaryExpression: - // Binary expression case is for JS module 'module.exports = expr' - return "export="; + switch (getSpecialPropertyAssignmentKind(node)) { + case SpecialPropertyAssignmentKind.ModuleExports: + // module.exports = ... + return "export="; + case SpecialPropertyAssignmentKind.ExportsProperty: + case SpecialPropertyAssignmentKind.ThisProperty: + // exports.x = ... or this.y = ... + return ((node as BinaryExpression).left as PropertyAccessExpression).name.text; + case SpecialPropertyAssignmentKind.PrototypeProperty: + // className.prototype.methodName = ... + return (((node as BinaryExpression).left as PropertyAccessExpression).expression as PropertyAccessExpression).name.text; + } + Debug.fail("Unknown binary declaration kind"); + break; + case SyntaxKind.FunctionDeclaration: case SyntaxKind.ClassDeclaration: return node.flags & NodeFlags.Default ? "default" : undefined; @@ -1166,11 +1179,25 @@ namespace ts { return checkStrictModeIdentifier(node); case SyntaxKind.BinaryExpression: if (isInJavaScriptFile(node)) { - if (isExportsPropertyAssignment(node)) { - bindExportsPropertyAssignment(node); - } - else if (isModuleExportsAssignment(node)) { - bindModuleExportsAssignment(node); + const specialKind = getSpecialPropertyAssignmentKind(node); + switch (specialKind) { + case SpecialPropertyAssignmentKind.ExportsProperty: + bindExportsPropertyAssignment(node); + break; + case SpecialPropertyAssignmentKind.ModuleExports: + bindModuleExportsAssignment(node); + break; + case SpecialPropertyAssignmentKind.PrototypeProperty: + bindPrototypePropertyAssignment(node); + break; + case SpecialPropertyAssignmentKind.ThisProperty: + bindThisPropertyAssignment(node); + break; + case SpecialPropertyAssignmentKind.None: + // Nothing to do + break; + default: + Debug.fail("Unknown special property assignment kind"); } } return checkStrictModeBinaryExpression(node); @@ -1189,7 +1216,8 @@ namespace ts { case SyntaxKind.ThisType: seenThisKeyword = true; return; - + case SyntaxKind.TypePredicate: + return checkTypePredicate(node as TypePredicateNode); case SyntaxKind.TypeParameter: return declareSymbolAndAddToSymbolTable(node, SymbolFlags.TypeParameter, SymbolFlags.TypeParameterExcludes); case SyntaxKind.Parameter: @@ -1275,6 +1303,17 @@ namespace ts { } } + function checkTypePredicate(node: TypePredicateNode) { + const { parameterName, type } = node; + if (parameterName && parameterName.kind === SyntaxKind.Identifier) { + checkStrictModeIdentifier(parameterName as Identifier); + } + if (parameterName && parameterName.kind === SyntaxKind.ThisType) { + seenThisKeyword = true; + } + bind(type); + } + function bindSourceFileIfExternalModule() { setExportContextFlag(file); if (isExternalModule(file)) { @@ -1339,6 +1378,34 @@ namespace ts { bindExportAssignment(node); } + function bindThisPropertyAssignment(node: BinaryExpression) { + // Declare a 'member' in case it turns out the container was an ES5 class + if (container.kind === SyntaxKind.FunctionExpression || container.kind === SyntaxKind.FunctionDeclaration) { + container.symbol.members = container.symbol.members || {}; + declareSymbol(container.symbol.members, container.symbol, node, SymbolFlags.Property, SymbolFlags.PropertyExcludes); + } + } + + function bindPrototypePropertyAssignment(node: BinaryExpression) { + // We saw a node of the form 'x.prototype.y = z'. Declare a 'member' y on x if x was a function. + + // Look up the function in the local scope, since prototype assignments should + // follow the function declaration + const classId = ((node.left).expression).expression; + const funcSymbol = container.locals[classId.text]; + if (!funcSymbol || !(funcSymbol.flags & SymbolFlags.Function)) { + return; + } + + // Set up the members collection if it doesn't exist already + if (!funcSymbol.members) { + funcSymbol.members = {}; + } + + // Declare the method/property + declareSymbol(funcSymbol.members, funcSymbol, node.left, SymbolFlags.Property, SymbolFlags.PropertyExcludes); + } + function bindCallExpression(node: CallExpression) { // We're only inspecting call expressions to detect CommonJS modules, so we can skip // this check if we've already seen the module indicator diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 0488b1b6dd1..57fd03be9f2 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -51,6 +51,7 @@ namespace ts { const emitResolver = createResolver(); const undefinedSymbol = createSymbol(SymbolFlags.Property | SymbolFlags.Transient, "undefined"); + undefinedSymbol.declarations = []; const argumentsSymbol = createSymbol(SymbolFlags.Property | SymbolFlags.Transient, "arguments"); const checker: TypeChecker = { @@ -123,8 +124,8 @@ namespace ts { const noConstraintType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); - const anySignature = createSignature(undefined, undefined, emptyArray, anyType, undefined, 0, /*hasRestParameter*/ false, /*hasStringLiterals*/ false); - const unknownSignature = createSignature(undefined, undefined, emptyArray, unknownType, undefined, 0, /*hasRestParameter*/ false, /*hasStringLiterals*/ false); + const anySignature = createSignature(undefined, undefined, emptyArray, anyType, 0, /*hasRestParameter*/ false, /*hasStringLiterals*/ false); + const unknownSignature = createSignature(undefined, undefined, emptyArray, unknownType, 0, /*hasRestParameter*/ false, /*hasStringLiterals*/ false); const globals: SymbolTable = {}; @@ -141,9 +142,6 @@ namespace ts { let globalRegExpType: ObjectType; let globalTemplateStringsArrayType: ObjectType; let globalESSymbolType: ObjectType; - let jsxElementType: ObjectType; - /** Lazily loaded, use getJsxIntrinsicElementType() */ - let jsxIntrinsicElementsType: ObjectType; let globalIterableType: GenericType; let globalIteratorType: GenericType; let globalIterableIteratorType: GenericType; @@ -208,12 +206,17 @@ namespace ts { } }; + let jsxElementType: ObjectType; + /** Things we lazy load from the JSX namespace */ + const jsxTypes: Map = {}; const JsxNames = { JSX: "JSX", IntrinsicElements: "IntrinsicElements", ElementClass: "ElementClass", ElementAttributesPropertyNameContainer: "ElementAttributesProperty", - Element: "Element" + Element: "Element", + IntrinsicAttributes: "IntrinsicAttributes", + IntrinsicClassAttributes: "IntrinsicClassAttributes" }; const subtypeRelation: Map = {}; @@ -232,6 +235,10 @@ namespace ts { ResolvedReturnType } + const builtinGlobals: SymbolTable = { + [undefinedSymbol.name]: undefinedSymbol + }; + initializeTypeChecker(); return checker; @@ -358,6 +365,24 @@ namespace ts { } } + function addToSymbolTable(target: SymbolTable, source: SymbolTable, message: DiagnosticMessage) { + for (const id in source) { + if (hasProperty(source, id)) { + if (hasProperty(target, id)) { + // Error on redeclarations + forEach(target[id].declarations, addDeclarationDiagnostic(id, message)); + } + else { + target[id] = source[id]; + } + } + } + + function addDeclarationDiagnostic(id: string, message: DiagnosticMessage) { + return (declaration: Declaration) => diagnostics.add(createDiagnosticForNode(declaration, message, id)); + } + } + function getSymbolLinks(symbol: Symbol): SymbolLinks { if (symbol.flags & SymbolFlags.Transient) return symbol; const id = getSymbolId(symbol); @@ -377,6 +402,14 @@ namespace ts { return node.kind === SyntaxKind.SourceFile && !isExternalOrCommonJsModule(node); } + /** Is this type one of the apparent types created from the primitive types. */ + function isPrimitiveApparentType(type: Type): boolean { + return type === globalStringType || + type === globalNumberType || + type === globalBooleanType || + type === globalESSymbolType; + } + function getSymbol(symbols: SymbolTable, name: string, meaning: SymbolFlags): Symbol { if (meaning && hasProperty(symbols, name)) { const symbol = symbols[name]; @@ -1093,39 +1126,81 @@ namespace ts { return links.resolvedExports || (links.resolvedExports = getExportsForModule(moduleSymbol)); } - function extendExportSymbols(target: SymbolTable, source: SymbolTable) { + interface ExportCollisionTracker { + specifierText: string; + exportsWithDuplicate: ExportDeclaration[]; + } + + /** + * Extends one symbol table with another while collecting information on name collisions for error message generation into the `lookupTable` argument + * Not passing `lookupTable` and `exportNode` disables this collection, and just extends the tables + */ + function extendExportSymbols(target: SymbolTable, source: SymbolTable, lookupTable?: Map, exportNode?: ExportDeclaration) { for (const id in source) { if (id !== "default" && !hasProperty(target, id)) { target[id] = source[id]; + if (lookupTable && exportNode) { + lookupTable[id] = { + specifierText: getTextOfNode(exportNode.moduleSpecifier) + } as ExportCollisionTracker; + } + } + else if (lookupTable && exportNode && id !== "default" && hasProperty(target, id) && resolveSymbol(target[id]) !== resolveSymbol(source[id])) { + if (!lookupTable[id].exportsWithDuplicate) { + lookupTable[id].exportsWithDuplicate = [exportNode]; + } + else { + lookupTable[id].exportsWithDuplicate.push(exportNode); + } } } } function getExportsForModule(moduleSymbol: Symbol): SymbolTable { - let result: SymbolTable; const visitedSymbols: Symbol[] = []; - visit(moduleSymbol); - return result || moduleSymbol.exports; + return visit(moduleSymbol) || moduleSymbol.exports; // The ES6 spec permits export * declarations in a module to circularly reference the module itself. For example, // module 'a' can 'export * from "b"' and 'b' can 'export * from "a"' without error. - function visit(symbol: Symbol) { - if (symbol && symbol.flags & SymbolFlags.HasExports && !contains(visitedSymbols, symbol)) { - visitedSymbols.push(symbol); - if (symbol !== moduleSymbol) { - if (!result) { - result = cloneSymbolTable(moduleSymbol.exports); - } - extendExportSymbols(result, symbol.exports); - } - // All export * declarations are collected in an __export symbol by the binder - const exportStars = symbol.exports["__export"]; - if (exportStars) { - for (const node of exportStars.declarations) { - visit(resolveExternalModuleName(node, (node).moduleSpecifier)); - } - } + function visit(symbol: Symbol): SymbolTable { + if (!(symbol && symbol.flags & SymbolFlags.HasExports && !contains(visitedSymbols, symbol))) { + return; } + visitedSymbols.push(symbol); + const symbols = cloneSymbolTable(symbol.exports); + // All export * declarations are collected in an __export symbol by the binder + const exportStars = symbol.exports["__export"]; + if (exportStars) { + const nestedSymbols: SymbolTable = {}; + const lookupTable: Map = {}; + for (const node of exportStars.declarations) { + const resolvedModule = resolveExternalModuleName(node, (node as ExportDeclaration).moduleSpecifier); + const exportedSymbols = visit(resolvedModule); + extendExportSymbols( + nestedSymbols, + exportedSymbols, + lookupTable, + node as ExportDeclaration + ); + } + for (const id in lookupTable) { + const { exportsWithDuplicate } = lookupTable[id]; + // It's not an error if the file with multiple `export *`s with duplicate names exports a member with that name itself + if (id === "export=" || !(exportsWithDuplicate && exportsWithDuplicate.length) || hasProperty(symbols, id)) { + continue; + } + for (const node of exportsWithDuplicate) { + diagnostics.add(createDiagnosticForNode( + node, + Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity, + lookupTable[id].specifierText, + id + )); + } + } + extendExportSymbols(symbols, nestedSymbols); + } + return symbols; } } @@ -1519,9 +1594,9 @@ namespace ts { return result; } - function signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags): string { + function signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): string { const writer = getSingleLineStringWriter(); - getSymbolDisplayBuilder().buildSignatureDisplay(signature, writer, enclosingDeclaration, flags); + getSymbolDisplayBuilder().buildSignatureDisplay(signature, writer, enclosingDeclaration, flags, kind); const result = writer.string(); releaseStringWriter(writer); @@ -1668,10 +1743,16 @@ namespace ts { function writeType(type: Type, flags: TypeFormatFlags) { // Write undefined/null type as any if (type.flags & TypeFlags.Intrinsic) { - // Special handling for unknown / resolving types, they should show up as any and not unknown or __resolving - writer.writeKeyword(!(globalFlags & TypeFormatFlags.WriteOwnNameForAnyLike) && isTypeAny(type) - ? "any" - : (type).intrinsicName); + if (type.flags & TypeFlags.PredicateType) { + buildTypePredicateDisplay(writer, (type as PredicateType).predicate); + buildTypeDisplay((type as PredicateType).predicate.type, writer, enclosingDeclaration, flags, symbolStack); + } + else { + // Special handling for unknown / resolving types, they should show up as any and not unknown or __resolving + writer.writeKeyword(!(globalFlags & TypeFormatFlags.WriteOwnNameForAnyLike) && isTypeAny(type) + ? "any" + : (type).intrinsicName); + } } else if (type.flags & TypeFlags.ThisType) { if (inObjectTypeLiteral) { @@ -1873,7 +1954,7 @@ namespace ts { if (flags & TypeFormatFlags.InElementType) { writePunctuation(writer, SyntaxKind.OpenParenToken); } - buildSignatureDisplay(resolved.callSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | TypeFormatFlags.WriteArrowStyleSignature, symbolStack); + buildSignatureDisplay(resolved.callSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | TypeFormatFlags.WriteArrowStyleSignature, /*kind*/ undefined, symbolStack); if (flags & TypeFormatFlags.InElementType) { writePunctuation(writer, SyntaxKind.CloseParenToken); } @@ -1885,7 +1966,7 @@ namespace ts { } writeKeyword(writer, SyntaxKind.NewKeyword); writeSpace(writer); - buildSignatureDisplay(resolved.constructSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | TypeFormatFlags.WriteArrowStyleSignature, symbolStack); + buildSignatureDisplay(resolved.constructSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | TypeFormatFlags.WriteArrowStyleSignature, /*kind*/ undefined, symbolStack); if (flags & TypeFormatFlags.InElementType) { writePunctuation(writer, SyntaxKind.CloseParenToken); } @@ -1899,15 +1980,12 @@ namespace ts { writer.writeLine(); writer.increaseIndent(); for (const signature of resolved.callSignatures) { - buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, symbolStack); + buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, /*kind*/ undefined, symbolStack); writePunctuation(writer, SyntaxKind.SemicolonToken); writer.writeLine(); } for (const signature of resolved.constructSignatures) { - writeKeyword(writer, SyntaxKind.NewKeyword); - writeSpace(writer); - - buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, symbolStack); + buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, SignatureKind.Construct, symbolStack); writePunctuation(writer, SyntaxKind.SemicolonToken); writer.writeLine(); } @@ -1948,7 +2026,7 @@ namespace ts { if (p.flags & SymbolFlags.Optional) { writePunctuation(writer, SyntaxKind.QuestionToken); } - buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, symbolStack); + buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, /*kind*/ undefined, symbolStack); writePunctuation(writer, SyntaxKind.SemicolonToken); writer.writeLine(); } @@ -2044,6 +2122,18 @@ namespace ts { writePunctuation(writer, SyntaxKind.CloseParenToken); } + function buildTypePredicateDisplay(writer: SymbolWriter, predicate: TypePredicate) { + if (isIdentifierTypePredicate(predicate)) { + writer.writeParameter(predicate.parameterName); + } + else { + writeKeyword(writer, SyntaxKind.ThisKeyword); + } + writeSpace(writer); + writeKeyword(writer, SyntaxKind.IsKeyword); + writeSpace(writer); + } + function buildReturnTypeDisplay(signature: Signature, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags, symbolStack?: Symbol[]) { if (flags & TypeFormatFlags.WriteArrowStyleSignature) { writeSpace(writer); @@ -2054,21 +2144,16 @@ namespace ts { } writeSpace(writer); - let returnType: Type; - if (signature.typePredicate) { - writer.writeParameter(signature.typePredicate.parameterName); - writeSpace(writer); - writeKeyword(writer, SyntaxKind.IsKeyword); - writeSpace(writer); - returnType = signature.typePredicate.type; - } - else { - returnType = getReturnTypeOfSignature(signature); - } + const returnType = getReturnTypeOfSignature(signature); buildTypeDisplay(returnType, writer, enclosingDeclaration, flags, symbolStack); } - function buildSignatureDisplay(signature: Signature, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags, symbolStack?: Symbol[]) { + function buildSignatureDisplay(signature: Signature, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind, symbolStack?: Symbol[]) { + if (kind === SignatureKind.Construct) { + writeKeyword(writer, SyntaxKind.NewKeyword); + writeSpace(writer); + } + if (signature.target && (flags & TypeFormatFlags.WriteTypeArgumentsOfSignature)) { // Instantiated signature, write type arguments instead // This is achieved by passing in the mapper separately @@ -2616,7 +2701,13 @@ namespace ts { // During a normal type check we'll never get to here with a property assignment (the check of the containing // object literal uses a different path). We exclude widening only so that language services and type verification // tools see the actual type. - return declaration.kind !== SyntaxKind.PropertyAssignment ? getWidenedType(type) : type; + if (declaration.kind === SyntaxKind.PropertyAssignment) { + return type; + } + if (type.flags & TypeFlags.PredicateType && (declaration.kind === SyntaxKind.PropertyDeclaration || declaration.kind === SyntaxKind.PropertySignature)) { + return type; + } + return getWidenedType(type); } // Rest parameters default to type any[], other parameters default to type any @@ -2652,9 +2743,13 @@ namespace ts { if (declaration.kind === SyntaxKind.BinaryExpression) { return links.type = checkExpression((declaration).right); } - // Handle exports.p = expr if (declaration.kind === SyntaxKind.PropertyAccessExpression) { - return checkExpressionCached((declaration.parent).right); + // Declarations only exist for property access expressions for certain + // special assignment kinds + if (declaration.parent.kind === SyntaxKind.BinaryExpression) { + // Handle exports.p = expr or this.p = expr or className.prototype.method = expr + return links.type = checkExpressionCached((declaration.parent).right); + } } // Handle variable, parameter or property if (!pushTypeResolution(symbol, TypeSystemPropertyName.Type)) { @@ -2936,10 +3031,6 @@ namespace ts { return type.resolvedBaseConstructorType; } - function hasClassBaseType(type: InterfaceType): boolean { - return !!forEach(getBaseTypes(type), t => !!(t.symbol.flags & SymbolFlags.Class)); - } - function getBaseTypes(type: InterfaceType): ObjectType[] { const isClass = type.symbol.flags & SymbolFlags.Class; const isInterface = type.symbol.flags & SymbolFlags.Interface; @@ -3354,13 +3445,12 @@ namespace ts { } function createSignature(declaration: SignatureDeclaration, typeParameters: TypeParameter[], parameters: Symbol[], - resolvedReturnType: Type, typePredicate: TypePredicate, minArgumentCount: number, hasRestParameter: boolean, hasStringLiterals: boolean): Signature { + resolvedReturnType: Type, minArgumentCount: number, hasRestParameter: boolean, hasStringLiterals: boolean): Signature { const sig = new Signature(checker); sig.declaration = declaration; sig.typeParameters = typeParameters; sig.parameters = parameters; sig.resolvedReturnType = resolvedReturnType; - sig.typePredicate = typePredicate; sig.minArgumentCount = minArgumentCount; sig.hasRestParameter = hasRestParameter; sig.hasStringLiterals = hasStringLiterals; @@ -3368,16 +3458,16 @@ namespace ts { } function cloneSignature(sig: Signature): Signature { - return createSignature(sig.declaration, sig.typeParameters, sig.parameters, sig.resolvedReturnType, sig.typePredicate, + return createSignature(sig.declaration, sig.typeParameters, sig.parameters, sig.resolvedReturnType, sig.minArgumentCount, sig.hasRestParameter, sig.hasStringLiterals); } function getDefaultConstructSignatures(classType: InterfaceType): Signature[] { - if (!hasClassBaseType(classType)) { - return [createSignature(undefined, classType.localTypeParameters, emptyArray, classType, undefined, 0, /*hasRestParameter*/ false, /*hasStringLiterals*/ false)]; - } const baseConstructorType = getBaseConstructorTypeOfClass(classType); const baseSignatures = getSignaturesOfType(baseConstructorType, SignatureKind.Construct); + if (baseSignatures.length === 0) { + return [createSignature(undefined, classType.localTypeParameters, emptyArray, classType, 0, /*hasRestParameter*/ false, /*hasStringLiterals*/ false)]; + } const baseTypeNode = getBaseTypeNodeOfClass(classType); const typeArguments = map(baseTypeNode.typeArguments, getTypeFromTypeNode); const typeArgCount = typeArguments ? typeArguments.length : 0; @@ -3522,37 +3612,29 @@ namespace ts { function resolveAnonymousTypeMembers(type: AnonymousType) { const symbol = type.symbol; - let members: SymbolTable; - let callSignatures: Signature[]; - let constructSignatures: Signature[]; - let stringIndexType: Type; - let numberIndexType: Type; - if (type.target) { - members = createInstantiatedSymbolTable(getPropertiesOfObjectType(type.target), type.mapper, /*mappingThisOnly*/ false); - callSignatures = instantiateList(getSignaturesOfType(type.target, SignatureKind.Call), type.mapper, instantiateSignature); - constructSignatures = instantiateList(getSignaturesOfType(type.target, SignatureKind.Construct), type.mapper, instantiateSignature); - stringIndexType = instantiateType(getIndexTypeOfType(type.target, IndexKind.String), type.mapper); - numberIndexType = instantiateType(getIndexTypeOfType(type.target, IndexKind.Number), type.mapper); + const members = createInstantiatedSymbolTable(getPropertiesOfObjectType(type.target), type.mapper, /*mappingThisOnly*/ false); + const callSignatures = instantiateList(getSignaturesOfType(type.target, SignatureKind.Call), type.mapper, instantiateSignature); + const constructSignatures = instantiateList(getSignaturesOfType(type.target, SignatureKind.Construct), type.mapper, instantiateSignature); + const stringIndexType = instantiateType(getIndexTypeOfType(type.target, IndexKind.String), type.mapper); + const numberIndexType = instantiateType(getIndexTypeOfType(type.target, IndexKind.Number), type.mapper); + setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } else if (symbol.flags & SymbolFlags.TypeLiteral) { - members = symbol.members; - callSignatures = getSignaturesOfSymbol(members["__call"]); - constructSignatures = getSignaturesOfSymbol(members["__new"]); - stringIndexType = getIndexTypeOfSymbol(symbol, IndexKind.String); - numberIndexType = getIndexTypeOfSymbol(symbol, IndexKind.Number); + const members = symbol.members; + const callSignatures = getSignaturesOfSymbol(members["__call"]); + const constructSignatures = getSignaturesOfSymbol(members["__new"]); + const stringIndexType = getIndexTypeOfSymbol(symbol, IndexKind.String); + const numberIndexType = getIndexTypeOfSymbol(symbol, IndexKind.Number); + setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } else { // Combinations of function, class, enum and module - members = emptySymbols; - callSignatures = emptyArray; - constructSignatures = emptyArray; + let members = emptySymbols; + let constructSignatures: Signature[] = emptyArray; if (symbol.flags & SymbolFlags.HasExports) { members = getExportsOfSymbol(symbol); } - if (symbol.flags & (SymbolFlags.Function | SymbolFlags.Method)) { - callSignatures = getSignaturesOfSymbol(symbol); - } if (symbol.flags & SymbolFlags.Class) { const classType = getDeclaredTypeOfClassOrInterface(symbol); constructSignatures = getSignaturesOfSymbol(symbol.members["__constructor"]); @@ -3565,10 +3647,16 @@ namespace ts { addInheritedMembers(members, getPropertiesOfObjectType(baseConstructorType)); } } - stringIndexType = undefined; - numberIndexType = (symbol.flags & SymbolFlags.Enum) ? stringType : undefined; + const numberIndexType = (symbol.flags & SymbolFlags.Enum) ? stringType : undefined; + setObjectTypeMembers(type, members, emptyArray, constructSignatures, undefined, numberIndexType); + // 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 + // will never be observed because a qualified name can't reference signatures. + if (symbol.flags & (SymbolFlags.Function | SymbolFlags.Method)) { + (type).callSignatures = getSignaturesOfSymbol(symbol); + } } - setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } function resolveStructuredTypeMembers(type: ObjectType): ResolvedType { @@ -3595,7 +3683,7 @@ namespace ts { return type; } - // Return properties of an object type or an empty array for other types + /** Return properties of an object type or an empty array for other types */ function getPropertiesOfObjectType(type: Type): Symbol[] { if (type.flags & TypeFlags.ObjectType) { return resolveStructuredTypeMembers(type).properties; @@ -3603,8 +3691,8 @@ namespace ts { return emptyArray; } - // If the given type is an object type and that type has a property by the given name, - // return the symbol for that property.Otherwise return undefined. + /** If the given type is an object type and that type has a property by the given name, + * return the symbol for that property. Otherwise return undefined. */ function getPropertyOfObjectType(type: Type, name: string): Symbol { if (type.flags & TypeFlags.ObjectType) { const resolved = resolveStructuredTypeMembers(type); @@ -3842,6 +3930,24 @@ namespace ts { return false; } + function createTypePredicateFromTypePredicateNode(node: TypePredicateNode): IdentifierTypePredicate | ThisTypePredicate { + if (node.parameterName.kind === SyntaxKind.Identifier) { + const parameterName = node.parameterName as Identifier; + return { + kind: TypePredicateKind.Identifier, + parameterName: parameterName ? parameterName.text : undefined, + parameterIndex: parameterName ? getTypePredicateParameterIndex((node.parent as SignatureDeclaration).parameters, parameterName) : undefined, + type: getTypeFromTypeNode(node.type) + } as IdentifierTypePredicate; + } + else { + return { + kind: TypePredicateKind.This, + type: getTypeFromTypeNode(node.type) + } as ThisTypePredicate; + } + } + function getSignatureFromDeclaration(declaration: SignatureDeclaration): Signature { const links = getNodeLinks(declaration); if (!links.resolvedSignature) { @@ -3882,20 +3988,11 @@ namespace ts { } let returnType: Type; - let typePredicate: TypePredicate; if (classType) { returnType = classType; } else if (declaration.type) { returnType = getTypeFromTypeNode(declaration.type); - if (declaration.type.kind === SyntaxKind.TypePredicate) { - const typePredicateNode = declaration.type; - typePredicate = { - parameterName: typePredicateNode.parameterName ? typePredicateNode.parameterName.text : undefined, - parameterIndex: typePredicateNode.parameterName ? getTypePredicateParameterIndex(declaration.parameters, typePredicateNode.parameterName) : undefined, - type: getTypeFromTypeNode(typePredicateNode.type) - }; - } } else { // TypeScript 1.0 spec (April 2014): @@ -3910,8 +4007,7 @@ namespace ts { } } - links.resolvedSignature = createSignature(declaration, typeParameters, parameters, returnType, typePredicate, - minArgumentCount, hasRestParameter(declaration), hasStringLiterals); + links.resolvedSignature = createSignature(declaration, typeParameters, parameters, returnType, minArgumentCount, hasRestParameter(declaration), hasStringLiterals); } return links.resolvedSignature; } @@ -4068,17 +4164,40 @@ namespace ts { : undefined; } - function getConstraintOfTypeParameter(type: TypeParameter): Type { - if (!type.constraint) { - if (type.target) { - const targetConstraint = getConstraintOfTypeParameter(type.target); - type.constraint = targetConstraint ? instantiateType(targetConstraint, type.mapper) : noConstraintType; + function getConstraintDeclaration(type: TypeParameter) { + return (getDeclarationOfKind(type.symbol, SyntaxKind.TypeParameter)).constraint; + } + + function hasConstraintReferenceTo(type: Type, target: TypeParameter): boolean { + let checked: Type[]; + while (type && type.flags & TypeFlags.TypeParameter && !contains(checked, type)) { + if (type === target) { + return true; + } + (checked || (checked = [])).push(type); + const constraintDeclaration = getConstraintDeclaration(type); + type = constraintDeclaration && getTypeFromTypeNode(constraintDeclaration); + } + return false; + } + + function getConstraintOfTypeParameter(typeParameter: TypeParameter): Type { + if (!typeParameter.constraint) { + if (typeParameter.target) { + const targetConstraint = getConstraintOfTypeParameter(typeParameter.target); + typeParameter.constraint = targetConstraint ? instantiateType(targetConstraint, typeParameter.mapper) : noConstraintType; } else { - type.constraint = getTypeFromTypeNode((getDeclarationOfKind(type.symbol, SyntaxKind.TypeParameter)).constraint); + const constraintDeclaration = getConstraintDeclaration(typeParameter); + let constraint = getTypeFromTypeNode(constraintDeclaration); + if (hasConstraintReferenceTo(constraint, typeParameter)) { + error(constraintDeclaration, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(typeParameter)); + constraint = unknownType; + } + typeParameter.constraint = constraint; } } - return type.constraint === noConstraintType ? undefined : type.constraint; + return typeParameter.constraint === noConstraintType ? undefined : typeParameter.constraint; } function getParentSymbolOfTypeParameter(typeParameter: TypeParameter): Symbol { @@ -4130,55 +4249,6 @@ namespace ts { return type; } - function isTypeParameterReferenceIllegalInConstraint(typeReferenceNode: TypeReferenceNode | ExpressionWithTypeArguments, typeParameterSymbol: Symbol): boolean { - const links = getNodeLinks(typeReferenceNode); - if (links.isIllegalTypeReferenceInConstraint !== undefined) { - return links.isIllegalTypeReferenceInConstraint; - } - - // bubble up to the declaration - let currentNode: Node = typeReferenceNode; - // forEach === exists - while (!forEach(typeParameterSymbol.declarations, d => d.parent === currentNode.parent)) { - currentNode = currentNode.parent; - } - // if last step was made from the type parameter this means that path has started somewhere in constraint which is illegal - links.isIllegalTypeReferenceInConstraint = currentNode.kind === SyntaxKind.TypeParameter; - return links.isIllegalTypeReferenceInConstraint; - } - - function checkTypeParameterHasIllegalReferencesInConstraint(typeParameter: TypeParameterDeclaration): void { - let typeParameterSymbol: Symbol; - function check(n: Node): void { - if (n.kind === SyntaxKind.TypeReference && (n).typeName.kind === SyntaxKind.Identifier) { - const links = getNodeLinks(n); - if (links.isIllegalTypeReferenceInConstraint === undefined) { - const symbol = resolveName(typeParameter, ((n).typeName).text, SymbolFlags.Type, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined); - if (symbol && (symbol.flags & SymbolFlags.TypeParameter)) { - // TypeScript 1.0 spec (April 2014): 3.4.1 - // Type parameters declared in a particular type parameter list - // may not be referenced in constraints in that type parameter list - - // symbol.declaration.parent === typeParameter.parent - // -> typeParameter and symbol.declaration originate from the same type parameter list - // -> illegal for all declarations in symbol - // forEach === exists - links.isIllegalTypeReferenceInConstraint = forEach(symbol.declarations, d => d.parent === typeParameter.parent); - } - } - if (links.isIllegalTypeReferenceInConstraint) { - error(typeParameter, Diagnostics.Constraint_of_a_type_parameter_cannot_reference_any_type_parameter_from_the_same_type_parameter_list); - } - } - forEachChild(n, check); - } - - if (typeParameter.constraint) { - typeParameterSymbol = getSymbolOfNode(typeParameter); - check(typeParameter.constraint); - } - } - // Get type from reference to class or interface function getTypeFromClassOrInterfaceReference(node: TypeReferenceNode | ExpressionWithTypeArguments, symbol: Symbol): Type { const type = getDeclaredTypeOfSymbol(symbol); @@ -4225,13 +4295,6 @@ namespace ts { // Get type from reference to named type that cannot be generic (enum or type parameter) function getTypeFromNonGenericTypeReference(node: TypeReferenceNode | ExpressionWithTypeArguments, symbol: Symbol): Type { - if (symbol.flags & SymbolFlags.TypeParameter && isTypeParameterReferenceIllegalInConstraint(node, symbol)) { - // TypeScript 1.0 spec (April 2014): 3.4.1 - // Type parameters declared in a particular type parameter list - // may not be referenced in constraints in that type parameter list - // Implementation: such type references are resolved to 'unknown' type that usually denotes error - return unknownType; - } if (node.typeArguments) { error(node, Diagnostics.Type_0_is_not_generic, symbolToString(symbol)); return unknownType; @@ -4570,6 +4633,25 @@ namespace ts { return links.resolvedType; } + function getPredicateType(node: TypePredicateNode): Type { + return createPredicateType(getSymbolOfNode(node), createTypePredicateFromTypePredicateNode(node)); + } + + function createPredicateType(symbol: Symbol, predicate: ThisTypePredicate | IdentifierTypePredicate) { + const type = createType(TypeFlags.Boolean | TypeFlags.PredicateType) as PredicateType; + type.symbol = symbol; + type.predicate = predicate; + return type; + } + + function getTypeFromPredicateTypeNode(node: TypePredicateNode): Type { + const links = getNodeLinks(node); + if (!links.resolvedType) { + links.resolvedType = getPredicateType(node); + } + return links.resolvedType; + } + function getTypeFromTypeNode(node: TypeNode): Type { switch (node.kind) { case SyntaxKind.AnyKeyword: @@ -4591,7 +4673,7 @@ namespace ts { case SyntaxKind.TypeReference: return getTypeFromTypeReference(node); case SyntaxKind.TypePredicate: - return booleanType; + return getTypeFromPredicateTypeNode(node); case SyntaxKind.ExpressionWithTypeArguments: return getTypeFromTypeReference(node); case SyntaxKind.TypeQuery: @@ -4678,19 +4760,22 @@ namespace ts { }; } - function createInferenceMapper(context: InferenceContext): TypeMapper { - const mapper: TypeMapper = t => { - for (let i = 0; i < context.typeParameters.length; i++) { - if (t === context.typeParameters[i]) { - context.inferences[i].isFixed = true; - return getInferredType(context, i); + function getInferenceMapper(context: InferenceContext): TypeMapper { + if (!context.mapper) { + const mapper: TypeMapper = t => { + const typeParameters = context.typeParameters; + for (let i = 0; i < typeParameters.length; i++) { + if (t === typeParameters[i]) { + context.inferences[i].isFixed = true; + return getInferredType(context, i); + } } - } - return t; - }; - - mapper.context = context; - return mapper; + return t; + }; + mapper.context = context; + context.mapper = mapper; + } + return context.mapper; } function identityMapper(type: Type): Type { @@ -4701,37 +4786,45 @@ namespace ts { return t => instantiateType(mapper1(t), mapper2); } - function instantiateTypeParameter(typeParameter: TypeParameter, mapper: TypeMapper): TypeParameter { + function cloneTypeParameter(typeParameter: TypeParameter): TypeParameter { const result = createType(TypeFlags.TypeParameter); result.symbol = typeParameter.symbol; - if (typeParameter.constraint) { - result.constraint = instantiateType(typeParameter.constraint, mapper); + result.target = typeParameter; + return result; + } + + function cloneTypePredicate(predicate: TypePredicate, mapper: TypeMapper): ThisTypePredicate | IdentifierTypePredicate { + if (isIdentifierTypePredicate(predicate)) { + return { + kind: TypePredicateKind.Identifier, + parameterName: predicate.parameterName, + parameterIndex: predicate.parameterIndex, + type: instantiateType(predicate.type, mapper) + } as IdentifierTypePredicate; } else { - result.target = typeParameter; - result.mapper = mapper; + return { + kind: TypePredicateKind.This, + type: instantiateType(predicate.type, mapper) + } as ThisTypePredicate; } - return result; } function instantiateSignature(signature: Signature, mapper: TypeMapper, eraseTypeParameters?: boolean): Signature { let freshTypeParameters: TypeParameter[]; - let freshTypePredicate: TypePredicate; if (signature.typeParameters && !eraseTypeParameters) { - freshTypeParameters = instantiateList(signature.typeParameters, mapper, instantiateTypeParameter); + // First create a fresh set of type parameters, then include a mapping from the old to the + // new type parameters in the mapper function. Finally store this mapper in the new type + // parameters such that we can use it when instantiating constraints. + freshTypeParameters = map(signature.typeParameters, cloneTypeParameter); mapper = combineTypeMappers(createTypeMapper(signature.typeParameters, freshTypeParameters), mapper); - } - if (signature.typePredicate) { - freshTypePredicate = { - parameterName: signature.typePredicate.parameterName, - parameterIndex: signature.typePredicate.parameterIndex, - type: instantiateType(signature.typePredicate.type, mapper) - }; + for (const tp of freshTypeParameters) { + tp.mapper = mapper; + } } const result = createSignature(signature.declaration, freshTypeParameters, instantiateList(signature.parameters, mapper, instantiateSymbol), instantiateType(signature.resolvedReturnType, mapper), - freshTypePredicate, signature.minArgumentCount, signature.hasRestParameter, signature.hasStringLiterals); result.target = signature; result.mapper = mapper; @@ -4801,6 +4894,10 @@ namespace ts { if (type.flags & TypeFlags.Intersection) { return getIntersectionType(instantiateList((type).types, mapper, instantiateType)); } + if (type.flags & TypeFlags.PredicateType) { + const predicate = (type as PredicateType).predicate; + return createPredicateType(type.symbol, cloneTypePredicate(predicate, mapper)); + } } return type; } @@ -4972,6 +5069,36 @@ namespace ts { if (isTypeAny(source)) return Ternary.True; if (source === numberType && target.flags & TypeFlags.Enum) return Ternary.True; } + if (source.flags & TypeFlags.Boolean && target.flags & TypeFlags.Boolean) { + if (source.flags & TypeFlags.PredicateType && target.flags & TypeFlags.PredicateType) { + const sourcePredicate = source as PredicateType; + const targetPredicate = target as PredicateType; + if (sourcePredicate.predicate.kind !== targetPredicate.predicate.kind) { + if (reportErrors) { + reportError(Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard); + reportError(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typeToString(source), typeToString(target)); + } + return Ternary.False; + } + if (sourcePredicate.predicate.kind === TypePredicateKind.Identifier) { + const sourceIdentifierPredicate = sourcePredicate.predicate as IdentifierTypePredicate; + const targetIdentifierPredicate = targetPredicate.predicate as IdentifierTypePredicate; + if (sourceIdentifierPredicate.parameterIndex !== targetIdentifierPredicate.parameterIndex) { + if (reportErrors) { + reportError(Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, sourceIdentifierPredicate.parameterName, targetIdentifierPredicate.parameterName); + reportError(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typeToString(source), typeToString(target)); + } + return Ternary.False; + } + } + const related = isRelatedTo(sourcePredicate.predicate.type, targetPredicate.predicate.type, reportErrors, headMessage); + if (related === Ternary.False && reportErrors) { + reportError(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typeToString(source), typeToString(target)); + } + return related; + } + return Ternary.True; + } if (source.flags & TypeFlags.FreshObjectLiteral) { if (hasExcessProperties(source, target, reportErrors)) { @@ -5071,9 +5198,6 @@ namespace ts { } return objectTypeRelatedTo(source, source, target, /*reportErrors*/ false); } - if (source.flags & TypeFlags.TypeParameter && target.flags & TypeFlags.TypeParameter) { - return typeParameterIdenticalTo(source, target); - } if (source.flags & TypeFlags.Union && target.flags & TypeFlags.Union || source.flags & TypeFlags.Intersection && target.flags & TypeFlags.Intersection) { if (result = eachTypeRelatedToSomeType(source, target)) { @@ -5193,8 +5317,9 @@ namespace ts { if (sources.length !== targets.length && relation === identityRelation) { return Ternary.False; } + const length = sources.length <= targets.length ? sources.length : targets.length; let result = Ternary.True; - for (let i = 0; i < targets.length; i++) { + for (let i = 0; i < length; i++) { const related = isRelatedTo(sources[i], targets[i], reportErrors); if (!related) { return Ternary.False; @@ -5204,27 +5329,16 @@ namespace ts { return result; } - function typeParameterIdenticalTo(source: TypeParameter, target: TypeParameter): Ternary { - // covers case when both type parameters does not have constraint (both equal to noConstraintType) - if (source.constraint === target.constraint) { - return Ternary.True; - } - if (source.constraint === noConstraintType || target.constraint === noConstraintType) { - return Ternary.False; - } - return isIdenticalTo(source.constraint, target.constraint); - } - // Determine if two object types are related by structure. First, check if the result is already available in the global cache. // Second, check if we have already started a comparison of the given two types in which case we assume the result to be true. // Third, check if both types are part of deeply nested chains of generic type instantiations and if so assume the types are // equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion // and issue an error. Otherwise, actually compare the structure of the two types. - function objectTypeRelatedTo(apparentSource: Type, originalSource: Type, target: Type, reportErrors: boolean): Ternary { + function objectTypeRelatedTo(source: Type, originalSource: Type, target: Type, reportErrors: boolean): Ternary { if (overflow) { return Ternary.False; } - const id = relation !== identityRelation || apparentSource.id < target.id ? apparentSource.id + "," + target.id : target.id + "," + apparentSource.id; + const id = relation !== identityRelation || source.id < target.id ? source.id + "," + target.id : target.id + "," + source.id; const related = relation[id]; if (related !== undefined) { if (elaborateErrors && related === RelationComparisonResult.Failed) { @@ -5254,28 +5368,28 @@ namespace ts { maybeStack = []; expandingFlags = 0; } - sourceStack[depth] = apparentSource; + sourceStack[depth] = source; targetStack[depth] = target; maybeStack[depth] = {}; maybeStack[depth][id] = RelationComparisonResult.Succeeded; depth++; const saveExpandingFlags = expandingFlags; - if (!(expandingFlags & 1) && isDeeplyNestedGeneric(apparentSource, sourceStack, depth)) expandingFlags |= 1; + if (!(expandingFlags & 1) && isDeeplyNestedGeneric(source, sourceStack, depth)) expandingFlags |= 1; if (!(expandingFlags & 2) && isDeeplyNestedGeneric(target, targetStack, depth)) expandingFlags |= 2; let result: Ternary; if (expandingFlags === 3) { result = Ternary.Maybe; } else { - result = propertiesRelatedTo(apparentSource, target, reportErrors); + result = propertiesRelatedTo(source, target, reportErrors); if (result) { - result &= signaturesRelatedTo(apparentSource, target, SignatureKind.Call, reportErrors); + result &= signaturesRelatedTo(source, target, SignatureKind.Call, reportErrors); if (result) { - result &= signaturesRelatedTo(apparentSource, target, SignatureKind.Construct, reportErrors); + result &= signaturesRelatedTo(source, target, SignatureKind.Construct, reportErrors); if (result) { - result &= stringIndexTypesRelatedTo(apparentSource, originalSource, target, reportErrors); + result &= stringIndexTypesRelatedTo(source, originalSource, target, reportErrors); if (result) { - result &= numberIndexTypesRelatedTo(apparentSource, originalSource, target, reportErrors); + result &= numberIndexTypesRelatedTo(source, originalSource, target, reportErrors); } } } @@ -5440,20 +5554,26 @@ namespace ts { outer: for (const t of targetSignatures) { if (!t.hasStringLiterals || target.flags & TypeFlags.FromSignature) { - let localErrors = reportErrors; - const checkedAbstractAssignability = false; + // Only elaborate errors from the first failure + let shouldElaborateErrors = reportErrors; for (const s of sourceSignatures) { if (!s.hasStringLiterals || source.flags & TypeFlags.FromSignature) { - const related = signatureRelatedTo(s, t, localErrors); + const related = signatureRelatedTo(s, t, shouldElaborateErrors); if (related) { result &= related; errorInfo = saveErrorInfo; continue outer; } - // Only report errors from the first failure - localErrors = false; + shouldElaborateErrors = false; } } + // don't elaborate the primitive apparent types (like Number) + // because the actual primitives will have already been reported. + if (shouldElaborateErrors && !isPrimitiveApparentType(source)) { + reportError(Diagnostics.Type_0_provides_no_match_for_the_signature_1, + typeToString(source), + signatureToString(t, /*enclosingDeclaration*/ undefined, /*flags*/ undefined, kind)); + } return Ternary.False; } } @@ -5545,46 +5665,19 @@ namespace ts { result &= related; } - if (source.typePredicate && target.typePredicate) { - const hasDifferentParameterIndex = source.typePredicate.parameterIndex !== target.typePredicate.parameterIndex; - let hasDifferentTypes: boolean; - if (hasDifferentParameterIndex || - (hasDifferentTypes = !isTypeIdenticalTo(source.typePredicate.type, target.typePredicate.type))) { + const targetReturnType = getReturnTypeOfSignature(target); + if (targetReturnType === voidType) return result; + const sourceReturnType = getReturnTypeOfSignature(source); + // The follow block preserves old behavior forbidding boolean returning functions from being assignable to type guard returning functions + if (targetReturnType.flags & TypeFlags.PredicateType && (targetReturnType as PredicateType).predicate.kind === TypePredicateKind.Identifier) { + if (!(sourceReturnType.flags & TypeFlags.PredicateType)) { if (reportErrors) { - const sourceParamText = source.typePredicate.parameterName; - const targetParamText = target.typePredicate.parameterName; - const sourceTypeText = typeToString(source.typePredicate.type); - const targetTypeText = typeToString(target.typePredicate.type); - - if (hasDifferentParameterIndex) { - reportError(Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, - sourceParamText, - targetParamText); - } - else if (hasDifferentTypes) { - reportError(Diagnostics.Type_0_is_not_assignable_to_type_1, - sourceTypeText, - targetTypeText); - } - - reportError(Diagnostics.Type_predicate_0_is_not_assignable_to_1, - `${sourceParamText} is ${sourceTypeText}`, - `${targetParamText} is ${targetTypeText}`); + reportError(Diagnostics.Signature_0_must_have_a_type_predicate, signatureToString(source)); } return Ternary.False; } } - else if (!source.typePredicate && target.typePredicate) { - if (reportErrors) { - reportError(Diagnostics.Signature_0_must_have_a_type_predicate, signatureToString(source)); - } - return Ternary.False; - } - - const targetReturnType = getReturnTypeOfSignature(target); - if (targetReturnType === voidType) return result; - const sourceReturnType = getReturnTypeOfSignature(source); return result & isRelatedTo(sourceReturnType, targetReturnType, reportErrors); } @@ -5763,26 +5856,19 @@ namespace ts { if (!(isMatchingSignature(source, target, partialMatch))) { return Ternary.False; } - let result = Ternary.True; - if (source.typeParameters && target.typeParameters) { - if (source.typeParameters.length !== target.typeParameters.length) { - return Ternary.False; - } - for (let i = 0, len = source.typeParameters.length; i < len; ++i) { - const related = compareTypes(source.typeParameters[i], target.typeParameters[i]); - if (!related) { - return Ternary.False; - } - result &= related; - } - } - else if (source.typeParameters || target.typeParameters) { + // Check that the two signatures have the same number of type parameters. We might consider + // also checking that any type parameter constraints match, but that would require instantiating + // the constraints with a common set of type arguments to get relatable entities in places where + // type parameters occur in the constraints. The complexity of doing that doesn't seem worthwhile, + // particularly as we're comparing erased versions of the signatures below. + if ((source.typeParameters ? source.typeParameters.length : 0) !== (target.typeParameters ? target.typeParameters.length : 0)) { return Ternary.False; } // Spec 1.0 Section 3.8.3 & 3.8.4: // M and N (the signatures) are instantiated using type Any as the type argument for all type parameters declared by M and N source = getErasedSignature(source); target = getErasedSignature(target); + let result = Ternary.True; const targetLen = target.parameters.length; for (let i = 0; i < targetLen; i++) { const s = isRestParameterIndex(source, i) ? getRestTypeOfSignature(source) : getTypeOfSymbol(source.parameters[i]); @@ -5928,6 +6014,9 @@ namespace ts { if (type.flags & (TypeFlags.Undefined | TypeFlags.Null)) { return anyType; } + if (type.flags & TypeFlags.PredicateType) { + return booleanType; + } if (type.flags & TypeFlags.ObjectLiteral) { return getWidenedTypeOfObjectLiteral(type); } @@ -6090,14 +6179,25 @@ namespace ts { function inferFromTypes(source: Type, target: Type) { if (source.flags & TypeFlags.Union && target.flags & TypeFlags.Union || source.flags & TypeFlags.Intersection && target.flags & TypeFlags.Intersection) { - // Source and target are both unions or both intersections. To improve the quality of - // inferences we first reduce the types by removing constituents that are identically - // matched by a constituent in the other type. For example, when inferring from - // 'string | string[]' to 'string | T', we reduce the types to 'string[]' and 'T'. - const reducedSource = reduceUnionOrIntersectionType(source, target); - const reducedTarget = reduceUnionOrIntersectionType(target, source); - source = reducedSource; - target = reducedTarget; + // Source and target are both unions or both intersections. First, find each + // target constituent type that has an identically matching source constituent + // type, and for each such target constituent type infer from the type to itself. + // When inferring from a type to itself we effectively find all type parameter + // occurrences within that type and infer themselves as their type arguments. + let matchingTypes: Type[]; + for (const t of (target).types) { + if (typeIdenticalToSomeType(t, (source).types)) { + (matchingTypes || (matchingTypes = [])).push(t); + inferFromTypes(t, t); + } + } + // Next, to improve the quality of inferences, reduce the source and target types by + // removing the identically matched constituents. For example, when inferring from + // 'string | string[]' to 'string | T' we reduce the types to 'string[]' and 'T'. + if (matchingTypes) { + source = removeTypesFromUnionOrIntersection(source, matchingTypes); + target = removeTypesFromUnionOrIntersection(target, matchingTypes); + } } if (target.flags & TypeFlags.TypeParameter) { // If target is a type parameter, make an inference, unless the source type contains @@ -6140,6 +6240,11 @@ namespace ts { inferFromTypes(sourceTypes[i], targetTypes[i]); } } + else if (source.flags & TypeFlags.PredicateType && target.flags & TypeFlags.PredicateType) { + if ((source as PredicateType).predicate.kind === (target as PredicateType).predicate.kind) { + inferFromTypes((source as PredicateType).predicate.type, (target as PredicateType).predicate.type); + } + } else if (source.flags & TypeFlags.Tuple && target.flags & TypeFlags.Tuple && (source).elementTypes.length === (target).elementTypes.length) { // If source and target are tuples of the same size, infer from element types const sourceTypes = (source).elementTypes; @@ -6181,9 +6286,12 @@ namespace ts { } else { source = getApparentType(source); - if (source.flags & TypeFlags.ObjectType && (target.flags & (TypeFlags.Reference | TypeFlags.Tuple) || - (target.flags & TypeFlags.Anonymous) && target.symbol && target.symbol.flags & (SymbolFlags.Method | SymbolFlags.TypeLiteral | SymbolFlags.Class))) { - // If source is an object type, and target is a type reference, a tuple type, the type of a method, or a type literal, infer from members + if (source.flags & TypeFlags.ObjectType && ( + target.flags & TypeFlags.Reference && (target).typeArguments || + target.flags & TypeFlags.Tuple || + target.flags & TypeFlags.Anonymous && target.symbol && target.symbol.flags & (SymbolFlags.Method | SymbolFlags.TypeLiteral | SymbolFlags.Class))) { + // If source is an object type, and target is a type reference with type arguments, a tuple type, + // the type of a method, or a type literal, infer from members if (isInProcess(source, target)) { return; } @@ -6232,17 +6340,7 @@ namespace ts { function inferFromSignature(source: Signature, target: Signature) { forEachMatchingParameterType(source, target, inferFromTypes); - if (source.typePredicate && target.typePredicate) { - if (target.typePredicate.parameterIndex === source.typePredicate.parameterIndex) { - // Return types from type predicates are treated as booleans. In order to infer types - // from type predicates we would need to infer using the type within the type predicate - // (i.e. 'Foo' from 'x is Foo'). - inferFromTypes(source.typePredicate.type, target.typePredicate.type); - } - } - else { - inferFromTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target)); - } + inferFromTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target)); } function inferFromIndexTypes(source: Type, target: Type, sourceKind: IndexKind, targetKind: IndexKind) { @@ -6256,9 +6354,9 @@ namespace ts { } } - function typeIdenticalToSomeType(source: Type, target: UnionOrIntersectionType): boolean { - for (const t of target.types) { - if (isTypeIdenticalTo(source, t)) { + function typeIdenticalToSomeType(type: Type, types: Type[]): boolean { + for (const t of types) { + if (isTypeIdenticalTo(t, type)) { return true; } } @@ -6266,29 +6364,17 @@ namespace ts { } /** - * Return the reduced form of the source type. This type is computed by by removing all source - * constituents that have an identical match in the target type. + * Return a new union or intersection type computed by removing a given set of types + * from a given union or intersection type. */ - function reduceUnionOrIntersectionType(source: UnionOrIntersectionType, target: UnionOrIntersectionType) { - let sourceTypes = source.types; - let sourceIndex = 0; - let modified = false; - while (sourceIndex < sourceTypes.length) { - if (typeIdenticalToSomeType(sourceTypes[sourceIndex], target)) { - if (!modified) { - sourceTypes = sourceTypes.slice(0); - modified = true; - } - sourceTypes.splice(sourceIndex, 1); - } - else { - sourceIndex++; + function removeTypesFromUnionOrIntersection(type: UnionOrIntersectionType, typesToRemove: Type[]) { + const reducedTypes: Type[] = []; + for (const t of type.types) { + if (!typeIdenticalToSomeType(t, typesToRemove)) { + reducedTypes.push(t); } } - if (modified) { - return source.flags & TypeFlags.Union ? getUnionType(sourceTypes, /*noSubtypeReduction*/ true) : getIntersectionType(sourceTypes); - } - return source; + return type.flags & TypeFlags.Union ? getUnionType(reducedTypes, /*noSubtypeReduction*/ true) : getIntersectionType(reducedTypes); } function getInferenceCandidates(context: InferenceContext, index: number): Type[] { @@ -6315,11 +6401,17 @@ namespace ts { inferredType = emptyObjectType; inferenceSucceeded = true; } + context.inferredTypes[index] = inferredType; // Only do the constraint check if inference succeeded (to prevent cascading errors) if (inferenceSucceeded) { const constraint = getConstraintOfTypeParameter(context.typeParameters[index]); - inferredType = constraint && !isTypeAssignableTo(inferredType, constraint) ? constraint : inferredType; + if (constraint) { + const instantiatedConstraint = instantiateType(constraint, getInferenceMapper(context)); + if (!isTypeAssignableTo(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { + context.inferredTypes[index] = inferredType = instantiatedConstraint; + } + } } else if (context.failedTypeParameterIndex === undefined || context.failedTypeParameterIndex > index) { // If inference failed, it is necessary to record the index of the failed type parameter (the one we are on). @@ -6327,7 +6419,6 @@ namespace ts { // So if this failure is on preceding type parameter, this type parameter is the new failure index. context.failedTypeParameterIndex = index; } - context.inferredTypes[index] = inferredType; } return inferredType; } @@ -6336,7 +6427,6 @@ namespace ts { for (let i = 0; i < context.inferredTypes.length; i++) { getInferredType(context, i); } - return context.inferredTypes; } @@ -6393,10 +6483,7 @@ namespace ts { function isAssignedInBinaryExpression(node: BinaryExpression) { if (node.operatorToken.kind >= SyntaxKind.FirstAssignment && node.operatorToken.kind <= SyntaxKind.LastAssignment) { - let n = node.left; - while (n.kind === SyntaxKind.ParenthesizedExpression) { - n = (n).expression; - } + const n = skipParenthesizedNodes(node.left); if (n.kind === SyntaxKind.Identifier && getResolvedSymbol(n) === symbol) { return true; } @@ -6652,20 +6739,20 @@ namespace ts { } if (targetType) { - if (!assumeTrue) { - if (type.flags & TypeFlags.Union) { - return getUnionType(filter((type).types, t => !isTypeSubtypeOf(t, targetType))); - } - return type; - } - - return getNarrowedType(type, targetType); + return getNarrowedType(type, targetType, assumeTrue); } return type; } - function getNarrowedType(originalType: Type, narrowedTypeCandidate: Type) { + function getNarrowedType(originalType: Type, narrowedTypeCandidate: Type, assumeTrue: boolean) { + if (!assumeTrue) { + if (originalType.flags & TypeFlags.Union) { + return getUnionType(filter((originalType).types, t => !isTypeSubtypeOf(t, narrowedTypeCandidate))); + } + return originalType; + } + // If the current type is a union type, remove all constituents that aren't assignable to target. If that produces // 0 candidates, fall back to the assignability check if (originalType.flags & TypeFlags.Union) { @@ -6688,22 +6775,59 @@ namespace ts { return type; } const signature = getResolvedSignature(expr); + const predicateType = getReturnTypeOfSignature(signature); - if (signature.typePredicate && - expr.arguments[signature.typePredicate.parameterIndex] && - getSymbolAtLocation(expr.arguments[signature.typePredicate.parameterIndex]) === symbol) { - - if (!assumeTrue) { - if (type.flags & TypeFlags.Union) { - return getUnionType(filter((type).types, t => !isTypeSubtypeOf(t, signature.typePredicate.type))); - } - return type; + if (!predicateType || !(predicateType.flags & TypeFlags.PredicateType)) { + return type; + } + const predicate = (predicateType as PredicateType).predicate; + if (isIdentifierTypePredicate(predicate)) { + const callExpression = expr as CallExpression; + if (callExpression.arguments[predicate.parameterIndex] && + getSymbolAtTypePredicatePosition(callExpression.arguments[predicate.parameterIndex]) === symbol) { + return getNarrowedType(type, predicate.type, assumeTrue); } - return getNarrowedType(type, signature.typePredicate.type); + } + else { + const expression = skipParenthesizedNodes(expr.expression); + return narrowTypeByThisTypePredicate(type, predicate, expression, assumeTrue); } return type; } + function narrowTypeByTypePredicateMember(type: Type, expr: ElementAccessExpression | PropertyAccessExpression, assumeTrue: boolean): Type { + if (type.flags & TypeFlags.Any) { + return type; + } + const memberType = getTypeOfExpression(expr); + if (!(memberType.flags & TypeFlags.PredicateType)) { + return type; + } + + return narrowTypeByThisTypePredicate(type, (memberType as PredicateType).predicate as ThisTypePredicate, expr, assumeTrue); + } + + function narrowTypeByThisTypePredicate(type: Type, predicate: ThisTypePredicate, expression: Expression, assumeTrue: boolean): Type { + if (expression.kind === SyntaxKind.ElementAccessExpression || expression.kind === SyntaxKind.PropertyAccessExpression) { + const accessExpression = expression as ElementAccessExpression | PropertyAccessExpression; + const possibleIdentifier = skipParenthesizedNodes(accessExpression.expression); + if (possibleIdentifier.kind === SyntaxKind.Identifier && getSymbolAtTypePredicatePosition(possibleIdentifier) === symbol) { + return getNarrowedType(type, predicate.type, assumeTrue); + } + } + return type; + } + + function getSymbolAtTypePredicatePosition(expr: Expression): Symbol { + expr = skipParenthesizedNodes(expr); + switch (expr.kind) { + case SyntaxKind.Identifier: + case SyntaxKind.PropertyAccessExpression: + case SyntaxKind.QualifiedName: + return getSymbolOfEntityNameOrPropertyAccessExpression(expr as Node as (EntityName | PropertyAccessExpression)); + } + } + // Narrow the given type based on the given expression having the assumed boolean value. The returned type // will be a subtype or the same type as the argument. function narrowType(type: Type, expr: Expression, assumeTrue: boolean): Type { @@ -6732,11 +6856,21 @@ namespace ts { return narrowType(type, (expr).operand, !assumeTrue); } break; + case SyntaxKind.ElementAccessExpression: + case SyntaxKind.PropertyAccessExpression: + return narrowTypeByTypePredicateMember(type, expr as (ElementAccessExpression | PropertyAccessExpression), assumeTrue); } return type; } } + function skipParenthesizedNodes(expression: Expression): Expression { + while (expression.kind === SyntaxKind.ParenthesizedExpression) { + expression = (expression as ParenthesizedExpression).expression; + } + return expression; + } + function checkIdentifier(node: Identifier): Type { const symbol = getResolvedSymbol(node); @@ -6905,6 +7039,23 @@ namespace ts { const symbol = getSymbolOfNode(container.parent); return container.flags & NodeFlags.Static ? getTypeOfSymbol(symbol) : (getDeclaredTypeOfSymbol(symbol)).thisType; } + + // If this is a function in a JS file, it might be a class method. Check if it's the RHS + // of a x.prototype.y = function [name]() { .... } + if (isInJavaScriptFile(node) && container.kind === SyntaxKind.FunctionExpression) { + if (getSpecialPropertyAssignmentKind(container.parent) === SpecialPropertyAssignmentKind.PrototypeProperty) { + // Get the 'x' of 'x.prototype.y = f' (here, 'f' is 'container') + const className = (((container.parent as BinaryExpression) // x.protoype.y = f + .left as PropertyAccessExpression) // x.prototype.y + .expression as PropertyAccessExpression) // x.prototype + .expression; // x + const classSymbol = checkExpression(className).symbol; + if (classSymbol && classSymbol.members && (classSymbol.flags & SymbolFlags.Function)) { + return getInferredClassType(classSymbol); + } + } + } + return anyType; } @@ -7882,12 +8033,11 @@ namespace ts { return type; } - /// Returns the type JSX.IntrinsicElements. May return `unknownType` if that type is not present. - function getJsxIntrinsicElementsType() { - if (!jsxIntrinsicElementsType) { - jsxIntrinsicElementsType = getExportedTypeFromNamespace(JsxNames.JSX, JsxNames.IntrinsicElements) || unknownType; + function getJsxType(name: string) { + if (jsxTypes[name] === undefined) { + return jsxTypes[name] = getExportedTypeFromNamespace(JsxNames.JSX, name) || unknownType; } - return jsxIntrinsicElementsType; + return jsxTypes[name]; } /// Given a JSX opening element or self-closing element, return the symbol of the property that the tag name points to if @@ -7910,7 +8060,7 @@ namespace ts { return links.resolvedSymbol; function lookupIntrinsicTag(node: JsxOpeningLikeElement | JsxClosingElement): Symbol { - const intrinsicElementsType = getJsxIntrinsicElementsType(); + const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements); if (intrinsicElementsType !== unknownType) { // Property case const intrinsicProp = getPropertyOfType(intrinsicElementsType, (node.tagName).text); @@ -7942,7 +8092,7 @@ namespace ts { // Look up the value in the current scope if (valueSymbol && valueSymbol !== unknownSymbol) { - links.jsxFlags |= JsxFlags.ClassElement; + links.jsxFlags |= JsxFlags.ValueElement; if (valueSymbol.flags & SymbolFlags.Alias) { markAliasSymbolAsReferenced(valueSymbol); } @@ -7971,7 +8121,7 @@ namespace ts { function getJsxElementInstanceType(node: JsxOpeningLikeElement) { // There is no such thing as an instance type for a non-class element. This // line shouldn't be hit. - Debug.assert(!!(getNodeLinks(node).jsxFlags & JsxFlags.ClassElement), "Should not call getJsxElementInstanceType on non-class Element"); + Debug.assert(!!(getNodeLinks(node).jsxFlags & JsxFlags.ValueElement), "Should not call getJsxElementInstanceType on non-class Element"); const classSymbol = getJsxElementTagSymbol(node); if (classSymbol === unknownSymbol) { @@ -7998,15 +8148,7 @@ namespace ts { } } - const returnType = getUnionType(signatures.map(getReturnTypeOfSignature)); - - // Issue an error if this return type isn't assignable to JSX.ElementClass - const elemClassType = getJsxGlobalElementClassType(); - if (elemClassType) { - checkTypeRelatedTo(returnType, elemClassType, assignableRelation, node, Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements); - } - - return returnType; + return getUnionType(signatures.map(getReturnTypeOfSignature)); } /// e.g. "props" for React.d.ts, @@ -8055,9 +8197,31 @@ namespace ts { if (!links.resolvedJsxType) { const sym = getJsxElementTagSymbol(node); - if (links.jsxFlags & JsxFlags.ClassElement) { + if (links.jsxFlags & JsxFlags.ValueElement) { + // Get the element instance type (the result of newing or invoking this tag) const elemInstanceType = getJsxElementInstanceType(node); + // Is this is a stateless function component? See if its single signature is + // assignable to the JSX Element Type + const callSignature = getSingleCallSignature(getTypeOfSymbol(sym)); + const callReturnType = callSignature && getReturnTypeOfSignature(callSignature); + let paramType = callReturnType && (callSignature.parameters.length === 0 ? emptyObjectType : getTypeOfSymbol(callSignature.parameters[0])); + if (callReturnType && isTypeAssignableTo(callReturnType, jsxElementType) && (paramType.flags & TypeFlags.ObjectType)) { + // Intersect in JSX.IntrinsicAttributes if it exists + const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes); + if (intrinsicAttributes !== unknownType) { + paramType = intersectTypes(intrinsicAttributes, paramType); + } + return paramType; + } + + // Issue an error if this return type isn't assignable to JSX.ElementClass + const elemClassType = getJsxGlobalElementClassType(); + if (elemClassType) { + checkTypeRelatedTo(elemInstanceType, elemClassType, assignableRelation, node, Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements); + } + + if (isTypeAny(elemInstanceType)) { return links.resolvedJsxType = elemInstanceType; } @@ -8079,14 +8243,36 @@ namespace ts { return links.resolvedJsxType = emptyObjectType; } else if (isTypeAny(attributesType) || (attributesType === unknownType)) { + // Props is of type 'any' or unknown return links.resolvedJsxType = attributesType; } else if (!(attributesType.flags & TypeFlags.ObjectType)) { + // Props is not an object type error(node.tagName, Diagnostics.JSX_element_attributes_type_0_must_be_an_object_type, typeToString(attributesType)); return links.resolvedJsxType = anyType; } else { - return links.resolvedJsxType = attributesType; + // Normal case -- add in IntrinsicClassElements and IntrinsicElements + let apparentAttributesType = attributesType; + const intrinsicClassAttribs = getJsxType(JsxNames.IntrinsicClassAttributes); + if (intrinsicClassAttribs !== unknownType) { + const typeParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(intrinsicClassAttribs.symbol); + if (typeParams) { + if (typeParams.length === 1) { + apparentAttributesType = intersectTypes(createTypeReference(intrinsicClassAttribs, [elemInstanceType]), apparentAttributesType); + } + } + else { + apparentAttributesType = intersectTypes(attributesType, intrinsicClassAttribs); + } + } + + const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes); + if (intrinsicAttribs !== unknownType) { + apparentAttributesType = intersectTypes(intrinsicAttribs, apparentAttributesType); + } + + return links.resolvedJsxType = apparentAttributesType; } } } @@ -8125,7 +8311,7 @@ namespace ts { /// Returns all the properties of the Jsx.IntrinsicElements interface function getJsxIntrinsicTagNames(): Symbol[] { - const intrinsics = getJsxIntrinsicElementsType(); + const intrinsics = getJsxType(JsxNames.IntrinsicElements); return intrinsics ? getPropertiesOfType(intrinsics) : emptyArray; } @@ -8233,7 +8419,7 @@ namespace ts { // - In a static member function or static member accessor // where this references the constructor function object of a derived class, // a super property access is permitted and must specify a public static member function of the base class. - if (getDeclarationKindFromSymbol(prop) !== SyntaxKind.MethodDeclaration) { + if (languageVersion < ScriptTarget.ES6 && getDeclarationKindFromSymbol(prop) !== SyntaxKind.MethodDeclaration) { // `prop` refers to a *property* declared in the super class // rather than a *method*, so it does not satisfy the above criteria. @@ -8697,7 +8883,7 @@ namespace ts { function inferTypeArguments(node: CallLikeExpression, signature: Signature, args: Expression[], excludeArgument: boolean[], context: InferenceContext): void { const typeParameters = signature.typeParameters; - const inferenceMapper = createInferenceMapper(context); + const inferenceMapper = getInferenceMapper(context); // Clear out all the inference results from the last time inferTypeArguments was called on this context for (let i = 0; i < typeParameters.length; i++) { @@ -8763,14 +8949,11 @@ namespace ts { getInferredTypes(context); } - function checkTypeArguments(signature: Signature, typeArguments: TypeNode[], typeArgumentResultTypes: Type[], reportErrors: boolean, headMessage?: DiagnosticMessage): boolean { + function checkTypeArguments(signature: Signature, typeArgumentNodes: TypeNode[], typeArgumentTypes: Type[], reportErrors: boolean, headMessage?: DiagnosticMessage): boolean { const typeParameters = signature.typeParameters; let typeArgumentsAreAssignable = true; + let mapper: TypeMapper; for (let i = 0; i < typeParameters.length; i++) { - const typeArgNode = typeArguments[i]; - const typeArgument = getTypeFromTypeNode(typeArgNode); - // Do not push on this array! It has a preallocated length - typeArgumentResultTypes[i] = typeArgument; if (typeArgumentsAreAssignable /* so far */) { const constraint = getConstraintOfTypeParameter(typeParameters[i]); if (constraint) { @@ -8780,17 +8963,19 @@ namespace ts { errorInfo = chainDiagnosticMessages(errorInfo, typeArgumentHeadMessage); typeArgumentHeadMessage = headMessage; } - + if (!mapper) { + mapper = createTypeMapper(typeParameters, typeArgumentTypes); + } + const typeArgument = typeArgumentTypes[i]; typeArgumentsAreAssignable = checkTypeAssignableTo( typeArgument, - constraint, - reportErrors ? typeArgNode : undefined, + getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument), + reportErrors ? typeArgumentNodes[i] : undefined, typeArgumentHeadMessage, errorInfo); } } } - return typeArgumentsAreAssignable; } @@ -9246,7 +9431,8 @@ namespace ts { } else if (candidateForTypeArgumentError) { if (!isTaggedTemplate && !isDecorator && typeArguments) { - checkTypeArguments(candidateForTypeArgumentError, (node).typeArguments, [], /*reportErrors*/ true, headMessage); + const typeArguments = (node).typeArguments; + checkTypeArguments(candidateForTypeArgumentError, typeArguments, map(typeArguments, getTypeFromTypeNode), /*reportErrors*/ true, headMessage); } else { Debug.assert(resultOfFailedInference.failedTypeParameterIndex >= 0); @@ -9313,7 +9499,7 @@ namespace ts { if (candidate.typeParameters) { let typeArgumentTypes: Type[]; if (typeArguments) { - typeArgumentTypes = new Array(candidate.typeParameters.length); + typeArgumentTypes = map(typeArguments, getTypeFromTypeNode); typeArgumentsAreValid = checkTypeArguments(candidate, typeArguments, typeArgumentTypes, /*reportErrors*/ false); } else { @@ -9591,6 +9777,14 @@ namespace ts { return links.resolvedSignature; } + function getInferredClassType(symbol: Symbol) { + const links = getSymbolLinks(symbol); + if (!links.inferredClassType) { + links.inferredClassType = createAnonymousType(undefined, symbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined); + } + return links.inferredClassType; + } + /** * Syntactically and semantically checks a call or new expression. * @param node The call/new expression to be checked. @@ -9620,8 +9814,14 @@ namespace ts { declaration.kind !== SyntaxKind.ConstructSignature && declaration.kind !== SyntaxKind.ConstructorType) { - // When resolved signature is a call signature (and not a construct signature) the result type is any - if (compilerOptions.noImplicitAny) { + // When resolved signature is a call signature (and not a construct signature) the result type is any, unless + // the declaring function had members created through 'x.prototype.y = expr' or 'this.y = expr' psuedodeclarations + // in a JS file + const funcSymbol = checkExpression(node.expression).symbol; + if (funcSymbol && funcSymbol.members && (funcSymbol.flags & SymbolFlags.Function)) { + return getInferredClassType(funcSymbol); + } + else if (compilerOptions.noImplicitAny) { error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } return anyType; @@ -9880,7 +10080,7 @@ namespace ts { return aggregatedTypes; } - /* + /* *TypeScript Specification 1.0 (6.3) - July 2014 * An explicitly typed function whose return type isn't the Void or the Any type * must have at least one return statement somewhere in its body. @@ -9893,31 +10093,39 @@ namespace ts { } // Functions with with an explicitly specified 'void' or 'any' return type don't need any return expressions. - if (returnType && (returnType === voidType || isTypeAny(returnType))) { - return; - } - - // if return type is not specified then we'll do the check only if 'noImplicitReturns' option is set - if (!returnType && !compilerOptions.noImplicitReturns) { + if (returnType === voidType || isTypeAny(returnType)) { return; } // If all we have is a function signature, or an arrow function with an expression body, then there is nothing to check. - // also if HasImplicitReturnValue flags is not set this means that all codepaths in function body end with return of throw + // also if HasImplicitReturn flag is not set this means that all codepaths in function body end with return or throw if (nodeIsMissing(func.body) || func.body.kind !== SyntaxKind.Block || !(func.flags & NodeFlags.HasImplicitReturn)) { return; } - if (!returnType || func.flags & NodeFlags.HasExplicitReturn) { - if (compilerOptions.noImplicitReturns) { - error(func.type || func, Diagnostics.Not_all_code_paths_return_a_value); - } - } - else { - // This function does not conform to the specification. - // NOTE: having returnType !== undefined is a precondition for entering this branch so func.type will always be present + const hasExplicitReturn = func.flags & NodeFlags.HasExplicitReturn; + + if (returnType && !hasExplicitReturn) { + // minimal check: function has syntactic return type annotation and no explicit return statements in the body + // this function does not conform to the specification. + // NOTE: having returnType !== undefined is a precondition for entering this branch so func.type will always be present error(func.type, Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value); } + else if (compilerOptions.noImplicitReturns) { + if (!returnType) { + // If return type annotation is omitted check if function has any explicit return statements. + // If it does not have any - its inferred return type is void - don't do any checks. + // Otherwise get inferred return type from function body and report error only if it is not void / anytype + const inferredReturnType = hasExplicitReturn + ? getReturnTypeOfSignature(getSignatureFromDeclaration(func)) + : voidType; + + if (inferredReturnType === voidType || isTypeAny(inferredReturnType)) { + return; + } + } + error(func.type || func, Diagnostics.Not_all_code_paths_return_a_value); + } } function checkFunctionExpressionOrObjectLiteralMethod(node: FunctionExpression | MethodDeclaration, contextualMapper?: TypeMapper): Type { @@ -10845,11 +11053,10 @@ namespace ts { } checkSourceElement(node.constraint); + getConstraintOfTypeParameter(getDeclaredTypeOfTypeParameter(getSymbolOfNode(node))); if (produceDiagnostics) { - checkTypeParameterHasIllegalReferencesInConstraint(node); checkTypeNameIsReserved(node.name, Diagnostics.Type_parameter_name_cannot_be_0); } - // TODO: Check multiple declarations are identical } function checkParameter(node: ParameterDeclaration) { @@ -10904,7 +11111,7 @@ namespace ts { return -1; } - function isInLegalTypePredicatePosition(node: Node): boolean { + function isInLegalParameterTypePredicatePosition(node: Node): boolean { switch (node.parent.kind) { case SyntaxKind.ArrowFunction: case SyntaxKind.CallSignature: @@ -10918,6 +11125,19 @@ namespace ts { return false; } + function isInLegalThisTypePredicatePosition(node: Node): boolean { + if (isInLegalParameterTypePredicatePosition(node)) { + return true; + } + switch (node.parent.kind) { + case SyntaxKind.PropertyDeclaration: + case SyntaxKind.PropertySignature: + case SyntaxKind.GetAccessor: + return node === (node.parent as (PropertyDeclaration | GetAccessorDeclaration | PropertySignature)).type; + } + return false; + } + function checkSignatureDeclaration(node: SignatureDeclaration) { // Grammar checking if (node.kind === SyntaxKind.IndexSignature) { @@ -10936,9 +11156,14 @@ namespace ts { if (node.type) { if (node.type.kind === SyntaxKind.TypePredicate) { - const typePredicate = getSignatureFromDeclaration(node).typePredicate; - const typePredicateNode = node.type; - if (isInLegalTypePredicatePosition(typePredicateNode)) { + const returnType = getReturnTypeOfSignature(getSignatureFromDeclaration(node)); + if (!returnType || !(returnType.flags & TypeFlags.PredicateType)) { + return; + } + const typePredicate = (returnType as PredicateType).predicate; + const typePredicateNode = node.type as TypePredicateNode; + checkSourceElement(typePredicateNode); + if (isIdentifierTypePredicate(typePredicate)) { if (typePredicate.parameterIndex >= 0) { if (node.parameters[typePredicate.parameterIndex].dotDotDotToken) { error(typePredicateNode.parameterName, @@ -10986,10 +11211,6 @@ namespace ts { } } } - else { - error(typePredicateNode, - Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); - } } else { checkSourceElement(node.type); @@ -11089,7 +11310,7 @@ namespace ts { checkGrammarMethod(node) || checkGrammarComputedPropertyName(node.name); // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration - checkFunctionLikeDeclaration(node); + checkFunctionOrMethodDeclaration(node); // Abstract methods cannot have an implementation. // Extra checks are to avoid reporting multiple errors relating to the "abstractness" of the node. @@ -11226,6 +11447,8 @@ namespace ts { // Grammar checking accessors checkGrammarFunctionLikeDeclaration(node) || checkGrammarAccessor(node) || checkGrammarComputedPropertyName(node.name); + checkDecorators(node); + checkSignatureDeclaration(node); if (node.kind === SyntaxKind.GetAccessor) { if (!isInAmbientContext(node) && nodeIsPresent(node.body) && (node.flags & NodeFlags.HasImplicitReturn)) { if (node.flags & NodeFlags.HasExplicitReturn) { @@ -11238,7 +11461,12 @@ namespace ts { } } } - + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === SyntaxKind.ComputedPropertyName) { + checkComputedPropertyName(node.name); + } if (!hasDynamicName(node)) { // TypeScript 1.0 spec (April 2014): 8.4.3 // Accessors for the same member name must specify the same accessibility. @@ -11262,21 +11490,39 @@ namespace ts { } getTypeOfAccessors(getSymbolOfNode(node)); } + if (node.parent.kind !== SyntaxKind.ObjectLiteralExpression) { + checkSourceElement(node.body); + } + } - checkFunctionLikeDeclaration(node); + function checkObjectLiteralAccessorBody(node: AccessorDeclaration) { + if (node.body) { + checkSourceElement(node.body); + checkFunctionAndClassExpressionBodies(node.body); + } } function checkMissingDeclaration(node: Node) { checkDecorators(node); } - function checkTypeArgumentConstraints(typeParameters: TypeParameter[], typeArguments: TypeNode[]): boolean { + function checkTypeArgumentConstraints(typeParameters: TypeParameter[], typeArgumentNodes: TypeNode[]): boolean { + let typeArguments: Type[]; + let mapper: TypeMapper; let result = true; for (let i = 0; i < typeParameters.length; i++) { const constraint = getConstraintOfTypeParameter(typeParameters[i]); if (constraint) { + if (!typeArguments) { + typeArguments = map(typeArgumentNodes, getTypeFromTypeNode); + mapper = createTypeMapper(typeParameters, typeArguments); + } const typeArgument = typeArguments[i]; - result = result && checkTypeAssignableTo(getTypeFromTypeNode(typeArgument), constraint, typeArgument, Diagnostics.Type_0_does_not_satisfy_the_constraint_1); + result = result && checkTypeAssignableTo( + typeArgument, + getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument), + typeArgumentNodes[i], + Diagnostics.Type_0_does_not_satisfy_the_constraint_1); } } return result; @@ -11946,6 +12192,9 @@ namespace ts { return unknownType; } + // If the Promise constructor, resolved locally, is an alias symbol we should mark it as referenced. + checkReturnTypeAnnotationAsExpression(node); + // Validate the promise constructor type. const promiseConstructorType = getTypeOfSymbol(promiseConstructor); if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, node, Diagnostics.Type_0_is_not_a_valid_async_function_return_type)) { @@ -11954,11 +12203,11 @@ namespace ts { // Verify there is no local declaration that could collide with the promise constructor. const promiseName = getEntityNameFromTypeNode(node.type); - const root = getFirstIdentifier(promiseName); - const rootSymbol = getSymbol(node.locals, root.text, SymbolFlags.Value); + const promiseNameOrNamespaceRoot = getFirstIdentifier(promiseName); + const rootSymbol = getSymbol(node.locals, promiseNameOrNamespaceRoot.text, SymbolFlags.Value); if (rootSymbol) { error(rootSymbol.valueDeclaration, Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, - root.text, + promiseNameOrNamespaceRoot.text, getFullyQualifiedName(promiseConstructor)); return unknownType; } @@ -12042,24 +12291,12 @@ namespace ts { * Checks the type annotation of an accessor declaration or property declaration as * an expression if it is a type reference to a type with a value declaration. */ - function checkTypeAnnotationAsExpression(node: AccessorDeclaration | PropertyDeclaration | ParameterDeclaration | MethodDeclaration) { - switch (node.kind) { - case SyntaxKind.PropertyDeclaration: - checkTypeNodeAsExpression((node).type); - break; - case SyntaxKind.Parameter: - checkTypeNodeAsExpression((node).type); - break; - case SyntaxKind.MethodDeclaration: - checkTypeNodeAsExpression((node).type); - break; - case SyntaxKind.GetAccessor: - checkTypeNodeAsExpression((node).type); - break; - case SyntaxKind.SetAccessor: - checkTypeNodeAsExpression(getSetAccessorTypeAnnotationNode(node)); - break; - } + function checkTypeAnnotationAsExpression(node: VariableLikeDeclaration) { + checkTypeNodeAsExpression((node).type); + } + + function checkReturnTypeAnnotationAsExpression(node: FunctionLikeDeclaration) { + checkTypeNodeAsExpression(node.type); } /** Checks the type annotation of the parameters of a function/method or the constructor of a class as expressions */ @@ -12097,11 +12334,12 @@ namespace ts { break; case SyntaxKind.MethodDeclaration: - checkParameterTypeAnnotationsAsExpressions(node); - // fall-through - - case SyntaxKind.SetAccessor: case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + checkParameterTypeAnnotationsAsExpressions(node); + checkReturnTypeAnnotationAsExpression(node); + break; + case SyntaxKind.PropertyDeclaration: case SyntaxKind.Parameter: checkTypeAnnotationAsExpression(node); @@ -12119,7 +12357,7 @@ namespace ts { function checkFunctionDeclaration(node: FunctionDeclaration): void { if (produceDiagnostics) { - checkFunctionLikeDeclaration(node) || checkGrammarForGenerator(node); + checkFunctionOrMethodDeclaration(node) || checkGrammarForGenerator(node); checkCollisionWithCapturedSuperVariable(node, node.name); checkCollisionWithCapturedThisVariable(node, node.name); @@ -12127,7 +12365,7 @@ namespace ts { } } - function checkFunctionLikeDeclaration(node: FunctionLikeDeclaration): void { + function checkFunctionOrMethodDeclaration(node: FunctionDeclaration | MethodDeclaration): void { checkDecorators(node); checkSignatureDeclaration(node); const isAsync = isAsyncFunctionLike(node); @@ -12151,8 +12389,8 @@ namespace ts { const symbol = getSymbolOfNode(node); const localSymbol = node.localSymbol || symbol; - // Since the javascript won't do semantic analysis like typescript, - // if the javascript file comes before the typescript file and both contain same name functions, + // Since the javascript won't do semantic analysis like typescript, + // if the javascript file comes before the typescript file and both contain same name functions, // checkFunctionOrConstructorSymbol wouldn't be called if we didnt ignore javascript function. const firstDeclaration = forEach(localSymbol.declarations, // Get first non javascript function declaration @@ -12174,7 +12412,7 @@ namespace ts { } checkSourceElement(node.body); - if (!isAccessor(node.kind) && !node.asteriskToken) { + if (!node.asteriskToken) { const returnOrPromisedType = node.type && (isAsync ? checkAsyncFunctionReturnType(node) : getTypeFromTypeNode(node.type)); checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnOrPromisedType); } @@ -12964,7 +13202,7 @@ namespace ts { error(node.expression, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } } - else if (func.type || isGetAccessorWithAnnotatatedSetAccessor(func) || signature.typePredicate) { + else if (func.type || isGetAccessorWithAnnotatatedSetAccessor(func) || returnType.flags & TypeFlags.PredicateType) { if (isAsyncFunctionLike(func)) { const promisedType = getPromisedType(returnType); const awaitedType = checkAwaitedType(exprType, node.expression, Diagnostics.Return_expression_in_async_function_does_not_have_a_valid_callable_then_member); @@ -14129,14 +14367,44 @@ namespace ts { const declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration; error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); } + // Checks for export * conflicts + const exports = getExportsOfModule(moduleSymbol); + for (const id in exports) { + if (id === "__export") { + continue; + } + const { declarations, flags } = exports[id]; + // ECMA262: 15.2.1.1 It is a Syntax Error if the ExportedNames of ModuleItemList contains any duplicate entries. (TS Exceptions: namespaces, function overloads, enums, and interfaces) + if (!(flags & (SymbolFlags.Namespace | SymbolFlags.Interface | SymbolFlags.Enum)) && (flags & SymbolFlags.TypeAlias ? declarations.length - 1 : declarations.length) > 1) { + const exportedDeclarations: Declaration[] = filter(declarations, isNotOverload); + if (exportedDeclarations.length > 1) { + for (const declaration of exportedDeclarations) { + diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Cannot_redeclare_exported_variable_0, id)); + } + } + } + } links.exportsChecked = true; } + + function isNotOverload(declaration: Declaration): boolean { + return declaration.kind !== SyntaxKind.FunctionDeclaration || !!(declaration as FunctionDeclaration).body; + } } function checkTypePredicate(node: TypePredicateNode) { - if (!isInLegalTypePredicatePosition(node)) { + const { parameterName } = node; + if (parameterName.kind === SyntaxKind.Identifier && !isInLegalParameterTypePredicatePosition(node)) { error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); } + else if (parameterName.kind === SyntaxKind.ThisType) { + if (!isInLegalThisTypePredicatePosition(node)) { + error(node, Diagnostics.A_this_based_type_predicate_is_only_allowed_within_a_class_or_interface_s_members_get_accessors_or_return_type_positions_for_functions_and_methods); + } + else { + getTypeFromThisTypeNode(parameterName as ThisTypeNode); + } + } } function checkSourceElement(node: Node): void { @@ -14295,11 +14563,16 @@ namespace ts { } break; case SyntaxKind.Constructor: - case SyntaxKind.GetAccessor: - case SyntaxKind.SetAccessor: case SyntaxKind.FunctionDeclaration: forEach((node).parameters, checkFunctionAndClassExpressionBodies); break; + case SyntaxKind.GetAccessor: + case SyntaxKind.SetAccessor: + forEach((node).parameters, checkFunctionAndClassExpressionBodies); + if (node.parent.kind === SyntaxKind.ObjectLiteralExpression) { + checkObjectLiteralAccessorBody(node); + } + break; case SyntaxKind.WithStatement: checkFunctionAndClassExpressionBodies((node).expression); break; @@ -14402,6 +14675,7 @@ namespace ts { emitExtends = false; emitDecorate = false; emitParam = false; + emitAwaiter = false; potentialThisCollisions.length = 0; forEach(node.statements, checkSourceElement); @@ -14932,6 +15206,35 @@ namespace ts { return getReferencedValueSymbol(node) === argumentsSymbol; } + function moduleExportsSomeValue(moduleReferenceExpression: Expression): boolean { + let moduleSymbol = resolveExternalModuleName(moduleReferenceExpression.parent, moduleReferenceExpression); + if (!moduleSymbol) { + // module not found - be conservative + return true; + } + + const hasExportAssignment = getExportAssignmentSymbol(moduleSymbol) !== undefined; + // if module has export assignment then 'resolveExternalModuleSymbol' will return resolved symbol for export assignment + // otherwise it will return moduleSymbol itself + moduleSymbol = resolveExternalModuleSymbol(moduleSymbol); + + const symbolLinks = getSymbolLinks(moduleSymbol); + if (symbolLinks.exportsSomeValue === undefined) { + // for export assignments - check if resolved symbol for RHS is itself a value + // otherwise - check if at least one export is value + symbolLinks.exportsSomeValue = hasExportAssignment + ? !!(moduleSymbol.flags & SymbolFlags.Value) + : forEachValue(getExportsOfModule(moduleSymbol), isValue); + } + + return symbolLinks.exportsSomeValue; + + function isValue(s: Symbol): boolean { + s = resolveSymbol(s); + return s && !!(s.flags & SymbolFlags.Value); + } + } + // When resolved as an expression identifier, if the given node references an exported entity, return the declaration // node of the exported entity's container. Otherwise, return undefined. function getReferencedExportContainer(node: Identifier): SourceFile | ModuleDeclaration | EnumDeclaration { @@ -15237,6 +15540,7 @@ namespace ts { getReferencedValueDeclaration, getTypeReferenceSerializationKind, isOptionalParameter, + moduleExportsSomeValue, isArgumentsLocalBinding, getExternalModuleFileFromDeclaration }; @@ -15264,10 +15568,12 @@ namespace ts { } }); + // Setup global builtins + addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0); + getSymbolLinks(undefinedSymbol).type = undefinedType; getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments"); getSymbolLinks(unknownSymbol).type = unknownType; - globals[undefinedSymbol.name] = undefinedSymbol; // Initialize special types globalArrayType = getGlobalType("Array", /*arity*/ 1); @@ -15405,6 +15711,11 @@ namespace ts { let flags = 0; for (const modifier of node.modifiers) { switch (modifier.kind) { + case SyntaxKind.ConstKeyword: + if (node.kind !== SyntaxKind.EnumDeclaration && node.parent.kind === SyntaxKind.ClassDeclaration) { + return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(SyntaxKind.ConstKeyword)); + } + break; case SyntaxKind.PublicKeyword: case SyntaxKind.ProtectedKeyword: case SyntaxKind.PrivateKeyword: @@ -15877,6 +16188,13 @@ namespace ts { return grammarErrorOnNode((prop).equalsToken, Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment); } + // Modifiers are never allowed on properties except for 'async' on a method declaration + forEach(prop.modifiers, mod => { + if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) { + grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); + } + }); + // ECMA-262 11.1.5 Object Initialiser // If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true // a.This production is contained in strict code and IsDataDescriptor(previous) is true and @@ -15961,13 +16279,27 @@ namespace ts { if (forInOrOfStatement.initializer.kind === SyntaxKind.VariableDeclarationList) { const variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { - if (variableList.declarations.length > 1) { + const declarations = variableList.declarations; + + // declarations.length can be zero if there is an error in variable declaration in for-of or for-in + // See http://www.ecma-international.org/ecma-262/6.0/#sec-for-in-and-for-of-statements for details + // For example: + // var let = 10; + // for (let of [1,2,3]) {} // this is invalid ES6 syntax + // for (let in [1,2,3]) {} // this is invalid ES6 syntax + // We will then want to skip on grammar checking on variableList declaration + if (!declarations.length) { + return false; + } + + if (declarations.length > 1) { const diagnostic = forInOrOfStatement.kind === SyntaxKind.ForInStatement ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } - const firstDeclaration = variableList.declarations[0]; + const firstDeclaration = declarations[0]; + if (firstDeclaration.initializer) { const diagnostic = forInOrOfStatement.kind === SyntaxKind.ForInStatement ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer @@ -16166,7 +16498,7 @@ namespace ts { } } - const checkLetConstNames = languageVersion >= ScriptTarget.ES6 && (isLet(node) || isConst(node)); + const checkLetConstNames = (isLet(node) || isConst(node)); // 1. LexicalDeclaration : LetOrConst BindingList ; // It is a Syntax Error if the BoundNames of BindingList contains "let". @@ -16180,7 +16512,7 @@ namespace ts { function checkGrammarNameInLetOrConstDeclarations(name: Identifier | BindingPattern): boolean { if (name.kind === SyntaxKind.Identifier) { - if ((name).text === "let") { + if ((name).originalKeywordKind === SyntaxKind.LetKeyword) { return grammarErrorOnNode(name, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations); } } @@ -16308,11 +16640,17 @@ namespace ts { if (checkGrammarForNonSymbolComputedProperty(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol)) { return true; } + if (node.initializer) { + return grammarErrorOnNode(node.initializer, Diagnostics.An_interface_property_cannot_have_an_initializer); + } } else if (node.parent.kind === SyntaxKind.TypeLiteral) { if (checkGrammarForNonSymbolComputedProperty(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)) { return true; } + if (node.initializer) { + return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer); + } } if (isInAmbientContext(node) && node.initializer) { diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 79f0251c565..cae7bd82103 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -356,6 +356,33 @@ namespace ts { return result; } + /** + * Reduce the properties of a map. + * + * @param map The map to reduce + * @param callback An aggregation function that is called for each entry in the map + * @param initial The initial value for the reduction. + */ + export function reduceProperties(map: Map, callback: (aggregate: U, value: T, key: string) => U, initial: U): U { + let result = initial; + if (map) { + for (const key in map) { + if (hasProperty(map, key)) { + result = callback(result, map[key], String(key)); + } + } + } + + return result; + } + + /** + * Tests whether a value is an array. + */ + export function isArray(value: any): value is any[] { + return Array.isArray ? Array.isArray(value) : value instanceof Array; + } + export function memoize(callback: () => T): () => T { let value: T; return () => { diff --git a/src/compiler/declarationEmitter.ts b/src/compiler/declarationEmitter.ts index 0e0b121bf3c..3348b51dff7 100644 --- a/src/compiler/declarationEmitter.ts +++ b/src/compiler/declarationEmitter.ts @@ -1309,6 +1309,9 @@ namespace ts { } function emitSignatureDeclaration(node: SignatureDeclaration) { + const prevEnclosingDeclaration = enclosingDeclaration; + enclosingDeclaration = node; + // Construct signature or constructor type write new Signature if (node.kind === SyntaxKind.ConstructSignature || node.kind === SyntaxKind.ConstructorType) { write("new "); @@ -1321,9 +1324,6 @@ namespace ts { write("("); } - const prevEnclosingDeclaration = enclosingDeclaration; - enclosingDeclaration = node; - // Parameters emitCommaList(node.parameters, emitParameterDeclaration); @@ -1675,7 +1675,7 @@ namespace ts { /* @internal */ export function writeDeclarationFile(declarationFilePath: string, sourceFiles: SourceFile[], isBundledEmit: boolean, host: EmitHost, resolver: EmitResolver, emitterDiagnostics: DiagnosticCollection) { const emitDeclarationResult = emitDeclarations(host, resolver, emitterDiagnostics, declarationFilePath, sourceFiles, isBundledEmit); - const emitSkipped = emitDeclarationResult.reportedDeclarationError || host.isEmitBlocked(declarationFilePath); + const emitSkipped = emitDeclarationResult.reportedDeclarationError || host.isEmitBlocked(declarationFilePath) || host.getCompilerOptions().noEmit; if (!emitSkipped) { const declarationOutput = emitDeclarationResult.referencePathsOutput + getDeclarationOutput(emitDeclarationResult.synchronousDeclarationOutput, emitDeclarationResult.moduleElementDeclarationEmitInfo); diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 4bf83bd3e45..3562d79daa6 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -435,7 +435,7 @@ "category": "Error", "code": 1147 }, - "Cannot compile modules unless the '--module' flag is provided.": { + "Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file.": { "category": "Error", "code": 1148 }, @@ -783,7 +783,18 @@ "category": "Error", "code": 1245 }, - + "An interface property cannot have an initializer.": { + "category": "Error", + "code": 1246 + }, + "A type literal property cannot have an initializer.": { + "category": "Error", + "code": 1247 + }, + "A class member cannot have the '{0}' keyword.": { + "category": "Error", + "code": 1248 + }, "'with' statements are not allowed in an async function block.": { "category": "Error", "code": 1300 @@ -836,6 +847,10 @@ "category": "Error", "code": 2307 }, + "Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity.": { + "category": "Error", + "code": 2308 + }, "An export assignment cannot be used in a module with other exported elements.": { "category": "Error", "code": 2309 @@ -852,7 +867,7 @@ "category": "Error", "code": 2312 }, - "Constraint of a type parameter cannot reference any type parameter from the same type parameter list.": { + "Type parameter '{0}' has a circular constraint.": { "category": "Error", "code": 2313 }, @@ -892,6 +907,10 @@ "category": "Error", "code": 2322 }, + "Cannot redeclare exported variable '{0}'.": { + "category": "Error", + "code": 2323 + }, "Property '{0}' is missing in type '{1}'.": { "category": "Error", "code": 2324 @@ -1172,6 +1191,10 @@ "category": "Error", "code": 2396 }, + "Declaration name conflicts with built-in global identifier '{0}'.": { + "category": "Error", + "code": 2397 + }, "Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.": { "category": "Error", "code": 2399 @@ -1624,6 +1647,14 @@ "category": "Error", "code": 2517 }, + "A 'this'-based type guard is not compatible with a parameter-based type guard.": { + "category": "Error", + "code": 2518 + }, + "A 'this'-based type predicate is only allowed within a class or interface's members, get accessors, or return type positions for functions and methods.": { + "category": "Error", + "code": 2519 + }, "Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions.": { "category": "Error", "code": 2520 @@ -1724,6 +1755,10 @@ "category": "Error", "code": 2657 }, + "Type '{0}' provides no match for the signature '{1}'": { + "category": "Error", + "code": 2658 + }, "Import declaration '{0}' is using private name '{1}'.": { "category": "Error", "code": 4000 @@ -2430,7 +2465,7 @@ "Not all code paths return a value.": { "category": "Error", "code": 7030 - }, + }, "You cannot rename this element.": { "category": "Error", "code": 8000 diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index b4d2e02e4f0..f0b49854734 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1,4 +1,5 @@ /// +/// /// /* @internal */ @@ -463,6 +464,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi const writer = createTextWriter(newLine); const { write, writeTextOfNode, writeLine, increaseIndent, decreaseIndent } = writer; + const sourceMap = compilerOptions.sourceMap || compilerOptions.inlineSourceMap ? createSourceMapWriter(host, writer) : getNullSourceMapWriter(); + const { setSourceFile, emitStart, emitEnd, emitPos } = sourceMap; + let currentSourceFile: SourceFile; let currentText: string; let currentLineMap: number[]; @@ -495,40 +499,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi let externalImports: (ImportDeclaration | ImportEqualsDeclaration | ExportDeclaration)[]; let exportSpecifiers: Map; let exportEquals: ExportAssignment; - let hasExportStars: boolean; - - /** Write emitted output to disk */ - let writeEmittedFiles = writeJavaScriptFile; + let hasExportStarsToExportValues: boolean; let detachedCommentsInfo: { nodePos: number; detachedCommentEndPos: number }[]; - let writeComment = writeCommentRange; - - /** Emit a node */ - let emit = emitNodeWithCommentsAndWithoutSourcemap; - - /** Called just before starting emit of a node */ - let emitStart = function (node: Node) { }; - - /** Called once the emit of the node is done */ - let emitEnd = function (node: Node) { }; - - /** Emit the text for the given token that comes after startPos - * This by default writes the text provided with the given tokenKind - * but if optional emitFn callback is provided the text is emitted using the callback instead of default text - * @param tokenKind the kind of the token to search and emit - * @param startPos the position in the source to start searching for the token - * @param emitFn if given will be invoked to emit the text instead of actual token emit */ - let emitToken = emitTokenText; - - /** Called to before starting the lexical scopes as in function/class in the emitted code because of node - * @param scopeDeclaration node that starts the lexical scope - * @param scopeName Optional name of this scope instead of deducing one from the declaration node */ - let scopeEmitStart = function(scopeDeclaration: Node, scopeName?: string) { }; - - /** Called after coming out of the scope */ - let scopeEmitEnd = function() { }; - /** Sourcemap data that will get encoded */ let sourceMapData: SourceMapData; @@ -554,18 +528,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi [ModuleKind.CommonJS]() {}, }; - return doEmit; function doEmit(jsFilePath: string, sourceMapFilePath: string, sourceFiles: SourceFile[], isBundledEmit: boolean) { + sourceMap.initialize(jsFilePath, sourceMapFilePath, sourceFiles, isBundledEmit); generatedNameSet = {}; nodeToGeneratedName = []; isOwnFileEmit = !isBundledEmit; - if (compilerOptions.sourceMap || compilerOptions.inlineSourceMap) { - initializeEmitterWithSourceMaps(jsFilePath, sourceMapFilePath, sourceFiles, isBundledEmit); - } - // Emit helpers from all the files if (isBundledEmit && modulekind) { forEach(sourceFiles, emitEmitHelpers); @@ -575,9 +545,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi forEach(sourceFiles, emitSourceFile); writeLine(); - writeEmittedFiles(writer.getText(), jsFilePath, /*writeByteOrderMark*/ compilerOptions.emitBOM); + + const sourceMappingURL = sourceMap.getSourceMappingURL(); + if (sourceMappingURL) { + write(`//# sourceMappingURL=${sourceMappingURL}`); + } + + writeEmittedFiles(writer.getText(), jsFilePath, sourceMapFilePath, /*writeByteOrderMark*/ compilerOptions.emitBOM); // reset the state + sourceMap.reset(); writer.reset(); currentSourceFile = undefined; currentText = undefined; @@ -597,7 +574,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi externalImports = undefined; exportSpecifiers = undefined; exportEquals = undefined; - hasExportStars = undefined; + hasExportStarsToExportValues = undefined; detachedCommentsInfo = undefined; sourceMapData = undefined; isEs6Module = false; @@ -616,7 +593,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi currentFileIdentifiers = sourceFile.identifiers; isCurrentFileExternalModule = isExternalModule(sourceFile); - emit(sourceFile); + setSourceFile(sourceFile); + emitNodeWithCommentsAndWithoutSourcemap(sourceFile); } function isUniqueName(name: string): boolean { @@ -713,399 +691,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi return nodeToGeneratedName[id] || (nodeToGeneratedName[id] = unescapeIdentifier(generateNameForNode(node))); } - function initializeEmitterWithSourceMaps(jsFilePath: string, sourceMapFilePath: string, sourceFiles: SourceFile[], isBundledEmit: boolean) { - let sourceMapDir: string; // The directory in which sourcemap will be - - // Current source map file and its index in the sources list - let sourceMapSourceIndex = -1; - - // Names and its index map - const sourceMapNameIndexMap: Map = {}; - const sourceMapNameIndices: number[] = []; - function getSourceMapNameIndex() { - return sourceMapNameIndices.length ? lastOrUndefined(sourceMapNameIndices) : -1; + /** Write emitted output to disk */ + function writeEmittedFiles(emitOutput: string, jsFilePath: string, sourceMapFilePath: string, writeByteOrderMark: boolean) { + if (compilerOptions.sourceMap && !compilerOptions.inlineSourceMap) { + writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap.getText(), /*writeByteOrderMark*/ false); } - // Last recorded and encoded spans - let lastRecordedSourceMapSpan: SourceMapSpan; - let lastEncodedSourceMapSpan: SourceMapSpan = { - emittedLine: 1, - emittedColumn: 1, - sourceLine: 1, - sourceColumn: 1, - sourceIndex: 0 - }; - let lastEncodedNameIndex = 0; - - // Encoding for sourcemap span - function encodeLastRecordedSourceMapSpan() { - if (!lastRecordedSourceMapSpan || lastRecordedSourceMapSpan === lastEncodedSourceMapSpan) { - return; - } - - let prevEncodedEmittedColumn = lastEncodedSourceMapSpan.emittedColumn; - // Line/Comma delimiters - if (lastEncodedSourceMapSpan.emittedLine === lastRecordedSourceMapSpan.emittedLine) { - // Emit comma to separate the entry - if (sourceMapData.sourceMapMappings) { - sourceMapData.sourceMapMappings += ","; - } - } - else { - // Emit line delimiters - for (let encodedLine = lastEncodedSourceMapSpan.emittedLine; encodedLine < lastRecordedSourceMapSpan.emittedLine; encodedLine++) { - sourceMapData.sourceMapMappings += ";"; - } - prevEncodedEmittedColumn = 1; - } - - // 1. Relative Column 0 based - sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.emittedColumn - prevEncodedEmittedColumn); - - // 2. Relative sourceIndex - sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceIndex - lastEncodedSourceMapSpan.sourceIndex); - - // 3. Relative sourceLine 0 based - sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceLine - lastEncodedSourceMapSpan.sourceLine); - - // 4. Relative sourceColumn 0 based - sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceColumn - lastEncodedSourceMapSpan.sourceColumn); - - // 5. Relative namePosition 0 based - if (lastRecordedSourceMapSpan.nameIndex >= 0) { - sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.nameIndex - lastEncodedNameIndex); - lastEncodedNameIndex = lastRecordedSourceMapSpan.nameIndex; - } - - lastEncodedSourceMapSpan = lastRecordedSourceMapSpan; - sourceMapData.sourceMapDecodedMappings.push(lastEncodedSourceMapSpan); - - function base64VLQFormatEncode(inValue: number) { - function base64FormatEncode(inValue: number) { - if (inValue < 64) { - return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(inValue); - } - throw TypeError(inValue + ": not a 64 based value"); - } - - // Add a new least significant bit that has the sign of the value. - // if negative number the least significant bit that gets added to the number has value 1 - // else least significant bit value that gets added is 0 - // eg. -1 changes to binary : 01 [1] => 3 - // +1 changes to binary : 01 [0] => 2 - if (inValue < 0) { - inValue = ((-inValue) << 1) + 1; - } - else { - inValue = inValue << 1; - } - - // Encode 5 bits at a time starting from least significant bits - let encodedStr = ""; - do { - let currentDigit = inValue & 31; // 11111 - inValue = inValue >> 5; - if (inValue > 0) { - // There are still more digits to decode, set the msb (6th bit) - currentDigit = currentDigit | 32; - } - encodedStr = encodedStr + base64FormatEncode(currentDigit); - } while (inValue > 0); - - return encodedStr; - } + if (sourceMapDataList) { + sourceMapDataList.push(sourceMap.getSourceMapData()); } - function recordSourceMapSpan(pos: number) { - const sourceLinePos = computeLineAndCharacterOfPosition(currentLineMap, pos); - - // Convert the location to be one-based. - sourceLinePos.line++; - sourceLinePos.character++; - - const emittedLine = writer.getLine(); - const emittedColumn = writer.getColumn(); - - // If this location wasn't recorded or the location in source is going backwards, record the span - if (!lastRecordedSourceMapSpan || - lastRecordedSourceMapSpan.emittedLine !== emittedLine || - lastRecordedSourceMapSpan.emittedColumn !== emittedColumn || - (lastRecordedSourceMapSpan.sourceIndex === sourceMapSourceIndex && - (lastRecordedSourceMapSpan.sourceLine > sourceLinePos.line || - (lastRecordedSourceMapSpan.sourceLine === sourceLinePos.line && lastRecordedSourceMapSpan.sourceColumn > sourceLinePos.character)))) { - // Encode the last recordedSpan before assigning new - encodeLastRecordedSourceMapSpan(); - - // New span - lastRecordedSourceMapSpan = { - emittedLine: emittedLine, - emittedColumn: emittedColumn, - sourceLine: sourceLinePos.line, - sourceColumn: sourceLinePos.character, - nameIndex: getSourceMapNameIndex(), - sourceIndex: sourceMapSourceIndex - }; - } - else { - // Take the new pos instead since there is no change in emittedLine and column since last location - lastRecordedSourceMapSpan.sourceLine = sourceLinePos.line; - lastRecordedSourceMapSpan.sourceColumn = sourceLinePos.character; - lastRecordedSourceMapSpan.sourceIndex = sourceMapSourceIndex; - } - } - - function recordEmitNodeStartSpan(node: Node) { - // Get the token pos after skipping to the token (ignoring the leading trivia) - recordSourceMapSpan(skipTrivia(currentText, node.pos)); - } - - function recordEmitNodeEndSpan(node: Node) { - recordSourceMapSpan(node.end); - } - - function writeTextWithSpanRecord(tokenKind: SyntaxKind, startPos: number, emitFn?: () => void) { - const tokenStartPos = ts.skipTrivia(currentText, startPos); - recordSourceMapSpan(tokenStartPos); - const tokenEndPos = emitTokenText(tokenKind, tokenStartPos, emitFn); - recordSourceMapSpan(tokenEndPos); - return tokenEndPos; - } - - function recordNewSourceFileStart(node: SourceFile) { - // Add the file to tsFilePaths - // If sourceroot option: Use the relative path corresponding to the common directory path - // otherwise source locations relative to map file location - const sourcesDirectoryPath = compilerOptions.sourceRoot ? host.getCommonSourceDirectory() : sourceMapDir; - - sourceMapData.sourceMapSources.push(getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, - node.fileName, - host.getCurrentDirectory(), - host.getCanonicalFileName, - /*isAbsolutePathAnUrl*/ true)); - sourceMapSourceIndex = sourceMapData.sourceMapSources.length - 1; - - // The one that can be used from program to get the actual source file - sourceMapData.inputSourceFileNames.push(node.fileName); - - if (compilerOptions.inlineSources) { - if (!sourceMapData.sourceMapSourcesContent) { - sourceMapData.sourceMapSourcesContent = []; - } - sourceMapData.sourceMapSourcesContent.push(node.text); - } - } - - function recordScopeNameOfNode(node: Node, scopeName?: string) { - function recordScopeNameIndex(scopeNameIndex: number) { - sourceMapNameIndices.push(scopeNameIndex); - } - - function recordScopeNameStart(scopeName: string) { - let scopeNameIndex = -1; - if (scopeName) { - const parentIndex = getSourceMapNameIndex(); - if (parentIndex !== -1) { - // Child scopes are always shown with a dot (even if they have no name), - // unless it is a computed property. Then it is shown with brackets, - // but the brackets are included in the name. - const name = (node).name; - if (!name || name.kind !== SyntaxKind.ComputedPropertyName) { - scopeName = "." + scopeName; - } - scopeName = sourceMapData.sourceMapNames[parentIndex] + scopeName; - } - - scopeNameIndex = getProperty(sourceMapNameIndexMap, scopeName); - if (scopeNameIndex === undefined) { - scopeNameIndex = sourceMapData.sourceMapNames.length; - sourceMapData.sourceMapNames.push(scopeName); - sourceMapNameIndexMap[scopeName] = scopeNameIndex; - } - } - recordScopeNameIndex(scopeNameIndex); - } - - if (scopeName) { - // The scope was already given a name use it - recordScopeNameStart(scopeName); - } - else if (node.kind === SyntaxKind.FunctionDeclaration || - node.kind === SyntaxKind.FunctionExpression || - node.kind === SyntaxKind.MethodDeclaration || - node.kind === SyntaxKind.MethodSignature || - node.kind === SyntaxKind.GetAccessor || - node.kind === SyntaxKind.SetAccessor || - node.kind === SyntaxKind.ModuleDeclaration || - node.kind === SyntaxKind.ClassDeclaration || - node.kind === SyntaxKind.EnumDeclaration) { - // Declaration and has associated name use it - if ((node).name) { - const name = (node).name; - // For computed property names, the text will include the brackets - scopeName = name.kind === SyntaxKind.ComputedPropertyName - ? getTextOfNode(name) - : ((node).name).text; - } - recordScopeNameStart(scopeName); - } - else { - // Block just use the name from upper level scope - recordScopeNameIndex(getSourceMapNameIndex()); - } - } - - function recordScopeNameEnd() { - sourceMapNameIndices.pop(); - }; - - function writeCommentRangeWithMap(currentText: string, currentLineMap: number[], writer: EmitTextWriter, comment: CommentRange, newLine: string) { - recordSourceMapSpan(comment.pos); - writeCommentRange(currentText, currentLineMap, writer, comment, newLine); - recordSourceMapSpan(comment.end); - } - - function serializeSourceMapContents(version: number, file: string, sourceRoot: string, sources: string[], names: string[], mappings: string, sourcesContent?: string[]) { - if (typeof JSON !== "undefined") { - const map: any = { - version, - file, - sourceRoot, - sources, - names, - mappings - }; - - if (sourcesContent !== undefined) { - map.sourcesContent = sourcesContent; - } - - return JSON.stringify(map); - } - - return "{\"version\":" + version + ",\"file\":\"" + escapeString(file) + "\",\"sourceRoot\":\"" + escapeString(sourceRoot) + "\",\"sources\":[" + serializeStringArray(sources) + "],\"names\":[" + serializeStringArray(names) + "],\"mappings\":\"" + escapeString(mappings) + "\" " + (sourcesContent !== undefined ? ",\"sourcesContent\":[" + serializeStringArray(sourcesContent) + "]" : "") + "}"; - - function serializeStringArray(list: string[]): string { - let output = ""; - for (let i = 0, n = list.length; i < n; i++) { - if (i) { - output += ","; - } - output += "\"" + escapeString(list[i]) + "\""; - } - return output; - } - } - - function writeJavaScriptAndSourceMapFile(emitOutput: string, jsFilePath: string, writeByteOrderMark: boolean) { - encodeLastRecordedSourceMapSpan(); - - const sourceMapText = serializeSourceMapContents( - 3, - sourceMapData.sourceMapFile, - sourceMapData.sourceMapSourceRoot, - sourceMapData.sourceMapSources, - sourceMapData.sourceMapNames, - sourceMapData.sourceMapMappings, - sourceMapData.sourceMapSourcesContent); - - sourceMapDataList.push(sourceMapData); - - let sourceMapUrl: string; - if (compilerOptions.inlineSourceMap) { - // Encode the sourceMap into the sourceMap url - const base64SourceMapText = convertToBase64(sourceMapText); - sourceMapData.jsSourceMappingURL = `data:application/json;base64,${base64SourceMapText}`; - } - else { - // Write source map file - writeFile(host, emitterDiagnostics, sourceMapData.sourceMapFilePath, sourceMapText, /*writeByteOrderMark*/ false); - } - sourceMapUrl = `//# sourceMappingURL=${sourceMapData.jsSourceMappingURL}`; - - // Write sourcemap url to the js file and write the js file - writeJavaScriptFile(emitOutput + sourceMapUrl, jsFilePath, writeByteOrderMark); - } - - // Initialize source map data - sourceMapData = { - sourceMapFilePath: sourceMapFilePath, - jsSourceMappingURL: !compilerOptions.inlineSourceMap ? getBaseFileName(normalizeSlashes(sourceMapFilePath)) : undefined, - sourceMapFile: getBaseFileName(normalizeSlashes(jsFilePath)), - sourceMapSourceRoot: compilerOptions.sourceRoot || "", - sourceMapSources: [], - inputSourceFileNames: [], - sourceMapNames: [], - sourceMapMappings: "", - sourceMapSourcesContent: undefined, - sourceMapDecodedMappings: [] - }; - - // Normalize source root and make sure it has trailing "/" so that it can be used to combine paths with the - // relative paths of the sources list in the sourcemap - sourceMapData.sourceMapSourceRoot = ts.normalizeSlashes(sourceMapData.sourceMapSourceRoot); - if (sourceMapData.sourceMapSourceRoot.length && sourceMapData.sourceMapSourceRoot.charCodeAt(sourceMapData.sourceMapSourceRoot.length - 1) !== CharacterCodes.slash) { - sourceMapData.sourceMapSourceRoot += directorySeparator; - } - - if (compilerOptions.mapRoot) { - sourceMapDir = normalizeSlashes(compilerOptions.mapRoot); - if (!isBundledEmit) { // emitting single module file - Debug.assert(sourceFiles.length === 1); - // For modules or multiple emit files the mapRoot will have directory structure like the sources - // So if src\a.ts and src\lib\b.ts are compiled together user would be moving the maps into mapRoot\a.js.map and mapRoot\lib\b.js.map - sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFiles[0], host, sourceMapDir)); - } - - if (!isRootedDiskPath(sourceMapDir) && !isUrl(sourceMapDir)) { - // The relative paths are relative to the common directory - sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir); - sourceMapData.jsSourceMappingURL = getRelativePathToDirectoryOrUrl( - getDirectoryPath(normalizePath(jsFilePath)), // get the relative sourceMapDir path based on jsFilePath - combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL), // this is where user expects to see sourceMap - host.getCurrentDirectory(), - host.getCanonicalFileName, - /*isAbsolutePathAnUrl*/ true); - } - else { - sourceMapData.jsSourceMappingURL = combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL); - } - } - else { - sourceMapDir = getDirectoryPath(normalizePath(jsFilePath)); - } - - function emitNodeWithSourceMap(node: Node) { - if (node) { - if (nodeIsSynthesized(node)) { - return emitNodeWithoutSourceMap(node); - } - if (node.kind !== SyntaxKind.SourceFile) { - recordEmitNodeStartSpan(node); - emitNodeWithoutSourceMap(node); - recordEmitNodeEndSpan(node); - } - else { - recordNewSourceFileStart(node); - emitNodeWithoutSourceMap(node); - } - } - } - - function emitNodeWithCommentsAndWithSourcemap(node: Node) { - emitNodeConsideringCommentsOption(node, emitNodeWithSourceMap); - } - - writeEmittedFiles = writeJavaScriptAndSourceMapFile; - emit = emitNodeWithCommentsAndWithSourcemap; - emitStart = recordEmitNodeStartSpan; - emitEnd = recordEmitNodeEndSpan; - emitToken = writeTextWithSpanRecord; - scopeEmitStart = recordScopeNameOfNode; - scopeEmitEnd = recordScopeNameEnd; - writeComment = writeCommentRangeWithMap; - } - - function writeJavaScriptFile(emitOutput: string, jsFilePath: string, writeByteOrderMark: boolean) { writeFile(host, emitterDiagnostics, jsFilePath, emitOutput, writeByteOrderMark); } @@ -1144,7 +739,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } } - function emitTokenText(tokenKind: SyntaxKind, startPos: number, emitFn?: () => void) { + /** Emit the text for the given token that comes after startPos + * This by default writes the text provided with the given tokenKind + * but if optional emitFn callback is provided the text is emitted using the callback instead of default text + * @param tokenKind the kind of the token to search and emit + * @param startPos the position in the source to start searching for the token + * @param emitFn if given will be invoked to emit the text instead of actual token emit */ + function emitToken(tokenKind: SyntaxKind, startPos: number, emitFn?: () => void) { + const tokenStartPos = skipTrivia(currentText, startPos); + emitPos(tokenStartPos); + const tokenString = tokenToString(tokenKind); if (emitFn) { emitFn(); @@ -1152,7 +756,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi else { write(tokenString); } - return startPos + tokenString.length; + + const tokenEndPos = tokenStartPos + tokenString.length; + emitPos(tokenEndPos); + return tokenEndPos; } function emitOptional(prefix: string, node: Node) { @@ -1846,6 +1453,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi case SyntaxKind.ForInStatement: case SyntaxKind.ForOfStatement: case SyntaxKind.IfStatement: + case SyntaxKind.JsxClosingElement: case SyntaxKind.JsxSelfClosingElement: case SyntaxKind.JsxOpeningElement: case SyntaxKind.JsxSpreadAttribute: @@ -2583,7 +2191,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi emit(node.right); } - function emitEntityNameAsExpression(node: EntityName, useFallback: boolean) { + function emitEntityNameAsExpression(node: EntityName | Expression, useFallback: boolean) { switch (node.kind) { case SyntaxKind.Identifier: if (useFallback) { @@ -2598,6 +2206,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi case SyntaxKind.QualifiedName: emitQualifiedNameAsExpression(node, useFallback); break; + + default: + emitNodeWithoutSourceMap(node); + break; } } @@ -3093,7 +2705,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi emitToken(SyntaxKind.OpenBraceToken, node.pos); increaseIndent(); - scopeEmitStart(node.parent); if (node.kind === SyntaxKind.ModuleBlock) { Debug.assert(node.parent.kind === SyntaxKind.ModuleDeclaration); emitCaptureThisForNodeIfNecessary(node.parent); @@ -3105,7 +2716,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi decreaseIndent(); writeLine(); emitToken(SyntaxKind.CloseBraceToken, node.statements.end); - scopeEmitEnd(); } function emitEmbeddedStatement(node: Node) { @@ -3373,7 +2983,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } else { // this is top level converted loop so we need to create an alias for 'this' here - // NOTE: + // NOTE: // if converted loops were all nested in arrow function then we'll always emit '_this' so convertedLoopState.thisName will not be set. // If it is set this means that all nested loops are not nested in arrow function and it is safe to capture 'this'. write(`var ${convertedLoopState.thisName} = this;`); @@ -4019,12 +3629,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi // only allow export default at a source file level if (modulekind === ModuleKind.CommonJS || modulekind === ModuleKind.AMD || modulekind === ModuleKind.UMD) { if (!isEs6Module) { - if (languageVersion === ScriptTarget.ES5) { + if (languageVersion !== ScriptTarget.ES3) { // default value of configurable, enumerable, writable are `false`. write("Object.defineProperty(exports, \"__esModule\", { value: true });"); writeLine(); } - else if (languageVersion === ScriptTarget.ES3) { + else { write("exports.__esModule = true;"); writeLine(); } @@ -4668,7 +4278,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } if (node.kind === SyntaxKind.FunctionDeclaration) { // Emit name if one is present, or emit generated name in down-level case (for export default case) - return !!node.name || languageVersion < ScriptTarget.ES6; + return !!node.name || modulekind !== ModuleKind.ES6; } } @@ -4850,18 +4460,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi write(" __awaiter(this"); if (hasLexicalArguments) { - write(", arguments"); + write(", arguments, "); } else { - write(", void 0"); + write(", void 0, "); } if (promiseConstructor) { - write(", "); - emitNodeWithoutSourceMap(promiseConstructor); + emitEntityNameAsExpression(promiseConstructor, /*useFallback*/ false); } else { - write(", Promise"); + write("Promise"); } // Emit the call to __awaiter. @@ -4922,7 +4531,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } const isAsync = isAsyncFunctionLike(node); - if (isAsync && languageVersion === ScriptTarget.ES6) { + if (isAsync) { emitAsyncFunctionBodyForES6(node); } else { @@ -4971,8 +4580,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi function emitDownLevelExpressionFunctionBody(node: FunctionLikeDeclaration, body: Expression) { write(" {"); - scopeEmitStart(node); - increaseIndent(); const outPos = writer.getTextPos(); emitDetachedCommentsAndUpdateCommentsInfo(node.body); @@ -5011,14 +4618,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi emitStart(node.body); write("}"); emitEnd(node.body); - - scopeEmitEnd(); } function emitBlockFunctionBody(node: FunctionLikeDeclaration, body: Block) { write(" {"); - scopeEmitStart(node); - const initialTextPos = writer.getTextPos(); increaseIndent(); @@ -5052,7 +4655,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } emitToken(SyntaxKind.CloseBraceToken, body.statements.end); - scopeEmitEnd(); } function findInitialSuperCall(ctor: ConstructorDeclaration): ExpressionStatement { @@ -5338,7 +4940,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi let startIndex = 0; write(" {"); - scopeEmitStart(node, "constructor"); increaseIndent(); if (ctor) { // Emit all the directive prologues (like "use strict"). These have to come before @@ -5388,7 +4989,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } decreaseIndent(); emitToken(SyntaxKind.CloseBraceToken, ctor ? (ctor.body).statements.end : node.members.end); - scopeEmitEnd(); emitEnd(ctor || node); if (ctor) { emitTrailingComments(ctor); @@ -5512,7 +5112,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi // emit name if // - node has a name // - this is default export with static initializers - if ((node.name || (node.flags & NodeFlags.Default && staticProperties.length > 0)) && !thisNodeIsDecorated) { + if ((node.name || (node.flags & NodeFlags.Default && (staticProperties.length > 0 || modulekind !== ModuleKind.ES6))) && !thisNodeIsDecorated) { write(" "); emitDeclarationName(node); } @@ -5525,14 +5125,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi write(" {"); increaseIndent(); - scopeEmitStart(node); writeLine(); emitConstructor(node, baseTypeNode); emitMemberFunctionsForES6AndHigher(node); decreaseIndent(); writeLine(); emitToken(SyntaxKind.CloseBraceToken, node.members.end); - scopeEmitEnd(); // TODO(rbuckton): Need to go back to `let _a = class C {}` approach, removing the defineProperty call for now. @@ -5574,35 +5172,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi if (!(node.flags & NodeFlags.Export)) { return; } - // If this is an exported class, but not on the top level (i.e. on an internal - // module), export it - if (node.flags & NodeFlags.Default) { - // if this is a top level default export of decorated class, write the export after the declaration. - writeLine(); - if (thisNodeIsDecorated && modulekind === ModuleKind.ES6) { - write("export default "); - emitDeclarationName(node); - write(";"); - } - else if (modulekind === ModuleKind.System) { - write(`${exportFunctionForFile}("default", `); - emitDeclarationName(node); - write(");"); - } - else if (modulekind !== ModuleKind.ES6) { - write(`exports.default = `); - emitDeclarationName(node); - write(";"); - } + if (modulekind !== ModuleKind.ES6) { + emitExportMemberAssignment(node as ClassDeclaration); } - else if (node.parent.kind !== SyntaxKind.SourceFile || (modulekind !== ModuleKind.ES6 && !(node.flags & NodeFlags.Default))) { - writeLine(); - emitStart(node); - emitModuleMemberName(node); - write(" = "); - emitDeclarationName(node); - emitEnd(node); - write(";"); + else { + // If this is an exported class, but not on the top level (i.e. on an internal + // module), export it + if (node.flags & NodeFlags.Default) { + // if this is a top level default export of decorated class, write the export after the declaration. + if (thisNodeIsDecorated) { + writeLine(); + write("export default "); + emitDeclarationName(node); + write(";"); + } + } + else if (node.parent.kind !== SyntaxKind.SourceFile) { + writeLine(); + emitStart(node); + emitModuleMemberName(node); + write(" = "); + emitDeclarationName(node); + emitEnd(node); + write(";"); + } } } @@ -5634,7 +5227,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi tempParameters = undefined; computedPropertyNamesToGeneratedNames = undefined; increaseIndent(); - scopeEmitStart(node); if (baseTypeNode) { writeLine(); emitStart(baseTypeNode); @@ -5667,13 +5259,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi decreaseIndent(); writeLine(); emitToken(SyntaxKind.CloseBraceToken, node.members.end); - scopeEmitEnd(); emitStart(node); - write(")("); + write("("); if (baseTypeNode) { emit(baseTypeNode.expression); } - write(")"); + write("))"); if (node.kind === SyntaxKind.ClassDeclaration) { write(";"); } @@ -5700,10 +5291,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi function emitDecoratorsOfConstructor(node: ClassLikeDeclaration) { const decorators = node.decorators; const constructor = getFirstConstructorWithBody(node); - const hasDecoratedParameters = constructor && forEach(constructor.parameters, nodeIsDecorated); + const firstParameterDecorator = constructor && forEach(constructor.parameters, parameter => parameter.decorators); // skip decoration of the constructor if neither it nor its parameters are decorated - if (!decorators && !hasDecoratedParameters) { + if (!decorators && !firstParameterDecorator) { return; } @@ -5719,28 +5310,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi // writeLine(); - emitStart(node); + emitStart(node.decorators || firstParameterDecorator); emitDeclarationName(node); write(" = __decorate(["); increaseIndent(); writeLine(); const decoratorCount = decorators ? decorators.length : 0; - let argumentsWritten = emitList(decorators, 0, decoratorCount, /*multiLine*/ true, /*trailingComma*/ false, /*leadingComma*/ false, /*noTrailingNewLine*/ true, decorator => { - emitStart(decorator); - emit(decorator.expression); - emitEnd(decorator); - }); - - argumentsWritten += emitDecoratorsOfParameters(constructor, /*leadingComma*/ argumentsWritten > 0); + let argumentsWritten = emitList(decorators, 0, decoratorCount, /*multiLine*/ true, /*trailingComma*/ false, /*leadingComma*/ false, /*noTrailingNewLine*/ true, + decorator => emit(decorator.expression)); + if (firstParameterDecorator) { + argumentsWritten += emitDecoratorsOfParameters(constructor, /*leadingComma*/ argumentsWritten > 0); + } emitSerializedTypeMetadata(node, /*leadingComma*/ argumentsWritten >= 0); decreaseIndent(); writeLine(); write("], "); emitDeclarationName(node); - write(");"); - emitEnd(node); + write(")"); + emitEnd(node.decorators || firstParameterDecorator); + write(";"); writeLine(); } @@ -5756,11 +5346,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi continue; } - // skip a member if it or any of its parameters are not decorated - if (!nodeOrChildIsDecorated(member)) { - continue; - } - // skip an accessor declaration if it is not the first accessor let decorators: NodeArray; let functionLikeMember: FunctionLikeDeclaration; @@ -5787,6 +5372,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi functionLikeMember = member; } } + const firstParameterDecorator = functionLikeMember && forEach(functionLikeMember.parameters, parameter => parameter.decorators); + + // skip a member if it or any of its parameters are not decorated + if (!decorators && !firstParameterDecorator) { + continue; + } // Emit the call to __decorate. Given the following: // @@ -5820,29 +5411,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi // writeLine(); - emitStart(member); + emitStart(decorators || firstParameterDecorator); write("__decorate(["); increaseIndent(); writeLine(); const decoratorCount = decorators ? decorators.length : 0; - let argumentsWritten = emitList(decorators, 0, decoratorCount, /*multiLine*/ true, /*trailingComma*/ false, /*leadingComma*/ false, /*noTrailingNewLine*/ true, decorator => { - emitStart(decorator); - emit(decorator.expression); - emitEnd(decorator); - }); + let argumentsWritten = emitList(decorators, 0, decoratorCount, /*multiLine*/ true, /*trailingComma*/ false, /*leadingComma*/ false, /*noTrailingNewLine*/ true, + decorator => emit(decorator.expression)); - argumentsWritten += emitDecoratorsOfParameters(functionLikeMember, argumentsWritten > 0); + if (firstParameterDecorator) { + argumentsWritten += emitDecoratorsOfParameters(functionLikeMember, argumentsWritten > 0); + } emitSerializedTypeMetadata(member, argumentsWritten > 0); decreaseIndent(); writeLine(); write("], "); - emitStart(member.name); emitClassMemberPrefix(node, member); write(", "); emitExpressionForPropertyName(member.name); - emitEnd(member.name); if (languageVersion > ScriptTarget.ES3) { if (member.kind !== SyntaxKind.PropertyDeclaration) { @@ -5857,8 +5445,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } } - write(");"); - emitEnd(member); + write(")"); + emitEnd(decorators || firstParameterDecorator); + write(";"); writeLine(); } } @@ -5871,11 +5460,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi if (nodeIsDecorated(parameter)) { const decorators = parameter.decorators; argumentsWritten += emitList(decorators, 0, decorators.length, /*multiLine*/ true, /*trailingComma*/ false, /*leadingComma*/ leadingComma, /*noTrailingNewLine*/ true, decorator => { - emitStart(decorator); write(`__param(${parameterIndex}, `); emit(decorator.expression); write(")"); - emitEnd(decorator); }); leadingComma = true; } @@ -6141,7 +5728,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } /** Serializes the return type of function. Used by the __metadata decorator for a method. */ - function emitSerializedReturnTypeOfNode(node: Node): string | string[] { + function emitSerializedReturnTypeOfNode(node: Node) { if (node && isFunctionLike(node) && (node).type) { emitSerializedTypeNode((node).type); return; @@ -6209,9 +5796,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi if (!shouldHoistDeclarationInSystemJsModule(node)) { // do not emit var if variable was already hoisted - if (!(node.flags & NodeFlags.Export) || isES6ExportedDeclaration(node)) { + + const isES6ExportedEnum = isES6ExportedDeclaration(node); + if (!(node.flags & NodeFlags.Export) || (isES6ExportedEnum && isFirstDeclarationOfKind(node, node.symbol && node.symbol.declarations, SyntaxKind.EnumDeclaration))) { emitStart(node); - if (isES6ExportedDeclaration(node)) { + if (isES6ExportedEnum) { write("export "); } write("var "); @@ -6228,12 +5817,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi emitEnd(node.name); write(") {"); increaseIndent(); - scopeEmitStart(node); emitLines(node.members); decreaseIndent(); writeLine(); emitToken(SyntaxKind.CloseBraceToken, node.members.end); - scopeEmitEnd(); write(")("); emitModuleMemberName(node); write(" || ("); @@ -6310,6 +5897,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi return languageVersion === ScriptTarget.ES6 && !!(resolver.getNodeCheckFlags(node) & NodeCheckFlags.LexicalModuleMergesWithClass); } + function isFirstDeclarationOfKind(node: Declaration, declarations: Declaration[], kind: SyntaxKind) { + return !forEach(declarations, declaration => declaration.kind === kind && declaration.pos < node.pos); + } + function emitModuleDeclaration(node: ModuleDeclaration) { // Emit only if this module is non-ambient. const shouldEmit = shouldEmitModuleDeclaration(node); @@ -6321,15 +5912,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi const emitVarForModule = !hoistedInDeclarationScope && !isModuleMergedWithES6Class(node); if (emitVarForModule) { - emitStart(node); - if (isES6ExportedDeclaration(node)) { - write("export "); + const isES6ExportedNamespace = isES6ExportedDeclaration(node); + if (!isES6ExportedNamespace || isFirstDeclarationOfKind(node, node.symbol && node.symbol.declarations, SyntaxKind.ModuleDeclaration)) { + emitStart(node); + if (isES6ExportedNamespace) { + write("export "); + } + write("var "); + emit(node.name); + write(";"); + emitEnd(node); + writeLine(); } - write("var "); - emit(node.name); - write(";"); - emitEnd(node); - writeLine(); } emitStart(node); @@ -6357,7 +5951,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi else { write("{"); increaseIndent(); - scopeEmitStart(node); emitCaptureThisForNodeIfNecessary(node); writeLine(); emit(node.body); @@ -6365,7 +5958,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi writeLine(); const moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node).body; emitToken(SyntaxKind.CloseBraceToken, moduleBlock.statements.end); - scopeEmitEnd(); } write(")("); // write moduleDecl = containingModule.m only if it is not exported es6 module member @@ -6639,15 +6231,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } else { // export * from "foo" - writeLine(); - write("__export("); - if (modulekind !== ModuleKind.AMD) { - emitRequire(getExternalModuleName(node)); + if (hasExportStarsToExportValues && resolver.moduleExportsSomeValue(node.moduleSpecifier)) { + writeLine(); + write("__export("); + if (modulekind !== ModuleKind.AMD) { + emitRequire(getExternalModuleName(node)); + } + else { + write(generatedName); + } + write(");"); } - else { - write(generatedName); - } - write(");"); } emitEnd(node); } @@ -6735,7 +6329,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi externalImports = []; exportSpecifiers = {}; exportEquals = undefined; - hasExportStars = false; + hasExportStarsToExportValues = false; for (const node of sourceFile.statements) { switch (node.kind) { case SyntaxKind.ImportDeclaration: @@ -6758,8 +6352,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi if ((node).moduleSpecifier) { if (!(node).exportClause) { // export * from "mod" - externalImports.push(node); - hasExportStars = true; + if (resolver.moduleExportsSomeValue((node).moduleSpecifier)) { + externalImports.push(node); + hasExportStarsToExportValues = true; + } } else if (resolver.isValueAliasDeclaration(node)) { // export { x, y } from "mod" where at least one export is a value symbol @@ -6785,7 +6381,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } function emitExportStarHelper() { - if (hasExportStars) { + if (hasExportStarsToExportValues) { writeLine(); write("function __export(m) {"); increaseIndent(); @@ -6863,7 +6459,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi // should always win over entries with similar names that were added via star exports // to support this we store names of local/indirect exported entries in a set. // this set is used to filter names brought by star expors. - if (!hasExportStars) { + if (!hasExportStarsToExportValues) { // local names set is needed only in presence of star exports return undefined; } @@ -7288,6 +6884,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi write("});"); } else { + // collectExternalModuleInfo prefilters star exports to keep only ones that export values + // this means that check 'resolver.moduleExportsSomeValue' is redundant and can be omitted here writeLine(); // export * from 'foo' // emit as: @@ -7556,7 +7154,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi externalImports = undefined; exportSpecifiers = undefined; exportEquals = undefined; - hasExportStars = false; + hasExportStarsToExportValues = false; const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ false); emitEmitHelpers(node); emitCaptureThisForNodeIfNecessary(node); @@ -7780,7 +7378,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi externalImports = undefined; exportSpecifiers = undefined; exportEquals = undefined; - hasExportStars = false; + hasExportStarsToExportValues = false; emitEmitHelpers(node); emitCaptureThisForNodeIfNecessary(node); emitLinesStartingAt(node.statements, startIndex); @@ -7790,6 +7388,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi emitLeadingComments(node.endOfFileToken); } + function emit(node: Node): void { + emitNodeConsideringCommentsOption(node, emitNodeWithSourceMap); + } + function emitNodeWithCommentsAndWithoutSourcemap(node: Node): void { emitNodeConsideringCommentsOption(node, emitNodeWithoutSourceMap); } @@ -7818,6 +7420,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } } + function emitNodeWithSourceMap(node: Node): void { + if (node) { + emitStart(node); + emitNodeWithoutSourceMap(node); + emitEnd(node); + } + } + function emitNodeWithoutSourceMap(node: Node): void { if (node) { emitJavaScriptWorker(node); @@ -8210,10 +7820,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi } } + function writeComment(text: string, lineMap: number[], writer: EmitTextWriter, comment: CommentRange, newLine: string) { + emitPos(comment.pos); + writeCommentRange(text, lineMap, writer, comment, newLine); + emitPos(comment.end); + } + function emitShebang() { const shebang = getShebang(currentText); if (shebang) { write(shebang); + writeLine(); } } } @@ -8221,7 +7838,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi function emitFile({ jsFilePath, sourceMapFilePath, declarationFilePath}: { jsFilePath: string, sourceMapFilePath: string, declarationFilePath: string }, sourceFiles: SourceFile[], isBundledEmit: boolean) { // Make sure not to write js File and source map file if any of them cannot be written - if (!host.isEmitBlocked(jsFilePath)) { + if (!host.isEmitBlocked(jsFilePath) && !compilerOptions.noEmit) { emitJavaScript(jsFilePath, sourceMapFilePath, sourceFiles, isBundledEmit); } else { diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index e917ef9bfe6..62d98337102 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -1134,6 +1134,14 @@ namespace ts { return token === t && tryParse(nextTokenCanFollowModifier); } + function nextTokenIsOnSameLineAndCanFollowModifier() { + nextToken(); + if (scanner.hasPrecedingLineBreak()) { + return false; + } + return canFollowModifier(); + } + function nextTokenCanFollowModifier() { if (token === SyntaxKind.ConstKeyword) { // 'const' is only a modifier if followed by 'enum'. @@ -1154,11 +1162,7 @@ namespace ts { return canFollowModifier(); } - nextToken(); - if (scanner.hasPrecedingLineBreak()) { - return false; - } - return canFollowModifier(); + return nextTokenIsOnSameLineAndCanFollowModifier(); } function parseAnyContextualModifier(): boolean { @@ -1959,11 +1963,7 @@ namespace ts { function parseTypeReferenceOrTypePredicate(): TypeReferenceNode | TypePredicateNode { const typeName = parseEntityName(/*allowReservedWords*/ false, Diagnostics.Type_expected); if (typeName.kind === SyntaxKind.Identifier && token === SyntaxKind.IsKeyword && !scanner.hasPrecedingLineBreak()) { - nextToken(); - const node = createNode(SyntaxKind.TypePredicate, typeName.pos); - node.parameterName = typeName; - node.type = parseType(); - return finishNode(node); + return parseTypePredicate(typeName as Identifier); } const node = createNode(SyntaxKind.TypeReference, typeName.pos); node.typeName = typeName; @@ -1973,8 +1973,16 @@ namespace ts { return finishNode(node); } - function parseThisTypeNode(): TypeNode { - const node = createNode(SyntaxKind.ThisType); + function parseTypePredicate(lhs: Identifier | ThisTypeNode): TypePredicateNode { + nextToken(); + const node = createNode(SyntaxKind.TypePredicate, lhs.pos) as TypePredicateNode; + node.parameterName = lhs; + node.type = parseType(); + return finishNode(node); + } + + function parseThisTypeNode(): ThisTypeNode { + const node = createNode(SyntaxKind.ThisType) as ThisTypeNode; nextToken(); return finishNode(node); } @@ -2259,6 +2267,14 @@ namespace ts { property.name = name; property.questionToken = questionToken; property.type = parseTypeAnnotation(); + + if (token === SyntaxKind.EqualsToken) { + // Although type literal properties cannot not have initializers, we attempt + // to parse an initializer so we can report in the checker that an interface + // property or type literal property cannot have an initializer. + property.initializer = parseNonParameterInitializer(); + } + parseTypeMemberSemicolon(); return finishNode(property); } @@ -2412,8 +2428,15 @@ namespace ts { return parseStringLiteralTypeNode(); case SyntaxKind.VoidKeyword: return parseTokenNode(); - case SyntaxKind.ThisKeyword: - return parseThisTypeNode(); + case SyntaxKind.ThisKeyword: { + const thisKeyword = parseThisTypeNode(); + if (token === SyntaxKind.IsKeyword && !scanner.hasPrecedingLineBreak()) { + return parseTypePredicate(thisKeyword); + } + else { + return thisKeyword; + } + } case SyntaxKind.TypeOfKeyword: return parseTypeQuery(); case SyntaxKind.OpenBraceToken: @@ -3627,7 +3650,7 @@ namespace ts { parseExpected(SyntaxKind.OpenBraceToken); if (token !== SyntaxKind.CloseBraceToken) { - node.expression = parseExpression(); + node.expression = parseAssignmentExpressionOrHigher(); } if (inExpressionContext) { parseExpected(SyntaxKind.CloseBraceToken); @@ -3969,6 +3992,7 @@ namespace ts { } else { const propertyAssignment = createNode(SyntaxKind.PropertyAssignment, fullStart); + propertyAssignment.modifiers = modifiers; propertyAssignment.name = propertyName; propertyAssignment.questionToken = questionToken; parseExpected(SyntaxKind.ColonToken); @@ -4902,7 +4926,7 @@ namespace ts { if (!decorators) { decorators = >[]; - decorators.pos = scanner.getStartPos(); + decorators.pos = decoratorStart; } const decorator = createNode(SyntaxKind.Decorator, decoratorStart); @@ -4915,15 +4939,31 @@ namespace ts { return decorators; } - function parseModifiers(): ModifiersArray { + /* + * There are situations in which a modifier like 'const' will appear unexpectedly, such as on a class member. + * In those situations, if we are entirely sure that 'const' is not valid on its own (such as when ASI takes effect + * and turns it into a standalone declaration), then it is better to parse it and report an error later. + * + * In such situations, 'permitInvalidConstAsModifier' should be set to true. + */ + function parseModifiers(permitInvalidConstAsModifier?: boolean): ModifiersArray { let flags = 0; let modifiers: ModifiersArray; while (true) { const modifierStart = scanner.getStartPos(); const modifierKind = token; - if (!parseAnyContextualModifier()) { - break; + if (token === SyntaxKind.ConstKeyword && permitInvalidConstAsModifier) { + // We need to ensure that any subsequent modifiers appear on the same line + // so that when 'const' is a standalone declaration, we don't issue an error. + if (!tryParse(nextTokenIsOnSameLineAndCanFollowModifier)) { + break; + } + } + else { + if (!parseAnyContextualModifier()) { + break; + } } if (!modifiers) { @@ -4968,7 +5008,7 @@ namespace ts { const fullStart = getNodePos(); const decorators = parseDecorators(); - const modifiers = parseModifiers(); + const modifiers = parseModifiers(/*permitInvalidConstAsModifier*/ true); const accessor = tryParseAccessorDeclaration(fullStart, decorators, modifiers); if (accessor) { @@ -5302,16 +5342,17 @@ namespace ts { } function parseModuleSpecifier(): Expression { - // We allow arbitrary expressions here, even though the grammar only allows string - // literals. We check to ensure that it is only a string literal later in the grammar - // walker. - const result = parseExpression(); - // Ensure the string being required is in our 'identifier' table. This will ensure - // that features like 'find refs' will look inside this file when search for its name. - if (result.kind === SyntaxKind.StringLiteral) { + if (token === SyntaxKind.StringLiteral) { + const result = parseLiteralNode(); internIdentifier((result).text); + return result; + } + else { + // We allow arbitrary expressions here, even though the grammar only allows string + // literals. We check to ensure that it is only a string literal later in the grammar + // check pass. + return parseExpression(); } - return result; } function parseNamespaceImport(): NamespaceImport { diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 6139dda0013..da6f7ab0ee7 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -99,7 +99,7 @@ namespace ts { jsonContent = { typings: undefined }; } - if (jsonContent.typings) { + if (typeof jsonContent.typings === "string") { const result = loadNodeModuleFromFile(extensions, normalizePath(combinePaths(candidate, jsonContent.typings)), failedLookupLocation, host); if (result) { return result; @@ -661,19 +661,17 @@ namespace ts { } function getSemanticDiagnosticsForFile(sourceFile: SourceFile, cancellationToken: CancellationToken): Diagnostic[] { - // For JavaScript files, we don't want to report the normal typescript semantic errors. - // Instead, we just report errors for using TypeScript-only constructs from within a - // JavaScript file. - if (isSourceFileJavaScript(sourceFile)) { - return getJavaScriptSemanticDiagnosticsForFile(sourceFile, cancellationToken); - } - return runWithCancellationToken(() => { const typeChecker = getDiagnosticsProducingTypeChecker(); Debug.assert(!!sourceFile.bindDiagnostics); const bindDiagnostics = sourceFile.bindDiagnostics; - const checkDiagnostics = typeChecker.getDiagnostics(sourceFile, cancellationToken); + // For JavaScript files, we don't want to report the normal typescript semantic errors. + // Instead, we just report errors for using TypeScript-only constructs from within a + // JavaScript file. + const checkDiagnostics = isSourceFileJavaScript(sourceFile) ? + getJavaScriptSemanticDiagnosticsForFile(sourceFile, cancellationToken) : + typeChecker.getDiagnostics(sourceFile, cancellationToken); const fileProcessingDiagnosticsInFile = fileProcessingDiagnostics.getDiagnostics(sourceFile.fileName); const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName); @@ -1079,6 +1077,8 @@ namespace ts { const importedFile = findSourceFile(resolution.resolvedFileName, toPath(resolution.resolvedFileName, currentDirectory, getCanonicalFileName), /*isDefaultLib*/ false, file, skipTrivia(file.text, file.imports[i].pos), file.imports[i].end); if (importedFile && resolution.isExternalLibraryImport) { + // Since currently irrespective of allowJs, we only look for supportedTypeScript extension external module files, + // this check is ok. Otherwise this would be never true for javascript file if (!isExternalModule(importedFile)) { const start = getTokenPosOfNode(file.imports[i], file); fileProcessingDiagnostics.add(createFileDiagnostic(file, start, file.imports[i].end - start, Diagnostics.Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition, importedFile.fileName)); @@ -1234,7 +1234,7 @@ namespace ts { else if (firstExternalModuleSourceFile && languageVersion < ScriptTarget.ES6 && !options.module) { // We cannot use createDiagnosticFromNode because nodes do not have parents yet const span = getErrorSpanForNode(firstExternalModuleSourceFile, firstExternalModuleSourceFile.externalModuleIndicator); - programDiagnostics.add(createFileDiagnostic(firstExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_unless_the_module_flag_is_provided)); + programDiagnostics.add(createFileDiagnostic(firstExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_unless_the_module_flag_is_provided_Consider_setting_the_module_compiler_option_in_a_tsconfig_json_file)); } // Cannot specify module gen target of es6 when below es6 diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 4289d910608..022d63fbe9d 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -425,6 +425,12 @@ namespace ts { /* @internal */ export function skipTrivia(text: string, pos: number, stopAfterLineBreak?: boolean): number { + // Using ! with a greater than test is a fast way of testing the following conditions: + // pos === undefined || pos === null || isNaN(pos) || pos < 0; + if (!(pos >= 0)) { + return pos; + } + // Keep in sync with couldStartTrivia while (true) { const ch = text.charCodeAt(pos); @@ -567,12 +573,12 @@ namespace ts { } /** - * Extract comments from text prefixing the token closest following `pos`. + * Extract comments from text prefixing the token closest following `pos`. * The return value is an array containing a TextRange for each comment. * Single-line comment ranges include the beginning '//' characters but not the ending line break. * Multi - line comment ranges include the beginning '/* and ending '/' characters. * The return value is undefined if no comments were found. - * @param trailing + * @param trailing * If false, whitespace is skipped until the first line break and comments between that location * and the next token are returned. * If true, comments occurring between the given position and the next line break are returned. diff --git a/src/compiler/sourcemap.ts b/src/compiler/sourcemap.ts new file mode 100644 index 00000000000..d98dc233c16 --- /dev/null +++ b/src/compiler/sourcemap.ts @@ -0,0 +1,332 @@ +/// + +/* @internal */ +namespace ts { + export interface SourceMapWriter { + getSourceMapData(): SourceMapData; + setSourceFile(sourceFile: SourceFile): void; + emitPos(pos: number): void; + emitStart(range: TextRange): void; + emitEnd(range: TextRange): void; + getText(): string; + getSourceMappingURL(): string; + initialize(filePath: string, sourceMapFilePath: string, sourceFiles: SourceFile[], isBundledEmit: boolean): void; + reset(): void; + } + + const nop = <(...args: any[]) => any>Function.prototype; + let nullSourceMapWriter: SourceMapWriter; + + export function getNullSourceMapWriter(): SourceMapWriter { + if (nullSourceMapWriter === undefined) { + nullSourceMapWriter = { + getSourceMapData(): SourceMapData { return undefined; }, + setSourceFile(sourceFile: SourceFile): void { }, + emitStart(range: TextRange): void { }, + emitEnd(range: TextRange): void { }, + emitPos(pos: number): void { }, + getText(): string { return undefined; }, + getSourceMappingURL(): string { return undefined; }, + initialize(filePath: string, sourceMapFilePath: string, sourceFiles: SourceFile[], isBundledEmit: boolean): void { }, + reset(): void { }, + }; + } + + return nullSourceMapWriter; + } + + export function createSourceMapWriter(host: EmitHost, writer: EmitTextWriter): SourceMapWriter { + const compilerOptions = host.getCompilerOptions(); + let currentSourceFile: SourceFile; + let sourceMapDir: string; // The directory in which sourcemap will be + + // Current source map file and its index in the sources list + let sourceMapSourceIndex: number; + + // Last recorded and encoded spans + let lastRecordedSourceMapSpan: SourceMapSpan; + let lastEncodedSourceMapSpan: SourceMapSpan; + let lastEncodedNameIndex: number; + + // Source map data + let sourceMapData: SourceMapData; + + return { + getSourceMapData: () => sourceMapData, + setSourceFile, + emitPos, + emitStart, + emitEnd, + getText, + getSourceMappingURL, + initialize, + reset, + }; + + function initialize(filePath: string, sourceMapFilePath: string, sourceFiles: SourceFile[], isBundledEmit: boolean) { + if (sourceMapData) { + reset(); + } + + currentSourceFile = undefined; + + // Current source map file and its index in the sources list + sourceMapSourceIndex = -1; + + // Last recorded and encoded spans + lastRecordedSourceMapSpan = undefined; + lastEncodedSourceMapSpan = { + emittedLine: 1, + emittedColumn: 1, + sourceLine: 1, + sourceColumn: 1, + sourceIndex: 0 + }; + lastEncodedNameIndex = 0; + + // Initialize source map data + sourceMapData = { + sourceMapFilePath: sourceMapFilePath, + jsSourceMappingURL: !compilerOptions.inlineSourceMap ? getBaseFileName(normalizeSlashes(sourceMapFilePath)) : undefined, + sourceMapFile: getBaseFileName(normalizeSlashes(filePath)), + sourceMapSourceRoot: compilerOptions.sourceRoot || "", + sourceMapSources: [], + inputSourceFileNames: [], + sourceMapNames: [], + sourceMapMappings: "", + sourceMapSourcesContent: compilerOptions.inlineSources ? [] : undefined, + sourceMapDecodedMappings: [] + }; + + // Normalize source root and make sure it has trailing "/" so that it can be used to combine paths with the + // relative paths of the sources list in the sourcemap + sourceMapData.sourceMapSourceRoot = ts.normalizeSlashes(sourceMapData.sourceMapSourceRoot); + if (sourceMapData.sourceMapSourceRoot.length && sourceMapData.sourceMapSourceRoot.charCodeAt(sourceMapData.sourceMapSourceRoot.length - 1) !== CharacterCodes.slash) { + sourceMapData.sourceMapSourceRoot += directorySeparator; + } + + if (compilerOptions.mapRoot) { + sourceMapDir = normalizeSlashes(compilerOptions.mapRoot); + if (!isBundledEmit) { // emitting single module file + Debug.assert(sourceFiles.length === 1); + // For modules or multiple emit files the mapRoot will have directory structure like the sources + // So if src\a.ts and src\lib\b.ts are compiled together user would be moving the maps into mapRoot\a.js.map and mapRoot\lib\b.js.map + sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFiles[0], host, sourceMapDir)); + } + + if (!isRootedDiskPath(sourceMapDir) && !isUrl(sourceMapDir)) { + // The relative paths are relative to the common directory + sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir); + sourceMapData.jsSourceMappingURL = getRelativePathToDirectoryOrUrl( + getDirectoryPath(normalizePath(filePath)), // get the relative sourceMapDir path based on jsFilePath + combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL), // this is where user expects to see sourceMap + host.getCurrentDirectory(), + host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ true); + } + else { + sourceMapData.jsSourceMappingURL = combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL); + } + } + else { + sourceMapDir = getDirectoryPath(normalizePath(filePath)); + } + } + + function reset() { + currentSourceFile = undefined; + sourceMapDir = undefined; + sourceMapSourceIndex = undefined; + lastRecordedSourceMapSpan = undefined; + lastEncodedSourceMapSpan = undefined; + lastEncodedNameIndex = undefined; + sourceMapData = undefined; + } + + // Encoding for sourcemap span + function encodeLastRecordedSourceMapSpan() { + if (!lastRecordedSourceMapSpan || lastRecordedSourceMapSpan === lastEncodedSourceMapSpan) { + return; + } + + let prevEncodedEmittedColumn = lastEncodedSourceMapSpan.emittedColumn; + // Line/Comma delimiters + if (lastEncodedSourceMapSpan.emittedLine === lastRecordedSourceMapSpan.emittedLine) { + // Emit comma to separate the entry + if (sourceMapData.sourceMapMappings) { + sourceMapData.sourceMapMappings += ","; + } + } + else { + // Emit line delimiters + for (let encodedLine = lastEncodedSourceMapSpan.emittedLine; encodedLine < lastRecordedSourceMapSpan.emittedLine; encodedLine++) { + sourceMapData.sourceMapMappings += ";"; + } + prevEncodedEmittedColumn = 1; + } + + // 1. Relative Column 0 based + sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.emittedColumn - prevEncodedEmittedColumn); + + // 2. Relative sourceIndex + sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceIndex - lastEncodedSourceMapSpan.sourceIndex); + + // 3. Relative sourceLine 0 based + sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceLine - lastEncodedSourceMapSpan.sourceLine); + + // 4. Relative sourceColumn 0 based + sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceColumn - lastEncodedSourceMapSpan.sourceColumn); + + // 5. Relative namePosition 0 based + if (lastRecordedSourceMapSpan.nameIndex >= 0) { + sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.nameIndex - lastEncodedNameIndex); + lastEncodedNameIndex = lastRecordedSourceMapSpan.nameIndex; + } + + lastEncodedSourceMapSpan = lastRecordedSourceMapSpan; + sourceMapData.sourceMapDecodedMappings.push(lastEncodedSourceMapSpan); + } + + function emitPos(pos: number) { + if (pos === -1) { + return; + } + + const sourceLinePos = getLineAndCharacterOfPosition(currentSourceFile, pos); + + // Convert the location to be one-based. + sourceLinePos.line++; + sourceLinePos.character++; + + const emittedLine = writer.getLine(); + const emittedColumn = writer.getColumn(); + + // If this location wasn't recorded or the location in source is going backwards, record the span + if (!lastRecordedSourceMapSpan || + lastRecordedSourceMapSpan.emittedLine !== emittedLine || + lastRecordedSourceMapSpan.emittedColumn !== emittedColumn || + (lastRecordedSourceMapSpan.sourceIndex === sourceMapSourceIndex && + (lastRecordedSourceMapSpan.sourceLine > sourceLinePos.line || + (lastRecordedSourceMapSpan.sourceLine === sourceLinePos.line && lastRecordedSourceMapSpan.sourceColumn > sourceLinePos.character)))) { + + // Encode the last recordedSpan before assigning new + encodeLastRecordedSourceMapSpan(); + + // New span + lastRecordedSourceMapSpan = { + emittedLine: emittedLine, + emittedColumn: emittedColumn, + sourceLine: sourceLinePos.line, + sourceColumn: sourceLinePos.character, + sourceIndex: sourceMapSourceIndex + }; + } + else { + // Take the new pos instead since there is no change in emittedLine and column since last location + lastRecordedSourceMapSpan.sourceLine = sourceLinePos.line; + lastRecordedSourceMapSpan.sourceColumn = sourceLinePos.character; + lastRecordedSourceMapSpan.sourceIndex = sourceMapSourceIndex; + } + } + + function emitStart(range: TextRange) { + const rangeHasDecorators = !!(range as Node).decorators; + emitPos(range.pos !== -1 ? skipTrivia(currentSourceFile.text, rangeHasDecorators ? (range as Node).decorators.end : range.pos) : -1); + } + + function emitEnd(range: TextRange) { + emitPos(range.end); + } + + function setSourceFile(sourceFile: SourceFile) { + currentSourceFile = sourceFile; + + // Add the file to tsFilePaths + // If sourceroot option: Use the relative path corresponding to the common directory path + // otherwise source locations relative to map file location + const sourcesDirectoryPath = compilerOptions.sourceRoot ? host.getCommonSourceDirectory() : sourceMapDir; + + const source = getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, + currentSourceFile.fileName, + host.getCurrentDirectory(), + host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ true); + + sourceMapSourceIndex = indexOf(sourceMapData.sourceMapSources, source); + if (sourceMapSourceIndex === -1) { + sourceMapSourceIndex = sourceMapData.sourceMapSources.length; + sourceMapData.sourceMapSources.push(source); + + // The one that can be used from program to get the actual source file + sourceMapData.inputSourceFileNames.push(sourceFile.fileName); + + if (compilerOptions.inlineSources) { + sourceMapData.sourceMapSourcesContent.push(sourceFile.text); + } + } + } + + function getText() { + encodeLastRecordedSourceMapSpan(); + + return stringify({ + version: 3, + file: sourceMapData.sourceMapFile, + sourceRoot: sourceMapData.sourceMapSourceRoot, + sources: sourceMapData.sourceMapSources, + names: sourceMapData.sourceMapNames, + mappings: sourceMapData.sourceMapMappings, + sourcesContent: sourceMapData.sourceMapSourcesContent, + }); + } + + function getSourceMappingURL() { + if (compilerOptions.inlineSourceMap) { + // Encode the sourceMap into the sourceMap url + const base64SourceMapText = convertToBase64(getText()); + return sourceMapData.jsSourceMappingURL = `data:application/json;base64,${base64SourceMapText}`; + } + else { + return sourceMapData.jsSourceMappingURL; + } + } + } + + const base64Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + + function base64FormatEncode(inValue: number) { + if (inValue < 64) { + return base64Chars.charAt(inValue); + } + + throw TypeError(inValue + ": not a 64 based value"); + } + + function base64VLQFormatEncode(inValue: number) { + // Add a new least significant bit that has the sign of the value. + // if negative number the least significant bit that gets added to the number has value 1 + // else least significant bit value that gets added is 0 + // eg. -1 changes to binary : 01 [1] => 3 + // +1 changes to binary : 01 [0] => 2 + if (inValue < 0) { + inValue = ((-inValue) << 1) + 1; + } + else { + inValue = inValue << 1; + } + + // Encode 5 bits at a time starting from least significant bits + let encodedStr = ""; + do { + let currentDigit = inValue & 31; // 11111 + inValue = inValue >> 5; + if (inValue > 0) { + // There are still more digits to decode, set the msb (6th bit) + currentDigit = currentDigit | 32; + } + encodedStr = encodedStr + base64FormatEncode(currentDigit); + } while (inValue > 0); + + return encodedStr; + } +} \ No newline at end of file diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 3a90ca42fa1..836b2daeab2 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -47,6 +47,25 @@ namespace ts { constructor(o: any); } + declare var ChakraHost: { + args: string[]; + currentDirectory: string; + executingFile: string; + newLine?: string; + useCaseSensitiveFileNames?: boolean; + echo(s: string): void; + quit(exitCode?: number): void; + fileExists(path: string): boolean; + directoryExists(path: string): boolean; + createDirectory(path: string): void; + resolvePath(path: string): string; + readFile(path: string): string; + writeFile(path: string, contents: string): void; + readDirectory(path: string, extension?: string, exclude?: string[]): string[]; + watchFile?(path: string, callback: (path: string, removed?: boolean) => void): FileWatcher; + watchDirectory?(path: string, callback: (path: string) => void, recursive?: boolean): FileWatcher; + }; + export var sys: System = (function () { function getWScriptSystem(): System { @@ -194,6 +213,7 @@ namespace ts { } }; } + function getNodeSystem(): System { const _fs = require("fs"); const _path = require("path"); @@ -281,7 +301,7 @@ namespace ts { // REVIEW: for now this implementation uses polling. // The advantage of polling is that it works reliably // on all os and with network mounted files. - // For 90 referenced files, the average time to detect + // For 90 referenced files, the average time to detect // changes is 2*msInterval (by default 5 seconds). // The overhead of this is .04 percent (1/2500) with // average pause of < 1 millisecond (and max @@ -395,18 +415,13 @@ namespace ts { // and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649 // and https://github.com/Microsoft/TypeScript/issues/4643), therefore // if the current node.js version is newer than 4, use `fs.watch` instead. - if (isNode4OrLater()) { - // Note: in node the callback of fs.watch is given only the relative file name as a parameter - return _fs.watch(fileName, (eventName: string, relativeFileName: string) => callback(fileName)); - } - const watchedFile = watchedFileSet.addFile(fileName, callback); return { close: () => watchedFileSet.removeFile(watchedFile) }; }, watchDirectory: (path, callback, recursive) => { - // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows + // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows // (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643) return _fs.watch( path, @@ -454,6 +469,37 @@ namespace ts { } }; } + + function getChakraSystem(): System { + + return { + newLine: ChakraHost.newLine || "\r\n", + args: ChakraHost.args, + useCaseSensitiveFileNames: !!ChakraHost.useCaseSensitiveFileNames, + write: ChakraHost.echo, + readFile(path: string, encoding?: string) { + // encoding is automatically handled by the implementation in ChakraHost + return ChakraHost.readFile(path); + }, + writeFile(path: string, data: string, writeByteOrderMark?: boolean) { + // If a BOM is required, emit one + if (writeByteOrderMark) { + data = "\uFEFF" + data; + } + + ChakraHost.writeFile(path, data); + }, + resolvePath: ChakraHost.resolvePath, + fileExists: ChakraHost.fileExists, + directoryExists: ChakraHost.directoryExists, + createDirectory: ChakraHost.createDirectory, + getExecutingFilePath: () => ChakraHost.executingFile, + getCurrentDirectory: () => ChakraHost.currentDirectory, + readDirectory: ChakraHost.readDirectory, + exit: ChakraHost.quit, + }; + } + if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") { return getWScriptSystem(); } @@ -462,8 +508,13 @@ namespace ts { // process.browser check excludes webpack and browserify return getNodeSystem(); } + else if (typeof ChakraHost !== "undefined") { + return getChakraSystem(); + } else { return undefined; // Unsupported host } })(); } + + diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 9a82891df77..a334340fbe1 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -439,12 +439,16 @@ namespace ts { export const enum JsxFlags { None = 0, + /** An element from a named property of the JSX.IntrinsicElements interface */ IntrinsicNamedElement = 1 << 0, + /** An element inferred from the string index signature of the JSX.IntrinsicElements interface */ IntrinsicIndexedElement = 1 << 1, - ClassElement = 1 << 2, - UnknownElement = 1 << 3, + /** An element backed by a class, class-like, or function value */ + ValueElement = 1 << 2, + /** Element resolution failed */ + UnknownElement = 1 << 4, - IntrinsicElement = IntrinsicNamedElement | IntrinsicIndexedElement + IntrinsicElement = IntrinsicNamedElement | IntrinsicIndexedElement, } @@ -587,6 +591,7 @@ namespace ts { name: PropertyName; // Declared property name questionToken?: Node; // Present on optional property type?: TypeNode; // Optional type annotation + initializer?: Expression; // Optional initializer } // @kind(SyntaxKind.PropertyDeclaration) @@ -728,11 +733,15 @@ namespace ts { // @kind(SyntaxKind.StringKeyword) // @kind(SyntaxKind.SymbolKeyword) // @kind(SyntaxKind.VoidKeyword) - // @kind(SyntaxKind.ThisType) export interface TypeNode extends Node { _typeNodeBrand: any; } + // @kind(SyntaxKind.ThisType) + export interface ThisTypeNode extends TypeNode { + _thisTypeNodeBrand: any; + } + export interface FunctionOrConstructorTypeNode extends TypeNode, SignatureDeclaration { _functionOrConstructorTypeNodeBrand: any; } @@ -751,7 +760,7 @@ namespace ts { // @kind(SyntaxKind.TypePredicate) export interface TypePredicateNode extends TypeNode { - parameterName: Identifier; + parameterName: Identifier | ThisTypeNode; type: TypeNode; } @@ -1752,7 +1761,7 @@ namespace ts { export interface SymbolDisplayBuilder { buildTypeDisplay(type: Type, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void; buildSymbolDisplay(symbol: Symbol, writer: SymbolWriter, enclosingDeclaration?: Node, meaning?: SymbolFlags, flags?: SymbolFormatFlags): void; - buildSignatureDisplay(signatures: Signature, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void; + buildSignatureDisplay(signatures: Signature, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): void; buildParameterDisplay(parameter: Symbol, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void; buildTypeParameterDisplay(tp: TypeParameter, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void; buildTypeParameterDisplayFromSymbol(symbol: Symbol, writer: SymbolWriter, enclosingDeclaraiton?: Node, flags?: TypeFormatFlags): void; @@ -1815,10 +1824,25 @@ namespace ts { CannotBeNamed } + export const enum TypePredicateKind { + This, + Identifier + } + export interface TypePredicate { + kind: TypePredicateKind; + type: Type; + } + + // @kind (TypePredicateKind.This) + export interface ThisTypePredicate extends TypePredicate { + _thisTypePredicateBrand: any; + } + + // @kind (TypePredicateKind.Identifier) + export interface IdentifierTypePredicate extends TypePredicate { parameterName: string; parameterIndex: number; - type: Type; } /* @internal */ @@ -1882,6 +1906,7 @@ namespace ts { getReferencedValueDeclaration(reference: Identifier): Declaration; getTypeReferenceSerializationKind(typeName: EntityName): TypeReferenceSerializationKind; isOptionalParameter(node: ParameterDeclaration): boolean; + moduleExportsSomeValue(moduleReferenceExpression: Expression): boolean; isArgumentsLocalBinding(node: Identifier): boolean; getExternalModuleFileFromDeclaration(declaration: ImportEqualsDeclaration | ImportDeclaration | ExportDeclaration): SourceFile; } @@ -1992,6 +2017,7 @@ namespace ts { type?: Type; // Type of value symbol declaredType?: Type; // Type of class, interface, enum, type alias, or type parameter typeParameters?: TypeParameter[]; // Type parameters of type alias (undefined if non-generic) + inferredClassType?: Type; // Type of an inferred ES5 class instantiations?: Map; // Instantiations of generic type alias (undefined if non-generic) mapper?: TypeMapper; // Type mapper for instantiation alias referenced?: boolean; // True if alias symbol has been referenced as a value @@ -2000,6 +2026,7 @@ namespace ts { exportsChecked?: boolean; // True if exports of external module have been checked isNestedRedeclaration?: boolean; // True if symbol is block scoped redeclaration bindingElement?: BindingElement; // Binding element associated with property symbol + exportsSomeValue?: boolean; // true if module exports some value (not just types) } /* @internal */ @@ -2042,7 +2069,6 @@ namespace ts { resolvedSymbol?: Symbol; // Cached name resolution result flags?: NodeCheckFlags; // Set of flags specific to Node enumMemberValue?: number; // Constant value of enum member - isIllegalTypeReferenceInConstraint?: boolean; // Is type reference in constraint refers to the type parameter from the same list isVisible?: boolean; // Is this node visible generatedName?: string; // Generated name for module, enum, or import declaration generatedNames?: Map; // Generated names table for source file @@ -2086,6 +2112,7 @@ namespace ts { ESSymbol = 0x01000000, // Type of symbol primitive introduced in ES6 ThisType = 0x02000000, // This type ObjectLiteralPatternWithComputedProperties = 0x04000000, // Object literal type implied by binding pattern has computed properties + PredicateType = 0x08000000, // Predicate types are also Boolean types, but should not be considered Intrinsics - there's no way to capture this with flags /* @internal */ Intrinsic = Any | String | Number | Boolean | ESSymbol | Void | Undefined | Null, @@ -2097,7 +2124,7 @@ namespace ts { UnionOrIntersection = Union | Intersection, StructuredType = ObjectType | Union | Intersection, /* @internal */ - RequiresWidening = ContainsUndefinedOrNull | ContainsObjectLiteral, + RequiresWidening = ContainsUndefinedOrNull | ContainsObjectLiteral | PredicateType, /* @internal */ PropagatingFlags = ContainsUndefinedOrNull | ContainsObjectLiteral | ContainsAnyFunctionType } @@ -2118,6 +2145,11 @@ namespace ts { intrinsicName: string; // Name of intrinsic type } + // Predicate types (TypeFlags.Predicate) + export interface PredicateType extends Type { + predicate: ThisTypePredicate | IdentifierTypePredicate; + } + // String literal types (TypeFlags.StringLiteral) export interface StringLiteralType extends Type { text: string; // Text of string literal @@ -2234,7 +2266,6 @@ namespace ts { declaration: SignatureDeclaration; // Originating declaration typeParameters: TypeParameter[]; // Type parameters (undefined if non-generic) parameters: Symbol[]; // Parameters - typePredicate?: TypePredicate; // Type predicate /* @internal */ resolvedReturnType: Type; // Resolved return type /* @internal */ @@ -2283,10 +2314,24 @@ namespace ts { inferUnionTypes: boolean; // Infer union types for disjoint candidates (otherwise undefinedType) inferences: TypeInferences[]; // Inferences made for each type parameter inferredTypes: Type[]; // Inferred type for each type parameter + mapper?: TypeMapper; // Type mapper for this inference context failedTypeParameterIndex?: number; // Index of type parameter for which inference failed // It is optional because in contextual signature instantiation, nothing fails } + /* @internal */ + export const enum SpecialPropertyAssignmentKind { + None, + /// exports.name = expr + ExportsProperty, + /// module.exports = expr + ModuleExports, + /// className.prototype.name = expr + PrototypeProperty, + /// this.name = expr + ThisProperty + } + export interface DiagnosticMessage { key: string; category: DiagnosticCategory; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 66daf4cf311..462bb623a21 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -342,6 +342,7 @@ namespace ts { case SyntaxKind.EnumMember: case SyntaxKind.FunctionDeclaration: case SyntaxKind.FunctionExpression: + case SyntaxKind.MethodDeclaration: errorNode = (node).name; break; } @@ -692,6 +693,10 @@ namespace ts { return node && node.kind === SyntaxKind.MethodDeclaration && node.parent.kind === SyntaxKind.ObjectLiteralExpression; } + export function isIdentifierTypePredicate(predicate: TypePredicate): predicate is IdentifierTypePredicate { + return predicate && predicate.kind === TypePredicateKind.Identifier; + } + export function getContainingFunction(node: Node): FunctionLikeDeclaration { while (true) { node = node.parent; @@ -906,23 +911,6 @@ namespace ts { return false; } - export function childIsDecorated(node: Node): boolean { - switch (node.kind) { - case SyntaxKind.ClassDeclaration: - return forEach((node).members, nodeOrChildIsDecorated); - - case SyntaxKind.MethodDeclaration: - case SyntaxKind.SetAccessor: - return forEach((node).parameters, nodeIsDecorated); - } - - return false; - } - - export function nodeOrChildIsDecorated(node: Node): boolean { - return nodeIsDecorated(node) || childIsDecorated(node); - } - export function isPropertyAccessExpression(node: Node): node is PropertyAccessExpression { return node.kind === SyntaxKind.PropertyAccessExpression; } @@ -1080,33 +1068,40 @@ namespace ts { (expression).arguments[0].kind === SyntaxKind.StringLiteral; } - /** - * Returns true if the node is an assignment to a property on the identifier 'exports'. - * This function does not test if the node is in a JavaScript file or not. - */ - export function isExportsPropertyAssignment(expression: Node): boolean { - // of the form 'exports.name = expr' where 'name' and 'expr' are arbitrary - return isInJavaScriptFile(expression) && - (expression.kind === SyntaxKind.BinaryExpression) && - ((expression).operatorToken.kind === SyntaxKind.EqualsToken) && - ((expression).left.kind === SyntaxKind.PropertyAccessExpression) && - (((expression).left).expression.kind === SyntaxKind.Identifier) && - (((((expression).left).expression)).text === "exports"); - } + /// Given a BinaryExpression, returns SpecialPropertyAssignmentKind for the various kinds of property + /// assignments we treat as special in the binder + export function getSpecialPropertyAssignmentKind(expression: Node): SpecialPropertyAssignmentKind { + if (expression.kind !== SyntaxKind.BinaryExpression) { + return SpecialPropertyAssignmentKind.None; + } + const expr = expression; + if (expr.operatorToken.kind !== SyntaxKind.EqualsToken || expr.left.kind !== SyntaxKind.PropertyAccessExpression) { + return SpecialPropertyAssignmentKind.None; + } + const lhs = expr.left; + if (lhs.expression.kind === SyntaxKind.Identifier) { + const lhsId = lhs.expression; + if (lhsId.text === "exports") { + // exports.name = expr + return SpecialPropertyAssignmentKind.ExportsProperty; + } + else if (lhsId.text === "module" && lhs.name.text === "exports") { + // module.exports = expr + return SpecialPropertyAssignmentKind.ModuleExports; + } + } + else if (lhs.expression.kind === SyntaxKind.ThisKeyword) { + return SpecialPropertyAssignmentKind.ThisProperty; + } + else if (lhs.expression.kind === SyntaxKind.PropertyAccessExpression) { + // chained dot, e.g. x.y.z = expr; this var is the 'x.y' part + const innerPropertyAccess = lhs.expression; + if (innerPropertyAccess.expression.kind === SyntaxKind.Identifier && innerPropertyAccess.name.text === "prototype") { + return SpecialPropertyAssignmentKind.PrototypeProperty; + } + } - /** - * Returns true if the node is an assignment to the property access expression 'module.exports'. - * This function does not test if the node is in a JavaScript file or not. - */ - export function isModuleExportsAssignment(expression: Node): boolean { - // of the form 'module.exports = expr' where 'expr' is arbitrary - return isInJavaScriptFile(expression) && - (expression.kind === SyntaxKind.BinaryExpression) && - ((expression).operatorToken.kind === SyntaxKind.EqualsToken) && - ((expression).left.kind === SyntaxKind.PropertyAccessExpression) && - (((expression).left).expression.kind === SyntaxKind.Identifier) && - (((((expression).left).expression)).text === "module") && - (((expression).left).name.text === "exports"); + return SpecialPropertyAssignmentKind.None; } export function getExternalModuleName(node: Node): Expression { @@ -1906,8 +1901,10 @@ namespace ts { * Resolves a local path to a path which is absolute to the base of the emit */ export function getExternalModuleNameFromPath(host: EmitHost, fileName: string): string { - const dir = toPath(host.getCommonSourceDirectory(), host.getCurrentDirectory(), f => host.getCanonicalFileName(f)); - const relativePath = getRelativePathToDirectoryOrUrl(dir, fileName, dir, f => host.getCanonicalFileName(f), /*isAbsolutePathAnUrl*/ false); + const getCanonicalFileName = (f: string) => host.getCanonicalFileName(f); + const dir = toPath(host.getCommonSourceDirectory(), host.getCurrentDirectory(), getCanonicalFileName); + const filePath = getNormalizedAbsolutePath(fileName, host.getCurrentDirectory()); + const relativePath = getRelativePathToDirectoryOrUrl(dir, filePath, dir, getCanonicalFileName, /*isAbsolutePathAnUrl*/ false); return removeFileExtension(relativePath); } @@ -2411,6 +2408,55 @@ namespace ts { return output; } + /** + * Serialize an object graph into a JSON string. This is intended only for use on an acyclic graph + * as the fallback implementation does not check for circular references by default. + */ + export const stringify: (value: any) => string = typeof JSON !== "undefined" && JSON.stringify + ? JSON.stringify + : stringifyFallback; + + /** + * Serialize an object graph into a JSON string. + */ + function stringifyFallback(value: any): string { + // JSON.stringify returns `undefined` here, instead of the string "undefined". + return value === undefined ? undefined : stringifyValue(value); + } + + function stringifyValue(value: any): string { + return typeof value === "string" ? `"${escapeString(value)}"` + : typeof value === "number" ? isFinite(value) ? String(value) : "null" + : typeof value === "boolean" ? value ? "true" : "false" + : typeof value === "object" && value ? isArray(value) ? cycleCheck(stringifyArray, value) : cycleCheck(stringifyObject, value) + : /*fallback*/ "null"; + } + + function cycleCheck(cb: (value: any) => string, value: any) { + Debug.assert(!value.hasOwnProperty("__cycle"), "Converting circular structure to JSON"); + value.__cycle = true; + const result = cb(value); + delete value.__cycle; + return result; + } + + function stringifyArray(value: any) { + return `[${reduceLeft(value, stringifyElement, "")}]`; + } + + function stringifyElement(memo: string, value: any) { + return (memo ? memo + "," : memo) + stringifyValue(value); + } + + function stringifyObject(value: any) { + return `{${reduceProperties(value, stringifyProperty, "")}}`; + } + + function stringifyProperty(memo: string, value: any, key: string) { + return value === undefined || typeof value === "function" || key === "__cycle" ? memo + : (memo ? memo + "," : memo) + `"${escapeString(key)}":${stringifyValue(value)}`; + } + const base64Digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; /** diff --git a/src/harness/compilerRunner.ts b/src/harness/compilerRunner.ts index 4f3607cf182..8ee287b2637 100644 --- a/src/harness/compilerRunner.ts +++ b/src/harness/compilerRunner.ts @@ -142,7 +142,7 @@ class CompilerBaselineRunner extends RunnerBase { it("Correct JS output for " + fileName, () => { if (hasNonDtsFiles && this.emit) { - if (result.files.length === 0 && result.errors.length === 0) { + if (!options.noEmit && result.files.length === 0 && result.errors.length === 0) { throw new Error("Expected at least one js file to be emitted or at least one error to be created."); } diff --git a/src/harness/fourslash.ts b/src/harness/fourslash.ts index 9d729345781..24f3319285b 100644 --- a/src/harness/fourslash.ts +++ b/src/harness/fourslash.ts @@ -1162,7 +1162,7 @@ namespace FourSlash { public printCurrentQuickInfo() { const quickInfo = this.languageService.getQuickInfoAtPosition(this.activeFile.fileName, this.currentCaretPosition); - Harness.IO.log(JSON.stringify(quickInfo)); + Harness.IO.log("Quick Info: " + quickInfo.displayParts.map(part => part.text).join("")); } public printErrorList() { @@ -1204,12 +1204,26 @@ namespace FourSlash { public printMemberListMembers() { const members = this.getMemberListAtCaret(); - Harness.IO.log(JSON.stringify(members)); + this.printMembersOrCompletions(members); } public printCompletionListMembers() { const completions = this.getCompletionListAtCaret(); - Harness.IO.log(JSON.stringify(completions)); + this.printMembersOrCompletions(completions); + } + + private printMembersOrCompletions(info: ts.CompletionInfo) { + function pad(s: string, length: number) { + return s + new Array(length - s.length + 1).join(" "); + } + function max(arr: T[], selector: (x: T) => number): number { + return arr.reduce((prev, x) => Math.max(prev, selector(x)), 0); + } + const longestNameLength = max(info.entries, m => m.name.length); + const longestKindLength = max(info.entries, m => m.kind.length); + info.entries.sort((m, n) => m.sortText > n.sortText ? 1 : m.sortText < n.sortText ? -1 : m.name > n.name ? 1 : m.name < n.name ? -1 : 0); + const membersString = info.entries.map(m => `${pad(m.name, longestNameLength)} ${pad(m.kind, longestKindLength)} ${m.kindModifiers}`).join("\n"); + Harness.IO.log(membersString); } public printReferences() { @@ -3287,4 +3301,4 @@ namespace FourSlashInterface { }; } } -} +} diff --git a/src/harness/harness.ts b/src/harness/harness.ts index ecde2f32db0..15f3813e54d 100644 --- a/src/harness/harness.ts +++ b/src/harness/harness.ts @@ -908,6 +908,7 @@ namespace Harness { useCaseSensitiveFileNames?: boolean; includeBuiltFile?: string; baselineFile?: string; + libFiles?: string; } // Additional options not already in ts.optionDeclarations @@ -917,6 +918,7 @@ namespace Harness { { name: "baselineFile", type: "string" }, { name: "includeBuiltFile", type: "string" }, { name: "fileName", type: "string" }, + { name: "libFiles", type: "string" }, { name: "noErrorTruncation", type: "boolean" } ]; @@ -995,14 +997,11 @@ namespace Harness { currentDirectory = currentDirectory || Harness.IO.getCurrentDirectory(); // Parse settings - let useCaseSensitiveFileNames = Harness.IO.useCaseSensitiveFileNames(); if (harnessSettings) { setCompilerOptionsFromHarnessSetting(harnessSettings, options); } - if (options.useCaseSensitiveFileNames !== undefined) { - useCaseSensitiveFileNames = options.useCaseSensitiveFileNames; - } + const useCaseSensitiveFileNames = options.useCaseSensitiveFileNames !== undefined ? options.useCaseSensitiveFileNames : Harness.IO.useCaseSensitiveFileNames(); const programFiles: TestFile[] = inputFiles.slice(); // 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. @@ -1017,6 +1016,15 @@ namespace Harness { const fileOutputs: GeneratedFile[] = []; + // Files from tests\lib that are requested by "@libFiles" + if (options.libFiles) { + for (const fileName of options.libFiles.split(",")) { + const libFileName = "tests/lib/" + fileName; + programFiles.push({ unitName: libFileName, content: normalizeLineEndings(IO.readFile(libFileName), Harness.IO.newLine()) }); + } + } + + const programFileNames = programFiles.map(file => file.unitName); const compilerHost = createCompilerHost( diff --git a/src/harness/sourceMapRecorder.ts b/src/harness/sourceMapRecorder.ts index 75246a9a266..806ca7a845d 100644 --- a/src/harness/sourceMapRecorder.ts +++ b/src/harness/sourceMapRecorder.ts @@ -172,7 +172,6 @@ namespace Harness.SourceMapRecoder { return { error: errorDecodeOfEncodedMapping, sourceMapSpan: decodeOfEncodedMapping }; } // 5. Check if there is name: - decodeOfEncodedMapping.nameIndex = -1; if (!isSourceMappingSegmentEnd()) { prevNameIndex += base64VLQFormatDecode(); decodeOfEncodedMapping.nameIndex = prevNameIndex; @@ -249,7 +248,7 @@ namespace Harness.SourceMapRecoder { mapString += " name (" + sourceMapNames[mapEntry.nameIndex] + ")"; } else { - if (mapEntry.nameIndex !== -1 || getAbsentNameIndex) { + if ((mapEntry.nameIndex && mapEntry.nameIndex !== -1) || getAbsentNameIndex) { mapString += " nameIndex (" + mapEntry.nameIndex + ")"; } } diff --git a/src/lib/dom.generated.d.ts b/src/lib/dom.generated.d.ts index ac039198b4b..0dff2cedc39 100644 --- a/src/lib/dom.generated.d.ts +++ b/src/lib/dom.generated.d.ts @@ -2058,6 +2058,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven * Gets or sets the version attribute specified in the declaration of an XML document. */ xmlVersion: string; + currentScript: HTMLScriptElement; adoptNode(source: Node): Node; captureEvents(): void; clear(): void; @@ -2977,6 +2978,7 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec webkitRequestFullScreen(): void; webkitRequestFullscreen(): void; getElementsByClassName(classNames: string): NodeListOf; + matches(selector: string): boolean; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; @@ -3961,7 +3963,6 @@ interface HTMLElement extends Element { title: string; blur(): void; click(): void; - contains(child: HTMLElement): boolean; dragDrop(): boolean; focus(): void; insertAdjacentElement(position: string, insertedElement: Element): Element; @@ -6135,7 +6136,7 @@ interface HTMLSelectElement extends HTMLElement { * Sets or retrieves the name of the object. */ name: string; - options: HTMLSelectElement; + options: HTMLCollection; /** * When present, marks an element that can't be submitted without a value. */ @@ -6421,19 +6422,19 @@ interface HTMLTableElement extends HTMLElement { /** * Creates an empty caption element in the table. */ - createCaption(): HTMLElement; + createCaption(): HTMLTableCaptionElement; /** * Creates an empty tBody element in the table. */ - createTBody(): HTMLElement; + createTBody(): HTMLTableSectionElement; /** * Creates an empty tFoot element in the table. */ - createTFoot(): HTMLElement; + createTFoot(): HTMLTableSectionElement; /** * Returns the tHead element object if successful, or null otherwise. */ - createTHead(): HTMLElement; + createTHead(): HTMLTableSectionElement; /** * Deletes the caption element and its contents from the table. */ @@ -6455,7 +6456,7 @@ interface HTMLTableElement extends HTMLElement { * Creates a new row (tr) in the table, and adds the row to the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. */ - insertRow(index?: number): HTMLElement; + insertRow(index?: number): HTMLTableRowElement; } declare var HTMLTableElement: { @@ -6506,7 +6507,7 @@ interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { * Creates a new cell in the table row, and adds the cell to the cells collection. * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. */ - insertCell(index?: number): HTMLElement; + insertCell(index?: number): HTMLTableCellElement; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } @@ -6533,7 +6534,7 @@ interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { * Creates a new row (tr) in the table, and adds the row to the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. */ - insertRow(index?: number): HTMLElement; + insertRow(index?: number): HTMLTableRowElement; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } @@ -6922,7 +6923,7 @@ interface IDBDatabase extends EventTarget { onerror: (ev: Event) => any; version: string; close(): void; - createObjectStore(name: string, optionalParameters?: any): IDBObjectStore; + createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore; deleteObjectStore(name: string): void; transaction(storeNames: any, mode?: string): IDBTransaction; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; @@ -6947,10 +6948,11 @@ declare var IDBFactory: { } interface IDBIndex { - keyPath: string; + keyPath: string | string[]; name: string; objectStore: IDBObjectStore; unique: boolean; + multiEntry: boolean; count(key?: any): IDBRequest; get(key: any): IDBRequest; getKey(key: any): IDBRequest; @@ -6987,7 +6989,7 @@ interface IDBObjectStore { add(value: any, key?: any): IDBRequest; clear(): IDBRequest; count(key?: any): IDBRequest; - createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex; + createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex; delete(key: any): IDBRequest; deleteIndex(indexName: string): void; get(key: any): IDBRequest; @@ -7071,7 +7073,7 @@ declare var IDBVersionChangeEvent: { } interface ImageData { - data: number[]; + data: Uint8ClampedArray; height: number; width: number; } @@ -7869,6 +7871,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte getGamepads(): Gamepad[]; javaEnabled(): boolean; msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void; + vibrate(pattern: number | number[]): boolean; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } @@ -7909,6 +7912,7 @@ interface Node extends EventTarget { normalize(): void; removeChild(oldChild: Node): Node; replaceChild(newChild: Node, oldChild: Node): Node; + contains(node: Node): boolean; ATTRIBUTE_NODE: number; CDATA_SECTION_NODE: number; COMMENT_NODE: number; @@ -12572,6 +12576,16 @@ interface XMLHttpRequestEventTarget { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } +interface IDBObjectStoreParameters { + keyPath?: string | string[]; + autoIncrement?: boolean; +} + +interface IDBIndexParameters { + unique?: boolean; + multiEntry?: boolean; +} + interface NodeListOf extends NodeList { length: number; item(index: number): TNode; @@ -12607,6 +12621,15 @@ interface ProgressEventInit extends EventInit { total?: number; } +interface HTMLTemplateElement extends HTMLElement { + content: DocumentFragment; +} + +declare var HTMLTemplateElement: { + prototype: HTMLTemplateElement; + new(): HTMLTemplateElement; +} + declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; interface ErrorEventHandler { diff --git a/src/lib/es6.d.ts b/src/lib/es6.d.ts index e2b26747516..531dbf9e5ea 100644 --- a/src/lib/es6.d.ts +++ b/src/lib/es6.d.ts @@ -1224,7 +1224,7 @@ declare namespace Reflect { function isExtensible(target: any): boolean; function ownKeys(target: any): Array; function preventExtensions(target: any): boolean; - function set(target: any, propertyKey: PropertyKey, value: any, receiver? :any): boolean; + function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean; function setPrototypeOf(target: any, proto: any): boolean; } @@ -1272,7 +1272,16 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: Iterable>): Promise; + all(values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike ]): Promise<[T1, T2, T3, T4]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; + all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; + all(values: Iterable>): Promise; /** * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved diff --git a/src/lib/webworker.generated.d.ts b/src/lib/webworker.generated.d.ts index a2ed9682f1b..a1d87f79787 100644 --- a/src/lib/webworker.generated.d.ts +++ b/src/lib/webworker.generated.d.ts @@ -311,7 +311,7 @@ interface IDBDatabase extends EventTarget { onerror: (ev: Event) => any; version: string; close(): void; - createObjectStore(name: string, optionalParameters?: any): IDBObjectStore; + createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore; deleteObjectStore(name: string): void; transaction(storeNames: any, mode?: string): IDBTransaction; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; @@ -336,10 +336,11 @@ declare var IDBFactory: { } interface IDBIndex { - keyPath: string; + keyPath: string | string[]; name: string; objectStore: IDBObjectStore; unique: boolean; + multiEntry: boolean; count(key?: any): IDBRequest; get(key: any): IDBRequest; getKey(key: any): IDBRequest; @@ -376,7 +377,7 @@ interface IDBObjectStore { add(value: any, key?: any): IDBRequest; clear(): IDBRequest; count(key?: any): IDBRequest; - createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex; + createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex; delete(key: any): IDBRequest; deleteIndex(indexName: string): void; get(key: any): IDBRequest; @@ -460,7 +461,7 @@ declare var IDBVersionChangeEvent: { } interface ImageData { - data: number[]; + data: Uint8ClampedArray; height: number; width: number; } @@ -892,6 +893,16 @@ interface WorkerUtils extends Object, WindowBase64 { setTimeout(handler: any, timeout?: any, ...args: any[]): number; } +interface IDBObjectStoreParameters { + keyPath?: string | string[]; + autoIncrement?: boolean; +} + +interface IDBIndexParameters { + unique?: boolean; + multiEntry?: boolean; +} + interface BlobPropertyBag { type?: string; endings?: string; diff --git a/src/services/breakpoints.ts b/src/services/breakpoints.ts index e307b21979e..31ab5d2adec 100644 --- a/src/services/breakpoints.ts +++ b/src/services/breakpoints.ts @@ -16,7 +16,7 @@ namespace ts.BreakpointResolver { let tokenAtLocation = getTokenAtPosition(sourceFile, position); let lineOfPosition = sourceFile.getLineAndCharacterOfPosition(position).line; - if (sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getStart()).line > lineOfPosition) { + if (sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getStart(sourceFile)).line > lineOfPosition) { // Get previous token if the token is returned starts on new line // eg: let x =10; |--- cursor is here // let y = 10; @@ -39,16 +39,23 @@ namespace ts.BreakpointResolver { return spanInNode(tokenAtLocation); function textSpan(startNode: Node, endNode?: Node) { - return createTextSpanFromBounds(startNode.getStart(), (endNode || startNode).getEnd()); + const start = startNode.decorators ? + skipTrivia(sourceFile.text, startNode.decorators.end) : + startNode.getStart(sourceFile); + return createTextSpanFromBounds(start, (endNode || startNode).getEnd()); } function spanInNodeIfStartsOnSameLine(node: Node, otherwiseOnNode?: Node): TextSpan { - if (node && lineOfPosition === sourceFile.getLineAndCharacterOfPosition(node.getStart()).line) { + if (node && lineOfPosition === sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line) { return spanInNode(node); } return spanInNode(otherwiseOnNode); } + function spanInNodeArray(nodeArray: NodeArray) { + return createTextSpanFromBounds(skipTrivia(sourceFile.text, nodeArray.pos), nodeArray.end); + } + function spanInPreviousNode(node: Node): TextSpan { return spanInNode(findPrecedingToken(node.pos, sourceFile)); } @@ -65,6 +72,11 @@ namespace ts.BreakpointResolver { return spanInPreviousNode(node); } + if (node.parent.kind === SyntaxKind.Decorator) { + // Set breakpoint on the decorator emit + return spanInNode(node.parent); + } + if (node.parent.kind === SyntaxKind.ForStatement) { // For now lets set the span on this expression, fix it later return textSpan(node); @@ -207,6 +219,9 @@ namespace ts.BreakpointResolver { // span in statement return spanInNode((node).statement); + case SyntaxKind.Decorator: + return spanInNodeArray(node.parent.decorators); + // No breakpoint in interface, type alias case SyntaxKind.InterfaceDeclaration: case SyntaxKind.TypeAliasDeclaration: diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index 651105e9d5c..55adb7b7233 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -31,8 +31,8 @@ namespace ts.formatting { * the first token in line so it should be indented */ interface DynamicIndentation { - getIndentationForToken(tokenLine: number, tokenKind: SyntaxKind): number; - getIndentationForComment(owningToken: SyntaxKind, tokenIndentation: number): number; + getIndentationForToken(tokenLine: number, tokenKind: SyntaxKind, container: Node): number; + getIndentationForComment(owningToken: SyntaxKind, tokenIndentation: number, container: Node): number; /** * Indentation for open and close tokens of the node if it is block or another node that needs special indentation * ... { @@ -54,7 +54,7 @@ namespace ts.formatting { * so bar inherits indentation from foo and bar.delta will be 4 * */ - getDelta(): number; + getDelta(child: TextRangeWithKind): number; /** * Formatter calls this function when rule adds or deletes new lines from the text * so indentation scope can adjust values of indentation and delta. @@ -282,19 +282,19 @@ namespace ts.formatting { */ function getOwnOrInheritedDelta(n: Node, options: FormatCodeOptions, sourceFile: SourceFile): number { let previousLine = Constants.Unknown; - let childKind = SyntaxKind.Unknown; + let child: Node; while (n) { let line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line; if (previousLine !== Constants.Unknown && line !== previousLine) { break; } - if (SmartIndenter.shouldIndentChildNode(n.kind, childKind)) { + if (SmartIndenter.shouldIndentChildNode(n, child)) { return options.IndentSize; } previousLine = line; - childKind = n.kind; + child = n; n = n.parent; } return 0; @@ -386,34 +386,7 @@ namespace ts.formatting { effectiveParentStartLine: number): Indentation { let indentation = inheritedIndentation; - if (indentation === Constants.Unknown) { - if (isSomeBlock(node.kind)) { - // blocks should be indented in - // - other blocks - // - source file - // - switch\default clauses - if (isSomeBlock(parent.kind) || - parent.kind === SyntaxKind.SourceFile || - parent.kind === SyntaxKind.CaseClause || - parent.kind === SyntaxKind.DefaultClause) { - - indentation = parentDynamicIndentation.getIndentation() + parentDynamicIndentation.getDelta(); - } - else { - indentation = parentDynamicIndentation.getIndentation(); - } - } - else { - if (SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(parent, node, startLine, sourceFile)) { - indentation = parentDynamicIndentation.getIndentation(); - } - else { - indentation = parentDynamicIndentation.getIndentation() + parentDynamicIndentation.getDelta(); - } - } - } - - var delta = SmartIndenter.shouldIndentChildNode(node.kind, SyntaxKind.Unknown) ? options.IndentSize : 0; + var delta = SmartIndenter.shouldIndentChildNode(node) ? options.IndentSize : 0; if (effectiveParentStartLine === startLine) { // if node is located on the same line with the parent @@ -422,8 +395,17 @@ namespace ts.formatting { indentation = startLine === lastIndentedLine ? indentationOnLastIndentedLine : parentDynamicIndentation.getIndentation(); - delta = Math.min(options.IndentSize, parentDynamicIndentation.getDelta() + delta); + delta = Math.min(options.IndentSize, parentDynamicIndentation.getDelta(node) + delta); } + else if (indentation === Constants.Unknown) { + if (SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(parent, node, startLine, sourceFile)) { + indentation = parentDynamicIndentation.getIndentation(); + } + else { + indentation = parentDynamicIndentation.getIndentation() + parentDynamicIndentation.getDelta(node); + } + } + return { indentation, delta @@ -455,7 +437,7 @@ namespace ts.formatting { function getDynamicIndentation(node: Node, nodeStartLine: number, indentation: number, delta: number): DynamicIndentation { return { - getIndentationForComment: (kind, tokenIndentation) => { + getIndentationForComment: (kind, tokenIndentation, container) => { switch (kind) { // preceding comment to the token that closes the indentation scope inherits the indentation from the scope // .. { @@ -464,11 +446,11 @@ namespace ts.formatting { case SyntaxKind.CloseBraceToken: case SyntaxKind.CloseBracketToken: case SyntaxKind.CloseParenToken: - return indentation + delta; + return indentation + getEffectiveDelta(delta, container); } return tokenIndentation !== Constants.Unknown ? tokenIndentation : indentation; }, - getIndentationForToken: (line, kind) => { + getIndentationForToken: (line, kind, container) => { if (nodeStartLine !== line && node.decorators) { if (kind === getFirstNonDecoratorTokenOfNode(node)) { // if this token is the first token following the list of decorators, we do not need to indent @@ -489,13 +471,13 @@ namespace ts.formatting { return indentation; default: // if token line equals to the line of containing node (this is a first token in the node) - use node indentation - return nodeStartLine !== line ? indentation + delta : indentation; + return nodeStartLine !== line ? indentation + getEffectiveDelta(delta, container) : indentation; } }, getIndentation: () => indentation, - getDelta: () => delta, + getDelta: child => getEffectiveDelta(delta, child), recomputeIndentation: lineAdded => { - if (node.parent && SmartIndenter.shouldIndentChildNode(node.parent.kind, node.kind)) { + if (node.parent && SmartIndenter.shouldIndentChildNode(node.parent, node)) { if (lineAdded) { indentation += options.IndentSize; } @@ -503,14 +485,19 @@ namespace ts.formatting { indentation -= options.IndentSize; } - if (SmartIndenter.shouldIndentChildNode(node.kind, SyntaxKind.Unknown)) { + if (SmartIndenter.shouldIndentChildNode(node)) { delta = options.IndentSize; } else { delta = 0; } } - }, + } + } + + function getEffectiveDelta(delta: number, child: TextRangeWithKind) { + // Delta value should be zero when the node explicitly prevents indentation of the child node + return SmartIndenter.nodeWillIndentChild(node, child, true) ? delta : 0; } } @@ -610,7 +597,7 @@ namespace ts.formatting { // if child node is a token, it does not impact indentation, proceed it using parent indentation scope rules let tokenInfo = formattingScanner.readTokenInfo(child); Debug.assert(tokenInfo.token.end === child.end); - consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation); + consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation, child); return inheritedIndentation; } @@ -679,7 +666,7 @@ namespace ts.formatting { } } - function consumeTokenAndAdvanceScanner(currentTokenInfo: TokenInfo, parent: Node, dynamicIndentation: DynamicIndentation): void { + function consumeTokenAndAdvanceScanner(currentTokenInfo: TokenInfo, parent: Node, dynamicIndentation: DynamicIndentation, container?: Node): void { Debug.assert(rangeContainsRange(parent, currentTokenInfo.token)); let lastTriviaWasNewLine = formattingScanner.lastTrailingTriviaWasNewLine(); @@ -720,11 +707,11 @@ namespace ts.formatting { if (indentToken) { let tokenIndentation = (isTokenInRange && !rangeContainsError(currentTokenInfo.token)) ? - dynamicIndentation.getIndentationForToken(tokenStart.line, currentTokenInfo.token.kind) : + dynamicIndentation.getIndentationForToken(tokenStart.line, currentTokenInfo.token.kind, container) : Constants.Unknown; if (currentTokenInfo.leadingTrivia) { - let commentIndentation = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind, tokenIndentation); + let commentIndentation = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind, tokenIndentation, container); let indentNextTokenOrTrivia = true; for (let triviaItem of currentTokenInfo.leadingTrivia) { diff --git a/src/services/formatting/rules.ts b/src/services/formatting/rules.ts index 12efb774dd3..de4761f57d2 100644 --- a/src/services/formatting/rules.ts +++ b/src/services/formatting/rules.ts @@ -123,6 +123,7 @@ namespace ts.formatting { public SpaceAfterModuleName: Rule; // Lambda expressions + public SpaceBeforeArrow: Rule; public SpaceAfterArrow: Rule; // Optional parameters and let args @@ -254,7 +255,7 @@ namespace ts.formatting { // No space before and after indexer this.NoSpaceBeforeOpenBracket = new Rule(RuleDescriptor.create2(Shared.TokenRange.Any, SyntaxKind.OpenBracketToken), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext), RuleAction.Delete)); - this.NoSpaceAfterCloseBracket = new Rule(RuleDescriptor.create3(SyntaxKind.CloseBracketToken, Shared.TokenRange.Any), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBeforeBlockInFunctionDeclarationContext ), RuleAction.Delete)); + this.NoSpaceAfterCloseBracket = new Rule(RuleDescriptor.create3(SyntaxKind.CloseBracketToken, Shared.TokenRange.Any), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBeforeBlockInFunctionDeclarationContext), RuleAction.Delete)); // Place a space before open brace in a function declaration this.FunctionOpenBraceLeftTokenRange = Shared.TokenRange.AnyIncludingMultilineComments; @@ -342,6 +343,7 @@ namespace ts.formatting { this.SpaceAfterModuleName = new Rule(RuleDescriptor.create1(SyntaxKind.StringLiteral, SyntaxKind.OpenBraceToken), RuleOperation.create2(new RuleOperationContext(Rules.IsModuleDeclContext), RuleAction.Space)); // Lambda expressions + this.SpaceBeforeArrow = new Rule(RuleDescriptor.create2(Shared.TokenRange.Any, SyntaxKind.EqualsGreaterThanToken), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext), RuleAction.Space)); this.SpaceAfterArrow = new Rule(RuleDescriptor.create3(SyntaxKind.EqualsGreaterThanToken, Shared.TokenRange.Any), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext), RuleAction.Space)); // Optional parameters and let args @@ -379,8 +381,7 @@ namespace ts.formatting { this.NoSpaceBeforeTemplateMiddleAndTail = new Rule(RuleDescriptor.create4(Shared.TokenRange.Any, Shared.TokenRange.FromTokens([SyntaxKind.TemplateMiddle, SyntaxKind.TemplateTail])), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext), RuleAction.Delete)); // These rules are higher in priority than user-configurable rules. - this.HighPriorityCommonRules = - [ + this.HighPriorityCommonRules = [ this.IgnoreBeforeComment, this.IgnoreAfterLineComment, this.NoSpaceBeforeColon, this.SpaceAfterColon, this.NoSpaceBeforeQuestionMark, this.SpaceAfterQuestionMarkInConditionalOperator, this.NoSpaceAfterQuestionMark, @@ -411,7 +412,7 @@ namespace ts.formatting { this.NoSpaceAfterConstructor, this.NoSpaceAfterModuleImport, this.SpaceAfterCertainTypeScriptKeywords, this.SpaceBeforeCertainTypeScriptKeywords, this.SpaceAfterModuleName, - this.SpaceAfterArrow, + this.SpaceBeforeArrow, this.SpaceAfterArrow, this.NoSpaceAfterEllipsis, this.NoSpaceAfterOptionalParameters, this.NoSpaceBetweenEmptyInterfaceBraceBrackets, @@ -427,8 +428,7 @@ namespace ts.formatting { ]; // These rules are lower in priority than user-configurable rules. - this.LowPriorityCommonRules = - [ + this.LowPriorityCommonRules = [ this.NoSpaceBeforeSemicolon, this.SpaceBeforeOpenBraceInControl, this.SpaceBeforeOpenBraceInFunction, this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock, this.NoSpaceBeforeComma, @@ -732,7 +732,7 @@ namespace ts.formatting { } static IsStartOfVariableDeclarationList(context: FormattingContext): boolean { - return context.currentTokenParent.kind === SyntaxKind.VariableDeclarationList && + return context.currentTokenParent.kind === SyntaxKind.VariableDeclarationList && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; } diff --git a/src/services/formatting/smartIndenter.ts b/src/services/formatting/smartIndenter.ts index de1d1b19cf2..067118fd7a8 100644 --- a/src/services/formatting/smartIndenter.ts +++ b/src/services/formatting/smartIndenter.ts @@ -68,7 +68,7 @@ namespace ts.formatting { let indentationDelta: number; while (current) { - if (positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(current.kind, previous ? previous.kind : SyntaxKind.Unknown)) { + if (positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(current, previous)) { currentStart = getStartLineAndCharacterForNode(current, sourceFile); if (nextTokenIsCurlyBraceOnSameLineAsCursor(precedingToken, current, lineAtPosition, sourceFile)) { @@ -153,7 +153,7 @@ namespace ts.formatting { } // increase indentation if parent node wants its content to be indented and parent and child nodes don't start on the same line - if (shouldIndentChildNode(parent.kind, current.kind) && !parentAndChildShareLine) { + if (shouldIndentChildNode(parent, current) && !parentAndChildShareLine) { indentationDelta += options.IndentSize; } @@ -461,16 +461,15 @@ namespace ts.formatting { case SyntaxKind.ParenthesizedType: case SyntaxKind.TaggedTemplateExpression: case SyntaxKind.AwaitExpression: + case SyntaxKind.NamedImports: return true; } return false; } - - export function shouldIndentChildNode(parent: SyntaxKind, child: SyntaxKind): boolean { - if (nodeContentIsAlwaysIndented(parent)) { - return true; - } - switch (parent) { + + export function nodeWillIndentChild(parent: TextRangeWithKind, child: TextRangeWithKind, indentByDefault: boolean) { + let childKind = child ? child.kind : SyntaxKind.Unknown; + switch (parent.kind) { case SyntaxKind.DoStatement: case SyntaxKind.WhileStatement: case SyntaxKind.ForInStatement: @@ -484,10 +483,17 @@ namespace ts.formatting { case SyntaxKind.Constructor: case SyntaxKind.GetAccessor: case SyntaxKind.SetAccessor: - return child !== SyntaxKind.Block; - default: - return false; + return childKind !== SyntaxKind.Block; } + // No explicit rule for given nodes so the result will follow the default value argument + return indentByDefault; + } + + /* + Function returns true when the parent node should indent the given child by an explicit rule + */ + export function shouldIndentChildNode(parent: TextRangeWithKind, child?: TextRangeWithKind): boolean { + return nodeContentIsAlwaysIndented(parent.kind) || nodeWillIndentChild(parent, child, false); } } } diff --git a/src/services/services.ts b/src/services/services.ts index 7c98e650a16..a9dda549ead 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1901,7 +1901,7 @@ namespace ts { sourceMapText = text; } else { - Debug.assert(outputText === undefined, "Unexpected multiple outputs for the file: " + name); + Debug.assert(outputText === undefined, `Unexpected multiple outputs for the file: '${name}'`); outputText = text; } }, @@ -3751,7 +3751,8 @@ namespace ts { // Ignore omitted expressions for missing members if (m.kind !== SyntaxKind.PropertyAssignment && m.kind !== SyntaxKind.ShorthandPropertyAssignment && - m.kind !== SyntaxKind.BindingElement) { + m.kind !== SyntaxKind.BindingElement && + m.kind !== SyntaxKind.MethodDeclaration) { continue; } @@ -4248,28 +4249,31 @@ namespace ts { } else { // Method/function type parameter - let container = getContainingFunction(location); - if (container) { - let signatureDeclaration = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter).parent; - let signature = typeChecker.getSignatureFromDeclaration(signatureDeclaration); - if (signatureDeclaration.kind === SyntaxKind.ConstructSignature) { - displayParts.push(keywordPart(SyntaxKind.NewKeyword)); + let declaration = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter); + Debug.assert(declaration !== undefined); + declaration = declaration.parent; + + if (declaration) { + if (isFunctionLikeKind(declaration.kind)) { + const signature = typeChecker.getSignatureFromDeclaration(declaration); + if (declaration.kind === SyntaxKind.ConstructSignature) { + displayParts.push(keywordPart(SyntaxKind.NewKeyword)); + displayParts.push(spacePart()); + } + else if (declaration.kind !== SyntaxKind.CallSignature && (declaration).name) { + addFullSymbolName(declaration.symbol); + } + addRange(displayParts, signatureToDisplayParts(typeChecker, signature, sourceFile, TypeFormatFlags.WriteTypeArgumentsOfSignature)); + } + else { + // Type alias type parameter + // For example + // type list = T[]; // Both T will go through same code path + displayParts.push(keywordPart(SyntaxKind.TypeKeyword)); displayParts.push(spacePart()); + addFullSymbolName(declaration.symbol); + writeTypeParametersOfSymbol(declaration.symbol, sourceFile); } - else if (signatureDeclaration.kind !== SyntaxKind.CallSignature && signatureDeclaration.name) { - addFullSymbolName(signatureDeclaration.symbol); - } - addRange(displayParts, signatureToDisplayParts(typeChecker, signature, sourceFile, TypeFormatFlags.WriteTypeArgumentsOfSignature)); - } - else { - // Type aliash type parameter - // For example - // type list = T[]; // Both T will go through same code path - let declaration = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter).parent; - displayParts.push(keywordPart(SyntaxKind.TypeKeyword)); - displayParts.push(spacePart()); - addFullSymbolName(declaration.symbol); - writeTypeParametersOfSymbol(declaration.symbol, sourceFile); } } } diff --git a/tests/baselines/reference/2dArrays.js b/tests/baselines/reference/2dArrays.js index fe8ab380ba7..62133e770ff 100644 --- a/tests/baselines/reference/2dArrays.js +++ b/tests/baselines/reference/2dArrays.js @@ -20,12 +20,12 @@ var Cell = (function () { function Cell() { } return Cell; -})(); +}()); var Ship = (function () { function Ship() { } return Ship; -})(); +}()); var Board = (function () { function Board() { } @@ -33,4 +33,4 @@ var Board = (function () { return this.ships.every(function (val) { return val.isSunk; }); }; return Board; -})(); +}()); diff --git a/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js b/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js index c72ca4b114b..ca67e5a70c2 100644 --- a/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.js @@ -31,7 +31,7 @@ var A; this.y = y; } return Point; - })(); + }()); A.Point = Point; })(A || (A = {})); //// [test.js] diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js index b27c2ce5a30..bf9875efe30 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js @@ -55,7 +55,7 @@ var clodule1 = (function () { function clodule1() { } return clodule1; -})(); +}()); var clodule1; (function (clodule1) { function f(x) { } @@ -64,7 +64,7 @@ var clodule2 = (function () { function clodule2() { } return clodule2; -})(); +}()); var clodule2; (function (clodule2) { var x; @@ -72,13 +72,13 @@ var clodule2; function D() { } return D; - })(); + }()); })(clodule2 || (clodule2 = {})); var clodule3 = (function () { function clodule3() { } return clodule3; -})(); +}()); var clodule3; (function (clodule3) { clodule3.y = { id: T }; @@ -87,12 +87,12 @@ var clodule4 = (function () { function clodule4() { } return clodule4; -})(); +}()); var clodule4; (function (clodule4) { var D = (function () { function D() { } return D; - })(); + }()); })(clodule4 || (clodule4 = {})); diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js index 255e74631a3..dc6c6f6ee8e 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js @@ -21,7 +21,7 @@ var clodule = (function () { } clodule.fn = function (id) { }; return clodule; -})(); +}()); var clodule; (function (clodule) { // error: duplicate identifier expected diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js index 76ba858306c..402e0e6ad09 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.js @@ -21,7 +21,7 @@ var clodule = (function () { } clodule.fn = function (id) { }; return clodule; -})(); +}()); var clodule; (function (clodule) { // error: duplicate identifier expected diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js index 5f01b6acff1..0b6c868128e 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.js @@ -21,7 +21,7 @@ var clodule = (function () { } clodule.sfn = function (id) { return 42; }; return clodule; -})(); +}()); var clodule; (function (clodule) { // error: duplicate identifier expected diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js index a86bc7d2e90..d971dd160db 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.js @@ -30,7 +30,7 @@ var Point = (function () { } Point.Origin = function () { return { x: 0, y: 0 }; }; // unexpected error here bug 840246 return Point; -})(); +}()); var Point; (function (Point) { function Origin() { return null; } @@ -45,7 +45,7 @@ var A; } Point.Origin = function () { return { x: 0, y: 0 }; }; // unexpected error here bug 840246 return Point; - })(); + }()); A.Point = Point; var Point; (function (Point) { diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js index f462ea9eaa9..3fcbdefdf7e 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js @@ -30,7 +30,7 @@ var Point = (function () { } Point.Origin = function () { return { x: 0, y: 0 }; }; return Point; -})(); +}()); var Point; (function (Point) { function Origin() { return ""; } // not an error, since not exported @@ -44,7 +44,7 @@ var A; } Point.Origin = function () { return { x: 0, y: 0 }; }; return Point; - })(); + }()); A.Point = Point; var Point; (function (Point) { diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js index 45958ad62d4..a0cb50e7382 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js @@ -30,7 +30,7 @@ var Point = (function () { } Point.Origin = { x: 0, y: 0 }; return Point; -})(); +}()); var Point; (function (Point) { Point.Origin = ""; //expected duplicate identifier error @@ -44,7 +44,7 @@ var A; } Point.Origin = { x: 0, y: 0 }; return Point; - })(); + }()); A.Point = Point; var Point; (function (Point) { diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js index ae56fd1acdc..3bbf3b98d6e 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js @@ -30,7 +30,7 @@ var Point = (function () { } Point.Origin = { x: 0, y: 0 }; return Point; -})(); +}()); var Point; (function (Point) { var Origin = ""; // not an error, since not exported @@ -44,7 +44,7 @@ var A; } Point.Origin = { x: 0, y: 0 }; return Point; - })(); + }()); A.Point = Point; var Point; (function (Point) { diff --git a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js index 54666ca7aff..247dc4fe62d 100644 --- a/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ClassAndModuleWithSameNameAndCommonRoot.js @@ -51,7 +51,7 @@ var X; this.y = y; } return Point; - })(); + }()); Y.Point = Point; })(Y = X.Y || (X.Y = {})); })(X || (X = {})); @@ -75,7 +75,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var A; (function (A) { A.Instance = new A(); diff --git a/tests/baselines/reference/ClassDeclaration10.js b/tests/baselines/reference/ClassDeclaration10.js index 3b1ae507e87..6c560009489 100644 --- a/tests/baselines/reference/ClassDeclaration10.js +++ b/tests/baselines/reference/ClassDeclaration10.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration11.js b/tests/baselines/reference/ClassDeclaration11.js index 6284af07676..28705f5dfe0 100644 --- a/tests/baselines/reference/ClassDeclaration11.js +++ b/tests/baselines/reference/ClassDeclaration11.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration13.js b/tests/baselines/reference/ClassDeclaration13.js index 7791b77eae6..faabbb3b3c2 100644 --- a/tests/baselines/reference/ClassDeclaration13.js +++ b/tests/baselines/reference/ClassDeclaration13.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype.bar = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration14.js b/tests/baselines/reference/ClassDeclaration14.js index 7ae79132b9e..ab08fd56c34 100644 --- a/tests/baselines/reference/ClassDeclaration14.js +++ b/tests/baselines/reference/ClassDeclaration14.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration15.js b/tests/baselines/reference/ClassDeclaration15.js index d40b5855bba..39c2b728049 100644 --- a/tests/baselines/reference/ClassDeclaration15.js +++ b/tests/baselines/reference/ClassDeclaration15.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration21.js b/tests/baselines/reference/ClassDeclaration21.js index b5144b607d1..00bd52cf0ba 100644 --- a/tests/baselines/reference/ClassDeclaration21.js +++ b/tests/baselines/reference/ClassDeclaration21.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype[1] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration22.js b/tests/baselines/reference/ClassDeclaration22.js index 0074813e77e..2e9c98d8da3 100644 --- a/tests/baselines/reference/ClassDeclaration22.js +++ b/tests/baselines/reference/ClassDeclaration22.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype["bar"] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration24.js b/tests/baselines/reference/ClassDeclaration24.js index 2043c6c163c..25bf0d14487 100644 --- a/tests/baselines/reference/ClassDeclaration24.js +++ b/tests/baselines/reference/ClassDeclaration24.js @@ -7,4 +7,4 @@ var any = (function () { function any() { } return any; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration25.js b/tests/baselines/reference/ClassDeclaration25.js index c39aa39eeed..26c2988ab47 100644 --- a/tests/baselines/reference/ClassDeclaration25.js +++ b/tests/baselines/reference/ClassDeclaration25.js @@ -14,4 +14,4 @@ var List = (function () { function List() { } return List; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration26.errors.txt b/tests/baselines/reference/ClassDeclaration26.errors.txt new file mode 100644 index 00000000000..5e2d570b801 --- /dev/null +++ b/tests/baselines/reference/ClassDeclaration26.errors.txt @@ -0,0 +1,23 @@ +tests/cases/compiler/ClassDeclaration26.ts(2,22): error TS1005: ';' expected. +tests/cases/compiler/ClassDeclaration26.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. +tests/cases/compiler/ClassDeclaration26.ts(4,20): error TS1005: '=' expected. +tests/cases/compiler/ClassDeclaration26.ts(4,23): error TS1005: '=>' expected. +tests/cases/compiler/ClassDeclaration26.ts(5,1): error TS1128: Declaration or statement expected. + + +==== tests/cases/compiler/ClassDeclaration26.ts (5 errors) ==== + class C { + public const var export foo = 10; + ~~~~~~ +!!! error TS1005: ';' expected. + + var constructor() { } + ~~~ +!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. + ~ +!!! error TS1005: '=' expected. + ~ +!!! error TS1005: '=>' expected. + } + ~ +!!! error TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/tests/baselines/reference/ClassDeclaration26.js b/tests/baselines/reference/ClassDeclaration26.js new file mode 100644 index 00000000000..97e1428132e --- /dev/null +++ b/tests/baselines/reference/ClassDeclaration26.js @@ -0,0 +1,15 @@ +//// [ClassDeclaration26.ts] +class C { + public const var export foo = 10; + + var constructor() { } +} + +//// [ClassDeclaration26.js] +var C = (function () { + function C() { + this.foo = 10; + } + return C; +}()); +var constructor = function () { }; diff --git a/tests/baselines/reference/ClassDeclaration8.js b/tests/baselines/reference/ClassDeclaration8.js index 320fdf76205..ec065a6cc47 100644 --- a/tests/baselines/reference/ClassDeclaration8.js +++ b/tests/baselines/reference/ClassDeclaration8.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclaration9.js b/tests/baselines/reference/ClassDeclaration9.js index 102715d8c16..30e9c66be8f 100644 --- a/tests/baselines/reference/ClassDeclaration9.js +++ b/tests/baselines/reference/ClassDeclaration9.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.errors.txt b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.errors.txt new file mode 100644 index 00000000000..d07f07e2096 --- /dev/null +++ b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.errors.txt @@ -0,0 +1,9 @@ +tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration.ts(2,3): error TS1248: A class member cannot have the 'const' keyword. + + +==== tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration.ts (1 errors) ==== + class AtomicNumbers { + static const H = 1; + ~~~~~~~~~~~~~~~~~~~ +!!! error TS1248: A class member cannot have the 'const' keyword. + } \ No newline at end of file diff --git a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.js b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.js new file mode 100644 index 00000000000..d5c3b3d63f4 --- /dev/null +++ b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration.js @@ -0,0 +1,12 @@ +//// [ClassDeclarationWithInvalidConstOnPropertyDeclaration.ts] +class AtomicNumbers { + static const H = 1; +} + +//// [ClassDeclarationWithInvalidConstOnPropertyDeclaration.js] +var AtomicNumbers = (function () { + function AtomicNumbers() { + } + AtomicNumbers.H = 1; + return AtomicNumbers; +}()); diff --git a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js new file mode 100644 index 00000000000..7dda5cb832e --- /dev/null +++ b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js @@ -0,0 +1,13 @@ +//// [ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts] +class C { + const + x = 10; +} + +//// [ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js] +var C = (function () { + function C() { + this.x = 10; + } + return C; +}()); diff --git a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.symbols b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.symbols new file mode 100644 index 00000000000..ce0ab000017 --- /dev/null +++ b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.symbols @@ -0,0 +1,10 @@ +=== tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts === +class C { +>C : Symbol(C, Decl(ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts, 0, 0)) + + const +>const : Symbol(const, Decl(ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts, 0, 9)) + + x = 10; +>x : Symbol(x, Decl(ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts, 1, 9)) +} diff --git a/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.types b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.types new file mode 100644 index 00000000000..47139729995 --- /dev/null +++ b/tests/baselines/reference/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.types @@ -0,0 +1,11 @@ +=== tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts === +class C { +>C : C + + const +>const : any + + x = 10; +>x : number +>10 : number +} diff --git a/tests/baselines/reference/ES5For-of8.js.map b/tests/baselines/reference/ES5For-of8.js.map index be14106e77c..f4e62e46e18 100644 --- a/tests/baselines/reference/ES5For-of8.js.map +++ b/tests/baselines/reference/ES5For-of8.js.map @@ -1,2 +1,2 @@ //// [ES5For-of8.js.map] -{"version":3,"file":"ES5For-of8.js","sourceRoot":"","sources":["ES5For-of8.ts"],"names":["foo"],"mappings":"AAAA;IACIA,MAAMA,CAACA,EAAEA,CAACA,EAAEA,CAACA,EAAEA,CAACA;AACpBA,CAACA;AACD,GAAG,CAAC,CAAY,UAAe,EAAf,MAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAA1B,cAAO,EAAP,IAA0B,CAAC;IAA3B,GAAG,EAAE,CAAC,CAAC,SAAA;IACR,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;CACnB"} \ No newline at end of file +{"version":3,"file":"ES5For-of8.js","sourceRoot":"","sources":["ES5For-of8.ts"],"names":[],"mappings":"AAAA;IACI,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpB,CAAC;AACD,GAAG,CAAC,CAAY,UAAe,EAAf,MAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAA1B,cAAO,EAAP,IAA0B,CAAC;IAA3B,GAAG,EAAE,CAAC,CAAC,SAAA;IACR,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;CACnB"} \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of8.sourcemap.txt b/tests/baselines/reference/ES5For-of8.sourcemap.txt index 814f4364dc6..7a87dbf3998 100644 --- a/tests/baselines/reference/ES5For-of8.sourcemap.txt +++ b/tests/baselines/reference/ES5For-of8.sourcemap.txt @@ -34,15 +34,15 @@ sourceFile:ES5For-of8.ts 7 > 0 8 > } 9 > ; -1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) name (foo) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) name (foo) -3 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) name (foo) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) name (foo) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) name (foo) -6 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) name (foo) -7 >Emitted(2, 18) Source(2, 18) + SourceIndex(0) name (foo) -8 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) name (foo) -9 >Emitted(2, 21) Source(2, 21) + SourceIndex(0) name (foo) +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +7 >Emitted(2, 18) Source(2, 18) + SourceIndex(0) +8 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +9 >Emitted(2, 21) Source(2, 21) + SourceIndex(0) --- >>>} 1 > @@ -51,8 +51,8 @@ sourceFile:ES5For-of8.ts 1 > > 2 >} -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) name (foo) -2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) name (foo) +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- >>>for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) { 1-> diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.js b/tests/baselines/reference/ES5For-ofTypeCheck10.js index ffef1fde8f8..0fe92e289a6 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck10.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck10.js @@ -32,4 +32,4 @@ var StringIterator = (function () { return this; }; return StringIterator; -})(); +}()); diff --git a/tests/baselines/reference/ES5SymbolProperty2.js b/tests/baselines/reference/ES5SymbolProperty2.js index effd1e610f4..f04a4671d3f 100644 --- a/tests/baselines/reference/ES5SymbolProperty2.js +++ b/tests/baselines/reference/ES5SymbolProperty2.js @@ -19,7 +19,7 @@ var M; } C.prototype[Symbol.iterator] = function () { }; return C; - })(); + }()); M.C = C; (new C)[Symbol.iterator]; })(M || (M = {})); diff --git a/tests/baselines/reference/ES5SymbolProperty3.js b/tests/baselines/reference/ES5SymbolProperty3.js index 52ea7e091ee..6589858625c 100644 --- a/tests/baselines/reference/ES5SymbolProperty3.js +++ b/tests/baselines/reference/ES5SymbolProperty3.js @@ -14,5 +14,5 @@ var C = (function () { } C.prototype[Symbol.iterator] = function () { }; return C; -})(); +}()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty4.js b/tests/baselines/reference/ES5SymbolProperty4.js index ae8a539f351..eca71ac989c 100644 --- a/tests/baselines/reference/ES5SymbolProperty4.js +++ b/tests/baselines/reference/ES5SymbolProperty4.js @@ -14,5 +14,5 @@ var C = (function () { } C.prototype[Symbol.iterator] = function () { }; return C; -})(); +}()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty5.js b/tests/baselines/reference/ES5SymbolProperty5.js index 63b12667d0f..828d29abbfb 100644 --- a/tests/baselines/reference/ES5SymbolProperty5.js +++ b/tests/baselines/reference/ES5SymbolProperty5.js @@ -14,5 +14,5 @@ var C = (function () { } C.prototype[Symbol.iterator] = function () { }; return C; -})(); +}()); (new C)[Symbol.iterator](0); // Should error diff --git a/tests/baselines/reference/ES5SymbolProperty6.js b/tests/baselines/reference/ES5SymbolProperty6.js index 10eda091e5e..1a9ab273411 100644 --- a/tests/baselines/reference/ES5SymbolProperty6.js +++ b/tests/baselines/reference/ES5SymbolProperty6.js @@ -11,5 +11,5 @@ var C = (function () { } C.prototype[Symbol.iterator] = function () { }; return C; -})(); +}()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty7.js b/tests/baselines/reference/ES5SymbolProperty7.js index d3f796ce758..439a2b5bd0e 100644 --- a/tests/baselines/reference/ES5SymbolProperty7.js +++ b/tests/baselines/reference/ES5SymbolProperty7.js @@ -14,5 +14,5 @@ var C = (function () { } C.prototype[Symbol.iterator] = function () { }; return C; -})(); +}()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js b/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js index 4ca0b4cd5f7..e6a0eb0584d 100644 --- a/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.js @@ -30,7 +30,7 @@ var enumdule; this.y = y; } return Point; - })(); + }()); enumdule.Point = Point; })(enumdule || (enumdule = {})); var x; diff --git a/tests/baselines/reference/ExportAssignment7.errors.txt b/tests/baselines/reference/ExportAssignment7.errors.txt index 83651e10b8e..fe461785c63 100644 --- a/tests/baselines/reference/ExportAssignment7.errors.txt +++ b/tests/baselines/reference/ExportAssignment7.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/ExportAssignment7.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/ExportAssignment7.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/ExportAssignment7.ts(4,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/compiler/ExportAssignment7.ts(4,10): error TS2304: Cannot find name 'B'. @@ -6,7 +6,7 @@ tests/cases/compiler/ExportAssignment7.ts(4,10): error TS2304: Cannot find name ==== tests/cases/compiler/ExportAssignment7.ts (3 errors) ==== export class C { ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. } export = B; diff --git a/tests/baselines/reference/ExportAssignment7.js b/tests/baselines/reference/ExportAssignment7.js index ae534c9255b..d6b37101619 100644 --- a/tests/baselines/reference/ExportAssignment7.js +++ b/tests/baselines/reference/ExportAssignment7.js @@ -10,5 +10,5 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; diff --git a/tests/baselines/reference/ExportAssignment8.errors.txt b/tests/baselines/reference/ExportAssignment8.errors.txt index d1a285cfe51..22e32c9c7d0 100644 --- a/tests/baselines/reference/ExportAssignment8.errors.txt +++ b/tests/baselines/reference/ExportAssignment8.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/ExportAssignment8.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/ExportAssignment8.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/ExportAssignment8.ts(1,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/compiler/ExportAssignment8.ts(1,10): error TS2304: Cannot find name 'B'. @@ -6,7 +6,7 @@ tests/cases/compiler/ExportAssignment8.ts(1,10): error TS2304: Cannot find name ==== tests/cases/compiler/ExportAssignment8.ts (3 errors) ==== export = B; ~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~~~~~ !!! error TS2309: An export assignment cannot be used in a module with other exported elements. ~ diff --git a/tests/baselines/reference/ExportAssignment8.js b/tests/baselines/reference/ExportAssignment8.js index be95e669483..8cdff41505e 100644 --- a/tests/baselines/reference/ExportAssignment8.js +++ b/tests/baselines/reference/ExportAssignment8.js @@ -10,5 +10,5 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; diff --git a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js index 5ee537f568e..0d8fbb8eb30 100644 --- a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js +++ b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js @@ -31,6 +31,6 @@ var A; return 1; }; return Point2d; - })(); + }()); A.Point2d = Point2d; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js index 3e48462062d..7dcbfef1d72 100644 --- a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js +++ b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js @@ -32,7 +32,7 @@ var A; function Point() { } return Point; - })(); + }()); A.Point = Point; A.Origin = { x: 0, y: 0 }; var Point3d = (function (_super) { @@ -41,7 +41,7 @@ var A; _super.apply(this, arguments); } return Point3d; - })(Point); + }(Point)); A.Point3d = Point3d; A.Origin3d = { x: 0, y: 0, z: 0 }; var Line = (function () { @@ -50,6 +50,6 @@ var A; this.end = end; } return Line; - })(); + }()); A.Line = Line; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js b/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js index 687600364fc..0496e349fa6 100644 --- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js +++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.js @@ -22,11 +22,11 @@ var A; function Point() { } return Point; - })(); + }()); var points = (function () { function points() { } return points; - })(); + }()); A.points = points; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js index a1386033e9f..8f175621af4 100644 --- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js +++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js @@ -36,7 +36,7 @@ var A; function Point() { } return Point; - })(); + }()); A.Origin = { x: 0, y: 0 }; var Point3d = (function (_super) { __extends(Point3d, _super); @@ -44,7 +44,7 @@ var A; _super.apply(this, arguments); } return Point3d; - })(Point); + }(Point)); A.Point3d = Point3d; A.Origin3d = { x: 0, y: 0, z: 0 }; var Line = (function () { @@ -56,6 +56,6 @@ var A; return null; }; return Line; - })(); + }()); A.Line = Line; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js b/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js index 21d969d242c..421c896539b 100644 --- a/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js +++ b/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.js @@ -22,7 +22,7 @@ var A; function Point() { } return Point; - })(); + }()); A.Point = Point; var Line = (function () { function Line(start, end) { @@ -30,7 +30,7 @@ var A; this.end = end; } return Line; - })(); + }()); A.Line = Line; function fromOrigin(p) { return new Line({ x: 0, y: 0 }, p); diff --git a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js index 99831f10629..d33bcba793d 100644 --- a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js +++ b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.js @@ -22,14 +22,14 @@ var A; function Point() { } return Point; - })(); + }()); var Line = (function () { function Line(start, end) { this.start = start; this.end = end; } return Line; - })(); + }()); A.Line = Line; function fromOrigin(p) { return new Line({ x: 0, y: 0 }, p); diff --git a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js index 3037e33d880..dbd21ebe9e6 100644 --- a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js +++ b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.js @@ -22,7 +22,7 @@ var A; function Point() { } return Point; - })(); + }()); A.Point = Point; var Line = (function () { function Line(start, end) { @@ -30,7 +30,7 @@ var A; this.end = end; } return Line; - })(); + }()); function fromOrigin(p) { return new Line({ x: 0, y: 0 }, p); } diff --git a/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js b/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js index df6645df3b3..b06288ae093 100644 --- a/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js +++ b/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.js @@ -29,7 +29,7 @@ var A; this.y = y; } return Point; - })(); + }()); A.Point = Point; var B; (function (B) { @@ -41,7 +41,7 @@ var A; return new Line({ x: 0, y: 0 }, p); }; return Line; - })(); + }()); B.Line = Line; })(B = A.B || (A.B = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js index 46361dd41bb..e9f3c10e189 100644 --- a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js +++ b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.js @@ -20,7 +20,7 @@ var A; this.y = y; } return Point; - })(); + }()); A.Origin = { x: 0, y: 0 }; A.Unity = { start: new Point(0, 0), end: new Point(1, 0) }; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js index 44c19685743..7a480ed4473 100644 --- a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js +++ b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.js @@ -20,6 +20,6 @@ var A; this.y = y; } return Point; - })(); + }()); A.UnitSquare = null; })(A || (A = {})); diff --git a/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js b/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js index b1769ba25f9..3c4b5bad16b 100644 --- a/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js +++ b/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.js @@ -15,6 +15,6 @@ var A; function B() { } return B; - })(); + }()); A.beez2 = new Array(); })(A || (A = {})); diff --git a/tests/baselines/reference/MemberAccessorDeclaration15.js b/tests/baselines/reference/MemberAccessorDeclaration15.js index 85bbfa62238..e2db7b2527e 100644 --- a/tests/baselines/reference/MemberAccessorDeclaration15.js +++ b/tests/baselines/reference/MemberAccessorDeclaration15.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration1_es6.js b/tests/baselines/reference/MemberFunctionDeclaration1_es6.js index 121376d5265..c69316783bd 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration1_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration1_es6.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration2_es6.js b/tests/baselines/reference/MemberFunctionDeclaration2_es6.js index dcb494b3d13..ce1781fcac2 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration2_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration2_es6.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration3_es6.js b/tests/baselines/reference/MemberFunctionDeclaration3_es6.js index e858ab15582..b32bd6bc57e 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration3_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration3_es6.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype[foo] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration4_es6.js b/tests/baselines/reference/MemberFunctionDeclaration4_es6.js index 26b08681441..abca2775ea0 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration4_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration4_es6.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype. = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration5_es6.js b/tests/baselines/reference/MemberFunctionDeclaration5_es6.js index 6b43b18fe39..2303c5e0f62 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration5_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration5_es6.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration6_es6.js b/tests/baselines/reference/MemberFunctionDeclaration6_es6.js index ef9c9248763..b2a753d7ce0 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration6_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration6_es6.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration7_es6.js b/tests/baselines/reference/MemberFunctionDeclaration7_es6.js index 8f942d87f9f..a7d80ae974b 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration7_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration7_es6.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/MemberFunctionDeclaration8_es6.js b/tests/baselines/reference/MemberFunctionDeclaration8_es6.js index 8e23a5ec995..8000a2d5c42 100644 --- a/tests/baselines/reference/MemberFunctionDeclaration8_es6.js +++ b/tests/baselines/reference/MemberFunctionDeclaration8_es6.js @@ -19,4 +19,4 @@ var C = (function () { return bar; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js b/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js index e443596d483..cf266049527 100644 --- a/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.js @@ -54,7 +54,7 @@ var X; this.y = y; } return Point; - })(); + }()); Y.Point = Point; })(Y = X.Y || (X.Y = {})); })(X || (X = {})); @@ -68,4 +68,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js b/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js index 96df9812bc6..6928e189a07 100644 --- a/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js +++ b/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.js @@ -25,7 +25,7 @@ var enumdule; this.y = y; } return Point; - })(); + }()); enumdule.Point = Point; })(enumdule || (enumdule = {})); var enumdule; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js index 06e5427a879..185aa3c580e 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedClasses.js @@ -40,24 +40,24 @@ var A; function A() { } return A; - })(); + }()); A_1.A = A; var AG = (function () { function AG() { } return AG; - })(); + }()); A_1.AG = AG; var A2 = (function () { function A2() { } return A2; - })(); + }()); var AG2 = (function () { function AG2() { } return AG2; - })(); + }()); })(A || (A = {})); // no errors expected, these are all exported var a; diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js index e31ca5d5885..bdaff287a97 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.js @@ -48,7 +48,7 @@ var B; this.end = end; } return Line; - })(); + }()); B.Line = Line; })(B || (B = {})); var Geometry; diff --git a/tests/baselines/reference/NonInitializedExportInInternalModule.js b/tests/baselines/reference/NonInitializedExportInInternalModule.js index e49bb20d3f0..aa1c84664ad 100644 --- a/tests/baselines/reference/NonInitializedExportInInternalModule.js +++ b/tests/baselines/reference/NonInitializedExportInInternalModule.js @@ -45,7 +45,7 @@ var Inner; function A() { } return A; - })(); + }()); var B; (function (B) { B.a = 1, B.c = 2; @@ -63,7 +63,7 @@ var Inner; function D() { } return D; - })(); + }()); Inner.e1 = new D; Inner.f1 = new D; Inner.g1 = new D; diff --git a/tests/baselines/reference/ParameterList6.js b/tests/baselines/reference/ParameterList6.js index 824b288572f..e6238e3f0b8 100644 --- a/tests/baselines/reference/ParameterList6.js +++ b/tests/baselines/reference/ParameterList6.js @@ -9,4 +9,4 @@ var C = (function () { function C(C) { } return C; -})(); +}()); diff --git a/tests/baselines/reference/ParameterList7.js b/tests/baselines/reference/ParameterList7.js index 76adf8352b9..394d2cb733c 100644 --- a/tests/baselines/reference/ParameterList7.js +++ b/tests/baselines/reference/ParameterList7.js @@ -11,4 +11,4 @@ var C1 = (function () { this.p3 = p3; } // OK return C1; -})(); +}()); diff --git a/tests/baselines/reference/Protected1.js b/tests/baselines/reference/Protected1.js index eebce2f4ecc..57bd4175632 100644 --- a/tests/baselines/reference/Protected1.js +++ b/tests/baselines/reference/Protected1.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/Protected3.js b/tests/baselines/reference/Protected3.js index 4c4d5e2a12c..4171d64df7a 100644 --- a/tests/baselines/reference/Protected3.js +++ b/tests/baselines/reference/Protected3.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/Protected4.js b/tests/baselines/reference/Protected4.js index 9c23a1be884..098fe70118d 100644 --- a/tests/baselines/reference/Protected4.js +++ b/tests/baselines/reference/Protected4.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.m = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/Protected5.js b/tests/baselines/reference/Protected5.js index 8426a8765d7..fe79c7399a3 100644 --- a/tests/baselines/reference/Protected5.js +++ b/tests/baselines/reference/Protected5.js @@ -9,4 +9,4 @@ var C = (function () { } C.m = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/Protected6.js b/tests/baselines/reference/Protected6.js index 10b59551737..65a1eea3d6b 100644 --- a/tests/baselines/reference/Protected6.js +++ b/tests/baselines/reference/Protected6.js @@ -9,4 +9,4 @@ var C = (function () { } C.m = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/Protected7.js b/tests/baselines/reference/Protected7.js index 16c24edb8cb..5232d932e9d 100644 --- a/tests/baselines/reference/Protected7.js +++ b/tests/baselines/reference/Protected7.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.m = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/Protected9.js b/tests/baselines/reference/Protected9.js index f747f18e8e8..d7c0d8eae2a 100644 --- a/tests/baselines/reference/Protected9.js +++ b/tests/baselines/reference/Protected9.js @@ -9,4 +9,4 @@ var C = (function () { this.p = p; } return C; -})(); +}()); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js index deb2f3aa59d..dd29b88421c 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js @@ -47,7 +47,7 @@ var A; function Point() { } return Point; - })(); + }()); A.Point = Point; })(A || (A = {})); var A; @@ -59,7 +59,7 @@ var A; return { x: p.x, y: p.y }; }; return Point; - })(); + }()); })(A || (A = {})); // ensure merges as expected var p; @@ -74,7 +74,7 @@ var X; function Line() { } return Line; - })(); + }()); Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); @@ -89,7 +89,7 @@ var X; function Line() { } return Line; - })(); + }()); })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); })(X || (X = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js index 125a803ff39..028934ae99f 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.js @@ -66,7 +66,7 @@ var A; this.br = br; } return Plane; - })(); + }()); Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js index d2d5a15bde0..2a75b92e2db 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js @@ -39,7 +39,7 @@ var A; function Point() { } return Point; - })(); + }()); A.Point = Point; })(A || (A = {})); var A; @@ -49,7 +49,7 @@ var A; function Point() { } return Point; - })(); + }()); A.Point = Point; })(A || (A = {})); var X; @@ -62,7 +62,7 @@ var X; function Line() { } return Line; - })(); + }()); Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); @@ -78,7 +78,7 @@ var X; function Line() { } return Line; - })(); + }()); Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.errors.txt b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.errors.txt index fefdcd8f6f5..e46805a6a2f 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.errors.txt +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/internalModules/DeclarationMerging/part1.ts(1,15): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/internalModules/DeclarationMerging/part1.ts(1,15): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/internalModules/DeclarationMerging/part2.ts(3,24): error TS2304: Cannot find name 'Point'. tests/cases/conformance/internalModules/DeclarationMerging/part2.ts(7,36): error TS2304: Cannot find name 'Point'. tests/cases/conformance/internalModules/DeclarationMerging/part2.ts(7,54): error TS2304: Cannot find name 'Point'. @@ -7,7 +7,7 @@ tests/cases/conformance/internalModules/DeclarationMerging/part2.ts(7,54): error ==== tests/cases/conformance/internalModules/DeclarationMerging/part1.ts (1 errors) ==== export module A { ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export interface Point { x: number; y: number; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js index d6bcc741542..03a504a888a 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName.js @@ -56,7 +56,7 @@ var A; this.br = br; } return Plane; - })(); + }()); Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); })(A = exports.A || (exports.A = {})); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js index de9f86084bc..54ffef5a084 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.js @@ -60,7 +60,7 @@ var X; function Line() { } return Line; - })(); + }()); Z.Line = Line; })(Z = Y.Z || (Y.Z = {})); })(Y = X.Y || (X.Y = {})); @@ -75,7 +75,7 @@ var X; function Line() { } return Line; - })(); + }()); Z.Line = Line; })(Z || (Z = {})); })(Y = X.Y || (X.Y = {})); diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js index a854dff15c6..86a1190ed06 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.js @@ -59,7 +59,7 @@ var otherRoot; this.br = br; } return Plane; - })(); + }()); Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); })(A = otherRoot.A || (otherRoot.A = {})); diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js index 82c9afd0787..c5c4cfdb2ca 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.js @@ -62,7 +62,7 @@ var A; this.br = br; } return Plane; - })(); + }()); Utils.Plane = Plane; })(Utils = A.Utils || (A.Utils = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/TypeGuardWithArrayUnion.js b/tests/baselines/reference/TypeGuardWithArrayUnion.js index cf98d2c2453..8dc7207e9db 100644 --- a/tests/baselines/reference/TypeGuardWithArrayUnion.js +++ b/tests/baselines/reference/TypeGuardWithArrayUnion.js @@ -15,7 +15,7 @@ var Message = (function () { function Message() { } return Message; -})(); +}()); function saySize(message) { if (message instanceof Array) { return message.length; // Should have type Message[] here diff --git a/tests/baselines/reference/YieldExpression11_es6.js b/tests/baselines/reference/YieldExpression11_es6.js index 07af8462a85..6260309473d 100644 --- a/tests/baselines/reference/YieldExpression11_es6.js +++ b/tests/baselines/reference/YieldExpression11_es6.js @@ -13,4 +13,4 @@ var C = (function () { yield (foo); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/YieldExpression12_es6.js b/tests/baselines/reference/YieldExpression12_es6.js index ed9f8130bb3..7211d41cb86 100644 --- a/tests/baselines/reference/YieldExpression12_es6.js +++ b/tests/baselines/reference/YieldExpression12_es6.js @@ -11,4 +11,4 @@ var C = (function () { yield foo; } return C; -})(); +}()); diff --git a/tests/baselines/reference/YieldExpression14_es6.js b/tests/baselines/reference/YieldExpression14_es6.js index a03d31998ff..e8c33c2085e 100644 --- a/tests/baselines/reference/YieldExpression14_es6.js +++ b/tests/baselines/reference/YieldExpression14_es6.js @@ -13,4 +13,4 @@ var C = (function () { yield foo; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.js b/tests/baselines/reference/accessOverriddenBaseClassMember1.js index e3a4d0602b8..c04532078e9 100644 --- a/tests/baselines/reference/accessOverriddenBaseClassMember1.js +++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.js @@ -30,7 +30,7 @@ var Point = (function () { return "x=" + this.x + " y=" + this.y; }; return Point; -})(); +}()); var ColoredPoint = (function (_super) { __extends(ColoredPoint, _super); function ColoredPoint(x, y, color) { @@ -41,4 +41,4 @@ var ColoredPoint = (function (_super) { return _super.prototype.toString.call(this) + " color=" + this.color; }; return ColoredPoint; -})(Point); +}(Point)); diff --git a/tests/baselines/reference/accessibilityModifiers.js b/tests/baselines/reference/accessibilityModifiers.js index ebc801ac136..c50092d1459 100644 --- a/tests/baselines/reference/accessibilityModifiers.js +++ b/tests/baselines/reference/accessibilityModifiers.js @@ -84,7 +84,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); // Errors, accessibility modifiers must precede static var D = (function () { function D() { @@ -123,7 +123,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); // Errors, multiple accessibility modifier var E = (function () { function E() { @@ -140,4 +140,4 @@ var E = (function () { configurable: true }); return E; -})(); +}()); diff --git a/tests/baselines/reference/accessorParameterAccessibilityModifier.js b/tests/baselines/reference/accessorParameterAccessibilityModifier.js index 8b5ee6196e0..4aa8451feed 100644 --- a/tests/baselines/reference/accessorParameterAccessibilityModifier.js +++ b/tests/baselines/reference/accessorParameterAccessibilityModifier.js @@ -20,4 +20,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/accessorWithES3.js b/tests/baselines/reference/accessorWithES3.js index 1eecaa68d64..6384712fc9d 100644 --- a/tests/baselines/reference/accessorWithES3.js +++ b/tests/baselines/reference/accessorWithES3.js @@ -34,7 +34,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function () { function D() { } @@ -45,7 +45,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); var x = { get a() { return 1; } }; diff --git a/tests/baselines/reference/accessorWithES5.js b/tests/baselines/reference/accessorWithES5.js index 746703bce52..3a94de76988 100644 --- a/tests/baselines/reference/accessorWithES5.js +++ b/tests/baselines/reference/accessorWithES5.js @@ -31,7 +31,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function () { function D() { } @@ -42,7 +42,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); var x = { get a() { return 1; } }; diff --git a/tests/baselines/reference/accessorWithInitializer.js b/tests/baselines/reference/accessorWithInitializer.js index 26e72fe7d7d..d4562e635dc 100644 --- a/tests/baselines/reference/accessorWithInitializer.js +++ b/tests/baselines/reference/accessorWithInitializer.js @@ -24,4 +24,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.js b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.js index 548d679776e..9dc206971a1 100644 --- a/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.js +++ b/tests/baselines/reference/accessorWithMismatchedAccessibilityModifiers.js @@ -46,7 +46,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function () { function D() { } @@ -60,7 +60,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); var E = (function () { function E() { } @@ -74,7 +74,7 @@ var E = (function () { configurable: true }); return E; -})(); +}()); var F = (function () { function F() { } @@ -88,4 +88,4 @@ var F = (function () { configurable: true }); return F; -})(); +}()); diff --git a/tests/baselines/reference/accessorWithRestParam.js b/tests/baselines/reference/accessorWithRestParam.js index 9feafe1904d..a58a7db1c52 100644 --- a/tests/baselines/reference/accessorWithRestParam.js +++ b/tests/baselines/reference/accessorWithRestParam.js @@ -30,4 +30,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/accessorsAreNotContextuallyTyped.js b/tests/baselines/reference/accessorsAreNotContextuallyTyped.js index 8c01173a13c..9047eebae66 100644 --- a/tests/baselines/reference/accessorsAreNotContextuallyTyped.js +++ b/tests/baselines/reference/accessorsAreNotContextuallyTyped.js @@ -28,6 +28,6 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var c; var r = c.x(''); // string diff --git a/tests/baselines/reference/accessorsEmit.js b/tests/baselines/reference/accessorsEmit.js index e2c097e263f..7276c04e28e 100644 --- a/tests/baselines/reference/accessorsEmit.js +++ b/tests/baselines/reference/accessorsEmit.js @@ -20,7 +20,7 @@ var Result = (function () { function Result() { } return Result; -})(); +}()); var Test = (function () { function Test() { } @@ -33,7 +33,7 @@ var Test = (function () { configurable: true }); return Test; -})(); +}()); var Test2 = (function () { function Test2() { } @@ -46,4 +46,4 @@ var Test2 = (function () { configurable: true }); return Test2; -})(); +}()); diff --git a/tests/baselines/reference/accessorsNotAllowedInES3.js b/tests/baselines/reference/accessorsNotAllowedInES3.js index 0843a39191c..e348771b8f6 100644 --- a/tests/baselines/reference/accessorsNotAllowedInES3.js +++ b/tests/baselines/reference/accessorsNotAllowedInES3.js @@ -16,5 +16,5 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var y = { get foo() { return 3; } }; diff --git a/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js b/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js index 5e527aef3e9..2832e70e138 100644 --- a/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js +++ b/tests/baselines/reference/accessors_spec_section-4.5_error-cases.js @@ -42,4 +42,4 @@ var LanguageSpec_section_4_5_error_cases = (function () { configurable: true }); return LanguageSpec_section_4_5_error_cases; -})(); +}()); diff --git a/tests/baselines/reference/accessors_spec_section-4.5_inference.js b/tests/baselines/reference/accessors_spec_section-4.5_inference.js index 808019448b7..7294aa1aff7 100644 --- a/tests/baselines/reference/accessors_spec_section-4.5_inference.js +++ b/tests/baselines/reference/accessors_spec_section-4.5_inference.js @@ -34,14 +34,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var LanguageSpec_section_4_5_inference = (function () { function LanguageSpec_section_4_5_inference() { } @@ -82,4 +82,4 @@ var LanguageSpec_section_4_5_inference = (function () { configurable: true }); return LanguageSpec_section_4_5_inference; -})(); +}()); diff --git a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js index ed6c82bddd8..c9525693042 100644 --- a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js +++ b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.js @@ -46,7 +46,7 @@ var C = (function () { } C.foo = function () { }; return C; -})(); +}()); var E; (function (E) { E[E["a"] = 0] = "a"; diff --git a/tests/baselines/reference/additionOperatorWithInvalidOperands.js b/tests/baselines/reference/additionOperatorWithInvalidOperands.js index 3eadd013849..897559b5cf3 100644 --- a/tests/baselines/reference/additionOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/additionOperatorWithInvalidOperands.js @@ -47,7 +47,7 @@ var C = (function () { } C.foo = function () { }; return C; -})(); +}()); var E; (function (E) { E[E["a"] = 0] = "a"; diff --git a/tests/baselines/reference/aliasAssignments.js b/tests/baselines/reference/aliasAssignments.js index 0c6ac09a382..7aef6de22e6 100644 --- a/tests/baselines/reference/aliasAssignments.js +++ b/tests/baselines/reference/aliasAssignments.js @@ -19,7 +19,7 @@ var someClass = (function () { function someClass() { } return someClass; -})(); +}()); exports.someClass = someClass; //// [aliasAssignments_1.js] "use strict"; diff --git a/tests/baselines/reference/aliasBug.js b/tests/baselines/reference/aliasBug.js index 870060fc5ed..be7201a8ea7 100644 --- a/tests/baselines/reference/aliasBug.js +++ b/tests/baselines/reference/aliasBug.js @@ -27,7 +27,7 @@ var foo; function Provide() { } return Provide; - })(); + }()); foo.Provide = Provide; var bar; (function (bar) { @@ -37,7 +37,7 @@ var foo; function boo() { } return boo; - })(); + }()); baz.boo = boo; })(baz = bar.baz || (bar.baz = {})); })(bar = foo.bar || (foo.bar = {})); diff --git a/tests/baselines/reference/aliasErrors.js b/tests/baselines/reference/aliasErrors.js index e61ca167661..1e93d22c3fb 100644 --- a/tests/baselines/reference/aliasErrors.js +++ b/tests/baselines/reference/aliasErrors.js @@ -37,7 +37,7 @@ var foo; function Provide() { } return Provide; - })(); + }()); foo.Provide = Provide; var bar; (function (bar) { @@ -47,7 +47,7 @@ var foo; function boo() { } return boo; - })(); + }()); baz.boo = boo; })(baz = bar.baz || (bar.baz = {})); })(bar = foo.bar || (foo.bar = {})); diff --git a/tests/baselines/reference/aliasInaccessibleModule2.js b/tests/baselines/reference/aliasInaccessibleModule2.js index b8b824d92ad..b16bcf6cd72 100644 --- a/tests/baselines/reference/aliasInaccessibleModule2.js +++ b/tests/baselines/reference/aliasInaccessibleModule2.js @@ -18,7 +18,7 @@ var M; function C() { } return C; - })(); + }()); })(N || (N = {})); var R = N; M.X = R; diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass.js b/tests/baselines/reference/aliasUsageInAccessorsOfClass.js index d067ca1c00a..905ed9bce0e 100644 --- a/tests/baselines/reference/aliasUsageInAccessorsOfClass.js +++ b/tests/baselines/reference/aliasUsageInAccessorsOfClass.js @@ -33,7 +33,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsage1_moduleA.js] "use strict"; @@ -49,7 +49,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsage1_main.js] "use strict"; @@ -68,4 +68,4 @@ var C2 = (function () { configurable: true }); return C2; -})(); +}()); diff --git a/tests/baselines/reference/aliasUsageInArray.js b/tests/baselines/reference/aliasUsageInArray.js index 183a885b3c6..2d9f7cfed6e 100644 --- a/tests/baselines/reference/aliasUsageInArray.js +++ b/tests/baselines/reference/aliasUsageInArray.js @@ -27,7 +27,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInArray_moduleA.js] "use strict"; @@ -43,7 +43,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInArray_main.js] "use strict"; diff --git a/tests/baselines/reference/aliasUsageInFunctionExpression.js b/tests/baselines/reference/aliasUsageInFunctionExpression.js index 584c894cbad..21565dc99fc 100644 --- a/tests/baselines/reference/aliasUsageInFunctionExpression.js +++ b/tests/baselines/reference/aliasUsageInFunctionExpression.js @@ -26,7 +26,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInFunctionExpression_moduleA.js] "use strict"; @@ -42,7 +42,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInFunctionExpression_main.js] "use strict"; diff --git a/tests/baselines/reference/aliasUsageInGenericFunction.js b/tests/baselines/reference/aliasUsageInGenericFunction.js index fe52d71bf3f..af24b61cf33 100644 --- a/tests/baselines/reference/aliasUsageInGenericFunction.js +++ b/tests/baselines/reference/aliasUsageInGenericFunction.js @@ -30,7 +30,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInGenericFunction_moduleA.js] "use strict"; @@ -46,7 +46,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInGenericFunction_main.js] "use strict"; diff --git a/tests/baselines/reference/aliasUsageInIndexerOfClass.js b/tests/baselines/reference/aliasUsageInIndexerOfClass.js index e4448ef220f..3b21f15777c 100644 --- a/tests/baselines/reference/aliasUsageInIndexerOfClass.js +++ b/tests/baselines/reference/aliasUsageInIndexerOfClass.js @@ -32,7 +32,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInIndexerOfClass_moduleA.js] "use strict"; @@ -48,7 +48,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInIndexerOfClass_main.js] "use strict"; @@ -58,9 +58,9 @@ var N = (function () { this.x = moduleA; } return N; -})(); +}()); var N2 = (function () { function N2() { } return N2; -})(); +}()); diff --git a/tests/baselines/reference/aliasUsageInObjectLiteral.js b/tests/baselines/reference/aliasUsageInObjectLiteral.js index b0abd11b189..b380104b461 100644 --- a/tests/baselines/reference/aliasUsageInObjectLiteral.js +++ b/tests/baselines/reference/aliasUsageInObjectLiteral.js @@ -27,7 +27,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInObjectLiteral_moduleA.js] "use strict"; @@ -43,7 +43,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInObjectLiteral_main.js] "use strict"; diff --git a/tests/baselines/reference/aliasUsageInOrExpression.js b/tests/baselines/reference/aliasUsageInOrExpression.js index ff8543bca76..1e9a5420345 100644 --- a/tests/baselines/reference/aliasUsageInOrExpression.js +++ b/tests/baselines/reference/aliasUsageInOrExpression.js @@ -30,7 +30,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInOrExpression_moduleA.js] "use strict"; @@ -46,7 +46,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInOrExpression_main.js] "use strict"; diff --git a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js index cf256e010ee..76b90c01bf0 100644 --- a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js +++ b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js @@ -30,7 +30,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInTypeArgumentOfExtendsClause_moduleA.js] "use strict"; @@ -46,7 +46,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInTypeArgumentOfExtendsClause_main.js] "use strict"; @@ -60,7 +60,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -68,4 +68,4 @@ var D = (function (_super) { this.x = moduleA; } return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/aliasUsageInVarAssignment.js b/tests/baselines/reference/aliasUsageInVarAssignment.js index 8117aca8c35..7c73fac2d67 100644 --- a/tests/baselines/reference/aliasUsageInVarAssignment.js +++ b/tests/baselines/reference/aliasUsageInVarAssignment.js @@ -26,7 +26,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [aliasUsageInVarAssignment_moduleA.js] "use strict"; @@ -42,7 +42,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [aliasUsageInVarAssignment_main.js] "use strict"; diff --git a/tests/baselines/reference/allowSyntheticDefaultImports1.js b/tests/baselines/reference/allowSyntheticDefaultImports1.js index 699880f930c..3789410a54b 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports1.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports1.js @@ -16,7 +16,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); exports.Foo = Foo; //// [a.js] "use strict"; diff --git a/tests/baselines/reference/allowSyntheticDefaultImports2.js b/tests/baselines/reference/allowSyntheticDefaultImports2.js index d21750c65fc..fcc029415cf 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports2.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports2.js @@ -20,7 +20,7 @@ System.register([], function(exports_1) { function Foo() { } return Foo; - })(); + }()); exports_1("Foo", Foo); } } diff --git a/tests/baselines/reference/allowSyntheticDefaultImports3.js b/tests/baselines/reference/allowSyntheticDefaultImports3.js index 8864a28e796..b14d25dbd61 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImports3.js +++ b/tests/baselines/reference/allowSyntheticDefaultImports3.js @@ -21,7 +21,7 @@ System.register([], function(exports_1) { function Foo() { } return Foo; - })(); + }()); exports_1("Foo", Foo); } } diff --git a/tests/baselines/reference/ambientDeclarationsExternal.errors.txt b/tests/baselines/reference/ambientDeclarationsExternal.errors.txt index d05dfe813fd..2a9b1fe4879 100644 --- a/tests/baselines/reference/ambientDeclarationsExternal.errors.txt +++ b/tests/baselines/reference/ambientDeclarationsExternal.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/ambient/consumer.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/ambient/consumer.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/ambient/consumer.ts (1 errors) ==== /// import imp1 = require('equ'); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. // Ambient external module members are always exported with or without export keyword when module lacks export assignment diff --git a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js index a089cea155b..b0382205cd3 100644 --- a/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js +++ b/tests/baselines/reference/ambientExternalModuleInAnotherExternalModule.js @@ -18,7 +18,7 @@ define(["require", "exports", "ext"], function (require, exports, ext) { function D() { } return D; - })(); + }()); var x = ext; return D; }); diff --git a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js index 2beabb83d11..06a558d1ba5 100644 --- a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js +++ b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js @@ -38,7 +38,7 @@ var TestClass = (function () { this.bar(x); // should not error }; return TestClass; -})(); +}()); var TestClass2 = (function () { function TestClass2() { } @@ -49,4 +49,4 @@ var TestClass2 = (function () { return this.bar(x); // should not error }; return TestClass2; -})(); +}()); diff --git a/tests/baselines/reference/ambiguousOverloadResolution.js b/tests/baselines/reference/ambiguousOverloadResolution.js index 23c985d2f8d..275bbf67602 100644 --- a/tests/baselines/reference/ambiguousOverloadResolution.js +++ b/tests/baselines/reference/ambiguousOverloadResolution.js @@ -18,13 +18,13 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var x; var t = f(x, x); // Not an error diff --git a/tests/baselines/reference/amdImportNotAsPrimaryExpression.js b/tests/baselines/reference/amdImportNotAsPrimaryExpression.js index 3f6bcebab53..beb91191bc0 100644 --- a/tests/baselines/reference/amdImportNotAsPrimaryExpression.js +++ b/tests/baselines/reference/amdImportNotAsPrimaryExpression.js @@ -40,7 +40,7 @@ define(["require", "exports"], function (require, exports) { } C1.s1 = true; return C1; - })(); + }()); exports.C1 = C1; (function (E1) { E1[E1["A"] = 0] = "A"; diff --git a/tests/baselines/reference/amdModuleName1.js b/tests/baselines/reference/amdModuleName1.js index ccfa8958575..f17166319c0 100644 --- a/tests/baselines/reference/amdModuleName1.js +++ b/tests/baselines/reference/amdModuleName1.js @@ -18,6 +18,6 @@ define("NamedModule", ["require", "exports"], function (require, exports) { this.x = 5; } return Foo; - })(); + }()); return Foo; }); diff --git a/tests/baselines/reference/amdModuleName2.js b/tests/baselines/reference/amdModuleName2.js index ff547dd6c3b..4143183c6f5 100644 --- a/tests/baselines/reference/amdModuleName2.js +++ b/tests/baselines/reference/amdModuleName2.js @@ -20,6 +20,6 @@ define("SecondModuleName", ["require", "exports"], function (require, exports) { this.x = 5; } return Foo; - })(); + }()); return Foo; }); diff --git a/tests/baselines/reference/anonterface.js b/tests/baselines/reference/anonterface.js index 12bfbc4ec9d..041b90cb56c 100644 --- a/tests/baselines/reference/anonterface.js +++ b/tests/baselines/reference/anonterface.js @@ -24,7 +24,7 @@ var M; return fn(n2); }; return C; - })(); + }()); M.C = C; })(M || (M = {})); var c = new M.C(); diff --git a/tests/baselines/reference/anonymousClassExpression1.js b/tests/baselines/reference/anonymousClassExpression1.js index 5ced5120979..6774665ae6e 100644 --- a/tests/baselines/reference/anonymousClassExpression1.js +++ b/tests/baselines/reference/anonymousClassExpression1.js @@ -9,5 +9,5 @@ function f() { function class_1() { } return class_1; - })() === "function"; + }()) === "function"; } diff --git a/tests/baselines/reference/anonymousDefaultExportsAmd.js b/tests/baselines/reference/anonymousDefaultExportsAmd.js new file mode 100644 index 00000000000..bb5cd587a83 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsAmd.js @@ -0,0 +1,23 @@ +//// [tests/cases/conformance/es6/moduleExportsAmd/anonymousDefaultExportsAmd.ts] //// + +//// [a.ts] +export default class {} + +//// [b.ts] +export default function() {} + +//// [a.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + class default_1 { + } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = default_1; +}); +//// [b.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + function default_1() { } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = default_1; +}); diff --git a/tests/baselines/reference/anonymousDefaultExportsAmd.symbols b/tests/baselines/reference/anonymousDefaultExportsAmd.symbols new file mode 100644 index 00000000000..b7778168f33 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsAmd.symbols @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsAmd/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsAmd/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsAmd.types b/tests/baselines/reference/anonymousDefaultExportsAmd.types new file mode 100644 index 00000000000..b7778168f33 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsAmd.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsAmd/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsAmd/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsCommonjs.js b/tests/baselines/reference/anonymousDefaultExportsCommonjs.js new file mode 100644 index 00000000000..754ffdb7c9b --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsCommonjs.js @@ -0,0 +1,19 @@ +//// [tests/cases/conformance/es6/moduleExportsCommonjs/anonymousDefaultExportsCommonjs.ts] //// + +//// [a.ts] +export default class {} + +//// [b.ts] +export default function() {} + +//// [a.js] +"use strict"; +class default_1 { +} +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = default_1; +//// [b.js] +"use strict"; +function default_1() { } +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = default_1; diff --git a/tests/baselines/reference/anonymousDefaultExportsCommonjs.symbols b/tests/baselines/reference/anonymousDefaultExportsCommonjs.symbols new file mode 100644 index 00000000000..e74f41088d7 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsCommonjs.symbols @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsCommonjs/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsCommonjs/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsCommonjs.types b/tests/baselines/reference/anonymousDefaultExportsCommonjs.types new file mode 100644 index 00000000000..e74f41088d7 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsCommonjs.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsCommonjs/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsCommonjs/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsSystem.js b/tests/baselines/reference/anonymousDefaultExportsSystem.js new file mode 100644 index 00000000000..74913a57a99 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsSystem.js @@ -0,0 +1,32 @@ +//// [tests/cases/conformance/es6/moduleExportsSystem/anonymousDefaultExportsSystem.ts] //// + +//// [a.ts] +export default class {} + +//// [b.ts] +export default function() {} + +//// [a.js] +System.register([], function(exports_1) { + "use strict"; + var default_1; + return { + setters:[], + execute: function() { + class default_1 { + } + exports_1("default", default_1); + } + } +}); +//// [b.js] +System.register([], function(exports_1) { + "use strict"; + function default_1() { } + exports_1("default", default_1); + return { + setters:[], + execute: function() { + } + } +}); diff --git a/tests/baselines/reference/anonymousDefaultExportsSystem.symbols b/tests/baselines/reference/anonymousDefaultExportsSystem.symbols new file mode 100644 index 00000000000..a865de3bb91 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsSystem.symbols @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsSystem/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsSystem/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsSystem.types b/tests/baselines/reference/anonymousDefaultExportsSystem.types new file mode 100644 index 00000000000..a865de3bb91 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsSystem.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsSystem/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsSystem/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsUmd.js b/tests/baselines/reference/anonymousDefaultExportsUmd.js new file mode 100644 index 00000000000..203b234dfa0 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsUmd.js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/es6/moduleExportsUmd/anonymousDefaultExportsUmd.ts] //// + +//// [a.ts] +export default class {} + +//// [b.ts] +export default function() {} + +//// [a.js] +(function (factory) { + if (typeof module === 'object' && typeof module.exports === 'object') { + var v = factory(require, exports); if (v !== undefined) module.exports = v; + } + else if (typeof define === 'function' && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + class default_1 { + } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = default_1; +}); +//// [b.js] +(function (factory) { + if (typeof module === 'object' && typeof module.exports === 'object') { + var v = factory(require, exports); if (v !== undefined) module.exports = v; + } + else if (typeof define === 'function' && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + function default_1() { } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = default_1; +}); diff --git a/tests/baselines/reference/anonymousDefaultExportsUmd.symbols b/tests/baselines/reference/anonymousDefaultExportsUmd.symbols new file mode 100644 index 00000000000..6bc9e18ed56 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsUmd.symbols @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsUmd/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsUmd/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anonymousDefaultExportsUmd.types b/tests/baselines/reference/anonymousDefaultExportsUmd.types new file mode 100644 index 00000000000..6bc9e18ed56 --- /dev/null +++ b/tests/baselines/reference/anonymousDefaultExportsUmd.types @@ -0,0 +1,6 @@ +=== tests/cases/conformance/es6/moduleExportsUmd/a.ts === +export default class {} +No type information for this code. +No type information for this code.=== tests/cases/conformance/es6/moduleExportsUmd/b.ts === +export default function() {} +No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/anyAsGenericFunctionCall.js b/tests/baselines/reference/anyAsGenericFunctionCall.js index 64097f4e3c7..3c3eddccb1e 100644 --- a/tests/baselines/reference/anyAsGenericFunctionCall.js +++ b/tests/baselines/reference/anyAsGenericFunctionCall.js @@ -20,6 +20,6 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = x(x); var d = x(x); diff --git a/tests/baselines/reference/anyAssignabilityInInheritance.js b/tests/baselines/reference/anyAssignabilityInInheritance.js index 04e3e91761d..f73228a464b 100644 --- a/tests/baselines/reference/anyAssignabilityInInheritance.js +++ b/tests/baselines/reference/anyAssignabilityInInheritance.js @@ -103,13 +103,13 @@ var A = (function () { function A() { } return A; -})(); +}()); var r3 = foo3(a); // any var A2 = (function () { function A2() { } return A2; -})(); +}()); var r3 = foo3(a); // any var r3 = foo3(a); // any var r3 = foo3(a); // any @@ -128,7 +128,7 @@ var CC = (function () { function CC() { } return CC; -})(); +}()); var CC; (function (CC) { CC.bar = 1; diff --git a/tests/baselines/reference/anyAssignableToEveryType.js b/tests/baselines/reference/anyAssignableToEveryType.js index 75d847709a5..f02660e17ec 100644 --- a/tests/baselines/reference/anyAssignableToEveryType.js +++ b/tests/baselines/reference/anyAssignableToEveryType.js @@ -51,7 +51,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var ac; var ai; var E; diff --git a/tests/baselines/reference/anyAssignableToEveryType2.errors.txt b/tests/baselines/reference/anyAssignableToEveryType2.errors.txt deleted file mode 100644 index e5f9a07476e..00000000000 --- a/tests/baselines/reference/anyAssignableToEveryType2.errors.txt +++ /dev/null @@ -1,136 +0,0 @@ -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts(114,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts (1 errors) ==== - // any is not a subtype of any other types, but is assignable, all the below should work - - interface I { - [x: string]: any; - foo: any; // ok, any identical to itself - } - - - interface I2 { - [x: string]: number; - foo: any; - } - - - interface I3 { - [x: string]: string; - foo: any; - } - - - interface I4 { - [x: string]: boolean; - foo: any; - } - - - interface I5 { - [x: string]: Date; - foo: any; - } - - - interface I6 { - [x: string]: RegExp; - foo: any; - } - - - interface I7 { - [x: string]: { bar: number }; - foo: any; - } - - - interface I8 { - [x: string]: number[]; - foo: any; - } - - - interface I9 { - [x: string]: I8; - foo: any; - } - - class A { foo: number; } - interface I10 { - [x: string]: A; - foo: any; - } - - class A2 { foo: T; } - interface I11 { - [x: string]: A2; - foo: any; - } - - - interface I12 { - [x: string]: (x) => number; - foo: any; - } - - - interface I13 { - [x: string]: (x: T) => T; - foo: any; - } - - - enum E { A } - interface I14 { - [x: string]: E; - foo: any; - } - - - function f() { } - module f { - export var bar = 1; - } - interface I15 { - [x: string]: typeof f; - foo: any; - } - - - class c { baz: string } - module c { - export var bar = 1; - } - interface I16 { - [x: string]: typeof c; - foo: any; - } - - - interface I17 { - [x: string]: T; - foo: any; - } - - - interface I18 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - [x: string]: U; - foo: any; - } - - - interface I19 { - [x: string]: Object; - foo: any; - } - - - interface I20 { - [x: string]: {}; - foo: any; - } - \ No newline at end of file diff --git a/tests/baselines/reference/anyAssignableToEveryType2.js b/tests/baselines/reference/anyAssignableToEveryType2.js index 530d8eb0439..c5fefb60042 100644 --- a/tests/baselines/reference/anyAssignableToEveryType2.js +++ b/tests/baselines/reference/anyAssignableToEveryType2.js @@ -136,12 +136,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var A2 = (function () { function A2() { } return A2; -})(); +}()); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -155,7 +155,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/anyAssignableToEveryType2.symbols b/tests/baselines/reference/anyAssignableToEveryType2.symbols new file mode 100644 index 00000000000..9984a3f2fb8 --- /dev/null +++ b/tests/baselines/reference/anyAssignableToEveryType2.symbols @@ -0,0 +1,274 @@ +=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts === +// any is not a subtype of any other types, but is assignable, all the below should work + +interface I { +>I : Symbol(I, Decl(anyAssignableToEveryType2.ts, 0, 0)) + + [x: string]: any; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 3, 5)) + + foo: any; // ok, any identical to itself +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 3, 21)) +} + + +interface I2 { +>I2 : Symbol(I2, Decl(anyAssignableToEveryType2.ts, 5, 1)) + + [x: string]: number; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 9, 5)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 9, 24)) +} + + +interface I3 { +>I3 : Symbol(I3, Decl(anyAssignableToEveryType2.ts, 11, 1)) + + [x: string]: string; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 15, 5)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 15, 24)) +} + + +interface I4 { +>I4 : Symbol(I4, Decl(anyAssignableToEveryType2.ts, 17, 1)) + + [x: string]: boolean; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 21, 5)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 21, 25)) +} + + +interface I5 { +>I5 : Symbol(I5, Decl(anyAssignableToEveryType2.ts, 23, 1)) + + [x: string]: Date; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 27, 5)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 27, 22)) +} + + +interface I6 { +>I6 : Symbol(I6, Decl(anyAssignableToEveryType2.ts, 29, 1)) + + [x: string]: RegExp; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 33, 5)) +>RegExp : Symbol(RegExp, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 33, 24)) +} + + +interface I7 { +>I7 : Symbol(I7, Decl(anyAssignableToEveryType2.ts, 35, 1)) + + [x: string]: { bar: number }; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 39, 5)) +>bar : Symbol(bar, Decl(anyAssignableToEveryType2.ts, 39, 18)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 39, 33)) +} + + +interface I8 { +>I8 : Symbol(I8, Decl(anyAssignableToEveryType2.ts, 41, 1)) + + [x: string]: number[]; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 45, 5)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 45, 26)) +} + + +interface I9 { +>I9 : Symbol(I9, Decl(anyAssignableToEveryType2.ts, 47, 1)) + + [x: string]: I8; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 51, 5)) +>I8 : Symbol(I8, Decl(anyAssignableToEveryType2.ts, 41, 1)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 51, 20)) +} + +class A { foo: number; } +>A : Symbol(A, Decl(anyAssignableToEveryType2.ts, 53, 1)) +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 55, 9)) + +interface I10 { +>I10 : Symbol(I10, Decl(anyAssignableToEveryType2.ts, 55, 24)) + + [x: string]: A; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 57, 5)) +>A : Symbol(A, Decl(anyAssignableToEveryType2.ts, 53, 1)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 57, 19)) +} + +class A2 { foo: T; } +>A2 : Symbol(A2, Decl(anyAssignableToEveryType2.ts, 59, 1)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 61, 9)) +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 61, 13)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 61, 9)) + +interface I11 { +>I11 : Symbol(I11, Decl(anyAssignableToEveryType2.ts, 61, 23)) + + [x: string]: A2; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 63, 5)) +>A2 : Symbol(A2, Decl(anyAssignableToEveryType2.ts, 59, 1)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 63, 28)) +} + + +interface I12 { +>I12 : Symbol(I12, Decl(anyAssignableToEveryType2.ts, 65, 1)) + + [x: string]: (x) => number; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 69, 5)) +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 69, 18)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 69, 31)) +} + + +interface I13 { +>I13 : Symbol(I13, Decl(anyAssignableToEveryType2.ts, 71, 1)) + + [x: string]: (x: T) => T; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 75, 5)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 75, 18)) +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 75, 21)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 75, 18)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 75, 18)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 75, 32)) +} + + +enum E { A } +>E : Symbol(E, Decl(anyAssignableToEveryType2.ts, 77, 1)) +>A : Symbol(E.A, Decl(anyAssignableToEveryType2.ts, 80, 8)) + +interface I14 { +>I14 : Symbol(I14, Decl(anyAssignableToEveryType2.ts, 80, 12)) + + [x: string]: E; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 82, 5)) +>E : Symbol(E, Decl(anyAssignableToEveryType2.ts, 77, 1)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 82, 19)) +} + + +function f() { } +>f : Symbol(f, Decl(anyAssignableToEveryType2.ts, 84, 1), Decl(anyAssignableToEveryType2.ts, 87, 16)) + +module f { +>f : Symbol(f, Decl(anyAssignableToEveryType2.ts, 84, 1), Decl(anyAssignableToEveryType2.ts, 87, 16)) + + export var bar = 1; +>bar : Symbol(bar, Decl(anyAssignableToEveryType2.ts, 89, 14)) +} +interface I15 { +>I15 : Symbol(I15, Decl(anyAssignableToEveryType2.ts, 90, 1)) + + [x: string]: typeof f; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 92, 5)) +>f : Symbol(f, Decl(anyAssignableToEveryType2.ts, 84, 1), Decl(anyAssignableToEveryType2.ts, 87, 16)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 92, 26)) +} + + +class c { baz: string } +>c : Symbol(c, Decl(anyAssignableToEveryType2.ts, 94, 1), Decl(anyAssignableToEveryType2.ts, 97, 23)) +>baz : Symbol(baz, Decl(anyAssignableToEveryType2.ts, 97, 9)) + +module c { +>c : Symbol(c, Decl(anyAssignableToEveryType2.ts, 94, 1), Decl(anyAssignableToEveryType2.ts, 97, 23)) + + export var bar = 1; +>bar : Symbol(bar, Decl(anyAssignableToEveryType2.ts, 99, 14)) +} +interface I16 { +>I16 : Symbol(I16, Decl(anyAssignableToEveryType2.ts, 100, 1)) + + [x: string]: typeof c; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 102, 5)) +>c : Symbol(c, Decl(anyAssignableToEveryType2.ts, 94, 1), Decl(anyAssignableToEveryType2.ts, 97, 23)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 102, 26)) +} + + +interface I17 { +>I17 : Symbol(I17, Decl(anyAssignableToEveryType2.ts, 104, 1)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 107, 14)) + + [x: string]: T; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 108, 5)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 107, 14)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 108, 19)) +} + + +interface I18 { +>I18 : Symbol(I18, Decl(anyAssignableToEveryType2.ts, 110, 1)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 113, 14)) +>U : Symbol(U, Decl(anyAssignableToEveryType2.ts, 113, 16)) +>T : Symbol(T, Decl(anyAssignableToEveryType2.ts, 113, 14)) + + [x: string]: U; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 114, 5)) +>U : Symbol(U, Decl(anyAssignableToEveryType2.ts, 113, 16)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 114, 19)) +} + + +interface I19 { +>I19 : Symbol(I19, Decl(anyAssignableToEveryType2.ts, 116, 1)) + + [x: string]: Object; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 120, 5)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 120, 24)) +} + + +interface I20 { +>I20 : Symbol(I20, Decl(anyAssignableToEveryType2.ts, 122, 1)) + + [x: string]: {}; +>x : Symbol(x, Decl(anyAssignableToEveryType2.ts, 126, 5)) + + foo: any; +>foo : Symbol(foo, Decl(anyAssignableToEveryType2.ts, 126, 20)) +} + diff --git a/tests/baselines/reference/anyAssignableToEveryType2.types b/tests/baselines/reference/anyAssignableToEveryType2.types new file mode 100644 index 00000000000..b3f54211601 --- /dev/null +++ b/tests/baselines/reference/anyAssignableToEveryType2.types @@ -0,0 +1,276 @@ +=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts === +// any is not a subtype of any other types, but is assignable, all the below should work + +interface I { +>I : I + + [x: string]: any; +>x : string + + foo: any; // ok, any identical to itself +>foo : any +} + + +interface I2 { +>I2 : I2 + + [x: string]: number; +>x : string + + foo: any; +>foo : any +} + + +interface I3 { +>I3 : I3 + + [x: string]: string; +>x : string + + foo: any; +>foo : any +} + + +interface I4 { +>I4 : I4 + + [x: string]: boolean; +>x : string + + foo: any; +>foo : any +} + + +interface I5 { +>I5 : I5 + + [x: string]: Date; +>x : string +>Date : Date + + foo: any; +>foo : any +} + + +interface I6 { +>I6 : I6 + + [x: string]: RegExp; +>x : string +>RegExp : RegExp + + foo: any; +>foo : any +} + + +interface I7 { +>I7 : I7 + + [x: string]: { bar: number }; +>x : string +>bar : number + + foo: any; +>foo : any +} + + +interface I8 { +>I8 : I8 + + [x: string]: number[]; +>x : string + + foo: any; +>foo : any +} + + +interface I9 { +>I9 : I9 + + [x: string]: I8; +>x : string +>I8 : I8 + + foo: any; +>foo : any +} + +class A { foo: number; } +>A : A +>foo : number + +interface I10 { +>I10 : I10 + + [x: string]: A; +>x : string +>A : A + + foo: any; +>foo : any +} + +class A2 { foo: T; } +>A2 : A2 +>T : T +>foo : T +>T : T + +interface I11 { +>I11 : I11 + + [x: string]: A2; +>x : string +>A2 : A2 + + foo: any; +>foo : any +} + + +interface I12 { +>I12 : I12 + + [x: string]: (x) => number; +>x : string +>x : any + + foo: any; +>foo : any +} + + +interface I13 { +>I13 : I13 + + [x: string]: (x: T) => T; +>x : string +>T : T +>x : T +>T : T +>T : T + + foo: any; +>foo : any +} + + +enum E { A } +>E : E +>A : E + +interface I14 { +>I14 : I14 + + [x: string]: E; +>x : string +>E : E + + foo: any; +>foo : any +} + + +function f() { } +>f : typeof f + +module f { +>f : typeof f + + export var bar = 1; +>bar : number +>1 : number +} +interface I15 { +>I15 : I15 + + [x: string]: typeof f; +>x : string +>f : typeof f + + foo: any; +>foo : any +} + + +class c { baz: string } +>c : c +>baz : string + +module c { +>c : typeof c + + export var bar = 1; +>bar : number +>1 : number +} +interface I16 { +>I16 : I16 + + [x: string]: typeof c; +>x : string +>c : typeof c + + foo: any; +>foo : any +} + + +interface I17 { +>I17 : I17 +>T : T + + [x: string]: T; +>x : string +>T : T + + foo: any; +>foo : any +} + + +interface I18 { +>I18 : I18 +>T : T +>U : U +>T : T + + [x: string]: U; +>x : string +>U : U + + foo: any; +>foo : any +} + + +interface I19 { +>I19 : I19 + + [x: string]: Object; +>x : string +>Object : Object + + foo: any; +>foo : any +} + + +interface I20 { +>I20 : I20 + + [x: string]: {}; +>x : string + + foo: any; +>foo : any +} + diff --git a/tests/baselines/reference/anyIdenticalToItself.js b/tests/baselines/reference/anyIdenticalToItself.js index b7b9b25e418..cfbaff6585c 100644 --- a/tests/baselines/reference/anyIdenticalToItself.js +++ b/tests/baselines/reference/anyIdenticalToItself.js @@ -28,4 +28,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/apparentTypeSubtyping.js b/tests/baselines/reference/apparentTypeSubtyping.js index edc0f21323a..2d04b059a9a 100644 --- a/tests/baselines/reference/apparentTypeSubtyping.js +++ b/tests/baselines/reference/apparentTypeSubtyping.js @@ -33,7 +33,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); // is String (S) a subtype of U extends String (T)? Would only be true if we used the apparent type of U (T) var Derived = (function (_super) { __extends(Derived, _super); @@ -41,12 +41,12 @@ var Derived = (function (_super) { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); // is U extends String (S) a subtype of String (T)? Apparent type of U is String so it succeeds var Derived2 = (function (_super) { __extends(Derived2, _super); @@ -54,4 +54,4 @@ var Derived2 = (function (_super) { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); diff --git a/tests/baselines/reference/apparentTypeSupertype.js b/tests/baselines/reference/apparentTypeSupertype.js index 2ab84c89513..de1b1ba11bd 100644 --- a/tests/baselines/reference/apparentTypeSupertype.js +++ b/tests/baselines/reference/apparentTypeSupertype.js @@ -23,7 +23,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); // is String (S) a subtype of U extends String (T)? Would only be true if we used the apparent type of U (T) var Derived = (function (_super) { __extends(Derived, _super); @@ -31,4 +31,4 @@ var Derived = (function (_super) { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/argsInScope.js b/tests/baselines/reference/argsInScope.js index 76b7ab0e99f..90906426d24 100644 --- a/tests/baselines/reference/argsInScope.js +++ b/tests/baselines/reference/argsInScope.js @@ -20,6 +20,6 @@ var C = (function () { } }; return C; -})(); +}()); var c = new C(); c.P(1, 2, 3); diff --git a/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js b/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js index 47edef44ef0..753afb809a2 100644 --- a/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js +++ b/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.js @@ -17,4 +17,4 @@ var A = (function () { }; }; return A; -})(); +}()); diff --git a/tests/baselines/reference/arithAssignTyping.js b/tests/baselines/reference/arithAssignTyping.js index 10e60bfb1f2..38f6718175b 100644 --- a/tests/baselines/reference/arithAssignTyping.js +++ b/tests/baselines/reference/arithAssignTyping.js @@ -19,7 +19,7 @@ var f = (function () { function f() { } return f; -})(); +}()); f += ''; // error f += 1; // error f -= 1; // error diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js index 70177b4cba2..e2ca36cbd1d 100644 --- a/tests/baselines/reference/arrayAssignmentTest1.js +++ b/tests/baselines/reference/arrayAssignmentTest1.js @@ -97,7 +97,7 @@ var C1 = (function () { C1.prototype.IM1 = function () { return null; }; C1.prototype.C1M1 = function () { return null; }; return C1; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { @@ -105,13 +105,13 @@ var C2 = (function (_super) { } C2.prototype.C2M1 = function () { return null; }; return C2; -})(C1); +}(C1)); var C3 = (function () { function C3() { } C3.prototype.CM3M1 = function () { return 3; }; return C3; -})(); +}()); /* This behaves unexpectedly with the following types: diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js index 61bddd7e8e4..a15df1b14b7 100644 --- a/tests/baselines/reference/arrayAssignmentTest2.js +++ b/tests/baselines/reference/arrayAssignmentTest2.js @@ -71,7 +71,7 @@ var C1 = (function () { C1.prototype.IM1 = function () { return null; }; C1.prototype.C1M1 = function () { return null; }; return C1; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { @@ -79,13 +79,13 @@ var C2 = (function (_super) { } C2.prototype.C2M1 = function () { return null; }; return C2; -})(C1); +}(C1)); var C3 = (function () { function C3() { } C3.prototype.CM3M1 = function () { return 3; }; return C3; -})(); +}()); /* This behaves unexpectedly with the following types: diff --git a/tests/baselines/reference/arrayAssignmentTest3.js b/tests/baselines/reference/arrayAssignmentTest3.js index 74cd6662623..6e586c738d7 100644 --- a/tests/baselines/reference/arrayAssignmentTest3.js +++ b/tests/baselines/reference/arrayAssignmentTest3.js @@ -22,12 +22,12 @@ var B = (function () { function B() { } return B; -})(); +}()); var a = (function () { function a(x, y, z) { this.x = x; this.y = y; } return a; -})(); +}()); var xx = new a(null, 7, new B()); diff --git a/tests/baselines/reference/arrayAssignmentTest4.js b/tests/baselines/reference/arrayAssignmentTest4.js index c38cdebc06c..6cc59bdece4 100644 --- a/tests/baselines/reference/arrayAssignmentTest4.js +++ b/tests/baselines/reference/arrayAssignmentTest4.js @@ -32,7 +32,7 @@ var C3 = (function () { } C3.prototype.CM3M1 = function () { return 3; }; return C3; -})(); +}()); /* This behaves unexpectedly with teh following types: diff --git a/tests/baselines/reference/arrayAssignmentTest5.js b/tests/baselines/reference/arrayAssignmentTest5.js index a4775536783..f5bd3e882b5 100644 --- a/tests/baselines/reference/arrayAssignmentTest5.js +++ b/tests/baselines/reference/arrayAssignmentTest5.js @@ -50,6 +50,6 @@ var Test; return null; }; return Bug; - })(); + }()); Test.Bug = Bug; })(Test || (Test = {})); diff --git a/tests/baselines/reference/arrayAssignmentTest6.js b/tests/baselines/reference/arrayAssignmentTest6.js index b8ee0c31946..1e24137ddba 100644 --- a/tests/baselines/reference/arrayAssignmentTest6.js +++ b/tests/baselines/reference/arrayAssignmentTest6.js @@ -30,6 +30,6 @@ var Test; return null; }; return Bug; - })(); + }()); Test.Bug = Bug; })(Test || (Test = {})); diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js index 95dd299ad43..f45f67a8765 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.js +++ b/tests/baselines/reference/arrayBestCommonTypes.js @@ -119,19 +119,19 @@ var EmptyTypes; function base() { } return base; - })(); + }()); var base2 = (function () { function base2() { } return base2; - })(); + }()); var derived = (function (_super) { __extends(derived, _super); function derived() { _super.apply(this, arguments); } return derived; - })(base); + }(base)); var f = (function () { function f() { } @@ -170,7 +170,7 @@ var EmptyTypes; var b4 = [ifaceObj, baseObj, base2Obj]; }; return f; - })(); + }()); })(EmptyTypes || (EmptyTypes = {})); var NonEmptyTypes; (function (NonEmptyTypes) { @@ -178,19 +178,19 @@ var NonEmptyTypes; function base() { } return base; - })(); + }()); var base2 = (function () { function base2() { } return base2; - })(); + }()); var derived = (function (_super) { __extends(derived, _super); function derived() { _super.apply(this, arguments); } return derived; - })(base); + }(base)); var f = (function () { function f() { } @@ -229,5 +229,5 @@ var NonEmptyTypes; var b4 = [ifaceObj, baseObj, base2Obj]; }; return f; - })(); + }()); })(NonEmptyTypes || (NonEmptyTypes = {})); diff --git a/tests/baselines/reference/arrayBufferIsViewNarrowsType.types b/tests/baselines/reference/arrayBufferIsViewNarrowsType.types index 129b7d601d8..b9d4f3db81b 100644 --- a/tests/baselines/reference/arrayBufferIsViewNarrowsType.types +++ b/tests/baselines/reference/arrayBufferIsViewNarrowsType.types @@ -4,7 +4,7 @@ var obj: Object; >Object : Object if (ArrayBuffer.isView(obj)) { ->ArrayBuffer.isView(obj) : boolean +>ArrayBuffer.isView(obj) : arg is ArrayBufferView >ArrayBuffer.isView : (arg: any) => arg is ArrayBufferView >ArrayBuffer : ArrayBufferConstructor >isView : (arg: any) => arg is ArrayBufferView diff --git a/tests/baselines/reference/arrayLiteralContextualType.js b/tests/baselines/reference/arrayLiteralContextualType.js index 0edf5c45164..8d42bc20928 100644 --- a/tests/baselines/reference/arrayLiteralContextualType.js +++ b/tests/baselines/reference/arrayLiteralContextualType.js @@ -36,14 +36,14 @@ var Giraffe = (function () { this.neckLength = "3m"; } return Giraffe; -})(); +}()); var Elephant = (function () { function Elephant() { this.name = "Elephant"; this.trunkDiameter = "20cm"; } return Elephant; -})(); +}()); function foo(animals) { } function bar(animals) { } foo([ diff --git a/tests/baselines/reference/arrayLiteralTypeInference.js b/tests/baselines/reference/arrayLiteralTypeInference.js index fc573aa390e..f54dec83c9c 100644 --- a/tests/baselines/reference/arrayLiteralTypeInference.js +++ b/tests/baselines/reference/arrayLiteralTypeInference.js @@ -61,21 +61,21 @@ var Action = (function () { function Action() { } return Action; -})(); +}()); var ActionA = (function (_super) { __extends(ActionA, _super); function ActionA() { _super.apply(this, arguments); } return ActionA; -})(Action); +}(Action)); var ActionB = (function (_super) { __extends(ActionB, _super); function ActionB() { _super.apply(this, arguments); } return ActionB; -})(Action); +}(Action)); var x1 = [ { id: 2, trueness: false }, { id: 3, name: "three" } diff --git a/tests/baselines/reference/arrayLiterals.js b/tests/baselines/reference/arrayLiterals.js index 0f86b7a7f2a..4dbf88f8688 100644 --- a/tests/baselines/reference/arrayLiterals.js +++ b/tests/baselines/reference/arrayLiterals.js @@ -54,7 +54,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var classArr = [new C(), new C()]; var classTypeArray = [C, C, C]; var classTypeArray; // Should OK, not be a parse error @@ -66,14 +66,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { _super.apply(this, arguments); } return Derived1; -})(Base); +}(Base)); ; var Derived2 = (function (_super) { __extends(Derived2, _super); @@ -81,7 +81,7 @@ var Derived2 = (function (_super) { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); ; var context3 = [new Derived1(), new Derived2()]; // Contextual type C with numeric index signature of type Base makes array literal of Derived1 and Derived2 have type Base[] diff --git a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js index e303415df08..c15782a8e20 100644 --- a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js +++ b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js @@ -35,19 +35,19 @@ var List = (function () { function List() { } return List; -})(); +}()); var DerivedList = (function (_super) { __extends(DerivedList, _super); function DerivedList() { _super.apply(this, arguments); } return DerivedList; -})(List); +}(List)); var MyList = (function () { function MyList() { } return MyList; -})(); +}()); var list; var list2; var myList; diff --git a/tests/baselines/reference/arrayOfExportedClass.js b/tests/baselines/reference/arrayOfExportedClass.js index e86a83ee95d..f305aacbe65 100644 --- a/tests/baselines/reference/arrayOfExportedClass.js +++ b/tests/baselines/reference/arrayOfExportedClass.js @@ -30,7 +30,7 @@ var Car = (function () { function Car() { } return Car; -})(); +}()); module.exports = Car; //// [arrayOfExportedClass_1.js] "use strict"; @@ -41,5 +41,5 @@ var Road = (function () { this.cars = cars; }; return Road; -})(); +}()); module.exports = Road; diff --git a/tests/baselines/reference/arrayOfFunctionTypes3.js b/tests/baselines/reference/arrayOfFunctionTypes3.js index c0829418dd7..5a822e67508 100644 --- a/tests/baselines/reference/arrayOfFunctionTypes3.js +++ b/tests/baselines/reference/arrayOfFunctionTypes3.js @@ -34,7 +34,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var y = [C, C]; var r3 = new y[0](); var a; diff --git a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js index 6fcdae657e9..3d427bfa9b4 100644 --- a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js +++ b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js @@ -9,4 +9,4 @@ var X = (function () { } X.prototype.f = function (a) { }; return X; -})(); +}()); diff --git a/tests/baselines/reference/arrayconcat.js b/tests/baselines/reference/arrayconcat.js index fd527d87c3c..76250642a59 100644 --- a/tests/baselines/reference/arrayconcat.js +++ b/tests/baselines/reference/arrayconcat.js @@ -48,4 +48,4 @@ var parser = (function () { }); }; return parser; -})(); +}()); diff --git a/tests/baselines/reference/arrowFunctionContexts.js b/tests/baselines/reference/arrowFunctionContexts.js index 5d862dcec8c..7b424107bd1 100644 --- a/tests/baselines/reference/arrowFunctionContexts.js +++ b/tests/baselines/reference/arrowFunctionContexts.js @@ -111,7 +111,7 @@ var Base = (function () { function Base(n) { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -119,7 +119,7 @@ var Derived = (function (_super) { _super.call(this, function () { return _this; }); } return Derived; -})(Base); +}(Base)); // Arrow function as function argument window.setTimeout(function () { return null; }, 100); // Arrow function as value in array literal @@ -151,7 +151,7 @@ var M2; function Base(n) { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -159,7 +159,7 @@ var M2; _super.call(this, function () { return _this; }); } return Derived; - })(Base); + }(Base)); // Arrow function as function argument window.setTimeout(function () { return null; }, 100); // Arrow function as value in array literal diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index 5e365291da7..66f53d32dba 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -156,7 +156,7 @@ var MyClass = (function () { var p = function (n) { return n && _this; }; }; return MyClass; -})(); +}()); // Arrow function used in arrow function var arrrr = function () { return function (m) { return function () { return function (n) { return m + n; }; }; }; }; var e = arrrr()(3)()(4); diff --git a/tests/baselines/reference/arrowFunctionInConstructorArgument1.js b/tests/baselines/reference/arrowFunctionInConstructorArgument1.js index 0f9c3f81b3b..9d1c8f9d995 100644 --- a/tests/baselines/reference/arrowFunctionInConstructorArgument1.js +++ b/tests/baselines/reference/arrowFunctionInConstructorArgument1.js @@ -10,5 +10,5 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var c = new C(function () { return asdf; }); // should error diff --git a/tests/baselines/reference/asOperatorASI.js b/tests/baselines/reference/asOperatorASI.js index 1df39b36e50..10b6f90f714 100644 --- a/tests/baselines/reference/asOperatorASI.js +++ b/tests/baselines/reference/asOperatorASI.js @@ -16,7 +16,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); // Example 1 var x = 10; (_a = ["Hello world"], _a.raw = ["Hello world"], as(_a)); // should not error diff --git a/tests/baselines/reference/asiAbstract.js b/tests/baselines/reference/asiAbstract.js index 8d5b412d022..c17e1911e4e 100644 --- a/tests/baselines/reference/asiAbstract.js +++ b/tests/baselines/reference/asiAbstract.js @@ -21,16 +21,16 @@ var NonAbstractClass = (function () { function NonAbstractClass() { } return NonAbstractClass; -})(); +}()); var C2 = (function () { function C2() { } C2.prototype.nonAbstractFunction = function () { }; return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); diff --git a/tests/baselines/reference/asiInES6Classes.js b/tests/baselines/reference/asiInES6Classes.js index df4b0288d8a..d315809d256 100644 --- a/tests/baselines/reference/asiInES6Classes.js +++ b/tests/baselines/reference/asiInES6Classes.js @@ -33,4 +33,4 @@ var Foo = (function () { return 3; }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/asiPublicPrivateProtected.js b/tests/baselines/reference/asiPublicPrivateProtected.js index a17bcb7509a..12faef5316b 100644 --- a/tests/baselines/reference/asiPublicPrivateProtected.js +++ b/tests/baselines/reference/asiPublicPrivateProtected.js @@ -48,14 +48,14 @@ var NonPublicClass = (function () { NonPublicClass.prototype.s = function () { }; return NonPublicClass; -})(); +}()); var NonPublicClass2 = (function () { function NonPublicClass2() { } NonPublicClass2.prototype.nonPublicFunction = function () { }; return NonPublicClass2; -})(); +}()); private; var NonPrivateClass = (function () { function NonPrivateClass() { @@ -63,14 +63,14 @@ var NonPrivateClass = (function () { NonPrivateClass.prototype.s = function () { }; return NonPrivateClass; -})(); +}()); var NonPrivateClass2 = (function () { function NonPrivateClass2() { } NonPrivateClass2.prototype.nonPrivateFunction = function () { }; return NonPrivateClass2; -})(); +}()); protected; var NonProtectedClass = (function () { function NonProtectedClass() { @@ -78,16 +78,16 @@ var NonProtectedClass = (function () { NonProtectedClass.prototype.s = function () { }; return NonProtectedClass; -})(); +}()); var NonProtectedClass2 = (function () { function NonProtectedClass2() { } NonProtectedClass2.prototype.nonProtectedFunction = function () { }; return NonProtectedClass2; -})(); +}()); var ClassWithThreeMembers = (function () { function ClassWithThreeMembers() { } return ClassWithThreeMembers; -})(); +}()); diff --git a/tests/baselines/reference/assertInWrapSomeTypeParameter.errors.txt b/tests/baselines/reference/assertInWrapSomeTypeParameter.errors.txt index c5492e42e42..a7d1630c50e 100644 --- a/tests/baselines/reference/assertInWrapSomeTypeParameter.errors.txt +++ b/tests/baselines/reference/assertInWrapSomeTypeParameter.errors.txt @@ -1,11 +1,8 @@ -tests/cases/compiler/assertInWrapSomeTypeParameter.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/assertInWrapSomeTypeParameter.ts(2,26): error TS1005: '>' expected. -==== tests/cases/compiler/assertInWrapSomeTypeParameter.ts (2 errors) ==== +==== tests/cases/compiler/assertInWrapSomeTypeParameter.ts (1 errors) ==== class C> { - ~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo>(x: U) { ~ !!! error TS1005: '>' expected. diff --git a/tests/baselines/reference/assertInWrapSomeTypeParameter.js b/tests/baselines/reference/assertInWrapSomeTypeParameter.js index efb7d31a86a..698ba439ab7 100644 --- a/tests/baselines/reference/assertInWrapSomeTypeParameter.js +++ b/tests/baselines/reference/assertInWrapSomeTypeParameter.js @@ -13,4 +13,4 @@ var C = (function () { return null; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/assignAnyToEveryType.js b/tests/baselines/reference/assignAnyToEveryType.js index 94b8067ddd7..3feade2c911 100644 --- a/tests/baselines/reference/assignAnyToEveryType.js +++ b/tests/baselines/reference/assignAnyToEveryType.js @@ -67,7 +67,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var h = x; var i = x; var j = x; diff --git a/tests/baselines/reference/assignEveryTypeToAny.js b/tests/baselines/reference/assignEveryTypeToAny.js index bbe622b3300..408d7992913 100644 --- a/tests/baselines/reference/assignEveryTypeToAny.js +++ b/tests/baselines/reference/assignEveryTypeToAny.js @@ -86,7 +86,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var h; x = h; var i; diff --git a/tests/baselines/reference/assignToExistingClass.js b/tests/baselines/reference/assignToExistingClass.js index f12979f3142..3e21479186d 100644 --- a/tests/baselines/reference/assignToExistingClass.js +++ b/tests/baselines/reference/assignToExistingClass.js @@ -22,7 +22,7 @@ var Test; function Mocked() { } return Mocked; - })(); + }()); var Tester = (function () { function Tester() { } @@ -32,5 +32,5 @@ var Test; }; }; return Tester; - })(); + }()); })(Test || (Test = {})); diff --git a/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js b/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js index 487591bc81e..48bb9f1131a 100644 --- a/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js +++ b/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js @@ -8,6 +8,6 @@ var XEvent = (function () { function XEvent() { } return XEvent; -})(); +}()); var p = XEvent.prototype; var x = XEvent; diff --git a/tests/baselines/reference/assignmentCompatBug3.js b/tests/baselines/reference/assignmentCompatBug3.js index 049e7090335..a72ea1d439e 100644 --- a/tests/baselines/reference/assignmentCompatBug3.js +++ b/tests/baselines/reference/assignmentCompatBug3.js @@ -48,7 +48,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); function foo(test) { } var x; var y; diff --git a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js index bb6817bb60e..68d14d9f0c8 100644 --- a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js +++ b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js @@ -22,6 +22,6 @@ var Foo = (function () { } Foo.prototype.Boz = function () { }; return Foo; -})(); +}()); function Biz(map) { } Biz(new Foo()); diff --git a/tests/baselines/reference/assignmentCompatOnNew.js b/tests/baselines/reference/assignmentCompatOnNew.js index 1b8cfdcc3bf..6b553fef446 100644 --- a/tests/baselines/reference/assignmentCompatOnNew.js +++ b/tests/baselines/reference/assignmentCompatOnNew.js @@ -11,7 +11,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); ; function bar(x) { } bar(Foo); // Error, but should be allowed diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js index 6f2eaf4d5cc..24f95ec61ea 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js @@ -110,28 +110,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var a; var a2; var a3; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js index fc6ca05ad30..43608565039 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js @@ -111,28 +111,28 @@ var Errors; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Derived); + }(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; - })(Base); + }(Base)); var WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { // target type with non-generic call signatures diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js index ddf16c23f48..b3318dd53e8 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js @@ -76,28 +76,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var a; var a2; var a3; diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js index e57a5ac07a0..becbfea57a0 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js @@ -53,28 +53,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var x; var b; x.a = b; diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures.errors.txt b/tests/baselines/reference/assignmentCompatWithConstructSignatures.errors.txt index 9c0c0d6a8fd..8e285d414e5 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures.errors.txt +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures.errors.txt @@ -1,11 +1,19 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(28,1): error TS2322: Type 'S2' is not assignable to type 'T'. + Type 'S2' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(29,1): error TS2322: Type '(x: string) => void' is not assignable to type 'T'. + Type '(x: string) => void' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(30,1): error TS2322: Type '(x: string) => number' is not assignable to type 'T'. + Type '(x: string) => number' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(31,1): error TS2322: Type '(x: string) => string' is not assignable to type 'T'. + Type '(x: string) => string' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(32,1): error TS2322: Type 'S2' is not assignable to type 'new (x: number) => void'. + Type 'S2' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(33,1): error TS2322: Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. + Type '(x: string) => void' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(34,1): error TS2322: Type '(x: string) => number' is not assignable to type 'new (x: number) => void'. + Type '(x: string) => number' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts(35,1): error TS2322: Type '(x: string) => string' is not assignable to type 'new (x: number) => void'. + Type '(x: string) => string' provides no match for the signature 'new (x: number): void' ==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures.ts (8 errors) ==== @@ -39,25 +47,33 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme t = s2; ~ !!! error TS2322: Type 'S2' is not assignable to type 'T'. +!!! error TS2322: Type 'S2' provides no match for the signature 'new (x: number): void' t = a3; ~ !!! error TS2322: Type '(x: string) => void' is not assignable to type 'T'. +!!! error TS2322: Type '(x: string) => void' provides no match for the signature 'new (x: number): void' t = (x: string) => 1; ~ !!! error TS2322: Type '(x: string) => number' is not assignable to type 'T'. +!!! error TS2322: Type '(x: string) => number' provides no match for the signature 'new (x: number): void' t = function (x: string) { return ''; } ~ !!! error TS2322: Type '(x: string) => string' is not assignable to type 'T'. +!!! error TS2322: Type '(x: string) => string' provides no match for the signature 'new (x: number): void' a = s2; ~ !!! error TS2322: Type 'S2' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type 'S2' provides no match for the signature 'new (x: number): void' a = a3; ~ !!! error TS2322: Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type '(x: string) => void' provides no match for the signature 'new (x: number): void' a = (x: string) => 1; ~ !!! error TS2322: Type '(x: string) => number' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type '(x: string) => number' provides no match for the signature 'new (x: number): void' a = function (x: string) { return ''; } ~ !!! error TS2322: Type '(x: string) => string' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type '(x: string) => string' provides no match for the signature 'new (x: number): void' \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures2.errors.txt b/tests/baselines/reference/assignmentCompatWithConstructSignatures2.errors.txt index 5e8fc6dd3a4..eacf758d935 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures2.errors.txt +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures2.errors.txt @@ -9,9 +9,11 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(34,1): error TS2322: Type 'S2' is not assignable to type 'T'. Types of property 'f' are incompatible. Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. + Type '(x: string) => void' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(35,1): error TS2322: Type '{ f(x: string): void; }' is not assignable to type 'T'. Types of property 'f' are incompatible. Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. + Type '(x: string) => void' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(36,1): error TS2322: Type '(x: string) => number' is not assignable to type 'T'. Property 'f' is missing in type '(x: string) => number'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(37,1): error TS2322: Type '(x: string) => string' is not assignable to type 'T'. @@ -19,9 +21,11 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(38,1): error TS2322: Type 'S2' is not assignable to type '{ f: new (x: number) => void; }'. Types of property 'f' are incompatible. Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. + Type '(x: string) => void' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(39,1): error TS2322: Type '{ f(x: string): void; }' is not assignable to type '{ f: new (x: number) => void; }'. Types of property 'f' are incompatible. Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. + Type '(x: string) => void' provides no match for the signature 'new (x: number): void' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(40,1): error TS2322: Type '(x: string) => number' is not assignable to type '{ f: new (x: number) => void; }'. Property 'f' is missing in type '(x: string) => number'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures2.ts(41,1): error TS2322: Type '(x: string) => string' is not assignable to type '{ f: new (x: number) => void; }'. @@ -79,11 +83,13 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme !!! error TS2322: Type 'S2' is not assignable to type 'T'. !!! error TS2322: Types of property 'f' are incompatible. !!! error TS2322: Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type '(x: string) => void' provides no match for the signature 'new (x: number): void' t = a3; ~ !!! error TS2322: Type '{ f(x: string): void; }' is not assignable to type 'T'. !!! error TS2322: Types of property 'f' are incompatible. !!! error TS2322: Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type '(x: string) => void' provides no match for the signature 'new (x: number): void' t = (x: string) => 1; ~ !!! error TS2322: Type '(x: string) => number' is not assignable to type 'T'. @@ -97,11 +103,13 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme !!! error TS2322: Type 'S2' is not assignable to type '{ f: new (x: number) => void; }'. !!! error TS2322: Types of property 'f' are incompatible. !!! error TS2322: Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type '(x: string) => void' provides no match for the signature 'new (x: number): void' a = a3; ~ !!! error TS2322: Type '{ f(x: string): void; }' is not assignable to type '{ f: new (x: number) => void; }'. !!! error TS2322: Types of property 'f' are incompatible. !!! error TS2322: Type '(x: string) => void' is not assignable to type 'new (x: number) => void'. +!!! error TS2322: Type '(x: string) => void' provides no match for the signature 'new (x: number): void' a = (x: string) => 1; ~ !!! error TS2322: Type '(x: string) => number' is not assignable to type '{ f: new (x: number) => void; }'. diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js index d02c635c584..d062a563a4d 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js @@ -110,28 +110,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var a; var a2; var a3; diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.errors.txt b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.errors.txt index 804e31600e1..6cd40f6c8c1 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.errors.txt +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.errors.txt @@ -11,12 +11,14 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(77,9): error TS2322: Type 'new (x: (a: T) => T) => T[]' is not assignable to type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }'. Types of parameters 'x' and 'x' are incompatible. Type '(a: any) => any' is not assignable to type '{ new (a: number): number; new (a?: number): number; }'. + Type '(a: any) => any' provides no match for the signature 'new (a: number): number' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(78,9): error TS2322: Type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }' is not assignable to type 'new (x: (a: T) => T) => T[]'. Types of parameters 'x' and 'x' are incompatible. Type '{ new (a: number): number; new (a?: number): number; }' is not assignable to type '(a: any) => any'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(81,9): error TS2322: Type 'new (x: (a: T) => T) => any[]' is not assignable to type '{ new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; }'. Types of parameters 'x' and 'x' are incompatible. Type '(a: any) => any' is not assignable to type '{ new (a: T): T; new (a: T): T; }'. + Type '(a: any) => any' provides no match for the signature 'new (a: T): T' tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(82,9): error TS2322: Type '{ new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; }' is not assignable to type 'new (x: (a: T) => T) => any[]'. Types of parameters 'x' and 'x' are incompatible. Type '{ new (a: T): T; new (a: T): T; }' is not assignable to type '(a: any) => any'. @@ -116,6 +118,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme !!! error TS2322: Type 'new (x: (a: T) => T) => T[]' is not assignable to type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }'. !!! error TS2322: Types of parameters 'x' and 'x' are incompatible. !!! error TS2322: Type '(a: any) => any' is not assignable to type '{ new (a: number): number; new (a?: number): number; }'. +!!! error TS2322: Type '(a: any) => any' provides no match for the signature 'new (a: number): number' b16 = a16; // error ~~~ !!! error TS2322: Type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }' is not assignable to type 'new (x: (a: T) => T) => T[]'. @@ -128,6 +131,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme !!! error TS2322: Type 'new (x: (a: T) => T) => any[]' is not assignable to type '{ new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; }'. !!! error TS2322: Types of parameters 'x' and 'x' are incompatible. !!! error TS2322: Type '(a: any) => any' is not assignable to type '{ new (a: T): T; new (a: T): T; }'. +!!! error TS2322: Type '(a: any) => any' provides no match for the signature 'new (a: T): T' b17 = a17; // error ~~~ !!! error TS2322: Type '{ new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; }' is not assignable to type 'new (x: (a: T) => T) => any[]'. diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js index 6f9f20333f2..5744424f878 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js @@ -111,28 +111,28 @@ var Errors; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Derived); + }(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; - })(Base); + }(Base)); var WithNonGenericSignaturesInBaseType; (function (WithNonGenericSignaturesInBaseType) { // target type with non-generic call signatures diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js index bd4c73e65dd..de42671c9f1 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js @@ -76,28 +76,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var a; var a2; var a3; diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js index 98477fa1523..206ae7768ba 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js @@ -53,28 +53,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var x; var b; x.a = b; diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.errors.txt b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.errors.txt deleted file mode 100644 index bc82b0fa69c..00000000000 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures4.ts(7,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures4.ts(8,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures4.ts (2 errors) ==== - // some complex cases of assignment compat of generic signatures. - - interface I2 { - p: T - } - - var x: >(z: T) => void - ~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var y: >>(z: T) => void - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - // These both do not make sense as we would eventually be comparing I2 to I2>, and they are self referencing anyway - x = y - y = x - \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.symbols b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.symbols new file mode 100644 index 00000000000..bcea8fbbb27 --- /dev/null +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.symbols @@ -0,0 +1,38 @@ +=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures4.ts === +// some complex cases of assignment compat of generic signatures. + +interface I2 { +>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 2, 13)) + + p: T +>p : Symbol(p, Decl(assignmentCompatWithGenericCallSignatures4.ts, 2, 17)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 2, 13)) +} + +var x: >(z: T) => void +>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 3)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 8)) +>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 8)) +>z : Symbol(z, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 25)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 8)) + +var y: >>(z: T) => void +>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 3)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 8)) +>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0)) +>I2 : Symbol(I2, Decl(assignmentCompatWithGenericCallSignatures4.ts, 0, 0)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 8)) +>z : Symbol(z, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 29)) +>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 8)) + +// These both do not make sense as we would eventually be comparing I2 to I2>, and they are self referencing anyway +x = y +>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 3)) +>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 3)) + +y = x +>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures4.ts, 7, 3)) +>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures4.ts, 6, 3)) + diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.types b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.types new file mode 100644 index 00000000000..38485a78463 --- /dev/null +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures4.types @@ -0,0 +1,40 @@ +=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures4.ts === +// some complex cases of assignment compat of generic signatures. + +interface I2 { +>I2 : I2 +>T : T + + p: T +>p : T +>T : T +} + +var x: >(z: T) => void +>x : >(z: T) => void +>T : T +>I2 : I2 +>T : T +>z : T +>T : T + +var y: >>(z: T) => void +>y : >>(z: T) => void +>T : T +>I2 : I2 +>I2 : I2 +>T : T +>z : T +>T : T + +// These both do not make sense as we would eventually be comparing I2 to I2>, and they are self referencing anyway +x = y +>x = y : >>(z: T) => void +>x : >(z: T) => void +>y : >>(z: T) => void + +y = x +>y = x : >(z: T) => void +>y : >>(z: T) => void +>x : >(z: T) => void + diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js b/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js index f5a3499c8cc..87977de1ab9 100644 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.js @@ -159,7 +159,7 @@ var ClassTypeParam; }; } return Base; - })(); + }()); })(ClassTypeParam || (ClassTypeParam = {})); var GenericSignaturesInvalid; (function (GenericSignaturesInvalid) { @@ -167,12 +167,12 @@ var GenericSignaturesInvalid; function Base2() { } return Base2; - })(); + }()); var Target = (function () { function Target() { } return Target; - })(); + }()); function foo() { var b; var t; @@ -231,5 +231,5 @@ var GenericSignaturesValid; }; } return Base2; - })(); + }()); })(GenericSignaturesValid || (GenericSignaturesValid = {})); diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js index 617d136bbb2..56b206786f1 100644 --- a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js +++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js @@ -54,7 +54,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var a; var b; a = b; @@ -68,14 +68,14 @@ var Generics; function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); function foo() { var a; var b; diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js index 0c5b0be038f..53f92dd3b59 100644 --- a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js +++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js @@ -51,7 +51,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var a; var b; a = b; // error @@ -62,7 +62,7 @@ var B2 = (function (_super) { _super.apply(this, arguments); } return B2; -})(A); +}(A)); var b2; a = b2; // ok b2 = a; // error @@ -72,7 +72,7 @@ var Generics; function A() { } return A; - })(); + }()); function foo() { var a; var b; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers.js b/tests/baselines/reference/assignmentCompatWithObjectMembers.js index 3bd457f19d3..2bef0f9f5c4 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers.js @@ -94,12 +94,12 @@ var SimpleTypes; function S() { } return S; - })(); + }()); var T = (function () { function T() { } return T; - })(); + }()); var s; var t; var s2; @@ -134,12 +134,12 @@ var ObjectTypes; function S() { } return S; - })(); + }()); var T = (function () { function T() { } return T; - })(); + }()); var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers2.js b/tests/baselines/reference/assignmentCompatWithObjectMembers2.js index ea565e9545c..d1eda3808fe 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers2.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers2.js @@ -49,12 +49,12 @@ var S = (function () { function S() { } return S; -})(); +}()); var T = (function () { function T() { } return T; -})(); +}()); var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers3.js b/tests/baselines/reference/assignmentCompatWithObjectMembers3.js index 091a1e53d15..82b72c84485 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers3.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers3.js @@ -49,12 +49,12 @@ var S = (function () { function S() { } return S; -})(); +}()); var T = (function () { function T() { } return T; -})(); +}()); var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js index 20279fb1dc5..092de2ca707 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js @@ -104,31 +104,31 @@ var OnlyDerived; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Base); + }(Base)); var S = (function () { function S() { } return S; - })(); + }()); var T = (function () { function T() { } return T; - })(); + }()); var s; var t; var s2; @@ -163,31 +163,31 @@ var WithBase; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Base); + }(Base)); var S = (function () { function S() { } return S; - })(); + }()); var T = (function () { function T() { } return T; - })(); + }()); var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers5.js b/tests/baselines/reference/assignmentCompatWithObjectMembers5.js index d7556298414..9ed799abdb2 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers5.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers5.js @@ -19,7 +19,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var i; c = i; // error diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js b/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js index 3363ed70890..e876ba575be 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersAccessibility.js @@ -118,7 +118,7 @@ var TargetIsPublic; function Base() { } return Base; - })(); + }()); var a; var b; var i; @@ -127,12 +127,12 @@ var TargetIsPublic; function D() { } return D; - })(); + }()); var E = (function () { function E() { } return E; - })(); + }()); var d; var e; a = b; @@ -164,7 +164,7 @@ var TargetIsPublic; function Base() { } return Base; - })(); + }()); var a; var b; var i; @@ -173,12 +173,12 @@ var TargetIsPublic; function D() { } return D; - })(); + }()); var E = (function () { function E() { } return E; - })(); + }()); var d; var e; a = b; // error diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js b/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js index 2a1a08a97ed..92f088c2f10 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.js @@ -49,12 +49,12 @@ var S = (function () { function S() { } return S; -})(); +}()); var T = (function () { function T() { } return T; -})(); +}()); var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js index 6675fab6d69..791ae494ab2 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js @@ -99,21 +99,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var TargetHasOptional; (function (TargetHasOptional) { var c; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js index b89106eba2b..d93ddf8b3a4 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js @@ -101,21 +101,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var TargetHasOptional; (function (TargetHasOptional) { var c; diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js b/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js index a042897ba57..80d0ac84de7 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersStringNumericNames.js @@ -94,12 +94,12 @@ var JustStrings; function S() { } return S; - })(); + }()); var T = (function () { function T() { } return T; - })(); + }()); var s; var t; var s2; @@ -134,12 +134,12 @@ var NumbersAndStrings; function S() { } return S; - })(); + }()); var T = (function () { function T() { } return T; - })(); + }()); var s; var t; var s2; diff --git a/tests/baselines/reference/assignmentCompatWithOverloads.js b/tests/baselines/reference/assignmentCompatWithOverloads.js index ca3dc0e2294..68dd818e4a8 100644 --- a/tests/baselines/reference/assignmentCompatWithOverloads.js +++ b/tests/baselines/reference/assignmentCompatWithOverloads.js @@ -44,6 +44,6 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var d; d = C; // Error diff --git a/tests/baselines/reference/assignmentCompatWithStringIndexer.js b/tests/baselines/reference/assignmentCompatWithStringIndexer.js index 3391ac5773a..ef6befe268e 100644 --- a/tests/baselines/reference/assignmentCompatWithStringIndexer.js +++ b/tests/baselines/reference/assignmentCompatWithStringIndexer.js @@ -64,7 +64,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var a; var b; a = b; // ok @@ -78,14 +78,14 @@ var Generics; function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var b1; var a1; a1 = b1; // ok @@ -96,7 +96,7 @@ var Generics; _super.apply(this, arguments); } return B2; - })(A); + }(A)); var b2; a1 = b2; // ok b2 = a1; // error diff --git a/tests/baselines/reference/assignmentCompatWithStringIndexer3.js b/tests/baselines/reference/assignmentCompatWithStringIndexer3.js index 15263428884..f0a3439f25f 100644 --- a/tests/baselines/reference/assignmentCompatWithStringIndexer3.js +++ b/tests/baselines/reference/assignmentCompatWithStringIndexer3.js @@ -35,7 +35,7 @@ var Generics; function A() { } return A; - })(); + }()); function foo() { var a; var b; diff --git a/tests/baselines/reference/assignmentCompatability10.js b/tests/baselines/reference/assignmentCompatability10.js index bbcc8e879e3..bde7af81e2c 100644 --- a/tests/baselines/reference/assignmentCompatability10.js +++ b/tests/baselines/reference/assignmentCompatability10.js @@ -25,7 +25,7 @@ var __test2__; this.two = two; } return classWithPublicAndOptional; - })(); + }()); __test2__.classWithPublicAndOptional = classWithPublicAndOptional; var x4 = new classWithPublicAndOptional(1); ; diff --git a/tests/baselines/reference/assignmentCompatability24.errors.txt b/tests/baselines/reference/assignmentCompatability24.errors.txt index 0f4a535d413..e49f0803b04 100644 --- a/tests/baselines/reference/assignmentCompatability24.errors.txt +++ b/tests/baselines/reference/assignmentCompatability24.errors.txt @@ -1,4 +1,5 @@ tests/cases/compiler/assignmentCompatability24.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tstring) => Tstring'. + Type 'interfaceWithPublicAndOptional' provides no match for the signature '(a: Tstring): Tstring' ==== tests/cases/compiler/assignmentCompatability24.ts (1 errors) ==== @@ -12,4 +13,5 @@ tests/cases/compiler/assignmentCompatability24.ts(9,1): error TS2322: Type 'inte } __test2__.__val__obj = __test1__.__val__obj4 ~~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tstring) => Tstring'. \ No newline at end of file +!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tstring) => Tstring'. +!!! error TS2322: Type 'interfaceWithPublicAndOptional' provides no match for the signature '(a: Tstring): Tstring' \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatability33.errors.txt b/tests/baselines/reference/assignmentCompatability33.errors.txt index e2352625280..386b3c5e292 100644 --- a/tests/baselines/reference/assignmentCompatability33.errors.txt +++ b/tests/baselines/reference/assignmentCompatability33.errors.txt @@ -1,4 +1,5 @@ tests/cases/compiler/assignmentCompatability33.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tstring) => Tstring'. + Type 'interfaceWithPublicAndOptional' provides no match for the signature '(a: Tstring): Tstring' ==== tests/cases/compiler/assignmentCompatability33.ts (1 errors) ==== @@ -12,4 +13,5 @@ tests/cases/compiler/assignmentCompatability33.ts(9,1): error TS2322: Type 'inte } __test2__.__val__obj = __test1__.__val__obj4 ~~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tstring) => Tstring'. \ No newline at end of file +!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tstring) => Tstring'. +!!! error TS2322: Type 'interfaceWithPublicAndOptional' provides no match for the signature '(a: Tstring): Tstring' \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatability34.errors.txt b/tests/baselines/reference/assignmentCompatability34.errors.txt index 2dd9cba6470..fa91456b286 100644 --- a/tests/baselines/reference/assignmentCompatability34.errors.txt +++ b/tests/baselines/reference/assignmentCompatability34.errors.txt @@ -1,4 +1,5 @@ tests/cases/compiler/assignmentCompatability34.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tnumber) => Tnumber'. + Type 'interfaceWithPublicAndOptional' provides no match for the signature '(a: Tnumber): Tnumber' ==== tests/cases/compiler/assignmentCompatability34.ts (1 errors) ==== @@ -12,4 +13,5 @@ tests/cases/compiler/assignmentCompatability34.ts(9,1): error TS2322: Type 'inte } __test2__.__val__obj = __test1__.__val__obj4 ~~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tnumber) => Tnumber'. \ No newline at end of file +!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type '(a: Tnumber) => Tnumber'. +!!! error TS2322: Type 'interfaceWithPublicAndOptional' provides no match for the signature '(a: Tnumber): Tnumber' \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatability37.errors.txt b/tests/baselines/reference/assignmentCompatability37.errors.txt index 452b72fe8ff..194e216f1ee 100644 --- a/tests/baselines/reference/assignmentCompatability37.errors.txt +++ b/tests/baselines/reference/assignmentCompatability37.errors.txt @@ -1,4 +1,5 @@ tests/cases/compiler/assignmentCompatability37.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type 'new (param: Tnumber) => any'. + Type 'interfaceWithPublicAndOptional' provides no match for the signature 'new (param: Tnumber): any' ==== tests/cases/compiler/assignmentCompatability37.ts (1 errors) ==== @@ -12,4 +13,5 @@ tests/cases/compiler/assignmentCompatability37.ts(9,1): error TS2322: Type 'inte } __test2__.__val__aa = __test1__.__val__obj4 ~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type 'new (param: Tnumber) => any'. \ No newline at end of file +!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type 'new (param: Tnumber) => any'. +!!! error TS2322: Type 'interfaceWithPublicAndOptional' provides no match for the signature 'new (param: Tnumber): any' \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatability38.errors.txt b/tests/baselines/reference/assignmentCompatability38.errors.txt index 5f7918374c1..c15e5e31230 100644 --- a/tests/baselines/reference/assignmentCompatability38.errors.txt +++ b/tests/baselines/reference/assignmentCompatability38.errors.txt @@ -1,4 +1,5 @@ tests/cases/compiler/assignmentCompatability38.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type 'new (param: Tstring) => any'. + Type 'interfaceWithPublicAndOptional' provides no match for the signature 'new (param: Tstring): any' ==== tests/cases/compiler/assignmentCompatability38.ts (1 errors) ==== @@ -12,4 +13,5 @@ tests/cases/compiler/assignmentCompatability38.ts(9,1): error TS2322: Type 'inte } __test2__.__val__aa = __test1__.__val__obj4 ~~~~~~~~~~~~~~~~~~~ -!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type 'new (param: Tstring) => any'. \ No newline at end of file +!!! error TS2322: Type 'interfaceWithPublicAndOptional' is not assignable to type 'new (param: Tstring) => any'. +!!! error TS2322: Type 'interfaceWithPublicAndOptional' provides no match for the signature 'new (param: Tstring): any' \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatability39.js b/tests/baselines/reference/assignmentCompatability39.js index 70e8a692290..3dfdbee632d 100644 --- a/tests/baselines/reference/assignmentCompatability39.js +++ b/tests/baselines/reference/assignmentCompatability39.js @@ -25,7 +25,7 @@ var __test2__; this.two = two; } return classWithTwoPublic; - })(); + }()); __test2__.classWithTwoPublic = classWithTwoPublic; var x2 = new classWithTwoPublic(1, "a"); ; diff --git a/tests/baselines/reference/assignmentCompatability40.js b/tests/baselines/reference/assignmentCompatability40.js index 801ddfe7596..c7e671dfdd3 100644 --- a/tests/baselines/reference/assignmentCompatability40.js +++ b/tests/baselines/reference/assignmentCompatability40.js @@ -24,7 +24,7 @@ var __test2__; this.one = one; } return classWithPrivate; - })(); + }()); __test2__.classWithPrivate = classWithPrivate; var x5 = new classWithPrivate(1); ; diff --git a/tests/baselines/reference/assignmentCompatability41.js b/tests/baselines/reference/assignmentCompatability41.js index 2ebd35a6caa..21b36ce92f1 100644 --- a/tests/baselines/reference/assignmentCompatability41.js +++ b/tests/baselines/reference/assignmentCompatability41.js @@ -25,7 +25,7 @@ var __test2__; this.two = two; } return classWithTwoPrivate; - })(); + }()); __test2__.classWithTwoPrivate = classWithTwoPrivate; var x6 = new classWithTwoPrivate(1, "a"); ; diff --git a/tests/baselines/reference/assignmentCompatability42.js b/tests/baselines/reference/assignmentCompatability42.js index 39dab170d35..c6baff46170 100644 --- a/tests/baselines/reference/assignmentCompatability42.js +++ b/tests/baselines/reference/assignmentCompatability42.js @@ -25,7 +25,7 @@ var __test2__; this.two = two; } return classWithPublicPrivate; - })(); + }()); __test2__.classWithPublicPrivate = classWithPublicPrivate; var x7 = new classWithPublicPrivate(1, "a"); ; diff --git a/tests/baselines/reference/assignmentCompatability8.js b/tests/baselines/reference/assignmentCompatability8.js index 65e4240aac5..38459e41cfa 100644 --- a/tests/baselines/reference/assignmentCompatability8.js +++ b/tests/baselines/reference/assignmentCompatability8.js @@ -24,7 +24,7 @@ var __test2__; this.one = one; } return classWithPublic; - })(); + }()); __test2__.classWithPublic = classWithPublic; var x1 = new classWithPublic(1); ; diff --git a/tests/baselines/reference/assignmentCompatability9.js b/tests/baselines/reference/assignmentCompatability9.js index 98932380b3e..051155ad1dd 100644 --- a/tests/baselines/reference/assignmentCompatability9.js +++ b/tests/baselines/reference/assignmentCompatability9.js @@ -24,7 +24,7 @@ var __test2__; this.one = one; } return classWithOptional; - })(); + }()); __test2__.classWithOptional = classWithOptional; var x3 = new classWithOptional(); ; diff --git a/tests/baselines/reference/assignmentLHSIsValue.js b/tests/baselines/reference/assignmentLHSIsValue.js index 127f85512ac..8a3b4b35d0b 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.js +++ b/tests/baselines/reference/assignmentLHSIsValue.js @@ -86,7 +86,7 @@ var C = (function () { C.prototype.foo = function () { this = value; }; C.sfoo = function () { this = value; }; return C; -})(); +}()); function foo() { this = value; } this = value; // identifiers: module, class, enum, function @@ -124,7 +124,7 @@ var Derived = (function (_super) { Derived.prototype.foo = function () { _super.prototype. = value; }; Derived.sfoo = function () { _super. = value; }; return Derived; -})(C); +}(C)); // function expression function bar() { } value; diff --git a/tests/baselines/reference/assignmentNonObjectTypeConstraints.js b/tests/baselines/reference/assignmentNonObjectTypeConstraints.js index c9d3cec38f6..7bce8d5443e 100644 --- a/tests/baselines/reference/assignmentNonObjectTypeConstraints.js +++ b/tests/baselines/reference/assignmentNonObjectTypeConstraints.js @@ -29,12 +29,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); function bar(x) { var y = x; // Ok } diff --git a/tests/baselines/reference/assignmentStricterConstraints.errors.txt b/tests/baselines/reference/assignmentStricterConstraints.errors.txt deleted file mode 100644 index bf3751dda74..00000000000 --- a/tests/baselines/reference/assignmentStricterConstraints.errors.txt +++ /dev/null @@ -1,18 +0,0 @@ -tests/cases/compiler/assignmentStricterConstraints.ts(1,22): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/assignmentStricterConstraints.ts(2,5): error TS2322: Type 'S' is not assignable to type 'T'. - - -==== tests/cases/compiler/assignmentStricterConstraints.ts (2 errors) ==== - var f = function (x: T, y: S): void { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x = y - ~ -!!! error TS2322: Type 'S' is not assignable to type 'T'. - } - - var g = function (x: T, y: S): void { } - - g = f - g(1, "") - \ No newline at end of file diff --git a/tests/baselines/reference/assignmentStricterConstraints.symbols b/tests/baselines/reference/assignmentStricterConstraints.symbols new file mode 100644 index 00000000000..aba29bf3e5b --- /dev/null +++ b/tests/baselines/reference/assignmentStricterConstraints.symbols @@ -0,0 +1,32 @@ +=== tests/cases/compiler/assignmentStricterConstraints.ts === +var f = function (x: T, y: S): void { +>f : Symbol(f, Decl(assignmentStricterConstraints.ts, 0, 3)) +>T : Symbol(T, Decl(assignmentStricterConstraints.ts, 0, 18)) +>S : Symbol(S, Decl(assignmentStricterConstraints.ts, 0, 20)) +>T : Symbol(T, Decl(assignmentStricterConstraints.ts, 0, 18)) +>x : Symbol(x, Decl(assignmentStricterConstraints.ts, 0, 34)) +>T : Symbol(T, Decl(assignmentStricterConstraints.ts, 0, 18)) +>y : Symbol(y, Decl(assignmentStricterConstraints.ts, 0, 39)) +>S : Symbol(S, Decl(assignmentStricterConstraints.ts, 0, 20)) + + x = y +>x : Symbol(x, Decl(assignmentStricterConstraints.ts, 0, 34)) +>y : Symbol(y, Decl(assignmentStricterConstraints.ts, 0, 39)) +} + +var g = function (x: T, y: S): void { } +>g : Symbol(g, Decl(assignmentStricterConstraints.ts, 4, 3)) +>T : Symbol(T, Decl(assignmentStricterConstraints.ts, 4, 18)) +>S : Symbol(S, Decl(assignmentStricterConstraints.ts, 4, 20)) +>x : Symbol(x, Decl(assignmentStricterConstraints.ts, 4, 24)) +>T : Symbol(T, Decl(assignmentStricterConstraints.ts, 4, 18)) +>y : Symbol(y, Decl(assignmentStricterConstraints.ts, 4, 29)) +>S : Symbol(S, Decl(assignmentStricterConstraints.ts, 4, 20)) + +g = f +>g : Symbol(g, Decl(assignmentStricterConstraints.ts, 4, 3)) +>f : Symbol(f, Decl(assignmentStricterConstraints.ts, 0, 3)) + +g(1, "") +>g : Symbol(g, Decl(assignmentStricterConstraints.ts, 4, 3)) + diff --git a/tests/baselines/reference/assignmentStricterConstraints.types b/tests/baselines/reference/assignmentStricterConstraints.types new file mode 100644 index 00000000000..3a72d92f51c --- /dev/null +++ b/tests/baselines/reference/assignmentStricterConstraints.types @@ -0,0 +1,39 @@ +=== tests/cases/compiler/assignmentStricterConstraints.ts === +var f = function (x: T, y: S): void { +>f : (x: T, y: S) => void +>function (x: T, y: S): void { x = y} : (x: T, y: S) => void +>T : T +>S : S +>T : T +>x : T +>T : T +>y : S +>S : S + + x = y +>x = y : S +>x : T +>y : S +} + +var g = function (x: T, y: S): void { } +>g : (x: T, y: S) => void +>function (x: T, y: S): void { } : (x: T, y: S) => void +>T : T +>S : S +>x : T +>T : T +>y : S +>S : S + +g = f +>g = f : (x: T, y: S) => void +>g : (x: T, y: S) => void +>f : (x: T, y: S) => void + +g(1, "") +>g(1, "") : void +>g : (x: T, y: S) => void +>1 : number +>"" : string + diff --git a/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js b/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js index d28dd76fcf6..67d0c25f45f 100644 --- a/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js +++ b/tests/baselines/reference/assignmentToParenthesizedIdentifiers.js @@ -130,6 +130,6 @@ var C = (function () { function C() { } return C; -})(); +}()); C = undefined; // Error (C) = undefined; // Error diff --git a/tests/baselines/reference/assignmentToReferenceTypes.js b/tests/baselines/reference/assignmentToReferenceTypes.js index 1aec3c2051d..e201b0bacab 100644 --- a/tests/baselines/reference/assignmentToReferenceTypes.js +++ b/tests/baselines/reference/assignmentToReferenceTypes.js @@ -30,7 +30,7 @@ var C = (function () { function C() { } return C; -})(); +}()); C = null; var E; (function (E) { diff --git a/tests/baselines/reference/assignments.js b/tests/baselines/reference/assignments.js index e2c9c90d375..739c8bd2795 100644 --- a/tests/baselines/reference/assignments.js +++ b/tests/baselines/reference/assignments.js @@ -45,7 +45,7 @@ var C = (function () { function C() { } return C; -})(); +}()); C = null; // Error var E; (function (E) { diff --git a/tests/baselines/reference/asyncAliasReturnType_es6.errors.txt b/tests/baselines/reference/asyncAliasReturnType_es6.errors.txt new file mode 100644 index 00000000000..ec532d1380d --- /dev/null +++ b/tests/baselines/reference/asyncAliasReturnType_es6.errors.txt @@ -0,0 +1,10 @@ +tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts(3,16): error TS1055: Type 'PromiseAlias' is not a valid async function return type. + + +==== tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts (1 errors) ==== + type PromiseAlias = Promise; + + async function f(): PromiseAlias { + ~ +!!! error TS1055: Type 'PromiseAlias' is not a valid async function return type. + } \ No newline at end of file diff --git a/tests/baselines/reference/asyncAliasReturnType_es6.js b/tests/baselines/reference/asyncAliasReturnType_es6.js new file mode 100644 index 00000000000..0af63b0bfa6 --- /dev/null +++ b/tests/baselines/reference/asyncAliasReturnType_es6.js @@ -0,0 +1,11 @@ +//// [asyncAliasReturnType_es6.ts] +type PromiseAlias = Promise; + +async function f(): PromiseAlias { +} + +//// [asyncAliasReturnType_es6.js] +function f() { + return __awaiter(this, void 0, PromiseAlias, function* () { + }); +} diff --git a/tests/baselines/reference/asyncImportedPromise_es6.js b/tests/baselines/reference/asyncImportedPromise_es6.js new file mode 100644 index 00000000000..a9c7540d88f --- /dev/null +++ b/tests/baselines/reference/asyncImportedPromise_es6.js @@ -0,0 +1,37 @@ +//// [tests/cases/conformance/async/es6/asyncImportedPromise_es6.ts] //// + +//// [task.ts] +export class Task extends Promise { } + +//// [test.ts] +import { Task } from "./task"; +class Test { + async example(): Task { return; } +} + +//// [task.js] +"use strict"; +class Task extends Promise { +} +exports.Task = Task; +//// [test.js] +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promise, generator) { + return new Promise(function (resolve, reject) { + generator = generator.call(thisArg, _arguments); + function cast(value) { return value instanceof Promise && value.constructor === Promise ? value : new Promise(function (resolve) { resolve(value); }); } + function onfulfill(value) { try { step("next", value); } catch (e) { reject(e); } } + function onreject(value) { try { step("throw", value); } catch (e) { reject(e); } } + function step(verb, value) { + var result = generator[verb](value); + result.done ? resolve(result.value) : cast(result.value).then(onfulfill, onreject); + } + step("next", void 0); + }); +}; +var task_1 = require("./task"); +class Test { + example() { + return __awaiter(this, void 0, task_1.Task, function* () { return; }); + } +} diff --git a/tests/baselines/reference/asyncImportedPromise_es6.symbols b/tests/baselines/reference/asyncImportedPromise_es6.symbols new file mode 100644 index 00000000000..45cf47d2b45 --- /dev/null +++ b/tests/baselines/reference/asyncImportedPromise_es6.symbols @@ -0,0 +1,20 @@ +=== tests/cases/conformance/async/es6/task.ts === +export class Task extends Promise { } +>Task : Symbol(Task, Decl(task.ts, 0, 0)) +>T : Symbol(T, Decl(task.ts, 0, 18)) +>Promise : Symbol(Promise, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>T : Symbol(T, Decl(task.ts, 0, 18)) + +=== tests/cases/conformance/async/es6/test.ts === +import { Task } from "./task"; +>Task : Symbol(Task, Decl(test.ts, 0, 8)) + +class Test { +>Test : Symbol(Test, Decl(test.ts, 0, 30)) + + async example(): Task { return; } +>example : Symbol(example, Decl(test.ts, 1, 12)) +>T : Symbol(T, Decl(test.ts, 2, 18)) +>Task : Symbol(Task, Decl(test.ts, 0, 8)) +>T : Symbol(T, Decl(test.ts, 2, 18)) +} diff --git a/tests/baselines/reference/asyncImportedPromise_es6.types b/tests/baselines/reference/asyncImportedPromise_es6.types new file mode 100644 index 00000000000..424f14b34d3 --- /dev/null +++ b/tests/baselines/reference/asyncImportedPromise_es6.types @@ -0,0 +1,20 @@ +=== tests/cases/conformance/async/es6/task.ts === +export class Task extends Promise { } +>Task : Task +>T : T +>Promise : Promise +>T : T + +=== tests/cases/conformance/async/es6/test.ts === +import { Task } from "./task"; +>Task : typeof Task + +class Test { +>Test : Test + + async example(): Task { return; } +>example : () => Task +>T : T +>Task : Task +>T : T +} diff --git a/tests/baselines/reference/asyncMultiFile.js b/tests/baselines/reference/asyncMultiFile.js new file mode 100644 index 00000000000..e93dc586255 --- /dev/null +++ b/tests/baselines/reference/asyncMultiFile.js @@ -0,0 +1,26 @@ +//// [tests/cases/conformance/async/es6/asyncMultiFile.ts] //// + +//// [a.ts] +async function f() {} +//// [b.ts] +function g() { } + +//// [a.js] +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promise, generator) { + return new Promise(function (resolve, reject) { + generator = generator.call(thisArg, _arguments); + function cast(value) { return value instanceof Promise && value.constructor === Promise ? value : new Promise(function (resolve) { resolve(value); }); } + function onfulfill(value) { try { step("next", value); } catch (e) { reject(e); } } + function onreject(value) { try { step("throw", value); } catch (e) { reject(e); } } + function step(verb, value) { + var result = generator[verb](value); + result.done ? resolve(result.value) : cast(result.value).then(onfulfill, onreject); + } + step("next", void 0); + }); +}; +function f() { + return __awaiter(this, void 0, Promise, function* () { }); +} +//// [b.js] +function g() { } diff --git a/tests/baselines/reference/asyncMultiFile.symbols b/tests/baselines/reference/asyncMultiFile.symbols new file mode 100644 index 00000000000..790ceafef8f --- /dev/null +++ b/tests/baselines/reference/asyncMultiFile.symbols @@ -0,0 +1,8 @@ +=== tests/cases/conformance/async/es6/a.ts === +async function f() {} +>f : Symbol(f, Decl(a.ts, 0, 0)) + +=== tests/cases/conformance/async/es6/b.ts === +function g() { } +>g : Symbol(g, Decl(b.ts, 0, 0)) + diff --git a/tests/baselines/reference/asyncMultiFile.types b/tests/baselines/reference/asyncMultiFile.types new file mode 100644 index 00000000000..70eebc0577a --- /dev/null +++ b/tests/baselines/reference/asyncMultiFile.types @@ -0,0 +1,8 @@ +=== tests/cases/conformance/async/es6/a.ts === +async function f() {} +>f : () => Promise + +=== tests/cases/conformance/async/es6/b.ts === +function g() { } +>g : () => void + diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es6.js b/tests/baselines/reference/asyncQualifiedReturnType_es6.js new file mode 100644 index 00000000000..1da37946254 --- /dev/null +++ b/tests/baselines/reference/asyncQualifiedReturnType_es6.js @@ -0,0 +1,20 @@ +//// [asyncQualifiedReturnType_es6.ts] +namespace X { + export class MyPromise extends Promise { + } +} + +async function f(): X.MyPromise { +} + +//// [asyncQualifiedReturnType_es6.js] +var X; +(function (X) { + class MyPromise extends Promise { + } + X.MyPromise = MyPromise; +})(X || (X = {})); +function f() { + return __awaiter(this, void 0, X.MyPromise, function* () { + }); +} diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es6.symbols b/tests/baselines/reference/asyncQualifiedReturnType_es6.symbols new file mode 100644 index 00000000000..5d27d04ea3b --- /dev/null +++ b/tests/baselines/reference/asyncQualifiedReturnType_es6.symbols @@ -0,0 +1,17 @@ +=== tests/cases/conformance/async/es6/asyncQualifiedReturnType_es6.ts === +namespace X { +>X : Symbol(X, Decl(asyncQualifiedReturnType_es6.ts, 0, 0)) + + export class MyPromise extends Promise { +>MyPromise : Symbol(MyPromise, Decl(asyncQualifiedReturnType_es6.ts, 0, 13)) +>T : Symbol(T, Decl(asyncQualifiedReturnType_es6.ts, 1, 27)) +>Promise : Symbol(Promise, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>T : Symbol(T, Decl(asyncQualifiedReturnType_es6.ts, 1, 27)) + } +} + +async function f(): X.MyPromise { +>f : Symbol(f, Decl(asyncQualifiedReturnType_es6.ts, 3, 1)) +>X : Symbol(X, Decl(asyncQualifiedReturnType_es6.ts, 0, 0)) +>MyPromise : Symbol(X.MyPromise, Decl(asyncQualifiedReturnType_es6.ts, 0, 13)) +} diff --git a/tests/baselines/reference/asyncQualifiedReturnType_es6.types b/tests/baselines/reference/asyncQualifiedReturnType_es6.types new file mode 100644 index 00000000000..3b438eb93b6 --- /dev/null +++ b/tests/baselines/reference/asyncQualifiedReturnType_es6.types @@ -0,0 +1,17 @@ +=== tests/cases/conformance/async/es6/asyncQualifiedReturnType_es6.ts === +namespace X { +>X : typeof X + + export class MyPromise extends Promise { +>MyPromise : MyPromise +>T : T +>Promise : Promise +>T : T + } +} + +async function f(): X.MyPromise { +>f : () => X.MyPromise +>X : any +>MyPromise : X.MyPromise +} diff --git a/tests/baselines/reference/augmentedTypesClass.js b/tests/baselines/reference/augmentedTypesClass.js index 30b75483d80..48cc4ef05de 100644 --- a/tests/baselines/reference/augmentedTypesClass.js +++ b/tests/baselines/reference/augmentedTypesClass.js @@ -14,7 +14,7 @@ var c1 = (function () { } c1.prototype.foo = function () { }; return c1; -})(); +}()); var c1 = 1; // error //// class then enum var c4 = (function () { @@ -22,7 +22,7 @@ var c4 = (function () { } c4.prototype.foo = function () { }; return c4; -})(); +}()); var c4; (function (c4) { c4[c4["One"] = 0] = "One"; diff --git a/tests/baselines/reference/augmentedTypesClass2.js b/tests/baselines/reference/augmentedTypesClass2.js index 4a919913ce0..ee87a2396ad 100644 --- a/tests/baselines/reference/augmentedTypesClass2.js +++ b/tests/baselines/reference/augmentedTypesClass2.js @@ -40,7 +40,7 @@ var c11 = (function () { return 1; }; return c11; -})(); +}()); // class then class - covered // class then enum var c33 = (function () { @@ -50,7 +50,7 @@ var c33 = (function () { return 1; }; return c33; -})(); +}()); var c33; (function (c33) { c33[c33["One"] = 0] = "One"; @@ -64,4 +64,4 @@ var c44 = (function () { return 1; }; return c44; -})(); +}()); diff --git a/tests/baselines/reference/augmentedTypesClass2a.js b/tests/baselines/reference/augmentedTypesClass2a.js index b2c6fa1e373..ba1f26c775d 100644 --- a/tests/baselines/reference/augmentedTypesClass2a.js +++ b/tests/baselines/reference/augmentedTypesClass2a.js @@ -11,6 +11,6 @@ var c2 = (function () { } c2.prototype.foo = function () { }; return c2; -})(); // error +}()); // error function c2() { } // error var c2 = function () { }; diff --git a/tests/baselines/reference/augmentedTypesClass3.js b/tests/baselines/reference/augmentedTypesClass3.js index 11d3f0a0d9f..216cd118ee6 100644 --- a/tests/baselines/reference/augmentedTypesClass3.js +++ b/tests/baselines/reference/augmentedTypesClass3.js @@ -20,13 +20,13 @@ var c5 = (function () { } c5.prototype.foo = function () { }; return c5; -})(); +}()); var c5a = (function () { function c5a() { } c5a.prototype.foo = function () { }; return c5a; -})(); +}()); var c5a; (function (c5a) { var y = 2; @@ -36,7 +36,7 @@ var c5b = (function () { } c5b.prototype.foo = function () { }; return c5b; -})(); +}()); var c5b; (function (c5b) { c5b.y = 2; @@ -47,5 +47,5 @@ var c5c = (function () { } c5c.prototype.foo = function () { }; return c5c; -})(); +}()); //import c5c = require(''); diff --git a/tests/baselines/reference/augmentedTypesClass4.js b/tests/baselines/reference/augmentedTypesClass4.js index f178567d843..e476beadf74 100644 --- a/tests/baselines/reference/augmentedTypesClass4.js +++ b/tests/baselines/reference/augmentedTypesClass4.js @@ -11,10 +11,10 @@ var c3 = (function () { } c3.prototype.foo = function () { }; return c3; -})(); // error +}()); // error var c3 = (function () { function c3() { } c3.prototype.bar = function () { }; return c3; -})(); // error +}()); // error diff --git a/tests/baselines/reference/augmentedTypesEnum.js b/tests/baselines/reference/augmentedTypesEnum.js index cb1ec3e844f..3d2bb0b7d25 100644 --- a/tests/baselines/reference/augmentedTypesEnum.js +++ b/tests/baselines/reference/augmentedTypesEnum.js @@ -63,7 +63,7 @@ var e4 = (function () { } e4.prototype.foo = function () { }; return e4; -})(); // error +}()); // error // enum then enum var e5; (function (e5) { diff --git a/tests/baselines/reference/augmentedTypesEnum2.js b/tests/baselines/reference/augmentedTypesEnum2.js index f0c86e5640b..be174423d1d 100644 --- a/tests/baselines/reference/augmentedTypesEnum2.js +++ b/tests/baselines/reference/augmentedTypesEnum2.js @@ -39,6 +39,6 @@ var e2 = (function () { return 1; }; return e2; -})(); +}()); //enum then enum - covered //enum then import - covered diff --git a/tests/baselines/reference/augmentedTypesExternalModule1.js b/tests/baselines/reference/augmentedTypesExternalModule1.js index 7965aa671ae..65525e8187e 100644 --- a/tests/baselines/reference/augmentedTypesExternalModule1.js +++ b/tests/baselines/reference/augmentedTypesExternalModule1.js @@ -12,5 +12,5 @@ define(["require", "exports"], function (require, exports) { } c5.prototype.foo = function () { }; return c5; - })(); + }()); }); diff --git a/tests/baselines/reference/augmentedTypesFunction.js b/tests/baselines/reference/augmentedTypesFunction.js index 1cd1423b7c4..72f36aeeccc 100644 --- a/tests/baselines/reference/augmentedTypesFunction.js +++ b/tests/baselines/reference/augmentedTypesFunction.js @@ -53,14 +53,14 @@ var y3 = (function () { function y3() { } return y3; -})(); // error +}()); // error function y3a() { } // error var y3a = (function () { function y3a() { } y3a.prototype.foo = function () { }; return y3a; -})(); // error +}()); // error // function then enum function y4() { } // error var y4; diff --git a/tests/baselines/reference/augmentedTypesInterface.js b/tests/baselines/reference/augmentedTypesInterface.js index 330fc035a9e..fb8608aca95 100644 --- a/tests/baselines/reference/augmentedTypesInterface.js +++ b/tests/baselines/reference/augmentedTypesInterface.js @@ -42,7 +42,7 @@ var i2 = (function () { return 1; }; return i2; -})(); +}()); var i3; (function (i3) { i3[i3["One"] = 0] = "One"; diff --git a/tests/baselines/reference/augmentedTypesModules.js b/tests/baselines/reference/augmentedTypesModules.js index 558ea6609f5..39a4c17454b 100644 --- a/tests/baselines/reference/augmentedTypesModules.js +++ b/tests/baselines/reference/augmentedTypesModules.js @@ -117,7 +117,7 @@ var m1d; } I.prototype.foo = function () { }; return I; - })(); + }()); m1d.I = I; })(m1d || (m1d = {})); var m1d = 1; // error @@ -153,14 +153,14 @@ var m2g; } C.prototype.foo = function () { }; return C; - })(); + }()); m2g.C = C; })(m2g || (m2g = {})); var m3 = (function () { function m3() { } return m3; -})(); // ok since the module is not instantiated +}()); // ok since the module is not instantiated var m3a; (function (m3a) { var y = 2; @@ -170,13 +170,13 @@ var m3a = (function () { } m3a.prototype.foo = function () { }; return m3a; -})(); // error, class isn't ambient or declared before the module +}()); // error, class isn't ambient or declared before the module var m3b = (function () { function m3b() { } m3b.prototype.foo = function () { }; return m3b; -})(); +}()); var m3b; (function (m3b) { var y = 2; @@ -186,7 +186,7 @@ var m3c = (function () { } m3c.prototype.foo = function () { }; return m3c; -})(); +}()); var m3c; (function (m3c) { m3c.y = 2; @@ -206,7 +206,7 @@ var m3g; } C.prototype.foo = function () { }; return C; - })(); + }()); m3g.C = C; })(m3g || (m3g = {})); var m4; @@ -239,7 +239,7 @@ var m4d; } C.prototype.foo = function () { }; return C; - })(); + }()); })(m4d || (m4d = {})); var m4d; (function (m4d) { diff --git a/tests/baselines/reference/augmentedTypesModules2.js b/tests/baselines/reference/augmentedTypesModules2.js index 5cc805a848f..82bba357bba 100644 --- a/tests/baselines/reference/augmentedTypesModules2.js +++ b/tests/baselines/reference/augmentedTypesModules2.js @@ -66,6 +66,6 @@ var m2g; } C.prototype.foo = function () { }; return C; - })(); + }()); m2g.C = C; })(m2g || (m2g = {})); diff --git a/tests/baselines/reference/augmentedTypesModules3.js b/tests/baselines/reference/augmentedTypesModules3.js index fb1c7ef6e70..cb63acd0d35 100644 --- a/tests/baselines/reference/augmentedTypesModules3.js +++ b/tests/baselines/reference/augmentedTypesModules3.js @@ -11,7 +11,7 @@ var m3 = (function () { function m3() { } return m3; -})(); // ok since the module is not instantiated +}()); // ok since the module is not instantiated var m3a; (function (m3a) { var y = 2; @@ -21,4 +21,4 @@ var m3a = (function () { } m3a.prototype.foo = function () { }; return m3a; -})(); // error, class isn't ambient or declared before the module +}()); // error, class isn't ambient or declared before the module diff --git a/tests/baselines/reference/augmentedTypesModules3b.js b/tests/baselines/reference/augmentedTypesModules3b.js index 080a5e72ada..a422ad79973 100644 --- a/tests/baselines/reference/augmentedTypesModules3b.js +++ b/tests/baselines/reference/augmentedTypesModules3b.js @@ -24,7 +24,7 @@ var m3b = (function () { } m3b.prototype.foo = function () { }; return m3b; -})(); +}()); var m3b; (function (m3b) { var y = 2; @@ -34,7 +34,7 @@ var m3c = (function () { } m3c.prototype.foo = function () { }; return m3c; -})(); +}()); var m3c; (function (m3c) { m3c.y = 2; @@ -54,6 +54,6 @@ var m3g; } C.prototype.foo = function () { }; return C; - })(); + }()); m3g.C = C; })(m3g || (m3g = {})); diff --git a/tests/baselines/reference/augmentedTypesModules4.js b/tests/baselines/reference/augmentedTypesModules4.js index 82f08851efd..ed86c057462 100644 --- a/tests/baselines/reference/augmentedTypesModules4.js +++ b/tests/baselines/reference/augmentedTypesModules4.js @@ -53,7 +53,7 @@ var m4d; } C.prototype.foo = function () { }; return C; - })(); + }()); })(m4d || (m4d = {})); var m4d; (function (m4d) { diff --git a/tests/baselines/reference/augmentedTypesVar.js b/tests/baselines/reference/augmentedTypesVar.js index b4e412acc05..f01cfa2e52f 100644 --- a/tests/baselines/reference/augmentedTypesVar.js +++ b/tests/baselines/reference/augmentedTypesVar.js @@ -51,14 +51,14 @@ var x4 = (function () { function x4() { } return x4; -})(); // error +}()); // error var x4a = 1; // error var x4a = (function () { function x4a() { } x4a.prototype.foo = function () { }; return x4a; -})(); // error +}()); // error // var then enum var x5 = 1; var x5; diff --git a/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js b/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js index 27b56e4ff88..5c64b8fc23f 100644 --- a/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js +++ b/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/autoLift2.js b/tests/baselines/reference/autoLift2.js index cf840277d70..ab2d2107f6c 100644 --- a/tests/baselines/reference/autoLift2.js +++ b/tests/baselines/reference/autoLift2.js @@ -47,6 +47,6 @@ var A = (function () { [1, 2].forEach(function (p) { return _this.bar; }); }; return A; -})(); +}()); var a = new A(); a.baz(); diff --git a/tests/baselines/reference/autolift3.js b/tests/baselines/reference/autolift3.js index e04501daf46..21be70763fe 100644 --- a/tests/baselines/reference/autolift3.js +++ b/tests/baselines/reference/autolift3.js @@ -49,6 +49,6 @@ var B = (function () { })(); } return B; -})(); +}()); var b = new B(); b.foo(); diff --git a/tests/baselines/reference/autolift4.js b/tests/baselines/reference/autolift4.js index f4bbad50c60..8ee1f397d43 100644 --- a/tests/baselines/reference/autolift4.js +++ b/tests/baselines/reference/autolift4.js @@ -39,7 +39,7 @@ var Point = (function () { }; Point.origin = new Point(0, 0); return Point; -})(); +}()); var Point3D = (function (_super) { __extends(Point3D, _super); function Point3D(x, y, z, m) { @@ -50,4 +50,4 @@ var Point3D = (function (_super) { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.m); }; return Point3D; -})(Point); +}(Point)); diff --git a/tests/baselines/reference/avoid.js b/tests/baselines/reference/avoid.js index ad10d2ac9bc..391dab5e985 100644 --- a/tests/baselines/reference/avoid.js +++ b/tests/baselines/reference/avoid.js @@ -33,6 +33,6 @@ var C = (function () { C.prototype.g = function () { }; return C; -})(); +}()); var z = new C().g(); // error void fn var N = new f(); // ok with void fn diff --git a/tests/baselines/reference/badArraySyntax.js b/tests/baselines/reference/badArraySyntax.js index f5ca1e0c0ba..8cc5f1cfeda 100644 --- a/tests/baselines/reference/badArraySyntax.js +++ b/tests/baselines/reference/badArraySyntax.js @@ -17,7 +17,7 @@ var Z = (function () { this.x = ""; } return Z; -})(); +}()); var a1 = []; var a2 = new Z[]; var a3 = new Z[](); diff --git a/tests/baselines/reference/badThisBinding.js b/tests/baselines/reference/badThisBinding.js index 115759411bf..06465711859 100644 --- a/tests/baselines/reference/badThisBinding.js +++ b/tests/baselines/reference/badThisBinding.js @@ -24,4 +24,4 @@ var Greeter = (function () { }); } return Greeter; -})(); +}()); diff --git a/tests/baselines/reference/baseCheck.js b/tests/baselines/reference/baseCheck.js index 49038f37b18..c4210f3f6a5 100644 --- a/tests/baselines/reference/baseCheck.js +++ b/tests/baselines/reference/baseCheck.js @@ -39,14 +39,14 @@ var C = (function () { function C(x, y) { } return C; -})(); +}()); var ELoc = (function (_super) { __extends(ELoc, _super); function ELoc(x) { _super.call(this, 0, x); } return ELoc; -})(C); +}(C)); var ELocVar = (function (_super) { __extends(ELocVar, _super); function ELocVar(x) { @@ -56,7 +56,7 @@ var ELocVar = (function (_super) { var loc = 10; }; return ELocVar; -})(C); +}(C)); var D = (function (_super) { __extends(D, _super); function D(z) { @@ -64,7 +64,7 @@ var D = (function (_super) { this.z = z; } return D; -})(C); // too few params +}(C)); // too few params var E = (function (_super) { __extends(E, _super); function E(z) { @@ -72,7 +72,7 @@ var E = (function (_super) { this.z = z; } return E; -})(C); +}(C)); var F = (function (_super) { __extends(F, _super); function F(z) { @@ -80,7 +80,7 @@ var F = (function (_super) { this.z = z; } return F; -})(C); // first param type +}(C)); // first param type function f() { if (x < 10) { x = 11; diff --git a/tests/baselines/reference/baseIndexSignatureResolution.js b/tests/baselines/reference/baseIndexSignatureResolution.js index 8463ed58a53..3f3fa3cc0b9 100644 --- a/tests/baselines/reference/baseIndexSignatureResolution.js +++ b/tests/baselines/reference/baseIndexSignatureResolution.js @@ -34,14 +34,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var x = null; var y = x[0]; /* diff --git a/tests/baselines/reference/baseTypeAfterDerivedType.js b/tests/baselines/reference/baseTypeAfterDerivedType.js index c64239ac0c8..b80b62712f5 100644 --- a/tests/baselines/reference/baseTypeAfterDerivedType.js +++ b/tests/baselines/reference/baseTypeAfterDerivedType.js @@ -27,4 +27,4 @@ var Derived2 = (function () { } }; return Derived2; -})(); +}()); diff --git a/tests/baselines/reference/baseTypeOrderChecking.js b/tests/baselines/reference/baseTypeOrderChecking.js index 4c5fe22ea08..66d2135f01d 100644 --- a/tests/baselines/reference/baseTypeOrderChecking.js +++ b/tests/baselines/reference/baseTypeOrderChecking.js @@ -47,23 +47,23 @@ var Class1 = (function () { function Class1() { } return Class1; -})(); +}()); var Class2 = (function (_super) { __extends(Class2, _super); function Class2() { _super.apply(this, arguments); } return Class2; -})(Class1); +}(Class1)); var Class3 = (function () { function Class3() { } return Class3; -})(); +}()); var Class4 = (function (_super) { __extends(Class4, _super); function Class4() { _super.apply(this, arguments); } return Class4; -})(Class3); +}(Class3)); diff --git a/tests/baselines/reference/baseTypePrivateMemberClash.js b/tests/baselines/reference/baseTypePrivateMemberClash.js index 79a44ee44d4..35eafe5543a 100644 --- a/tests/baselines/reference/baseTypePrivateMemberClash.js +++ b/tests/baselines/reference/baseTypePrivateMemberClash.js @@ -13,9 +13,9 @@ var X = (function () { function X() { } return X; -})(); +}()); var Y = (function () { function Y() { } return Y; -})(); +}()); diff --git a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js index 1de1ebd4bfb..62d995c225e 100644 --- a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js +++ b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js @@ -45,27 +45,27 @@ var C = (function (_super) { }; C.prototype.method = function (t) { }; return C; -})(CBase); +}(CBase)); var CBase = (function (_super) { __extends(CBase, _super); function CBase() { _super.apply(this, arguments); } return CBase; -})(CBaseBase); +}(CBaseBase)); var CBaseBase = (function () { function CBaseBase(x) { } return CBaseBase; -})(); +}()); var Parameter = (function () { function Parameter() { } Parameter.prototype.method = function (t) { }; return Parameter; -})(); +}()); var Wrapper = (function () { function Wrapper() { } return Wrapper; -})(); +}()); diff --git a/tests/baselines/reference/bases.js b/tests/baselines/reference/bases.js index 0275c225dac..f67f754d063 100644 --- a/tests/baselines/reference/bases.js +++ b/tests/baselines/reference/bases.js @@ -32,7 +32,7 @@ var B = (function () { any; } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -40,6 +40,6 @@ var C = (function (_super) { any; } return C; -})(B); +}(B)); new C().x; new C().y; diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js index abd2cc5e874..1c2fc896a6a 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js @@ -40,21 +40,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var base; var derived; var derived2; diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.errors.txt b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.errors.txt deleted file mode 100644 index 83f4678c8f3..00000000000 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.errors.txt +++ /dev/null @@ -1,36 +0,0 @@ -tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfConditionalExpressions2.ts(18,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfConditionalExpressions2.ts(22,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfConditionalExpressions2.ts(22,28): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfConditionalExpressions2.ts (3 errors) ==== - // conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) - // these are errors - - class Base { foo: string; } - class Derived extends Base { bar: string; } - class Derived2 extends Base { baz: string; } - var base: Base; - var derived: Derived; - var derived2: Derived2; - - var r2 = true ? 1 : ''; - var r9 = true ? derived : derived2; - - function foo(t: T, u: U) { - return true ? t : u; - } - - function foo2(t: T, u: U) { // Error for referencing own type parameter - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - return true ? t : u; // Ok because BCT(T, U) = U - } - - function foo3(t: T, u: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - return true ? t : u; - } \ No newline at end of file diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js index e0e7bc3f324..21a69f517fc 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js @@ -36,21 +36,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var base; var derived; var derived2; diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.symbols b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.symbols new file mode 100644 index 00000000000..68103761051 --- /dev/null +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.symbols @@ -0,0 +1,83 @@ +=== tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfConditionalExpressions2.ts === +// conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) +// these are errors + +class Base { foo: string; } +>Base : Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions2.ts, 0, 0)) +>foo : Symbol(foo, Decl(bestCommonTypeOfConditionalExpressions2.ts, 3, 12)) + +class Derived extends Base { bar: string; } +>Derived : Symbol(Derived, Decl(bestCommonTypeOfConditionalExpressions2.ts, 3, 27)) +>Base : Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions2.ts, 0, 0)) +>bar : Symbol(bar, Decl(bestCommonTypeOfConditionalExpressions2.ts, 4, 28)) + +class Derived2 extends Base { baz: string; } +>Derived2 : Symbol(Derived2, Decl(bestCommonTypeOfConditionalExpressions2.ts, 4, 43)) +>Base : Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions2.ts, 0, 0)) +>baz : Symbol(baz, Decl(bestCommonTypeOfConditionalExpressions2.ts, 5, 29)) + +var base: Base; +>base : Symbol(base, Decl(bestCommonTypeOfConditionalExpressions2.ts, 6, 3)) +>Base : Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions2.ts, 0, 0)) + +var derived: Derived; +>derived : Symbol(derived, Decl(bestCommonTypeOfConditionalExpressions2.ts, 7, 3)) +>Derived : Symbol(Derived, Decl(bestCommonTypeOfConditionalExpressions2.ts, 3, 27)) + +var derived2: Derived2; +>derived2 : Symbol(derived2, Decl(bestCommonTypeOfConditionalExpressions2.ts, 8, 3)) +>Derived2 : Symbol(Derived2, Decl(bestCommonTypeOfConditionalExpressions2.ts, 4, 43)) + +var r2 = true ? 1 : ''; +>r2 : Symbol(r2, Decl(bestCommonTypeOfConditionalExpressions2.ts, 10, 3)) + +var r9 = true ? derived : derived2; +>r9 : Symbol(r9, Decl(bestCommonTypeOfConditionalExpressions2.ts, 11, 3)) +>derived : Symbol(derived, Decl(bestCommonTypeOfConditionalExpressions2.ts, 7, 3)) +>derived2 : Symbol(derived2, Decl(bestCommonTypeOfConditionalExpressions2.ts, 8, 3)) + +function foo(t: T, u: U) { +>foo : Symbol(foo, Decl(bestCommonTypeOfConditionalExpressions2.ts, 11, 35)) +>T : Symbol(T, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 13)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 15)) +>t : Symbol(t, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 19)) +>T : Symbol(T, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 13)) +>u : Symbol(u, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 24)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 15)) + + return true ? t : u; +>t : Symbol(t, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 19)) +>u : Symbol(u, Decl(bestCommonTypeOfConditionalExpressions2.ts, 13, 24)) +} + +function foo2(t: T, u: U) { // Error for referencing own type parameter +>foo2 : Symbol(foo2, Decl(bestCommonTypeOfConditionalExpressions2.ts, 15, 1)) +>T : Symbol(T, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 14)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 26)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 26)) +>t : Symbol(t, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 30)) +>T : Symbol(T, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 14)) +>u : Symbol(u, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 35)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 26)) + + return true ? t : u; // Ok because BCT(T, U) = U +>t : Symbol(t, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 30)) +>u : Symbol(u, Decl(bestCommonTypeOfConditionalExpressions2.ts, 17, 35)) +} + +function foo3(t: T, u: U) { +>foo3 : Symbol(foo3, Decl(bestCommonTypeOfConditionalExpressions2.ts, 19, 1)) +>T : Symbol(T, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 14)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 26)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 26)) +>V : Symbol(V, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 39)) +>V : Symbol(V, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 39)) +>t : Symbol(t, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 43)) +>T : Symbol(T, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 14)) +>u : Symbol(u, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 48)) +>U : Symbol(U, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 26)) + + return true ? t : u; +>t : Symbol(t, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 43)) +>u : Symbol(u, Decl(bestCommonTypeOfConditionalExpressions2.ts, 21, 48)) +} diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.types b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.types new file mode 100644 index 00000000000..ef9ecfb2a11 --- /dev/null +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.types @@ -0,0 +1,95 @@ +=== tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfConditionalExpressions2.ts === +// conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) +// these are errors + +class Base { foo: string; } +>Base : Base +>foo : string + +class Derived extends Base { bar: string; } +>Derived : Derived +>Base : Base +>bar : string + +class Derived2 extends Base { baz: string; } +>Derived2 : Derived2 +>Base : Base +>baz : string + +var base: Base; +>base : Base +>Base : Base + +var derived: Derived; +>derived : Derived +>Derived : Derived + +var derived2: Derived2; +>derived2 : Derived2 +>Derived2 : Derived2 + +var r2 = true ? 1 : ''; +>r2 : number | string +>true ? 1 : '' : number | string +>true : boolean +>1 : number +>'' : string + +var r9 = true ? derived : derived2; +>r9 : Derived | Derived2 +>true ? derived : derived2 : Derived | Derived2 +>true : boolean +>derived : Derived +>derived2 : Derived2 + +function foo(t: T, u: U) { +>foo : (t: T, u: U) => T | U +>T : T +>U : U +>t : T +>T : T +>u : U +>U : U + + return true ? t : u; +>true ? t : u : T | U +>true : boolean +>t : T +>u : U +} + +function foo2(t: T, u: U) { // Error for referencing own type parameter +>foo2 : (t: T, u: U) => U +>T : T +>U : U +>U : U +>t : T +>T : T +>u : U +>U : U + + return true ? t : u; // Ok because BCT(T, U) = U +>true ? t : u : U +>true : boolean +>t : T +>u : U +} + +function foo3(t: T, u: U) { +>foo3 : (t: T, u: U) => U +>T : T +>U : U +>U : U +>V : V +>V : V +>t : T +>T : T +>u : U +>U : U + + return true ? t : u; +>true ? t : u : U +>true : boolean +>t : T +>u : U +} diff --git a/tests/baselines/reference/bestCommonTypeOfTuple2.js b/tests/baselines/reference/bestCommonTypeOfTuple2.js index ed0b0ecb328..e38ce2854bd 100644 --- a/tests/baselines/reference/bestCommonTypeOfTuple2.js +++ b/tests/baselines/reference/bestCommonTypeOfTuple2.js @@ -32,30 +32,30 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var E = (function () { function E() { } return E; -})(); +}()); var F = (function (_super) { __extends(F, _super); function F() { _super.apply(this, arguments); } return F; -})(C); +}(C)); var C1 = (function () { function C1() { this.i = "foo"; } return C1; -})(); +}()); var D1 = (function (_super) { __extends(D1, _super); function D1() { @@ -63,7 +63,7 @@ var D1 = (function (_super) { this.i = "bar"; } return D1; -})(C1); +}(C1)); var t1; var t2; var t3; diff --git a/tests/baselines/reference/bind1.js b/tests/baselines/reference/bind1.js index 5027e8a03e0..c658384db85 100644 --- a/tests/baselines/reference/bind1.js +++ b/tests/baselines/reference/bind1.js @@ -12,6 +12,6 @@ var M; function C() { } return C; - })(); + }()); M.C = C; // this should be an unresolved symbol I error })(M || (M = {})); diff --git a/tests/baselines/reference/binopAssignmentShouldHaveType.js b/tests/baselines/reference/binopAssignmentShouldHaveType.js index e47b6dea875..c590efbcb5a 100644 --- a/tests/baselines/reference/binopAssignmentShouldHaveType.js +++ b/tests/baselines/reference/binopAssignmentShouldHaveType.js @@ -36,6 +36,6 @@ var Test; } }; return Bug; - })(); + }()); Test.Bug = Bug; })(Test || (Test = {})); diff --git a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js index a4012731356..0236bd736ee 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithAnyOtherType.js @@ -81,7 +81,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js index d3f8c76c6ca..b35a5e4ba12 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.js @@ -47,7 +47,7 @@ var A = (function () { } A.foo = function () { return false; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js index 370400a7dff..aab04be6dfc 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.js @@ -54,7 +54,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js index 071d52e7c18..366af5ecea8 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithStringType.js +++ b/tests/baselines/reference/bitwiseNotOperatorWithStringType.js @@ -53,7 +53,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js index 5ed3ac62e6a..06eaa9916e3 100644 --- a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js @@ -122,7 +122,7 @@ function foo3() { } X.prototype.m = function () { return x; }; return X; - })(); + }()); var x; } function foo4() { @@ -131,7 +131,7 @@ function foo4() { } class_1.prototype.m = function () { return x; }; return class_1; - })(); + }()); var x; } function foo5() { @@ -150,7 +150,7 @@ function foo7() { this.a = x; } return A; - })(); + }()); var x; } function foo8() { @@ -159,7 +159,7 @@ function foo8() { this.a = x; } return class_2; - })(); + }()); var x; } function foo9() { @@ -168,7 +168,7 @@ function foo9() { } class_3.a = x; return class_3; - })(); + }()); var x; } function foo10() { @@ -177,7 +177,7 @@ function foo10() { } A.a = x; return A; - })(); + }()); var x; } function foo11() { @@ -187,7 +187,7 @@ function foo11() { } class_4.a = x; return class_4; - })(); + }()); } var x; } @@ -198,7 +198,7 @@ function foo12() { this.a = x; } return class_5; - })(); + }()); } var x; } diff --git a/tests/baselines/reference/bpSpan_decorators.baseline b/tests/baselines/reference/bpSpan_decorators.baseline new file mode 100644 index 00000000000..f6bb700e098 --- /dev/null +++ b/tests/baselines/reference/bpSpan_decorators.baseline @@ -0,0 +1,384 @@ + +1 >declare function ClassDecorator1(target: Function): void; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (0 to 57) SpanInfo: undefined +-------------------------------- +2 >declare function ClassDecorator2(x: number): (target: Function) => void; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (58 to 130) SpanInfo: undefined +-------------------------------- +3 >declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (131 to 244) SpanInfo: undefined +-------------------------------- +4 >declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (245 to 373) SpanInfo: undefined +-------------------------------- +5 >declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (374 to 475) SpanInfo: undefined +-------------------------------- +6 >declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (476 to 592) SpanInfo: undefined +-------------------------------- +7 > + + ~ => Pos: (593 to 593) SpanInfo: undefined +-------------------------------- +8 >@ClassDecorator1 + + ~~~~~~~~~~~~~~~~~ => Pos: (594 to 610) SpanInfo: {"start":594,"length":37} + >@ClassDecorator1 + >@ClassDecorator2(10) + >:=> (line 8, col 0) to (line 9, col 20) +-------------------------------- +9 >@ClassDecorator2(10) + + ~~~~~~~~~~~~~~~~~~~~~ => Pos: (611 to 631) SpanInfo: {"start":594,"length":37} + >@ClassDecorator1 + >@ClassDecorator2(10) + >:=> (line 8, col 0) to (line 9, col 20) +-------------------------------- +10 >class Greeter { + + ~~~~~~~~~~~~~~~~ => Pos: (632 to 647) SpanInfo: {"start":632,"length":914} + >class Greeter { + > constructor( + > @ParameterDecorator1 + > @ParameterDecorator2(20) + > public greeting: string, + > + > @ParameterDecorator1 + > @ParameterDecorator2(30) + > ...b: string[]) { + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(40) + > greet() { + > return "

" + this.greeting + "

"; + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(50) + > private x: string; + > + > @PropertyDecorator1 + > @PropertyDecorator2(60) + > private static x1: number = 10; + > + > private fn( + > @ParameterDecorator1 + > @ParameterDecorator2(70) + > x: number) { + > return this.greeting; + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(80) + > get greetings() { + > return this.greeting; + > } + > + > set greetings( + > @ParameterDecorator1 + > @ParameterDecorator2(90) + > greetings: string) { + > this.greeting = greetings; + > } + >} + >:=> (line 10, col 0) to (line 54, col 1) +-------------------------------- +11 > constructor( + + ~~~~~~~~~~~~~~~~~ => Pos: (648 to 664) SpanInfo: {"start":857,"length":1} + >} + >:=> (line 19, col 4) to (line 19, col 5) +-------------------------------- +12 > @ParameterDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (665 to 693) SpanInfo: {"start":673,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(20) + >:=> (line 12, col 8) to (line 13, col 32) +-------------------------------- +13 > @ParameterDecorator2(20) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (694 to 726) SpanInfo: {"start":673,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(20) + >:=> (line 12, col 8) to (line 13, col 32) +-------------------------------- +14 > public greeting: string, + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (727 to 759) SpanInfo: {"start":735,"length":23} + >public greeting: string + >:=> (line 14, col 8) to (line 14, col 31) +-------------------------------- +15 > + + ~ => Pos: (760 to 760) SpanInfo: undefined +-------------------------------- +16 > @ParameterDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (761 to 789) SpanInfo: {"start":769,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(30) + >:=> (line 16, col 8) to (line 17, col 32) +-------------------------------- +17 > @ParameterDecorator2(30) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (790 to 822) SpanInfo: {"start":769,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(30) + >:=> (line 16, col 8) to (line 17, col 32) +-------------------------------- +18 > ...b: string[]) { + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (823 to 849) SpanInfo: {"start":835,"length":14} + >...b: string[] + >:=> (line 18, col 12) to (line 18, col 26) +18 > ...b: string[]) { + + ~~~ => Pos: (850 to 852) SpanInfo: {"start":857,"length":1} + >} + >:=> (line 19, col 4) to (line 19, col 5) +-------------------------------- +19 > } + + ~~~~~~ => Pos: (853 to 858) SpanInfo: {"start":857,"length":1} + >} + >:=> (line 19, col 4) to (line 19, col 5) +-------------------------------- +20 > + + ~ => Pos: (859 to 859) SpanInfo: undefined +-------------------------------- +21 > @PropertyDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (860 to 883) SpanInfo: {"start":864,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(40) + >:=> (line 21, col 4) to (line 22, col 27) +-------------------------------- +22 > @PropertyDecorator2(40) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (884 to 911) SpanInfo: {"start":864,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(40) + >:=> (line 21, col 4) to (line 22, col 27) +-------------------------------- +23 > greet() { + + ~~~~~~~~~~~ => Pos: (912 to 922) SpanInfo: {"start":916,"length":64} + >greet() { + > return "

" + this.greeting + "

"; + > } + >:=> (line 23, col 4) to (line 25, col 5) +23 > greet() { + + ~~~ => Pos: (923 to 925) SpanInfo: {"start":934,"length":39} + >return "

" + this.greeting + "

" + >:=> (line 24, col 8) to (line 24, col 47) +-------------------------------- +24 > return "

" + this.greeting + "

"; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=> Pos: (926 to 974) SpanInfo: {"start":934,"length":39} + >return "

" + this.greeting + "

" + >:=> (line 24, col 8) to (line 24, col 47) +-------------------------------- +25 > } + + ~~~~~~ => Pos: (975 to 980) SpanInfo: {"start":979,"length":1} + >} + >:=> (line 25, col 4) to (line 25, col 5) +-------------------------------- +26 > + + ~ => Pos: (981 to 981) SpanInfo: undefined +-------------------------------- +27 > @PropertyDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (982 to 1005) SpanInfo: {"start":986,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(50) + >:=> (line 27, col 4) to (line 28, col 27) +-------------------------------- +28 > @PropertyDecorator2(50) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1006 to 1033) SpanInfo: {"start":986,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(50) + >:=> (line 27, col 4) to (line 28, col 27) +-------------------------------- +29 > private x: string; + + ~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1034 to 1056) SpanInfo: undefined +-------------------------------- +30 > + + ~ => Pos: (1057 to 1057) SpanInfo: undefined +-------------------------------- +31 > @PropertyDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1058 to 1081) SpanInfo: {"start":1062,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(60) + >:=> (line 31, col 4) to (line 32, col 27) +-------------------------------- +32 > @PropertyDecorator2(60) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1082 to 1109) SpanInfo: {"start":1062,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(60) + >:=> (line 31, col 4) to (line 32, col 27) +-------------------------------- +33 > private static x1: number = 10; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1110 to 1145) SpanInfo: {"start":1114,"length":31} + >private static x1: number = 10; + >:=> (line 33, col 4) to (line 33, col 35) +-------------------------------- +34 > + + ~ => Pos: (1146 to 1146) SpanInfo: undefined +-------------------------------- +35 > private fn( + + ~~~~~~~~~~~~~~~~ => Pos: (1147 to 1162) SpanInfo: {"start":1151,"length":130} + >private fn( + > @ParameterDecorator1 + > @ParameterDecorator2(70) + > x: number) { + > return this.greeting; + > } + >:=> (line 35, col 4) to (line 40, col 5) +-------------------------------- +36 > @ParameterDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1163 to 1191) SpanInfo: {"start":1171,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(70) + >:=> (line 36, col 8) to (line 37, col 32) +-------------------------------- +37 > @ParameterDecorator2(70) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1192 to 1224) SpanInfo: {"start":1171,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(70) + >:=> (line 36, col 8) to (line 37, col 32) +-------------------------------- +38 > x: number) { + + ~~~~~~~~~~~~~~~~~~~~~ => Pos: (1225 to 1245) SpanInfo: {"start":1254,"length":20} + >return this.greeting + >:=> (line 39, col 8) to (line 39, col 28) +-------------------------------- +39 > return this.greeting; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1246 to 1275) SpanInfo: {"start":1254,"length":20} + >return this.greeting + >:=> (line 39, col 8) to (line 39, col 28) +-------------------------------- +40 > } + + ~~~~~~ => Pos: (1276 to 1281) SpanInfo: {"start":1280,"length":1} + >} + >:=> (line 40, col 4) to (line 40, col 5) +-------------------------------- +41 > + + ~ => Pos: (1282 to 1282) SpanInfo: undefined +-------------------------------- +42 > @PropertyDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1283 to 1306) SpanInfo: {"start":1287,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(80) + >:=> (line 42, col 4) to (line 43, col 27) +-------------------------------- +43 > @PropertyDecorator2(80) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1307 to 1334) SpanInfo: {"start":1287,"length":47} + >@PropertyDecorator1 + > @PropertyDecorator2(80) + >:=> (line 42, col 4) to (line 43, col 27) +-------------------------------- +44 > get greetings() { + + ~~~~~~~~~~~~~~~~~~~ => Pos: (1335 to 1353) SpanInfo: {"start":1339,"length":53} + >get greetings() { + > return this.greeting; + > } + >:=> (line 44, col 4) to (line 46, col 5) +44 > get greetings() { + + ~~~ => Pos: (1354 to 1356) SpanInfo: {"start":1365,"length":20} + >return this.greeting + >:=> (line 45, col 8) to (line 45, col 28) +-------------------------------- +45 > return this.greeting; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1357 to 1386) SpanInfo: {"start":1365,"length":20} + >return this.greeting + >:=> (line 45, col 8) to (line 45, col 28) +-------------------------------- +46 > } + + ~~~~~~ => Pos: (1387 to 1392) SpanInfo: {"start":1391,"length":1} + >} + >:=> (line 46, col 4) to (line 46, col 5) +-------------------------------- +47 > + + ~ => Pos: (1393 to 1393) SpanInfo: undefined +-------------------------------- +48 > set greetings( + + ~~~~~~~~~~~~~~~~~~~ => Pos: (1394 to 1412) SpanInfo: {"start":1398,"length":146} + >set greetings( + > @ParameterDecorator1 + > @ParameterDecorator2(90) + > greetings: string) { + > this.greeting = greetings; + > } + >:=> (line 48, col 4) to (line 53, col 5) +-------------------------------- +49 > @ParameterDecorator1 + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1413 to 1441) SpanInfo: {"start":1421,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(90) + >:=> (line 49, col 8) to (line 50, col 32) +-------------------------------- +50 > @ParameterDecorator2(90) + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1442 to 1474) SpanInfo: {"start":1421,"length":53} + >@ParameterDecorator1 + > @ParameterDecorator2(90) + >:=> (line 49, col 8) to (line 50, col 32) +-------------------------------- +51 > greetings: string) { + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1475 to 1503) SpanInfo: {"start":1512,"length":25} + >this.greeting = greetings + >:=> (line 52, col 8) to (line 52, col 33) +-------------------------------- +52 > this.greeting = greetings; + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1504 to 1538) SpanInfo: {"start":1512,"length":25} + >this.greeting = greetings + >:=> (line 52, col 8) to (line 52, col 33) +-------------------------------- +53 > } + + ~~~~~~ => Pos: (1539 to 1544) SpanInfo: {"start":1543,"length":1} + >} + >:=> (line 53, col 4) to (line 53, col 5) +-------------------------------- +54 >} + ~ => Pos: (1545 to 1545) SpanInfo: {"start":1545,"length":1} + >} + >:=> (line 54, col 0) to (line 54, col 1) \ No newline at end of file diff --git a/tests/baselines/reference/callConstructAssignment.errors.txt b/tests/baselines/reference/callConstructAssignment.errors.txt index 42949cf585d..fc36e472151 100644 --- a/tests/baselines/reference/callConstructAssignment.errors.txt +++ b/tests/baselines/reference/callConstructAssignment.errors.txt @@ -1,5 +1,7 @@ tests/cases/compiler/callConstructAssignment.ts(7,1): error TS2322: Type 'new () => any' is not assignable to type '() => void'. + Type 'new () => any' provides no match for the signature '(): void' tests/cases/compiler/callConstructAssignment.ts(8,1): error TS2322: Type '() => void' is not assignable to type 'new () => any'. + Type '() => void' provides no match for the signature 'new (): any' ==== tests/cases/compiler/callConstructAssignment.ts (2 errors) ==== @@ -12,6 +14,8 @@ tests/cases/compiler/callConstructAssignment.ts(8,1): error TS2322: Type '() => foo = bar; // error ~~~ !!! error TS2322: Type 'new () => any' is not assignable to type '() => void'. +!!! error TS2322: Type 'new () => any' provides no match for the signature '(): void' bar = foo; // error ~~~ -!!! error TS2322: Type '() => void' is not assignable to type 'new () => any'. \ No newline at end of file +!!! error TS2322: Type '() => void' is not assignable to type 'new () => any'. +!!! error TS2322: Type '() => void' provides no match for the signature 'new (): any' \ No newline at end of file diff --git a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js index f1028956e16..c40948273a6 100644 --- a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js @@ -63,7 +63,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var r4 = (new C()).f(1, ''); var r4b = (new C()).f(1, ''); var i; @@ -76,7 +76,7 @@ var C2 = (function () { return null; }; return C2; -})(); +}()); var r6 = (new C2()).f(1, ''); var r6b = (new C2()).f(1, ''); var i2; diff --git a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js index 26b9d33a55d..e78ee62edc5 100644 --- a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js @@ -51,7 +51,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var r4 = (new C()).f(1); var i; var r5 = i.f(1); @@ -62,7 +62,7 @@ var C2 = (function () { return null; }; return C2; -})(); +}()); var r6 = (new C2()).f(1); var i2; var r7 = i2.f(1); diff --git a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js index 7b0355533e3..dd9a2082510 100644 --- a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js +++ b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js @@ -59,7 +59,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var r4 = (new C()).f(1); var i; var r5 = i.f(1); @@ -70,7 +70,7 @@ var C2 = (function () { return null; }; return C2; -})(); +}()); var r6 = (new C2()).f(1); var i2; var r7 = i2.f(1); diff --git a/tests/baselines/reference/callOnClass.js b/tests/baselines/reference/callOnClass.js index 18127dca56c..fbcedb9ba1a 100644 --- a/tests/baselines/reference/callOnClass.js +++ b/tests/baselines/reference/callOnClass.js @@ -9,5 +9,5 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = C(); diff --git a/tests/baselines/reference/callOverloadViaElementAccessExpression.js b/tests/baselines/reference/callOverloadViaElementAccessExpression.js index 2e35c72e780..48f3771206e 100644 --- a/tests/baselines/reference/callOverloadViaElementAccessExpression.js +++ b/tests/baselines/reference/callOverloadViaElementAccessExpression.js @@ -19,7 +19,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var c = new C(); var r = c['foo'](1); var r2 = c['foo'](''); diff --git a/tests/baselines/reference/callOverloads1.js b/tests/baselines/reference/callOverloads1.js index b1148c12420..756a9099e44 100644 --- a/tests/baselines/reference/callOverloads1.js +++ b/tests/baselines/reference/callOverloads1.js @@ -24,7 +24,7 @@ var Foo = (function () { } Foo.prototype.bar1 = function () { }; return Foo; -})(); +}()); function F1(a) { return a; } var f1 = new Foo("hey"); f1.bar1(); diff --git a/tests/baselines/reference/callOverloads2.js b/tests/baselines/reference/callOverloads2.js index b336911eeb0..b890ee8bde9 100644 --- a/tests/baselines/reference/callOverloads2.js +++ b/tests/baselines/reference/callOverloads2.js @@ -32,7 +32,7 @@ var Foo = (function () { } Foo.prototype.bar1 = function () { }; return Foo; -})(); +}()); function F1(s) { return s; } // error function F1(a) { return a; } // error var f1 = new Foo("hey"); diff --git a/tests/baselines/reference/callOverloads3.js b/tests/baselines/reference/callOverloads3.js index 3b615438ccd..e5d678543c6 100644 --- a/tests/baselines/reference/callOverloads3.js +++ b/tests/baselines/reference/callOverloads3.js @@ -25,7 +25,7 @@ var Foo = (function () { } Foo.prototype.bar1 = function () { }; return Foo; -})(); +}()); //class Foo(s: String); var f1 = new Foo("hey"); f1.bar1(); diff --git a/tests/baselines/reference/callOverloads4.js b/tests/baselines/reference/callOverloads4.js index 529b63ad3b8..dfb274dfb6e 100644 --- a/tests/baselines/reference/callOverloads4.js +++ b/tests/baselines/reference/callOverloads4.js @@ -25,7 +25,7 @@ var Foo = (function () { } Foo.prototype.bar1 = function () { }; return Foo; -})(); +}()); var f1 = new Foo("hey"); f1.bar1(); Foo(); diff --git a/tests/baselines/reference/callOverloads5.js b/tests/baselines/reference/callOverloads5.js index dc508b3b8ed..cf159d309b0 100644 --- a/tests/baselines/reference/callOverloads5.js +++ b/tests/baselines/reference/callOverloads5.js @@ -26,7 +26,7 @@ var Foo = (function () { } Foo.prototype.bar1 = function (a) { }; return Foo; -})(); +}()); //class Foo(s: String); var f1 = new Foo("hey"); f1.bar1("a"); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js index e43c22fab75..6b3bf8e125e 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js @@ -80,25 +80,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js index 6105ddf23fa..a823047fc0d 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js @@ -127,26 +127,26 @@ var Errors; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Derived); + }(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; - })(Base); + }(Base)); })(Errors || (Errors = {})); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js index aee3af6f740..b60cf2014f1 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js @@ -60,25 +60,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js index c72a77e4020..434af36123e 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js @@ -60,25 +60,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js index e22bb1189ed..9776d14612e 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js @@ -63,25 +63,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js index 0f8a033067d..14442dd6e22 100644 --- a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js +++ b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js @@ -79,7 +79,7 @@ var C = (function () { if (x === void 0) { x = 1; } }; return C; -})(); +}()); var c; c.foo(); c.foo(1); diff --git a/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js b/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js index 73270c240cb..baa7f6c2c95 100644 --- a/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js +++ b/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.js @@ -178,7 +178,7 @@ var C = (function () { function C() { } return C; -})(); +}()); function foo10(x) { var c; return c; @@ -191,7 +191,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; })(M || (M = {})); function foo11() { @@ -216,7 +216,7 @@ var c1 = (function () { function c1(x) { } return c1; -})(); +}()); var c1; (function (c1) { c1.x = 1; diff --git a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js index 5584dd7b216..dba88c4951e 100644 --- a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js +++ b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js @@ -57,7 +57,7 @@ var C = (function () { C.prototype.foo2 = function (x, y) { }; C.prototype.foo3 = function (x, y) { }; return C; -})(); +}()); var a; var b = { foo: function (x, y) { }, diff --git a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js index 6ed7f6f7fe5..add9e07ea4b 100644 --- a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js +++ b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js @@ -57,7 +57,7 @@ var C = (function () { C.prototype.foo2 = function (x, x) { }; C.prototype.foo3 = function (x, x) { }; return C; -})(); +}()); var a; var b = { foo: function (x, x) { }, diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters.js b/tests/baselines/reference/callSignaturesWithOptionalParameters.js index 2f4876fb2de..a0a3835c943 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters.js @@ -71,7 +71,7 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); var c; c.foo(); c.foo(1); diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js index a3fb2fe7a85..973b0466a79 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js @@ -73,7 +73,7 @@ var C = (function () { C.prototype.foo = function (x) { }; C.prototype.foo2 = function (x, y) { }; return C; -})(); +}()); var c; c.foo(); c.foo(1); diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers.js b/tests/baselines/reference/callSignaturesWithParameterInitializers.js index c95a558e4c8..8b53d5b29d5 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers.js @@ -81,7 +81,7 @@ var C = (function () { if (x === void 0) { x = 1; } }; return C; -})(); +}()); var c; c.foo(); c.foo(1); diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js index 0524db42f65..fd1dd369010 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js @@ -40,7 +40,7 @@ var C = (function () { if (x === void 0) { x = 1; } }; return C; -})(); +}()); var c; c.foo(); c.foo(1); diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index 50840abfbb7..e89e9d9345b 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -95,7 +95,7 @@ var C = (function () { } }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -107,5 +107,5 @@ var D = (function (_super) { _super.prototype.foo.apply(this, [1, 2].concat(a)); }; return D; -})(C); +}(C)); var _a, _b, _c; diff --git a/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js b/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js index 2b05f8d3389..4b25c75b0aa 100644 --- a/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js +++ b/tests/baselines/reference/cannotInvokeNewOnErrorExpression.js @@ -12,6 +12,6 @@ var M; function ClassA() { } return ClassA; - })(); + }()); })(M || (M = {})); var t = new M.ClassA[]; diff --git a/tests/baselines/reference/captureThisInSuperCall.js b/tests/baselines/reference/captureThisInSuperCall.js index 611ad93f531..791b6f4c979 100644 --- a/tests/baselines/reference/captureThisInSuperCall.js +++ b/tests/baselines/reference/captureThisInSuperCall.js @@ -18,7 +18,7 @@ var A = (function () { function A(p) { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -27,4 +27,4 @@ var B = (function (_super) { } B.prototype.someMethod = function () { }; return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/capturedLetConstInLoop10.js b/tests/baselines/reference/capturedLetConstInLoop10.js index 36b2ab9453f..b493dcbd288 100644 --- a/tests/baselines/reference/capturedLetConstInLoop10.js +++ b/tests/baselines/reference/capturedLetConstInLoop10.js @@ -101,7 +101,7 @@ var A = (function () { } }; return A; -})(); +}()); var B = (function () { function B() { } @@ -121,4 +121,4 @@ var B = (function () { B.prototype.bar = function (a) { }; return B; -})(); +}()); diff --git a/tests/baselines/reference/capturedLetConstInLoop9.js b/tests/baselines/reference/capturedLetConstInLoop9.js index 93aef628f8a..9b31218a1e3 100644 --- a/tests/baselines/reference/capturedLetConstInLoop9.js +++ b/tests/baselines/reference/capturedLetConstInLoop9.js @@ -171,7 +171,7 @@ var _loop_1 = function(x) { return x_1 + 1; }; return A; - })(); + }()); }; for (var x = 0; x < 1; ++x) { _loop_1(x); @@ -280,7 +280,7 @@ var C = (function () { } }; return C; -})(); +}()); function foo3() { var x = arguments.length; var _loop_6 = function(y) { diff --git a/tests/baselines/reference/castParentheses.js b/tests/baselines/reference/castParentheses.js index 8ee31be63f9..936b2e7af07 100644 --- a/tests/baselines/reference/castParentheses.js +++ b/tests/baselines/reference/castParentheses.js @@ -16,7 +16,7 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = a; var b = a.b; var b = a.b.c; diff --git a/tests/baselines/reference/castingTuple.js b/tests/baselines/reference/castingTuple.js index 0102d1310a3..bcff0938157 100644 --- a/tests/baselines/reference/castingTuple.js +++ b/tests/baselines/reference/castingTuple.js @@ -43,18 +43,18 @@ var A = (function () { this.a = 10; } return A; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); ; var D = (function () { function D() { } return D; -})(); +}()); ; var E = (function (_super) { __extends(E, _super); @@ -62,7 +62,7 @@ var E = (function (_super) { _super.apply(this, arguments); } return E; -})(A); +}(A)); ; var F = (function (_super) { __extends(F, _super); @@ -70,7 +70,7 @@ var F = (function (_super) { _super.apply(this, arguments); } return F; -})(A); +}(A)); ; var E1; (function (E1) { diff --git a/tests/baselines/reference/chainedAssignment1.js b/tests/baselines/reference/chainedAssignment1.js index ac637b7def2..8f13477bdef 100644 --- a/tests/baselines/reference/chainedAssignment1.js +++ b/tests/baselines/reference/chainedAssignment1.js @@ -28,18 +28,18 @@ var X = (function () { this.z = z; } return X; -})(); +}()); var Y = (function () { function Y(z) { this.z = z; } return Y; -})(); +}()); var Z = (function () { function Z() { } return Z; -})(); +}()); var c1 = new X(3); var c2 = new Y(5); var c3 = new Z(); diff --git a/tests/baselines/reference/chainedAssignment3.js b/tests/baselines/reference/chainedAssignment3.js index 04c328031cd..b4b6330a7cf 100644 --- a/tests/baselines/reference/chainedAssignment3.js +++ b/tests/baselines/reference/chainedAssignment3.js @@ -32,14 +32,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var a; var b; a = b = null; diff --git a/tests/baselines/reference/chainedAssignmentChecking.js b/tests/baselines/reference/chainedAssignmentChecking.js index e9c66ab3681..4d9fbfa48a1 100644 --- a/tests/baselines/reference/chainedAssignmentChecking.js +++ b/tests/baselines/reference/chainedAssignmentChecking.js @@ -28,18 +28,18 @@ var X = (function () { this.z = z; } return X; -})(); +}()); var Y = (function () { function Y(z) { this.z = z; } return Y; -})(); +}()); var Z = (function () { function Z() { } return Z; -})(); +}()); var c1 = new X(3); var c2 = new Y(5); var c3 = new Z(); diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js index e7e1a3a871b..c53910e00ac 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js @@ -33,25 +33,25 @@ var Chain = (function () { return null; }; return Chain; -})(); +}()); var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(B); +}(B)); // Ok to go down the chain, but error to try to climb back up (new Chain(new A)).then(function (a) { return new B; }).then(function (b) { return new C; }).then(function (c) { return new B; }).then(function (b) { return new A; }); diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js index 3b9b8b80ecf..8aa5594701f 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js @@ -59,7 +59,7 @@ var Chain = (function () { return null; }; return Chain; -})(); +}()); var Chain2 = (function () { function Chain2(value) { this.value = value; @@ -78,4 +78,4 @@ var Chain2 = (function () { return null; }; return Chain2; -})(); +}()); diff --git a/tests/baselines/reference/checkForObjectTooStrict.js b/tests/baselines/reference/checkForObjectTooStrict.js index d8f40a3f1d9..cdc19a5688d 100644 --- a/tests/baselines/reference/checkForObjectTooStrict.js +++ b/tests/baselines/reference/checkForObjectTooStrict.js @@ -43,7 +43,7 @@ var Foo; function Object() { } return Object; - })(); + }()); Foo.Object = Object; })(Foo || (Foo = {})); var Bar = (function (_super) { @@ -52,11 +52,11 @@ var Bar = (function (_super) { _super.call(this); } return Bar; -})(Foo.Object); +}(Foo.Object)); var Baz = (function (_super) { __extends(Baz, _super); function Baz() { _super.call(this); } return Baz; -})(Object); +}(Object)); diff --git a/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js b/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js index 64ea4e67fa8..a5eb24c6716 100644 --- a/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js +++ b/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js @@ -24,4 +24,4 @@ var A = (function () { }); }; return A; -})(); +}()); diff --git a/tests/baselines/reference/circularImportAlias.js b/tests/baselines/reference/circularImportAlias.js index 8b908a97ee6..19c156176bf 100644 --- a/tests/baselines/reference/circularImportAlias.js +++ b/tests/baselines/reference/circularImportAlias.js @@ -35,7 +35,7 @@ var B; _super.apply(this, arguments); } return D; - })(B.a.C); + }(B.a.C)); B.D = D; })(B || (B = {})); var A; @@ -44,7 +44,7 @@ var A; function C() { } return C; - })(); + }()); A.C = C; A.b = B; })(A || (A = {})); diff --git a/tests/baselines/reference/circularObjectLiteralAccessors.js b/tests/baselines/reference/circularObjectLiteralAccessors.js new file mode 100644 index 00000000000..6d99a8f25fc --- /dev/null +++ b/tests/baselines/reference/circularObjectLiteralAccessors.js @@ -0,0 +1,29 @@ +//// [circularObjectLiteralAccessors.ts] + +// Repro from #6000 + +const a = { + b: { + get foo(): string { + return a.foo; + }, + set foo(value: string) { + a.foo = value; + } + }, + foo: '' +}; + +//// [circularObjectLiteralAccessors.js] +// Repro from #6000 +var a = { + b: { + get foo() { + return a.foo; + }, + set foo(value) { + a.foo = value; + } + }, + foo: '' +}; diff --git a/tests/baselines/reference/circularObjectLiteralAccessors.symbols b/tests/baselines/reference/circularObjectLiteralAccessors.symbols new file mode 100644 index 00000000000..21e613c97fe --- /dev/null +++ b/tests/baselines/reference/circularObjectLiteralAccessors.symbols @@ -0,0 +1,34 @@ +=== tests/cases/compiler/circularObjectLiteralAccessors.ts === + +// Repro from #6000 + +const a = { +>a : Symbol(a, Decl(circularObjectLiteralAccessors.ts, 3, 5)) + + b: { +>b : Symbol(b, Decl(circularObjectLiteralAccessors.ts, 3, 11)) + + get foo(): string { +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 4, 8), Decl(circularObjectLiteralAccessors.ts, 7, 10)) + + return a.foo; +>a.foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 11, 6)) +>a : Symbol(a, Decl(circularObjectLiteralAccessors.ts, 3, 5)) +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 11, 6)) + + }, + set foo(value: string) { +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 4, 8), Decl(circularObjectLiteralAccessors.ts, 7, 10)) +>value : Symbol(value, Decl(circularObjectLiteralAccessors.ts, 8, 16)) + + a.foo = value; +>a.foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 11, 6)) +>a : Symbol(a, Decl(circularObjectLiteralAccessors.ts, 3, 5)) +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 11, 6)) +>value : Symbol(value, Decl(circularObjectLiteralAccessors.ts, 8, 16)) + } + }, + foo: '' +>foo : Symbol(foo, Decl(circularObjectLiteralAccessors.ts, 11, 6)) + +}; diff --git a/tests/baselines/reference/circularObjectLiteralAccessors.types b/tests/baselines/reference/circularObjectLiteralAccessors.types new file mode 100644 index 00000000000..1f01432db5a --- /dev/null +++ b/tests/baselines/reference/circularObjectLiteralAccessors.types @@ -0,0 +1,38 @@ +=== tests/cases/compiler/circularObjectLiteralAccessors.ts === + +// Repro from #6000 + +const a = { +>a : { b: { foo: string; }; foo: string; } +>{ b: { get foo(): string { return a.foo; }, set foo(value: string) { a.foo = value; } }, foo: ''} : { b: { foo: string; }; foo: string; } + + b: { +>b : { foo: string; } +>{ get foo(): string { return a.foo; }, set foo(value: string) { a.foo = value; } } : { foo: string; } + + get foo(): string { +>foo : string + + return a.foo; +>a.foo : string +>a : { b: { foo: string; }; foo: string; } +>foo : string + + }, + set foo(value: string) { +>foo : string +>value : string + + a.foo = value; +>a.foo = value : string +>a.foo : string +>a : { b: { foo: string; }; foo: string; } +>foo : string +>value : string + } + }, + foo: '' +>foo : string +>'' : string + +}; diff --git a/tests/baselines/reference/circularReference.errors.txt b/tests/baselines/reference/circularReference.errors.txt index 5e0a6208a1e..9954944ff1f 100644 --- a/tests/baselines/reference/circularReference.errors.txt +++ b/tests/baselines/reference/circularReference.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/foo1.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/foo1.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/externalModules/foo1.ts(9,12): error TS2339: Property 'x' does not exist on type 'C1'. tests/cases/conformance/externalModules/foo2.ts(8,12): error TS2339: Property 'y' does not exist on type 'C1'. tests/cases/conformance/externalModules/foo2.ts(13,8): error TS2339: Property 'x' does not exist on type 'C1'. @@ -29,7 +29,7 @@ tests/cases/conformance/externalModules/foo2.ts(13,8): error TS2339: Property 'x ==== tests/cases/conformance/externalModules/foo1.ts (2 errors) ==== import foo2 = require('./foo2'); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export module M1 { export class C1 { m1: foo2.M1.C1; diff --git a/tests/baselines/reference/circularReference.js b/tests/baselines/reference/circularReference.js index ca072952b53..52fe5f3ef54 100644 --- a/tests/baselines/reference/circularReference.js +++ b/tests/baselines/reference/circularReference.js @@ -45,7 +45,7 @@ var M1; this.m1.x = 20; // Error } return C1; - })(); + }()); M1.C1 = C1; })(M1 = exports.M1 || (exports.M1 = {})); //// [foo2.js] @@ -63,6 +63,6 @@ var M1; tmp.x = 20; // Error } return C1; - })(); + }()); M1.C1 = C1; })(M1 = exports.M1 || (exports.M1 = {})); diff --git a/tests/baselines/reference/circularTypeAliasForUnionWithClass.js b/tests/baselines/reference/circularTypeAliasForUnionWithClass.js index 90a11364897..bac0eb66b26 100644 --- a/tests/baselines/reference/circularTypeAliasForUnionWithClass.js +++ b/tests/baselines/reference/circularTypeAliasForUnionWithClass.js @@ -24,16 +24,16 @@ var I0 = (function () { function I0() { } return I0; -})(); +}()); var v3; var I3 = (function () { function I3() { } return I3; -})(); +}()); var v4; var I4 = (function () { function I4() { } return I4; -})(); +}()); diff --git a/tests/baselines/reference/circularTypeofWithFunctionModule.js b/tests/baselines/reference/circularTypeofWithFunctionModule.js new file mode 100644 index 00000000000..6ce1dd62fc5 --- /dev/null +++ b/tests/baselines/reference/circularTypeofWithFunctionModule.js @@ -0,0 +1,40 @@ +//// [circularTypeofWithFunctionModule.ts] +// Repro from #6072 + +class Foo {} + +function maker (value: string): typeof maker.Bar { + return maker.Bar; +} + +namespace maker { + export class Bar extends Foo {} +} + + +//// [circularTypeofWithFunctionModule.js] +// Repro from #6072 +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +var Foo = (function () { + function Foo() { + } + return Foo; +}()); +function maker(value) { + return maker.Bar; +} +var maker; +(function (maker) { + var Bar = (function (_super) { + __extends(Bar, _super); + function Bar() { + _super.apply(this, arguments); + } + return Bar; + }(Foo)); + maker.Bar = Bar; +})(maker || (maker = {})); diff --git a/tests/baselines/reference/circularTypeofWithFunctionModule.symbols b/tests/baselines/reference/circularTypeofWithFunctionModule.symbols new file mode 100644 index 00000000000..19dde10852f --- /dev/null +++ b/tests/baselines/reference/circularTypeofWithFunctionModule.symbols @@ -0,0 +1,27 @@ +=== tests/cases/compiler/circularTypeofWithFunctionModule.ts === +// Repro from #6072 + +class Foo {} +>Foo : Symbol(Foo, Decl(circularTypeofWithFunctionModule.ts, 0, 0)) + +function maker (value: string): typeof maker.Bar { +>maker : Symbol(maker, Decl(circularTypeofWithFunctionModule.ts, 2, 12), Decl(circularTypeofWithFunctionModule.ts, 6, 1)) +>value : Symbol(value, Decl(circularTypeofWithFunctionModule.ts, 4, 16)) +>maker.Bar : Symbol(maker.Bar, Decl(circularTypeofWithFunctionModule.ts, 8, 17)) +>maker : Symbol(maker, Decl(circularTypeofWithFunctionModule.ts, 2, 12), Decl(circularTypeofWithFunctionModule.ts, 6, 1)) +>Bar : Symbol(maker.Bar, Decl(circularTypeofWithFunctionModule.ts, 8, 17)) + + return maker.Bar; +>maker.Bar : Symbol(maker.Bar, Decl(circularTypeofWithFunctionModule.ts, 8, 17)) +>maker : Symbol(maker, Decl(circularTypeofWithFunctionModule.ts, 2, 12), Decl(circularTypeofWithFunctionModule.ts, 6, 1)) +>Bar : Symbol(maker.Bar, Decl(circularTypeofWithFunctionModule.ts, 8, 17)) +} + +namespace maker { +>maker : Symbol(maker, Decl(circularTypeofWithFunctionModule.ts, 2, 12), Decl(circularTypeofWithFunctionModule.ts, 6, 1)) + + export class Bar extends Foo {} +>Bar : Symbol(Bar, Decl(circularTypeofWithFunctionModule.ts, 8, 17)) +>Foo : Symbol(Foo, Decl(circularTypeofWithFunctionModule.ts, 0, 0)) +} + diff --git a/tests/baselines/reference/circularTypeofWithFunctionModule.types b/tests/baselines/reference/circularTypeofWithFunctionModule.types new file mode 100644 index 00000000000..f1c2431bfde --- /dev/null +++ b/tests/baselines/reference/circularTypeofWithFunctionModule.types @@ -0,0 +1,27 @@ +=== tests/cases/compiler/circularTypeofWithFunctionModule.ts === +// Repro from #6072 + +class Foo {} +>Foo : Foo + +function maker (value: string): typeof maker.Bar { +>maker : typeof maker +>value : string +>maker.Bar : typeof maker.Bar +>maker : typeof maker +>Bar : typeof maker.Bar + + return maker.Bar; +>maker.Bar : typeof maker.Bar +>maker : typeof maker +>Bar : typeof maker.Bar +} + +namespace maker { +>maker : typeof maker + + export class Bar extends Foo {} +>Bar : Bar +>Foo : Foo +} + diff --git a/tests/baselines/reference/class2.js b/tests/baselines/reference/class2.js index 03b60ac8dc5..6ef78ed46ee 100644 --- a/tests/baselines/reference/class2.js +++ b/tests/baselines/reference/class2.js @@ -7,4 +7,4 @@ var foo = (function () { } foo.f = 3; return foo; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractAsIdentifier.js b/tests/baselines/reference/classAbstractAsIdentifier.js index 6adadd346b5..44a2b0d3312 100644 --- a/tests/baselines/reference/classAbstractAsIdentifier.js +++ b/tests/baselines/reference/classAbstractAsIdentifier.js @@ -11,5 +11,5 @@ var abstract = (function () { } abstract.prototype.foo = function () { return 1; }; return abstract; -})(); +}()); new abstract; diff --git a/tests/baselines/reference/classAbstractAssignabilityConstructorFunction.js b/tests/baselines/reference/classAbstractAssignabilityConstructorFunction.js index 3d8fd404afc..523f87e5a64 100644 --- a/tests/baselines/reference/classAbstractAssignabilityConstructorFunction.js +++ b/tests/baselines/reference/classAbstractAssignabilityConstructorFunction.js @@ -13,7 +13,7 @@ var A = (function () { function A() { } return A; -})(); +}()); // var AA: typeof A; var AAA; // AA = A; // okay diff --git a/tests/baselines/reference/classAbstractClinterfaceAssignability.js b/tests/baselines/reference/classAbstractClinterfaceAssignability.js index cbcf9dd189c..f61fb1dbbd5 100644 --- a/tests/baselines/reference/classAbstractClinterfaceAssignability.js +++ b/tests/baselines/reference/classAbstractClinterfaceAssignability.js @@ -29,7 +29,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var AA; AA = I; var AAA; diff --git a/tests/baselines/reference/classAbstractConstructor.js b/tests/baselines/reference/classAbstractConstructor.js index fa88b0c7d37..4dd4ee042f0 100644 --- a/tests/baselines/reference/classAbstractConstructor.js +++ b/tests/baselines/reference/classAbstractConstructor.js @@ -8,4 +8,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractConstructorAssignability.js b/tests/baselines/reference/classAbstractConstructorAssignability.js index 04357a44554..5695e6c79d3 100644 --- a/tests/baselines/reference/classAbstractConstructorAssignability.js +++ b/tests/baselines/reference/classAbstractConstructorAssignability.js @@ -24,21 +24,21 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(B); +}(B)); var AA = B; var BB = A; var CC = B; diff --git a/tests/baselines/reference/classAbstractCrashedOnce.js b/tests/baselines/reference/classAbstractCrashedOnce.js index f4268a4a13c..46f0a8938c4 100644 --- a/tests/baselines/reference/classAbstractCrashedOnce.js +++ b/tests/baselines/reference/classAbstractCrashedOnce.js @@ -20,7 +20,7 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); var bar = (function (_super) { __extends(bar, _super); function bar() { @@ -31,5 +31,5 @@ var bar = (function (_super) { ; }; return bar; -})(foo); +}(foo)); var x = new bar(); diff --git a/tests/baselines/reference/classAbstractExtends.js b/tests/baselines/reference/classAbstractExtends.js index 58e49de2c77..8d7128cc03d 100644 --- a/tests/baselines/reference/classAbstractExtends.js +++ b/tests/baselines/reference/classAbstractExtends.js @@ -27,28 +27,28 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(B); +}(B)); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(B); +}(B)); var E = (function (_super) { __extends(E, _super); function E() { @@ -56,4 +56,4 @@ var E = (function (_super) { } E.prototype.bar = function () { }; return E; -})(B); +}(B)); diff --git a/tests/baselines/reference/classAbstractFactoryFunction.js b/tests/baselines/reference/classAbstractFactoryFunction.js index b1d89ba385d..d5b0417f995 100644 --- a/tests/baselines/reference/classAbstractFactoryFunction.js +++ b/tests/baselines/reference/classAbstractFactoryFunction.js @@ -27,14 +27,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); function NewA(Factory) { return new A; } diff --git a/tests/baselines/reference/classAbstractGeneric.js b/tests/baselines/reference/classAbstractGeneric.js index 5af7da1601a..c9409e97466 100644 --- a/tests/baselines/reference/classAbstractGeneric.js +++ b/tests/baselines/reference/classAbstractGeneric.js @@ -35,28 +35,28 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); // error -- inherits abstract methods +}(A)); // error -- inherits abstract methods var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(A); // error -- inherits abstract methods +}(A)); // error -- inherits abstract methods var E = (function (_super) { __extends(E, _super); function E() { @@ -64,7 +64,7 @@ var E = (function (_super) { } E.prototype.foo = function () { return this.t; }; return E; -})(A); +}(A)); var F = (function (_super) { __extends(F, _super); function F() { @@ -72,7 +72,7 @@ var F = (function (_super) { } F.prototype.bar = function (t) { }; return F; -})(A); +}(A)); var G = (function (_super) { __extends(G, _super); function G() { @@ -81,4 +81,4 @@ var G = (function (_super) { G.prototype.foo = function () { return this.t; }; G.prototype.bar = function (t) { }; return G; -})(A); +}(A)); diff --git a/tests/baselines/reference/classAbstractImportInstantiation.js b/tests/baselines/reference/classAbstractImportInstantiation.js index bb25181f20d..4c837d67f38 100644 --- a/tests/baselines/reference/classAbstractImportInstantiation.js +++ b/tests/baselines/reference/classAbstractImportInstantiation.js @@ -17,7 +17,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; new A; })(M || (M = {})); diff --git a/tests/baselines/reference/classAbstractInAModule.js b/tests/baselines/reference/classAbstractInAModule.js index e7ecd66b5bd..17fbf568601 100644 --- a/tests/baselines/reference/classAbstractInAModule.js +++ b/tests/baselines/reference/classAbstractInAModule.js @@ -19,7 +19,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; var B = (function (_super) { __extends(B, _super); @@ -27,7 +27,7 @@ var M; _super.apply(this, arguments); } return B; - })(A); + }(A)); M.B = B; })(M || (M = {})); new M.A; diff --git a/tests/baselines/reference/classAbstractInheritance.js b/tests/baselines/reference/classAbstractInheritance.js index 6656e4687d2..4d5c804e557 100644 --- a/tests/baselines/reference/classAbstractInheritance.js +++ b/tests/baselines/reference/classAbstractInheritance.js @@ -31,65 +31,65 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var AA = (function () { function AA() { } return AA; -})(); +}()); var BB = (function (_super) { __extends(BB, _super); function BB() { _super.apply(this, arguments); } return BB; -})(AA); +}(AA)); var CC = (function (_super) { __extends(CC, _super); function CC() { _super.apply(this, arguments); } return CC; -})(AA); +}(AA)); var DD = (function (_super) { __extends(DD, _super); function DD() { _super.apply(this, arguments); } return DD; -})(BB); +}(BB)); var EE = (function (_super) { __extends(EE, _super); function EE() { _super.apply(this, arguments); } return EE; -})(BB); +}(BB)); var FF = (function (_super) { __extends(FF, _super); function FF() { _super.apply(this, arguments); } return FF; -})(CC); +}(CC)); var GG = (function (_super) { __extends(GG, _super); function GG() { _super.apply(this, arguments); } return GG; -})(CC); +}(CC)); diff --git a/tests/baselines/reference/classAbstractInstantiations1.js b/tests/baselines/reference/classAbstractInstantiations1.js index 689a78f1a06..0263e9e97b3 100644 --- a/tests/baselines/reference/classAbstractInstantiations1.js +++ b/tests/baselines/reference/classAbstractInstantiations1.js @@ -37,21 +37,21 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(B); +}(B)); new A; new A(1); // should report 1 error new B; diff --git a/tests/baselines/reference/classAbstractInstantiations2.js b/tests/baselines/reference/classAbstractInstantiations2.js index 1f45f02da0b..379e0b18ccc 100644 --- a/tests/baselines/reference/classAbstractInstantiations2.js +++ b/tests/baselines/reference/classAbstractInstantiations2.js @@ -61,13 +61,13 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function () { return this.bar(); }; return B; -})(); +}()); new B; // error var BB = B; var AA = BB; // error, AA is not of abstract type. @@ -85,14 +85,14 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(B); // error -- not declared abstract +}(B)); // error -- not declared abstract var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(B); // okay +}(B)); // okay var E = (function (_super) { __extends(E, _super); function E() { @@ -100,7 +100,7 @@ var E = (function (_super) { } E.prototype.bar = function () { return 1; }; return E; -})(B); +}(B)); var F = (function (_super) { __extends(F, _super); function F() { @@ -108,14 +108,14 @@ var F = (function (_super) { } F.prototype.bar = function () { return 2; }; return F; -})(B); +}(B)); var G = (function () { function G() { } return G; -})(); +}()); var H = (function () { function H() { } return H; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractManyKeywords.errors.txt b/tests/baselines/reference/classAbstractManyKeywords.errors.txt index b200404eaf0..eec5ac4bc0d 100644 --- a/tests/baselines/reference/classAbstractManyKeywords.errors.txt +++ b/tests/baselines/reference/classAbstractManyKeywords.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts(1,25): error TS1005: ';' expected. tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts(3,1): error TS1128: Declaration or statement expected. tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts(4,17): error TS1005: '=' expected. @@ -7,7 +7,7 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst ==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts (4 errors) ==== export default abstract class A {} ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~ !!! error TS1005: ';' expected. export abstract class B {} diff --git a/tests/baselines/reference/classAbstractManyKeywords.js b/tests/baselines/reference/classAbstractManyKeywords.js index 1be5a06195c..2708806a0d1 100644 --- a/tests/baselines/reference/classAbstractManyKeywords.js +++ b/tests/baselines/reference/classAbstractManyKeywords.js @@ -10,20 +10,20 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); exports.B = B; var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractMergedDeclaration.js b/tests/baselines/reference/classAbstractMergedDeclaration.js index f6a91f870d2..d89138bd3ff 100644 --- a/tests/baselines/reference/classAbstractMergedDeclaration.js +++ b/tests/baselines/reference/classAbstractMergedDeclaration.js @@ -45,42 +45,42 @@ var CM = (function () { function CM() { } return CM; -})(); +}()); var MC = (function () { function MC() { } return MC; -})(); +}()); var CI = (function () { function CI() { } return CI; -})(); +}()); var IC = (function () { function IC() { } return IC; -})(); +}()); var CC1 = (function () { function CC1() { } return CC1; -})(); +}()); var CC1 = (function () { function CC1() { } return CC1; -})(); +}()); var CC2 = (function () { function CC2() { } return CC2; -})(); +}()); var CC2 = (function () { function CC2() { } return CC2; -})(); +}()); new CM; new MC; new CI; diff --git a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.errors.txt b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.errors.txt index d6f9b7540d4..48968c2b585 100644 --- a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.errors.txt +++ b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.errors.txt @@ -1,6 +1,6 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts(2,5): error TS1244: Abstract methods can only appear within an abstract class. tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts(6,5): error TS1244: Abstract methods can only appear within an abstract class. -tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts(6,5): error TS1245: Method 'foo' cannot have an implementation because it is marked abstract. +tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts(6,14): error TS1245: Method 'foo' cannot have an implementation because it is marked abstract. ==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodInNonAbstractClass.ts (3 errors) ==== @@ -14,6 +14,6 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst abstract foo() {} ~~~~~~~~ !!! error TS1244: Abstract methods can only appear within an abstract class. - ~~~~~~~~~~~~~~~~~ + ~~~ !!! error TS1245: Method 'foo' cannot have an implementation because it is marked abstract. } \ No newline at end of file diff --git a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js index 6a38440cf41..b4bf0595a3e 100644 --- a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js +++ b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js @@ -12,10 +12,10 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function () { }; return B; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractMethodWithImplementation.errors.txt b/tests/baselines/reference/classAbstractMethodWithImplementation.errors.txt index 412378e267d..0917b1f50b4 100644 --- a/tests/baselines/reference/classAbstractMethodWithImplementation.errors.txt +++ b/tests/baselines/reference/classAbstractMethodWithImplementation.errors.txt @@ -1,9 +1,9 @@ -tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodWithImplementation.ts(2,5): error TS1245: Method 'foo' cannot have an implementation because it is marked abstract. +tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodWithImplementation.ts(2,14): error TS1245: Method 'foo' cannot have an implementation because it is marked abstract. ==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractMethodWithImplementation.ts (1 errors) ==== abstract class A { abstract foo() {} - ~~~~~~~~~~~~~~~~~ + ~~~ !!! error TS1245: Method 'foo' cannot have an implementation because it is marked abstract. } \ No newline at end of file diff --git a/tests/baselines/reference/classAbstractMethodWithImplementation.js b/tests/baselines/reference/classAbstractMethodWithImplementation.js index d9319012712..aa373d1d204 100644 --- a/tests/baselines/reference/classAbstractMethodWithImplementation.js +++ b/tests/baselines/reference/classAbstractMethodWithImplementation.js @@ -9,4 +9,4 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractMixedWithModifiers.js b/tests/baselines/reference/classAbstractMixedWithModifiers.js index 71eb4c61c04..5343d4a3947 100644 --- a/tests/baselines/reference/classAbstractMixedWithModifiers.js +++ b/tests/baselines/reference/classAbstractMixedWithModifiers.js @@ -20,4 +20,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractOverloads.js b/tests/baselines/reference/classAbstractOverloads.js index 1bdff73d5b7..11a694484f3 100644 --- a/tests/baselines/reference/classAbstractOverloads.js +++ b/tests/baselines/reference/classAbstractOverloads.js @@ -30,9 +30,9 @@ var A = (function () { } A.prototype.baz = function () { }; return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractOverrideWithAbstract.js b/tests/baselines/reference/classAbstractOverrideWithAbstract.js index fb03192f35e..d613dd1fe31 100644 --- a/tests/baselines/reference/classAbstractOverrideWithAbstract.js +++ b/tests/baselines/reference/classAbstractOverrideWithAbstract.js @@ -34,20 +34,20 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var AA = (function () { function AA() { } AA.prototype.foo = function () { }; return AA; -})(); +}()); var BB = (function (_super) { __extends(BB, _super); function BB() { @@ -55,14 +55,14 @@ var BB = (function (_super) { } BB.prototype.bar = function () { }; return BB; -})(AA); +}(AA)); var CC = (function (_super) { __extends(CC, _super); function CC() { _super.apply(this, arguments); } return CC; -})(BB); // error +}(BB)); // error var DD = (function (_super) { __extends(DD, _super); function DD() { @@ -70,4 +70,4 @@ var DD = (function (_super) { } DD.prototype.foo = function () { }; return DD; -})(BB); +}(BB)); diff --git a/tests/baselines/reference/classAbstractProperties.js b/tests/baselines/reference/classAbstractProperties.js index 0cbebcf0de0..b5097bc3f0d 100644 --- a/tests/baselines/reference/classAbstractProperties.js +++ b/tests/baselines/reference/classAbstractProperties.js @@ -18,4 +18,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/classAbstractSingleLineDecl.js b/tests/baselines/reference/classAbstractSingleLineDecl.js index 772ed564a66..5dfd7081339 100644 --- a/tests/baselines/reference/classAbstractSingleLineDecl.js +++ b/tests/baselines/reference/classAbstractSingleLineDecl.js @@ -17,19 +17,19 @@ var A = (function () { function A() { } return A; -})(); +}()); abstract; var B = (function () { function B() { } return B; -})(); +}()); abstract; var C = (function () { function C() { } return C; -})(); +}()); new A; new B; new C; diff --git a/tests/baselines/reference/classAbstractSuperCalls.js b/tests/baselines/reference/classAbstractSuperCalls.js index deccaa50ccf..7ada903974c 100644 --- a/tests/baselines/reference/classAbstractSuperCalls.js +++ b/tests/baselines/reference/classAbstractSuperCalls.js @@ -38,7 +38,7 @@ var A = (function () { } A.prototype.foo = function () { return 1; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -47,7 +47,7 @@ var B = (function (_super) { B.prototype.bar = function () { _super.prototype.foo.call(this); }; B.prototype.baz = function () { return this.foo; }; return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -57,18 +57,18 @@ var C = (function (_super) { C.prototype.qux = function () { return _super.prototype.foo.call(this) || _super.prototype.foo; }; // 2 errors, foo is abstract C.prototype.norf = function () { return _super.prototype.bar.call(this); }; return C; -})(B); +}(B)); var AA = (function () { function AA() { } AA.prototype.foo = function () { return 1; }; AA.prototype.bar = function () { return this.foo(); }; return AA; -})(); +}()); var BB = (function (_super) { __extends(BB, _super); function BB() { _super.apply(this, arguments); } return BB; -})(AA); +}(AA)); diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js index 18d22803a7d..457195f5449 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js @@ -27,7 +27,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -35,14 +35,14 @@ var B = (function (_super) { } B.prototype.foo = function () { return 1; }; return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var a = new B; a.foo(); a = new C; // error, cannot instantiate abstract class. diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js index d5797232929..dc025b11dde 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js @@ -37,21 +37,21 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var D = (function (_super) { __extends(D, _super); function D() { @@ -59,7 +59,7 @@ var D = (function (_super) { } D.prototype.foo = function () { }; return D; -})(A); +}(A)); var E = (function (_super) { __extends(E, _super); function E() { @@ -67,26 +67,26 @@ var E = (function (_super) { } E.prototype.foo = function () { }; return E; -})(A); +}(A)); var AA = (function () { function AA() { } return AA; -})(); +}()); var BB = (function (_super) { __extends(BB, _super); function BB() { _super.apply(this, arguments); } return BB; -})(AA); +}(AA)); var CC = (function (_super) { __extends(CC, _super); function CC() { _super.apply(this, arguments); } return CC; -})(AA); +}(AA)); var DD = (function (_super) { __extends(DD, _super); function DD() { @@ -94,4 +94,4 @@ var DD = (function (_super) { } DD.prototype.foo = function () { }; return DD; -})(AA); +}(AA)); diff --git a/tests/baselines/reference/classAndInterfaceWithSameName.js b/tests/baselines/reference/classAndInterfaceWithSameName.js index bca0c96892c..4a5c64ee553 100644 --- a/tests/baselines/reference/classAndInterfaceWithSameName.js +++ b/tests/baselines/reference/classAndInterfaceWithSameName.js @@ -17,12 +17,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var M; (function (M) { var D = (function () { function D() { } return D; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/classAndVariableWithSameName.js b/tests/baselines/reference/classAndVariableWithSameName.js index 1d547dc5508..1a88efcf19b 100644 --- a/tests/baselines/reference/classAndVariableWithSameName.js +++ b/tests/baselines/reference/classAndVariableWithSameName.js @@ -15,7 +15,7 @@ var C = (function () { function C() { } return C; -})(); // error +}()); // error var C = ''; // error var M; (function (M) { @@ -23,6 +23,6 @@ var M; function D() { } return D; - })(); + }()); var D = 1; // error })(M || (M = {})); diff --git a/tests/baselines/reference/classAppearsToHaveMembersOfObject.js b/tests/baselines/reference/classAppearsToHaveMembersOfObject.js index e33b2b79fa8..e8f15583ebc 100644 --- a/tests/baselines/reference/classAppearsToHaveMembersOfObject.js +++ b/tests/baselines/reference/classAppearsToHaveMembersOfObject.js @@ -13,7 +13,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r = c.toString(); var r2 = c.hasOwnProperty(''); diff --git a/tests/baselines/reference/classBodyWithStatements.js b/tests/baselines/reference/classBodyWithStatements.js index 2324fe0d791..a40d27e14ec 100644 --- a/tests/baselines/reference/classBodyWithStatements.js +++ b/tests/baselines/reference/classBodyWithStatements.js @@ -18,13 +18,13 @@ var C = (function () { function C() { } return C; -})(); +}()); var x = 1; var C2 = (function () { function C2() { } return C2; -})(); +}()); function foo() { } var x = 1; var y = 2; @@ -33,4 +33,4 @@ var C3 = (function () { this.x = y + 1; // ok, need a var in the statement production } return C3; -})(); +}()); diff --git a/tests/baselines/reference/classCannotExtendVar.js b/tests/baselines/reference/classCannotExtendVar.js index 46e89c19418..a126a07a2eb 100644 --- a/tests/baselines/reference/classCannotExtendVar.js +++ b/tests/baselines/reference/classCannotExtendVar.js @@ -13,4 +13,4 @@ var Markup = (function () { function Markup() { } return Markup; -})(); +}()); diff --git a/tests/baselines/reference/classConstructorAccessibility.js b/tests/baselines/reference/classConstructorAccessibility.js index 15b12190392..fed96385845 100644 --- a/tests/baselines/reference/classConstructorAccessibility.js +++ b/tests/baselines/reference/classConstructorAccessibility.js @@ -40,19 +40,19 @@ var C = (function () { this.x = x; } return C; -})(); +}()); var D = (function () { function D(x) { this.x = x; } // error return D; -})(); +}()); var E = (function () { function E(x) { this.x = x; } // error return E; -})(); +}()); var c = new C(1); var d = new D(1); var e = new E(1); @@ -63,19 +63,19 @@ var Generic; this.x = x; } return C; - })(); + }()); var D = (function () { function D(x) { this.x = x; } // error return D; - })(); + }()); var E = (function () { function E(x) { this.x = x; } // error return E; - })(); + }()); var c = new C(1); var d = new D(1); var e = new E(1); diff --git a/tests/baselines/reference/classConstructorParametersAccessibility.js b/tests/baselines/reference/classConstructorParametersAccessibility.js index a5538b66ecc..c31fd8bf9dd 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility.js @@ -37,7 +37,7 @@ var C1 = (function () { this.x = x; } return C1; -})(); +}()); var c1; c1.x; // OK var C2 = (function () { @@ -45,7 +45,7 @@ var C2 = (function () { this.p = p; } return C2; -})(); +}()); var c2; c2.p; // private, error var C3 = (function () { @@ -53,7 +53,7 @@ var C3 = (function () { this.p = p; } return C3; -})(); +}()); var c3; c3.p; // protected, error var Derived = (function (_super) { @@ -63,4 +63,4 @@ var Derived = (function (_super) { this.p; // OK } return Derived; -})(C3); +}(C3)); diff --git a/tests/baselines/reference/classConstructorParametersAccessibility2.js b/tests/baselines/reference/classConstructorParametersAccessibility2.js index 581746a180b..7f52a6a581f 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility2.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility2.js @@ -37,7 +37,7 @@ var C1 = (function () { this.x = x; } return C1; -})(); +}()); var c1; c1.x; // OK var C2 = (function () { @@ -45,7 +45,7 @@ var C2 = (function () { this.p = p; } return C2; -})(); +}()); var c2; c2.p; // private, error var C3 = (function () { @@ -53,7 +53,7 @@ var C3 = (function () { this.p = p; } return C3; -})(); +}()); var c3; c3.p; // protected, error var Derived = (function (_super) { @@ -63,4 +63,4 @@ var Derived = (function (_super) { this.p; // OK } return Derived; -})(C3); +}(C3)); diff --git a/tests/baselines/reference/classConstructorParametersAccessibility3.js b/tests/baselines/reference/classConstructorParametersAccessibility3.js index d98b094ccdb..0da9449a3a7 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility3.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility3.js @@ -24,7 +24,7 @@ var Base = (function () { this.p = p; } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived(p) { @@ -33,6 +33,6 @@ var Derived = (function (_super) { this.p; // OK } return Derived; -})(Base); +}(Base)); var d; d.p; // public, OK diff --git a/tests/baselines/reference/classDeclarationBlockScoping1.js b/tests/baselines/reference/classDeclarationBlockScoping1.js index 4c7f9d8e24a..ac3195af696 100644 --- a/tests/baselines/reference/classDeclarationBlockScoping1.js +++ b/tests/baselines/reference/classDeclarationBlockScoping1.js @@ -12,11 +12,11 @@ var C = (function () { function C() { } return C; -})(); +}()); { var C_1 = (function () { function C_1() { } return C_1; - })(); + }()); } diff --git a/tests/baselines/reference/classDeclarationBlockScoping2.js b/tests/baselines/reference/classDeclarationBlockScoping2.js index 57001d0d287..c3e3a89677a 100644 --- a/tests/baselines/reference/classDeclarationBlockScoping2.js +++ b/tests/baselines/reference/classDeclarationBlockScoping2.js @@ -15,14 +15,14 @@ function f() { function C() { } return C; - })(); + }()); var c1 = C; { var C_1 = (function () { function C_1() { } return C_1; - })(); + }()); var c2 = C_1; } return C === c1; diff --git a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js index a8d6fcd88e0..7ab6cb2ceca 100644 --- a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js +++ b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js @@ -23,7 +23,7 @@ var M; function N() { } return N; - })(); + }()); M.N = N; var N; (function (N) { @@ -38,6 +38,6 @@ var M; _super.apply(this, arguments); } return O; - })(M.N); + }(M.N)); M.O = O; })(M || (M = {})); diff --git a/tests/baselines/reference/classDoesNotDependOnBaseTypes.js b/tests/baselines/reference/classDoesNotDependOnBaseTypes.js index 8515e1d98eb..5a455edc082 100644 --- a/tests/baselines/reference/classDoesNotDependOnBaseTypes.js +++ b/tests/baselines/reference/classDoesNotDependOnBaseTypes.js @@ -27,11 +27,11 @@ var StringTreeCollectionBase = (function () { function StringTreeCollectionBase() { } return StringTreeCollectionBase; -})(); +}()); var StringTreeCollection = (function (_super) { __extends(StringTreeCollection, _super); function StringTreeCollection() { _super.apply(this, arguments); } return StringTreeCollection; -})(StringTreeCollectionBase); +}(StringTreeCollectionBase)); diff --git a/tests/baselines/reference/classDoesNotDependOnPrivateMember.js b/tests/baselines/reference/classDoesNotDependOnPrivateMember.js index 548c94b0ea7..3fe2c592070 100644 --- a/tests/baselines/reference/classDoesNotDependOnPrivateMember.js +++ b/tests/baselines/reference/classDoesNotDependOnPrivateMember.js @@ -13,7 +13,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; })(M || (M = {})); diff --git a/tests/baselines/reference/classExpression.js b/tests/baselines/reference/classExpression.js index 8f3270d13e7..d30ddd39be8 100644 --- a/tests/baselines/reference/classExpression.js +++ b/tests/baselines/reference/classExpression.js @@ -17,13 +17,13 @@ var x = (function () { function C() { } return C; -})(); +}()); var y = { foo: (function () { function C2() { } return C2; - })() + }()) }; var M; (function (M) { @@ -31,5 +31,5 @@ var M; function C4() { } return C4; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/classExpression1.js b/tests/baselines/reference/classExpression1.js index 68c7bc5e1e7..05375bb810b 100644 --- a/tests/baselines/reference/classExpression1.js +++ b/tests/baselines/reference/classExpression1.js @@ -6,4 +6,4 @@ var v = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/classExpression2.js b/tests/baselines/reference/classExpression2.js index f74bb8bd5e2..ed9497c8729 100644 --- a/tests/baselines/reference/classExpression2.js +++ b/tests/baselines/reference/classExpression2.js @@ -12,11 +12,11 @@ var D = (function () { function D() { } return D; -})(); +}()); var v = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(D); +}(D)); diff --git a/tests/baselines/reference/classExpression3.js b/tests/baselines/reference/classExpression3.js index ec9581eaf39..508dc039387 100644 --- a/tests/baselines/reference/classExpression3.js +++ b/tests/baselines/reference/classExpression3.js @@ -19,19 +19,19 @@ var C = (function (_super) { this.c = 3; } return class_1; -})((function (_super) { +}((function (_super) { __extends(class_2, _super); function class_2() { _super.apply(this, arguments); this.b = 2; } return class_2; -})((function () { +}((function () { function class_3() { this.a = 1; } return class_3; -})())); +}()))))); var c = new C(); c.a; c.b; diff --git a/tests/baselines/reference/classExpression4.js b/tests/baselines/reference/classExpression4.js index c2ead0474e2..7bdc8bd06ef 100644 --- a/tests/baselines/reference/classExpression4.js +++ b/tests/baselines/reference/classExpression4.js @@ -15,5 +15,5 @@ var C = (function () { return new C(); }; return class_1; -})(); +}()); var x = (new C).foo(); diff --git a/tests/baselines/reference/classExpression5.js b/tests/baselines/reference/classExpression5.js new file mode 100644 index 00000000000..fae615d3a55 --- /dev/null +++ b/tests/baselines/reference/classExpression5.js @@ -0,0 +1,16 @@ +//// [classExpression5.ts] +new class { + hi() { + return "Hi!"; + } +}().hi(); + +//// [classExpression5.js] +new (function () { + function class_1() { + } + class_1.prototype.hi = function () { + return "Hi!"; + }; + return class_1; +}())().hi(); diff --git a/tests/baselines/reference/classExpression5.symbols b/tests/baselines/reference/classExpression5.symbols new file mode 100644 index 00000000000..17899f51ea4 --- /dev/null +++ b/tests/baselines/reference/classExpression5.symbols @@ -0,0 +1,12 @@ +=== tests/cases/conformance/classes/classExpressions/classExpression5.ts === +new class { +>new class { hi() { return "Hi!"; }}().hi : Symbol((Anonymous class).hi, Decl(classExpression5.ts, 0, 11)) + + hi() { +>hi : Symbol((Anonymous class).hi, Decl(classExpression5.ts, 0, 11)) + + return "Hi!"; + } +}().hi(); +>hi : Symbol((Anonymous class).hi, Decl(classExpression5.ts, 0, 11)) + diff --git a/tests/baselines/reference/classExpression5.types b/tests/baselines/reference/classExpression5.types new file mode 100644 index 00000000000..25c4b66b8f3 --- /dev/null +++ b/tests/baselines/reference/classExpression5.types @@ -0,0 +1,16 @@ +=== tests/cases/conformance/classes/classExpressions/classExpression5.ts === +new class { +>new class { hi() { return "Hi!"; }}().hi() : string +>new class { hi() { return "Hi!"; }}().hi : () => string +>new class { hi() { return "Hi!"; }}() : (Anonymous class) +>class { hi() { return "Hi!"; }} : typeof (Anonymous class) + + hi() { +>hi : () => string + + return "Hi!"; +>"Hi!" : string + } +}().hi(); +>hi : () => string + diff --git a/tests/baselines/reference/classExpressionExtendingAbstractClass.js b/tests/baselines/reference/classExpressionExtendingAbstractClass.js index a5149538da2..c4da02cb321 100644 --- a/tests/baselines/reference/classExpressionExtendingAbstractClass.js +++ b/tests/baselines/reference/classExpressionExtendingAbstractClass.js @@ -18,11 +18,11 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function (_super) { __extends(class_1, _super); function class_1() { _super.apply(this, arguments); } return class_1; -})(A); +}(A)); diff --git a/tests/baselines/reference/classExpressionTest1.js b/tests/baselines/reference/classExpressionTest1.js index e91cdebb8c1..6b799c12f04 100644 --- a/tests/baselines/reference/classExpressionTest1.js +++ b/tests/baselines/reference/classExpressionTest1.js @@ -23,7 +23,7 @@ function M() { return { t: t, x: x }; }; return C; - })(); + }()); var v = new C(); return v.f(); } diff --git a/tests/baselines/reference/classExpressionTest2.js b/tests/baselines/reference/classExpressionTest2.js index ebb5c1e21b6..761af899759 100644 --- a/tests/baselines/reference/classExpressionTest2.js +++ b/tests/baselines/reference/classExpressionTest2.js @@ -23,7 +23,7 @@ function M() { return { t: t, x: x }; }; return C; - })(); + }()); var v = new m(); return v.f(); } diff --git a/tests/baselines/reference/classExpressionWithDecorator1.js b/tests/baselines/reference/classExpressionWithDecorator1.js index 8494ec32cda..e051e05251b 100644 --- a/tests/baselines/reference/classExpressionWithDecorator1.js +++ b/tests/baselines/reference/classExpressionWithDecorator1.js @@ -17,5 +17,5 @@ var C = (function () { decorate ], C); return C; -})(); +}()); ; diff --git a/tests/baselines/reference/classExpressionWithResolutionOfNamespaceOfSameName01.js b/tests/baselines/reference/classExpressionWithResolutionOfNamespaceOfSameName01.js index 7c9f25cdfe6..e13e0de6b78 100644 --- a/tests/baselines/reference/classExpressionWithResolutionOfNamespaceOfSameName01.js +++ b/tests/baselines/reference/classExpressionWithResolutionOfNamespaceOfSameName01.js @@ -13,4 +13,4 @@ var x = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/classExpressionWithStaticProperties1.js b/tests/baselines/reference/classExpressionWithStaticProperties1.js index 344dbff50ed..cfe85d97a71 100644 --- a/tests/baselines/reference/classExpressionWithStaticProperties1.js +++ b/tests/baselines/reference/classExpressionWithStaticProperties1.js @@ -8,4 +8,4 @@ var v = (function () { C.a = 1; C.b = 2; return C; -})(); +}()); diff --git a/tests/baselines/reference/classExpressionWithStaticProperties2.js b/tests/baselines/reference/classExpressionWithStaticProperties2.js index 9ff9c06ffe4..134441e0ad9 100644 --- a/tests/baselines/reference/classExpressionWithStaticProperties2.js +++ b/tests/baselines/reference/classExpressionWithStaticProperties2.js @@ -7,4 +7,4 @@ var v = (function () { } C.a = 1; return C; -})(); +}()); diff --git a/tests/baselines/reference/classExtendingBuiltinType.js b/tests/baselines/reference/classExtendingBuiltinType.js index 8a4b0dd3849..ace4cf19fee 100644 --- a/tests/baselines/reference/classExtendingBuiltinType.js +++ b/tests/baselines/reference/classExtendingBuiltinType.js @@ -23,67 +23,67 @@ var C1 = (function (_super) { _super.apply(this, arguments); } return C1; -})(Object); +}(Object)); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(Function); +}(Function)); var C3 = (function (_super) { __extends(C3, _super); function C3() { _super.apply(this, arguments); } return C3; -})(String); +}(String)); var C4 = (function (_super) { __extends(C4, _super); function C4() { _super.apply(this, arguments); } return C4; -})(Boolean); +}(Boolean)); var C5 = (function (_super) { __extends(C5, _super); function C5() { _super.apply(this, arguments); } return C5; -})(Number); +}(Number)); var C6 = (function (_super) { __extends(C6, _super); function C6() { _super.apply(this, arguments); } return C6; -})(Date); +}(Date)); var C7 = (function (_super) { __extends(C7, _super); function C7() { _super.apply(this, arguments); } return C7; -})(RegExp); +}(RegExp)); var C8 = (function (_super) { __extends(C8, _super); function C8() { _super.apply(this, arguments); } return C8; -})(Error); +}(Error)); var C9 = (function (_super) { __extends(C9, _super); function C9() { _super.apply(this, arguments); } return C9; -})(Array); +}(Array)); var C10 = (function (_super) { __extends(C10, _super); function C10() { _super.apply(this, arguments); } return C10; -})(Array); +}(Array)); diff --git a/tests/baselines/reference/classExtendingClass.js b/tests/baselines/reference/classExtendingClass.js index 6168cb3418d..8073271b5ea 100644 --- a/tests/baselines/reference/classExtendingClass.js +++ b/tests/baselines/reference/classExtendingClass.js @@ -43,14 +43,14 @@ var C = (function () { C.prototype.thing = function () { }; C.other = function () { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var d; var r = d.foo; var r2 = d.bar; @@ -62,14 +62,14 @@ var C2 = (function () { C2.prototype.thing = function (x) { }; C2.other = function (x) { }; return C2; -})(); +}()); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(C2); +}(C2)); var d2; var r5 = d2.foo; var r6 = d2.bar; diff --git a/tests/baselines/reference/classExtendingClassLikeType.js b/tests/baselines/reference/classExtendingClassLikeType.js index 4634b22e493..a41bb14451a 100644 --- a/tests/baselines/reference/classExtendingClassLikeType.js +++ b/tests/baselines/reference/classExtendingClassLikeType.js @@ -71,7 +71,7 @@ var D0 = (function (_super) { _super.apply(this, arguments); } return D0; -})(Base); +}(Base)); var D1 = (function (_super) { __extends(D1, _super); function D1() { @@ -80,7 +80,7 @@ var D1 = (function (_super) { this.y = "y"; } return D1; -})(getBase()); +}(getBase())); var D2 = (function (_super) { __extends(D2, _super); function D2() { @@ -90,7 +90,7 @@ var D2 = (function (_super) { this.y = 2; } return D2; -})(getBase()); +}(getBase())); var D3 = (function (_super) { __extends(D3, _super); function D3() { @@ -99,7 +99,7 @@ var D3 = (function (_super) { this.y = 2; } return D3; -})(getBase()); +}(getBase())); // Error, no constructors with three type arguments var D4 = (function (_super) { __extends(D4, _super); @@ -107,7 +107,7 @@ var D4 = (function (_super) { _super.apply(this, arguments); } return D4; -})(getBase()); +}(getBase())); // Error, constructor return types differ var D5 = (function (_super) { __extends(D5, _super); @@ -115,4 +115,4 @@ var D5 = (function (_super) { _super.apply(this, arguments); } return D5; -})(getBadBase()); +}(getBadBase())); diff --git a/tests/baselines/reference/classExtendingNonConstructor.js b/tests/baselines/reference/classExtendingNonConstructor.js index dff2fdf9ca9..c46e3c5ddbe 100644 --- a/tests/baselines/reference/classExtendingNonConstructor.js +++ b/tests/baselines/reference/classExtendingNonConstructor.js @@ -30,46 +30,46 @@ var C1 = (function (_super) { _super.apply(this, arguments); } return C1; -})(undefined); +}(undefined)); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(true); +}(true)); var C3 = (function (_super) { __extends(C3, _super); function C3() { _super.apply(this, arguments); } return C3; -})(false); +}(false)); var C4 = (function (_super) { __extends(C4, _super); function C4() { _super.apply(this, arguments); } return C4; -})(42); +}(42)); var C5 = (function (_super) { __extends(C5, _super); function C5() { _super.apply(this, arguments); } return C5; -})("hello"); +}("hello")); var C6 = (function (_super) { __extends(C6, _super); function C6() { _super.apply(this, arguments); } return C6; -})(x); +}(x)); var C7 = (function (_super) { __extends(C7, _super); function C7() { _super.apply(this, arguments); } return C7; -})(foo); +}(foo)); diff --git a/tests/baselines/reference/classExtendingNull.js b/tests/baselines/reference/classExtendingNull.js index ac8009b9cd9..fa6f0357b0d 100644 --- a/tests/baselines/reference/classExtendingNull.js +++ b/tests/baselines/reference/classExtendingNull.js @@ -15,11 +15,11 @@ var C1 = (function (_super) { _super.apply(this, arguments); } return C1; -})(null); +}(null)); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})((null)); +}((null))); diff --git a/tests/baselines/reference/classExtendingPrimitive.js b/tests/baselines/reference/classExtendingPrimitive.js index cafa4eebcd1..8ecad9c24a5 100644 --- a/tests/baselines/reference/classExtendingPrimitive.js +++ b/tests/baselines/reference/classExtendingPrimitive.js @@ -27,33 +27,33 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(number); +}(number)); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(string); +}(string)); var C3 = (function (_super) { __extends(C3, _super); function C3() { _super.apply(this, arguments); } return C3; -})(boolean); +}(boolean)); var C4 = (function (_super) { __extends(C4, _super); function C4() { _super.apply(this, arguments); } return C4; -})(Void); +}(Void)); var C4a = (function () { function C4a() { } return C4a; -})(); +}()); void {}; var C5 = (function (_super) { __extends(C5, _super); @@ -61,28 +61,28 @@ var C5 = (function (_super) { _super.apply(this, arguments); } return C5; -})(Null); +}(Null)); var C5a = (function (_super) { __extends(C5a, _super); function C5a() { _super.apply(this, arguments); } return C5a; -})(null); +}(null)); var C6 = (function (_super) { __extends(C6, _super); function C6() { _super.apply(this, arguments); } return C6; -})(undefined); +}(undefined)); var C7 = (function (_super) { __extends(C7, _super); function C7() { _super.apply(this, arguments); } return C7; -})(Undefined); +}(Undefined)); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -93,4 +93,4 @@ var C8 = (function (_super) { _super.apply(this, arguments); } return C8; -})(E); +}(E)); diff --git a/tests/baselines/reference/classExtendingPrimitive2.js b/tests/baselines/reference/classExtendingPrimitive2.js index 4661ab961c9..af766977967 100644 --- a/tests/baselines/reference/classExtendingPrimitive2.js +++ b/tests/baselines/reference/classExtendingPrimitive2.js @@ -15,7 +15,7 @@ var C4a = (function () { function C4a() { } return C4a; -})(); +}()); void {}; var C5a = (function (_super) { __extends(C5a, _super); @@ -23,4 +23,4 @@ var C5a = (function (_super) { _super.apply(this, arguments); } return C5a; -})(null); +}(null)); diff --git a/tests/baselines/reference/classExtendingQualifiedName.js b/tests/baselines/reference/classExtendingQualifiedName.js index 44a4fbe2bd6..17d888834ec 100644 --- a/tests/baselines/reference/classExtendingQualifiedName.js +++ b/tests/baselines/reference/classExtendingQualifiedName.js @@ -19,12 +19,12 @@ var M; function C() { } return C; - })(); + }()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; - })(M.C); + }(M.C)); })(M || (M = {})); diff --git a/tests/baselines/reference/classExtendingQualifiedName2.js b/tests/baselines/reference/classExtendingQualifiedName2.js index afd432180d4..4f1d872e753 100644 --- a/tests/baselines/reference/classExtendingQualifiedName2.js +++ b/tests/baselines/reference/classExtendingQualifiedName2.js @@ -19,7 +19,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; var D = (function (_super) { __extends(D, _super); @@ -27,5 +27,5 @@ var M; _super.apply(this, arguments); } return D; - })(M.C); + }(M.C)); })(M || (M = {})); diff --git a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js index fe8dc79b864..80b4b7c175d 100644 --- a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js +++ b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js @@ -23,7 +23,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var A; (function (A) { })(A || (A = {})); @@ -36,5 +36,5 @@ var Foo; _super.apply(this, arguments); } return B; - })(A); + }(A)); })(Foo || (Foo = {})); diff --git a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js index 94c50679151..4c593761f00 100644 --- a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js +++ b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js @@ -16,7 +16,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var Foo; (function (Foo) { var A = 1; @@ -26,5 +26,5 @@ var Foo; _super.apply(this, arguments); } return B; - })(A); + }(A)); })(Foo || (Foo = {})); diff --git a/tests/baselines/reference/classExtendsEveryObjectType.js b/tests/baselines/reference/classExtendsEveryObjectType.js index 92414c7e6c3..8b4663ad2cb 100644 --- a/tests/baselines/reference/classExtendsEveryObjectType.js +++ b/tests/baselines/reference/classExtendsEveryObjectType.js @@ -28,14 +28,14 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(I); // error +}(I)); // error var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})({ foo: string }); // error +}({ foo: string })); // error var x; var C3 = (function (_super) { __extends(C3, _super); @@ -43,7 +43,7 @@ var C3 = (function (_super) { _super.apply(this, arguments); } return C3; -})(x); // error +}(x)); // error var M; (function (M) { M.x = 1; @@ -54,7 +54,7 @@ var C4 = (function (_super) { _super.apply(this, arguments); } return C4; -})(M); // error +}(M)); // error function foo() { } var C5 = (function (_super) { __extends(C5, _super); @@ -62,11 +62,11 @@ var C5 = (function (_super) { _super.apply(this, arguments); } return C5; -})(foo); // error +}(foo)); // error var C6 = (function (_super) { __extends(C6, _super); function C6() { _super.apply(this, arguments); } return C6; -})([]); // error +}([])); // error diff --git a/tests/baselines/reference/classExtendsEveryObjectType2.js b/tests/baselines/reference/classExtendsEveryObjectType2.js index 2735032f3c4..6aceb0ffebf 100644 --- a/tests/baselines/reference/classExtendsEveryObjectType2.js +++ b/tests/baselines/reference/classExtendsEveryObjectType2.js @@ -15,11 +15,11 @@ var C2 = (function (_super) { _super.apply(this, arguments); } return C2; -})({ foo: string }); // error +}({ foo: string })); // error var C6 = (function (_super) { __extends(C6, _super); function C6() { _super.apply(this, arguments); } return C6; -})([]); // error +}([])); // error diff --git a/tests/baselines/reference/classExtendsInterface.js b/tests/baselines/reference/classExtendsInterface.js index 9b78cde35e9..c06c4e66d8b 100644 --- a/tests/baselines/reference/classExtendsInterface.js +++ b/tests/baselines/reference/classExtendsInterface.js @@ -20,21 +20,21 @@ var A = (function (_super) { _super.apply(this, arguments); } return A; -})(Comparable); +}(Comparable)); var B = (function () { function B() { } return B; -})(); +}()); var A2 = (function (_super) { __extends(A2, _super); function A2() { _super.apply(this, arguments); } return A2; -})(Comparable2); +}(Comparable2)); var B2 = (function () { function B2() { } return B2; -})(); +}()); diff --git a/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js b/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js index 907b6bd6fd2..aab40d145c4 100644 --- a/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js +++ b/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js @@ -21,7 +21,7 @@ var C = (function () { } C.prototype.foo = function (x) { return x; }; return C; -})(); +}()); var D2 = (function () { function D2() { this.x = 3; @@ -29,4 +29,4 @@ var D2 = (function () { D2.prototype.foo = function (x) { return x; }; D2.prototype.other = function (x) { return x; }; return D2; -})(); +}()); diff --git a/tests/baselines/reference/classExtendsItself.js b/tests/baselines/reference/classExtendsItself.js index c370e797a57..279d0ad6899 100644 --- a/tests/baselines/reference/classExtendsItself.js +++ b/tests/baselines/reference/classExtendsItself.js @@ -17,18 +17,18 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(C); // error +}(C)); // error var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(D); // error +}(D)); // error var E = (function (_super) { __extends(E, _super); function E() { _super.apply(this, arguments); } return E; -})(E); // error +}(E)); // error diff --git a/tests/baselines/reference/classExtendsItselfIndirectly.js b/tests/baselines/reference/classExtendsItselfIndirectly.js index 65cd72ce3c8..f8ea40ee69c 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly.js @@ -23,39 +23,39 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(E); // error +}(E)); // error var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var E = (function (_super) { __extends(E, _super); function E() { _super.apply(this, arguments); } return E; -})(D); +}(D)); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(E2); // error +}(E2)); // error var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(C2); +}(C2)); var E2 = (function (_super) { __extends(E2, _super); function E2() { _super.apply(this, arguments); } return E2; -})(D2); +}(D2)); diff --git a/tests/baselines/reference/classExtendsItselfIndirectly2.js b/tests/baselines/reference/classExtendsItselfIndirectly2.js index c0b46e6cbb6..269edb851e9 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly2.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly2.js @@ -34,7 +34,7 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(N.E); // error +}(N.E)); // error var M; (function (M) { var D = (function (_super) { @@ -43,7 +43,7 @@ var M; _super.apply(this, arguments); } return D; - })(C); + }(C)); M.D = D; })(M || (M = {})); var N; @@ -54,7 +54,7 @@ var N; _super.apply(this, arguments); } return E; - })(M.D); + }(M.D)); N.E = E; })(N || (N = {})); var O; @@ -65,7 +65,7 @@ var O; _super.apply(this, arguments); } return C2; - })(Q.E2); // error + }(Q.E2)); // error var P; (function (P) { var D2 = (function (_super) { @@ -74,7 +74,7 @@ var O; _super.apply(this, arguments); } return D2; - })(C2); + }(C2)); P.D2 = D2; })(P || (P = {})); var Q; @@ -85,7 +85,7 @@ var O; _super.apply(this, arguments); } return E2; - })(P.D2); + }(P.D2)); Q.E2 = E2; })(Q || (Q = {})); })(O || (O = {})); diff --git a/tests/baselines/reference/classExtendsItselfIndirectly3.js b/tests/baselines/reference/classExtendsItselfIndirectly3.js index 9241403a7ce..2d2cf938156 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly3.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly3.js @@ -30,7 +30,7 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(E); // error +}(E)); // error //// [classExtendsItselfIndirectly_file2.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; @@ -43,7 +43,7 @@ var D = (function (_super) { _super.apply(this, arguments); } return D; -})(C); +}(C)); //// [classExtendsItselfIndirectly_file3.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; @@ -56,7 +56,7 @@ var E = (function (_super) { _super.apply(this, arguments); } return E; -})(D); +}(D)); //// [classExtendsItselfIndirectly_file4.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; @@ -69,7 +69,7 @@ var C2 = (function (_super) { _super.apply(this, arguments); } return C2; -})(E2); // error +}(E2)); // error //// [classExtendsItselfIndirectly_file5.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; @@ -82,7 +82,7 @@ var D2 = (function (_super) { _super.apply(this, arguments); } return D2; -})(C2); +}(C2)); //// [classExtendsItselfIndirectly_file6.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; @@ -95,4 +95,4 @@ var E2 = (function (_super) { _super.apply(this, arguments); } return E2; -})(D2); +}(D2)); diff --git a/tests/baselines/reference/classExtendsMultipleBaseClasses.js b/tests/baselines/reference/classExtendsMultipleBaseClasses.js index d1ffee30415..61db0a41a5c 100644 --- a/tests/baselines/reference/classExtendsMultipleBaseClasses.js +++ b/tests/baselines/reference/classExtendsMultipleBaseClasses.js @@ -13,16 +13,16 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/classExtendsNull.js b/tests/baselines/reference/classExtendsNull.js index 5627f10dca6..afb2be21c68 100644 --- a/tests/baselines/reference/classExtendsNull.js +++ b/tests/baselines/reference/classExtendsNull.js @@ -25,11 +25,11 @@ var C = (function (_super) { return Object.create(null); } return C; -})(null); +}(null)); var D = (function (_super) { __extends(D, _super); function D() { return Object.create(null); } return D; -})(null); +}(null)); diff --git a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js index 164ffdc8493..ae2f73cadc1 100644 --- a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js +++ b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js @@ -18,7 +18,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var M; (function (M) { var C = 1; @@ -28,5 +28,5 @@ var M; _super.apply(this, arguments); } return D; - })(C); + }(C)); })(M || (M = {})); diff --git a/tests/baselines/reference/classExtendsValidConstructorFunction.js b/tests/baselines/reference/classExtendsValidConstructorFunction.js index 448db68db9f..00cd35693f1 100644 --- a/tests/baselines/reference/classExtendsValidConstructorFunction.js +++ b/tests/baselines/reference/classExtendsValidConstructorFunction.js @@ -19,4 +19,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(foo); // error, cannot extend it though +}(foo)); // error, cannot extend it though diff --git a/tests/baselines/reference/classHeritageWithTrailingSeparator.js b/tests/baselines/reference/classHeritageWithTrailingSeparator.js index 2d5b12d5201..7f85e4e25d7 100644 --- a/tests/baselines/reference/classHeritageWithTrailingSeparator.js +++ b/tests/baselines/reference/classHeritageWithTrailingSeparator.js @@ -13,11 +13,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/classImplementingInterfaceIndexer.js b/tests/baselines/reference/classImplementingInterfaceIndexer.js index dffd9063e87..532ac93d17e 100644 --- a/tests/baselines/reference/classImplementingInterfaceIndexer.js +++ b/tests/baselines/reference/classImplementingInterfaceIndexer.js @@ -11,4 +11,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/classImplementsClass1.js b/tests/baselines/reference/classImplementsClass1.js index 8a0be66cda6..847dc5ba531 100644 --- a/tests/baselines/reference/classImplementsClass1.js +++ b/tests/baselines/reference/classImplementsClass1.js @@ -7,9 +7,9 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/classImplementsClass2.js b/tests/baselines/reference/classImplementsClass2.js index 490d2706b48..09cdd5c779b 100644 --- a/tests/baselines/reference/classImplementsClass2.js +++ b/tests/baselines/reference/classImplementsClass2.js @@ -24,12 +24,12 @@ var A = (function () { } A.prototype.foo = function () { return 1; }; return A; -})(); +}()); var C = (function () { function C() { } return C; -})(); // error +}()); // error var C2 = (function (_super) { __extends(C2, _super); function C2() { @@ -39,7 +39,7 @@ var C2 = (function (_super) { return 1; }; return C2; -})(A); +}(A)); var c; var c2; c = c2; diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js index 00cb49e2da3..b47514b1286 100644 --- a/tests/baselines/reference/classImplementsClass3.js +++ b/tests/baselines/reference/classImplementsClass3.js @@ -25,7 +25,7 @@ var A = (function () { } A.prototype.foo = function () { return 1; }; return A; -})(); +}()); var C = (function () { function C() { } @@ -33,14 +33,14 @@ var C = (function () { return 1; }; return C; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(A); +}(A)); // no errors var c; var c2; diff --git a/tests/baselines/reference/classImplementsClass4.js b/tests/baselines/reference/classImplementsClass4.js index 0d7508b723b..32ae1ef3e88 100644 --- a/tests/baselines/reference/classImplementsClass4.js +++ b/tests/baselines/reference/classImplementsClass4.js @@ -28,7 +28,7 @@ var A = (function () { } A.prototype.foo = function () { return 1; }; return A; -})(); +}()); var C = (function () { function C() { } @@ -36,14 +36,14 @@ var C = (function () { return 1; }; return C; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(A); +}(A)); var c; var c2; c = c2; diff --git a/tests/baselines/reference/classImplementsClass5.js b/tests/baselines/reference/classImplementsClass5.js index caacb7b3044..923ac9c9829 100644 --- a/tests/baselines/reference/classImplementsClass5.js +++ b/tests/baselines/reference/classImplementsClass5.js @@ -29,7 +29,7 @@ var A = (function () { } A.prototype.foo = function () { return 1; }; return A; -})(); +}()); var C = (function () { function C() { this.x = 1; @@ -38,14 +38,14 @@ var C = (function () { return 1; }; return C; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(A); +}(A)); var c; var c2; c = c2; diff --git a/tests/baselines/reference/classImplementsClass6.js b/tests/baselines/reference/classImplementsClass6.js index 2e8d765be89..a807590749e 100644 --- a/tests/baselines/reference/classImplementsClass6.js +++ b/tests/baselines/reference/classImplementsClass6.js @@ -35,7 +35,7 @@ var A = (function () { }; A.prototype.foo = function () { return 1; }; return A; -})(); +}()); var C = (function () { function C() { } @@ -43,14 +43,14 @@ var C = (function () { return 1; }; return C; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(A); +}(A)); var c; var c2; c = c2; diff --git a/tests/baselines/reference/classImplementsImportedInterface.js b/tests/baselines/reference/classImplementsImportedInterface.js index a2af2083a2a..d9d7d9eed2e 100644 --- a/tests/baselines/reference/classImplementsImportedInterface.js +++ b/tests/baselines/reference/classImplementsImportedInterface.js @@ -20,5 +20,5 @@ var M2; } C.prototype.foo = function () { }; return C; - })(); + }()); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/classImplementsMergedClassInterface.js b/tests/baselines/reference/classImplementsMergedClassInterface.js index 64a0198cc16..67381a02467 100644 --- a/tests/baselines/reference/classImplementsMergedClassInterface.js +++ b/tests/baselines/reference/classImplementsMergedClassInterface.js @@ -28,19 +28,19 @@ var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { } return C4; -})(); +}()); var C5 = (function () { function C5() { } return C5; -})(); +}()); diff --git a/tests/baselines/reference/classIndexer.js b/tests/baselines/reference/classIndexer.js index bed13e3f431..dfdc6274511 100644 --- a/tests/baselines/reference/classIndexer.js +++ b/tests/baselines/reference/classIndexer.js @@ -10,4 +10,4 @@ var C123 = (function () { function C123() { } return C123; -})(); +}()); diff --git a/tests/baselines/reference/classIndexer2.js b/tests/baselines/reference/classIndexer2.js index 6ed7098e755..eb83ba397dc 100644 --- a/tests/baselines/reference/classIndexer2.js +++ b/tests/baselines/reference/classIndexer2.js @@ -12,4 +12,4 @@ var C123 = (function () { function C123() { } return C123; -})(); +}()); diff --git a/tests/baselines/reference/classIndexer3.js b/tests/baselines/reference/classIndexer3.js index e962c7295f2..39fb844613e 100644 --- a/tests/baselines/reference/classIndexer3.js +++ b/tests/baselines/reference/classIndexer3.js @@ -20,11 +20,11 @@ var C123 = (function () { function C123() { } return C123; -})(); +}()); var D123 = (function (_super) { __extends(D123, _super); function D123() { _super.apply(this, arguments); } return D123; -})(C123); +}(C123)); diff --git a/tests/baselines/reference/classIndexer4.js b/tests/baselines/reference/classIndexer4.js index 419f785f26e..f5258d8b5e1 100644 --- a/tests/baselines/reference/classIndexer4.js +++ b/tests/baselines/reference/classIndexer4.js @@ -15,4 +15,4 @@ var C123 = (function () { function C123() { } return C123; -})(); +}()); diff --git a/tests/baselines/reference/classInheritence.js b/tests/baselines/reference/classInheritence.js index 1e463dd195d..e6e7a1eaf42 100644 --- a/tests/baselines/reference/classInheritence.js +++ b/tests/baselines/reference/classInheritence.js @@ -14,11 +14,11 @@ var B = (function (_super) { _super.apply(this, arguments); } return B; -})(A); +}(A)); var A = (function (_super) { __extends(A, _super); function A() { _super.apply(this, arguments); } return A; -})(A); +}(A)); diff --git a/tests/baselines/reference/classInsideBlock.js b/tests/baselines/reference/classInsideBlock.js index 55b3b0bbead..e21695b9745 100644 --- a/tests/baselines/reference/classInsideBlock.js +++ b/tests/baselines/reference/classInsideBlock.js @@ -9,5 +9,5 @@ function foo() { function C() { } return C; - })(); + }()); } diff --git a/tests/baselines/reference/classIsSubtypeOfBaseType.js b/tests/baselines/reference/classIsSubtypeOfBaseType.js index a92cfb430bf..b51488dbe1e 100644 --- a/tests/baselines/reference/classIsSubtypeOfBaseType.js +++ b/tests/baselines/reference/classIsSubtypeOfBaseType.js @@ -25,18 +25,18 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/classMemberInitializerScoping.js b/tests/baselines/reference/classMemberInitializerScoping.js index db8d6a1bede..8f78cfb9ac6 100644 --- a/tests/baselines/reference/classMemberInitializerScoping.js +++ b/tests/baselines/reference/classMemberInitializerScoping.js @@ -29,7 +29,7 @@ var CCC = (function () { } CCC.staticY = aaa; // This shouldnt be error return CCC; -})(); +}()); // above is equivalent to this: var aaaa = 1; var CCCC = (function () { @@ -38,4 +38,4 @@ var CCCC = (function () { this.y = ''; } return CCCC; -})(); +}()); diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping.js b/tests/baselines/reference/classMemberInitializerWithLamdaScoping.js index a431f6aceb8..752220a4cbc 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping.js +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping.js @@ -45,7 +45,7 @@ var Test = (function () { console.log(field); // Using field here shouldnt be error }; return Test; -})(); +}()); var field1; var Test1 = (function () { function Test1(field1) { @@ -60,4 +60,4 @@ var Test1 = (function () { console.log(field1); // This shouldnt be error as its a static property }; return Test1; -})(); +}()); diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping2.js b/tests/baselines/reference/classMemberInitializerWithLamdaScoping2.js index 8509d60de7c..4cfee11b57d 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping2.js +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping2.js @@ -30,4 +30,4 @@ var Test1 = (function () { }; } return Test1; -})(); +}()); diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.errors.txt b/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.errors.txt index 47adb957141..b016952a3aa 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.errors.txt +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/classMemberInitializerWithLamdaScoping3_1.ts(4,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/classMemberInitializerWithLamdaScoping3_1.ts(4,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/classMemberInitializerWithLamdaScoping3_1.ts(8,21): error TS2301: Initializer of instance member variable 'messageHandler' cannot reference identifier 'field1' declared in the constructor. @@ -11,7 +11,7 @@ tests/cases/compiler/classMemberInitializerWithLamdaScoping3_1.ts(8,21): error T }; export class Test1 { ~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. constructor(private field1: string) { } messageHandler = () => { diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.js b/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.js index ae6bd9fe730..d310ccd53bc 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.js +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping3.js @@ -31,5 +31,5 @@ var Test1 = (function () { }; } return Test1; -})(); +}()); exports.Test1 = Test1; diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.errors.txt b/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.errors.txt index 9d1a2dd3418..73fa862e82b 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.errors.txt +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.errors.txt @@ -1,11 +1,11 @@ -tests/cases/compiler/classMemberInitializerWithLamdaScoping3_0.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/classMemberInitializerWithLamdaScoping3_0.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/classMemberInitializerWithLamdaScoping3_1.ts(8,21): error TS2304: Cannot find name 'field1'. ==== tests/cases/compiler/classMemberInitializerWithLamdaScoping3_0.ts (1 errors) ==== export var field1: string; ~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/compiler/classMemberInitializerWithLamdaScoping3_1.ts (1 errors) ==== declare var console: { diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.js b/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.js index a88e2e98a43..161bceca04d 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.js +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping4.js @@ -27,5 +27,5 @@ var Test1 = (function () { }; } return Test1; -})(); +}()); exports.Test1 = Test1; diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.js b/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.js index 3e7649210ba..8af2b702271 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.js +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.js @@ -19,4 +19,4 @@ var Greeter = (function () { }; } return Greeter; -})(); +}()); diff --git a/tests/baselines/reference/classMemberWithMissingIdentifier.js b/tests/baselines/reference/classMemberWithMissingIdentifier.js index cd1825d0da0..a7f1e6ffe4f 100644 --- a/tests/baselines/reference/classMemberWithMissingIdentifier.js +++ b/tests/baselines/reference/classMemberWithMissingIdentifier.js @@ -9,4 +9,4 @@ var C = (function () { this. = {}; } return C; -})(); +}()); diff --git a/tests/baselines/reference/classMemberWithMissingIdentifier2.js b/tests/baselines/reference/classMemberWithMissingIdentifier2.js index e8494755b22..6d364369335 100644 --- a/tests/baselines/reference/classMemberWithMissingIdentifier2.js +++ b/tests/baselines/reference/classMemberWithMissingIdentifier2.js @@ -10,4 +10,4 @@ var C = (function () { var _a; } return C; -})(); +}()); diff --git a/tests/baselines/reference/classMethodWithKeywordName1.js b/tests/baselines/reference/classMethodWithKeywordName1.js index ba5bb72632a..6e1faee005c 100644 --- a/tests/baselines/reference/classMethodWithKeywordName1.js +++ b/tests/baselines/reference/classMethodWithKeywordName1.js @@ -9,4 +9,4 @@ var C = (function () { } C.try = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/classOrder1.js b/tests/baselines/reference/classOrder1.js index 68bf1cd2a45..0d6d47891ea 100644 --- a/tests/baselines/reference/classOrder1.js +++ b/tests/baselines/reference/classOrder1.js @@ -19,6 +19,6 @@ var A = (function () { /*WScript.Echo("Here!");*/ }; return A; -})(); +}()); var a = new A(); a.foo(); diff --git a/tests/baselines/reference/classOrder2.js b/tests/baselines/reference/classOrder2.js index fd3fee2e037..ec49320b4be 100644 --- a/tests/baselines/reference/classOrder2.js +++ b/tests/baselines/reference/classOrder2.js @@ -32,12 +32,12 @@ var A = (function (_super) { } A.prototype.foo = function () { this.bar(); }; return A; -})(B); +}(B)); var B = (function () { function B() { } B.prototype.bar = function () { }; return B; -})(); +}()); var a = new A(); a.foo(); diff --git a/tests/baselines/reference/classOrderBug.js b/tests/baselines/reference/classOrderBug.js index bc3f0e739c4..d937197fad5 100644 --- a/tests/baselines/reference/classOrderBug.js +++ b/tests/baselines/reference/classOrderBug.js @@ -26,16 +26,16 @@ var bar = (function () { this.baz = new foo(); } return bar; -})(); +}()); var baz = (function () { function baz() { } return baz; -})(); +}()); var foo = (function (_super) { __extends(foo, _super); function foo() { _super.apply(this, arguments); } return foo; -})(baz); +}(baz)); diff --git a/tests/baselines/reference/classOverloadForFunction.js b/tests/baselines/reference/classOverloadForFunction.js index 40f076b0f2c..3916289f9a5 100644 --- a/tests/baselines/reference/classOverloadForFunction.js +++ b/tests/baselines/reference/classOverloadForFunction.js @@ -8,6 +8,6 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); ; function foo() { } diff --git a/tests/baselines/reference/classOverloadForFunction2.js b/tests/baselines/reference/classOverloadForFunction2.js index 13eb0f6c533..0571774534d 100644 --- a/tests/baselines/reference/classOverloadForFunction2.js +++ b/tests/baselines/reference/classOverloadForFunction2.js @@ -7,4 +7,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/classPropertyAsPrivate.js b/tests/baselines/reference/classPropertyAsPrivate.js index 51d08b48ec5..3db4b7acce4 100644 --- a/tests/baselines/reference/classPropertyAsPrivate.js +++ b/tests/baselines/reference/classPropertyAsPrivate.js @@ -42,7 +42,7 @@ var C = (function () { }); C.foo = function () { }; return C; -})(); +}()); var c; // all errors c.x; diff --git a/tests/baselines/reference/classPropertyAsProtected.js b/tests/baselines/reference/classPropertyAsProtected.js index 1cd74089816..da0e1665135 100644 --- a/tests/baselines/reference/classPropertyAsProtected.js +++ b/tests/baselines/reference/classPropertyAsProtected.js @@ -42,7 +42,7 @@ var C = (function () { }); C.foo = function () { }; return C; -})(); +}()); var c; // all errors c.x; diff --git a/tests/baselines/reference/classPropertyIsPublicByDefault.js b/tests/baselines/reference/classPropertyIsPublicByDefault.js index a0b61a08922..5a5bfa7afe8 100644 --- a/tests/baselines/reference/classPropertyIsPublicByDefault.js +++ b/tests/baselines/reference/classPropertyIsPublicByDefault.js @@ -41,7 +41,7 @@ var C = (function () { }); C.foo = function () { }; return C; -})(); +}()); var c; c.x; c.y; diff --git a/tests/baselines/reference/classSideInheritance1.js b/tests/baselines/reference/classSideInheritance1.js index 6d217149b83..0e3897a4f46 100644 --- a/tests/baselines/reference/classSideInheritance1.js +++ b/tests/baselines/reference/classSideInheritance1.js @@ -29,14 +29,14 @@ var A = (function () { }; A.prototype.foo = function () { return 1; }; return A; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(A); +}(A)); var a; var c; a.bar(); // static off an instance - should be an error diff --git a/tests/baselines/reference/classSideInheritance2.js b/tests/baselines/reference/classSideInheritance2.js index fb6f0d8cbb9..72fd4af1eed 100644 --- a/tests/baselines/reference/classSideInheritance2.js +++ b/tests/baselines/reference/classSideInheritance2.js @@ -32,7 +32,7 @@ var SubText = (function (_super) { _super.call(this); } return SubText; -})(TextBase); +}(TextBase)); var TextBase = (function () { function TextBase() { } @@ -40,4 +40,4 @@ var TextBase = (function () { return new SubText(this, span); }; return TextBase; -})(); +}()); diff --git a/tests/baselines/reference/classSideInheritance3.js b/tests/baselines/reference/classSideInheritance3.js index 0891a7c9e74..b708489c518 100644 --- a/tests/baselines/reference/classSideInheritance3.js +++ b/tests/baselines/reference/classSideInheritance3.js @@ -29,7 +29,7 @@ var A = (function () { this.x = x; } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B(x, data) { @@ -37,14 +37,14 @@ var B = (function (_super) { this.data = data; } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C(x) { _super.call(this, x); } return C; -})(A); +}(A)); var r1 = B; // error var r2 = B; // error var r3 = C; // ok diff --git a/tests/baselines/reference/classTypeParametersInStatics.js b/tests/baselines/reference/classTypeParametersInStatics.js index 8790ad9bceb..e538c5ee2e3 100644 --- a/tests/baselines/reference/classTypeParametersInStatics.js +++ b/tests/baselines/reference/classTypeParametersInStatics.js @@ -60,6 +60,6 @@ var Editor; return entry; }; return List; - })(); + }()); Editor.List = List; })(Editor || (Editor = {})); diff --git a/tests/baselines/reference/classUpdateTests.js b/tests/baselines/reference/classUpdateTests.js index 95db2680a1c..581575d0d46 100644 --- a/tests/baselines/reference/classUpdateTests.js +++ b/tests/baselines/reference/classUpdateTests.js @@ -128,14 +128,14 @@ var A = (function () { this.p2 = 0; } return A; -})(); +}()); var B = (function () { function B() { this.p1 = 0; this.p2 = 0; } return B; -})(); +}()); var C = (function () { function C(p1, p2, p3) { if (p1 === void 0) { p1 = 0; } @@ -145,7 +145,7 @@ var C = (function () { this.p2 = p2; } return C; -})(); +}()); // // test requirements for super calls // @@ -153,7 +153,7 @@ var D = (function () { function D() { } return D; -})(); +}()); var E = (function (_super) { __extends(E, _super); function E() { @@ -161,13 +161,13 @@ var E = (function (_super) { this.p1 = 0; } return E; -})(D); +}(D)); var F = (function (_super) { __extends(F, _super); function F() { } // ERROR - super call required return F; -})(E); +}(E)); var G = (function (_super) { __extends(G, _super); function G() { @@ -175,20 +175,20 @@ var G = (function (_super) { this.p1 = 0; } // NO ERROR return G; -})(D); +}(D)); var H = (function () { function H() { _super.call(this); } // ERROR - no super call allowed return H; -})(); +}()); var I = (function (_super) { __extends(I, _super); function I() { _super.call(this); } // ERROR - no super call allowed return I; -})(Object); +}(Object)); var J = (function (_super) { __extends(J, _super); function J(p1) { @@ -196,7 +196,7 @@ var J = (function (_super) { this.p1 = p1; } return J; -})(G); +}(G)); var K = (function (_super) { __extends(K, _super); function K(p1) { @@ -205,7 +205,7 @@ var K = (function (_super) { _super.call(this); } return K; -})(G); +}(G)); var L = (function (_super) { __extends(L, _super); function L(p1) { @@ -213,7 +213,7 @@ var L = (function (_super) { this.p1 = p1; } return L; -})(G); +}(G)); var M = (function (_super) { __extends(M, _super); function M(p1) { @@ -222,7 +222,7 @@ var M = (function (_super) { _super.call(this); } return M; -})(G); +}(G)); // // test this reference in field initializers // @@ -233,7 +233,7 @@ var N = (function () { this.p2 = 0; } return N; -})(); +}()); // // test error on property declarations within class constructors // @@ -242,22 +242,22 @@ var O = (function () { this.p1 = 0; // ERROR } return O; -})(); +}()); var P = (function () { function P() { this.p1 = 0; // ERROR } return P; -})(); +}()); var Q = (function () { function Q() { this.p1 = 0; // ERROR } return Q; -})(); +}()); var R = (function () { function R() { this.p1 = 0; // ERROR } return R; -})(); +}()); diff --git a/tests/baselines/reference/classWithBaseClassButNoConstructor.js b/tests/baselines/reference/classWithBaseClassButNoConstructor.js index 44e5d39c376..e94a4700506 100644 --- a/tests/baselines/reference/classWithBaseClassButNoConstructor.js +++ b/tests/baselines/reference/classWithBaseClassButNoConstructor.js @@ -50,14 +50,14 @@ var Base = (function () { function Base(x) { } return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(Base); +}(Base)); var r = C; var c = new C(); // error var c2 = new C(1); // ok @@ -65,14 +65,14 @@ var Base2 = (function () { function Base2(x) { } return Base2; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(Base2); +}(Base2)); var r2 = D; var d = new D(); // error var d2 = new D(1); // ok @@ -83,7 +83,7 @@ var D2 = (function (_super) { _super.apply(this, arguments); } return D2; -})(Base2); +}(Base2)); var r3 = D2; var d3 = new D(); // error var d4 = new D(1); // ok @@ -93,7 +93,7 @@ var D3 = (function (_super) { _super.apply(this, arguments); } return D3; -})(Base2); +}(Base2)); var r4 = D3; var d5 = new D(); // error var d6 = new D(1); // ok diff --git a/tests/baselines/reference/classWithConstructors.js b/tests/baselines/reference/classWithConstructors.js index a36db6ee745..04dcfa2325c 100644 --- a/tests/baselines/reference/classWithConstructors.js +++ b/tests/baselines/reference/classWithConstructors.js @@ -61,14 +61,14 @@ var NonGeneric; function C(x) { } return C; - })(); + }()); var c = new C(); // error var c2 = new C(''); // ok var C2 = (function () { function C2(x) { } return C2; - })(); + }()); var c3 = new C2(); // error var c4 = new C2(''); // ok var c5 = new C2(1); // ok @@ -78,7 +78,7 @@ var NonGeneric; _super.apply(this, arguments); } return D; - })(C2); + }(C2)); var d = new D(); // error var d2 = new D(1); // ok var d3 = new D(''); // ok @@ -89,14 +89,14 @@ var Generics; function C(x) { } return C; - })(); + }()); var c = new C(); // error var c2 = new C(''); // ok var C2 = (function () { function C2(x) { } return C2; - })(); + }()); var c3 = new C2(); // error var c4 = new C2(''); // ok var c5 = new C2(1, 2); // ok @@ -106,7 +106,7 @@ var Generics; _super.apply(this, arguments); } return D; - })(C2); + }(C2)); var d = new D(); // error var d2 = new D(1); // ok var d3 = new D(''); // ok diff --git a/tests/baselines/reference/classWithEmptyBody.js b/tests/baselines/reference/classWithEmptyBody.js index 16c50ccec77..73654afc07b 100644 --- a/tests/baselines/reference/classWithEmptyBody.js +++ b/tests/baselines/reference/classWithEmptyBody.js @@ -25,7 +25,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var o = c; c = 1; @@ -36,7 +36,7 @@ var D = (function () { return 1; } return D; -})(); +}()); var d; var o = d; d = 1; diff --git a/tests/baselines/reference/classWithMultipleBaseClasses.js b/tests/baselines/reference/classWithMultipleBaseClasses.js index 0e101d61dc9..4f1170f000e 100644 --- a/tests/baselines/reference/classWithMultipleBaseClasses.js +++ b/tests/baselines/reference/classWithMultipleBaseClasses.js @@ -30,17 +30,17 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.bar = function () { }; return B; -})(); +}()); var D = (function () { function D() { } D.prototype.baz = function () { }; D.prototype.bat = function () { }; return D; -})(); +}()); diff --git a/tests/baselines/reference/classWithNoConstructorOrBaseClass.js b/tests/baselines/reference/classWithNoConstructorOrBaseClass.js index 7898b3217fd..908c5c43532 100644 --- a/tests/baselines/reference/classWithNoConstructorOrBaseClass.js +++ b/tests/baselines/reference/classWithNoConstructorOrBaseClass.js @@ -21,14 +21,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); var r = C; var D = (function () { function D() { } return D; -})(); +}()); var d = new D(); var d2 = new D(); var r2 = D; diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js index 1c07449c994..c2942b8571f 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js @@ -38,7 +38,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var c; var i; c = i; diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js index 78e5cb05861..b97269527be 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js @@ -40,7 +40,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var c; var i; c = i; diff --git a/tests/baselines/reference/classWithOptionalParameter.js b/tests/baselines/reference/classWithOptionalParameter.js index 2f11f15febe..53f6bcedd99 100644 --- a/tests/baselines/reference/classWithOptionalParameter.js +++ b/tests/baselines/reference/classWithOptionalParameter.js @@ -18,10 +18,10 @@ var C = (function () { } C.prototype.f = function () { }; return C; -})(); +}()); var C2 = (function () { function C2() { } C2.prototype.f = function (x) { }; return C2; -})(); +}()); diff --git a/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js b/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js index 4ac6548483e..1bc9f197450 100644 --- a/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js +++ b/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js @@ -11,4 +11,4 @@ var C = (function () { } C.prototype.bar = function (x) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js index fd28ae3d9eb..8e3d9eee62c 100644 --- a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js +++ b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js @@ -11,4 +11,4 @@ var C = (function () { } C.prototype.bar = function (x) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/classWithPredefinedTypesAsNames.js b/tests/baselines/reference/classWithPredefinedTypesAsNames.js index d7c458de41b..ed2677145fb 100644 --- a/tests/baselines/reference/classWithPredefinedTypesAsNames.js +++ b/tests/baselines/reference/classWithPredefinedTypesAsNames.js @@ -12,19 +12,19 @@ var any = (function () { function any() { } return any; -})(); +}()); var number = (function () { function number() { } return number; -})(); +}()); var boolean = (function () { function boolean() { } return boolean; -})(); +}()); var string = (function () { function string() { } return string; -})(); +}()); diff --git a/tests/baselines/reference/classWithPredefinedTypesAsNames2.js b/tests/baselines/reference/classWithPredefinedTypesAsNames2.js index 91ff735accc..3a788caff8b 100644 --- a/tests/baselines/reference/classWithPredefinedTypesAsNames2.js +++ b/tests/baselines/reference/classWithPredefinedTypesAsNames2.js @@ -9,5 +9,5 @@ var default_1 = (function () { function default_1() { } return default_1; -})(); +}()); void {}; diff --git a/tests/baselines/reference/classWithPrivateProperty.js b/tests/baselines/reference/classWithPrivateProperty.js index 0529fd8d694..6e75797523f 100644 --- a/tests/baselines/reference/classWithPrivateProperty.js +++ b/tests/baselines/reference/classWithPrivateProperty.js @@ -34,7 +34,7 @@ var C = (function () { C.f = function () { return ''; }; C.g = function () { return ''; }; return C; -})(); +}()); var c = new C(); var r1 = c.x; var r2 = c.a; diff --git a/tests/baselines/reference/classWithProtectedProperty.js b/tests/baselines/reference/classWithProtectedProperty.js index ec8a203d200..75eadaf4010 100644 --- a/tests/baselines/reference/classWithProtectedProperty.js +++ b/tests/baselines/reference/classWithProtectedProperty.js @@ -44,7 +44,7 @@ var C = (function () { C.f = function () { return ''; }; C.g = function () { return ''; }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -63,4 +63,4 @@ var D = (function (_super) { var r8 = C.g(); }; return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/classWithPublicProperty.js b/tests/baselines/reference/classWithPublicProperty.js index cc1b0aad64f..054713264bd 100644 --- a/tests/baselines/reference/classWithPublicProperty.js +++ b/tests/baselines/reference/classWithPublicProperty.js @@ -32,7 +32,7 @@ var C = (function () { C.f = function () { return ''; }; C.g = function () { return ''; }; return C; -})(); +}()); // all of these are valid var c = new C(); var r1 = c.x; diff --git a/tests/baselines/reference/classWithSemicolonClassElement1.js b/tests/baselines/reference/classWithSemicolonClassElement1.js index 3838316e113..8eb904ef786 100644 --- a/tests/baselines/reference/classWithSemicolonClassElement1.js +++ b/tests/baselines/reference/classWithSemicolonClassElement1.js @@ -9,4 +9,4 @@ var C = (function () { } ; return C; -})(); +}()); diff --git a/tests/baselines/reference/classWithSemicolonClassElement2.js b/tests/baselines/reference/classWithSemicolonClassElement2.js index 77af51bce60..22b6fa1075e 100644 --- a/tests/baselines/reference/classWithSemicolonClassElement2.js +++ b/tests/baselines/reference/classWithSemicolonClassElement2.js @@ -11,4 +11,4 @@ var C = (function () { ; ; return C; -})(); +}()); diff --git a/tests/baselines/reference/classWithStaticMembers.js b/tests/baselines/reference/classWithStaticMembers.js index 34928c37abd..327adead6b8 100644 --- a/tests/baselines/reference/classWithStaticMembers.js +++ b/tests/baselines/reference/classWithStaticMembers.js @@ -38,7 +38,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var r = C.fn(); var r2 = r.x; var r3 = r.foo; @@ -48,7 +48,7 @@ var D = (function (_super) { _super.apply(this, arguments); } return D; -})(C); +}(C)); var r = D.fn(); var r2 = r.x; var r3 = r.foo; diff --git a/tests/baselines/reference/classWithTwoConstructorDefinitions.js b/tests/baselines/reference/classWithTwoConstructorDefinitions.js index 31e5498cfc9..397a7c82529 100644 --- a/tests/baselines/reference/classWithTwoConstructorDefinitions.js +++ b/tests/baselines/reference/classWithTwoConstructorDefinitions.js @@ -14,9 +14,9 @@ var C = (function () { function C() { } // error return C; -})(); +}()); var D = (function () { function D(x) { } // error return D; -})(); +}()); diff --git a/tests/baselines/reference/classWithoutExplicitConstructor.js b/tests/baselines/reference/classWithoutExplicitConstructor.js index fed448a2459..6b835eb35a0 100644 --- a/tests/baselines/reference/classWithoutExplicitConstructor.js +++ b/tests/baselines/reference/classWithoutExplicitConstructor.js @@ -22,7 +22,7 @@ var C = (function () { this.y = 'hello'; } return C; -})(); +}()); var c = new C(); var c2 = new C(null); // error var D = (function () { @@ -31,6 +31,6 @@ var D = (function () { this.y = null; } return D; -})(); +}()); var d = new D(); var d2 = new D(null); // error diff --git a/tests/baselines/reference/classdecl.js b/tests/baselines/reference/classdecl.js index b424243c164..710c5166d30 100644 --- a/tests/baselines/reference/classdecl.js +++ b/tests/baselines/reference/classdecl.js @@ -132,27 +132,27 @@ var a = (function () { return ns.toString(); }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); var m1; (function (m1) { var b = (function () { function b() { } return b; - })(); + }()); m1.b = b; var d = (function () { function d() { } return d; - })(); + }()); })(m1 || (m1 = {})); var m2; (function (m2) { @@ -164,13 +164,13 @@ var m2; _super.apply(this, arguments); } return c; - })(b); + }(b)); m3.c = c; var ib2 = (function () { function ib2() { } return ib2; - })(); + }()); m3.ib2 = ib2; })(m3 = m2.m3 || (m2.m3 = {})); })(m2 || (m2 = {})); @@ -180,12 +180,12 @@ var c = (function (_super) { _super.apply(this, arguments); } return c; -})(m1.b); +}(m1.b)); var ib2 = (function () { function ib2() { } return ib2; -})(); +}()); var d = (function () { function d() { } @@ -193,7 +193,7 @@ var d = (function () { return ns.toString(); }; return d; -})(); +}()); var e = (function () { function e() { } @@ -201,7 +201,7 @@ var e = (function () { return ns.toString(); }; return e; -})(); +}()); //// [classdecl.d.ts] diff --git a/tests/baselines/reference/clinterfaces.js b/tests/baselines/reference/clinterfaces.js index 26f4efde61c..ed3ea1f6523 100644 --- a/tests/baselines/reference/clinterfaces.js +++ b/tests/baselines/reference/clinterfaces.js @@ -33,21 +33,21 @@ var M; function C() { } return C; - })(); + }()); var D = (function () { function D() { } return D; - })(); + }()); })(M || (M = {})); var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); module.exports = Foo; diff --git a/tests/baselines/reference/cloduleAcrossModuleDefinitions.js b/tests/baselines/reference/cloduleAcrossModuleDefinitions.js index c877de38a00..f0f31325aed 100644 --- a/tests/baselines/reference/cloduleAcrossModuleDefinitions.js +++ b/tests/baselines/reference/cloduleAcrossModuleDefinitions.js @@ -24,7 +24,7 @@ var A; B.prototype.foo = function () { }; B.bar = function () { }; return B; - })(); + }()); A.B = B; })(A || (A = {})); var A; diff --git a/tests/baselines/reference/cloduleAndTypeParameters.js b/tests/baselines/reference/cloduleAndTypeParameters.js index 28d89b59cf2..2d47ce1ef75 100644 --- a/tests/baselines/reference/cloduleAndTypeParameters.js +++ b/tests/baselines/reference/cloduleAndTypeParameters.js @@ -18,13 +18,13 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo; (function (Foo) { var Baz = (function () { function Baz() { } return Baz; - })(); + }()); Foo.Baz = Baz; })(Foo || (Foo = {})); diff --git a/tests/baselines/reference/cloduleSplitAcrossFiles.js b/tests/baselines/reference/cloduleSplitAcrossFiles.js index 6bc8cfddb6f..f509df7e9ce 100644 --- a/tests/baselines/reference/cloduleSplitAcrossFiles.js +++ b/tests/baselines/reference/cloduleSplitAcrossFiles.js @@ -14,7 +14,7 @@ var D = (function () { function D() { } return D; -})(); +}()); //// [cloduleSplitAcrossFiles_module.js] var D; (function (D) { diff --git a/tests/baselines/reference/cloduleStaticMembers.js b/tests/baselines/reference/cloduleStaticMembers.js index 518ef43fe40..6095442b629 100644 --- a/tests/baselines/reference/cloduleStaticMembers.js +++ b/tests/baselines/reference/cloduleStaticMembers.js @@ -19,7 +19,7 @@ var Clod = (function () { Clod.x = 10; Clod.y = 10; return Clod; -})(); +}()); var Clod; (function (Clod) { var p = Clod.x; diff --git a/tests/baselines/reference/cloduleWithDuplicateMember1.js b/tests/baselines/reference/cloduleWithDuplicateMember1.js index e3cb8f83fed..6f4a2809b8e 100644 --- a/tests/baselines/reference/cloduleWithDuplicateMember1.js +++ b/tests/baselines/reference/cloduleWithDuplicateMember1.js @@ -33,7 +33,7 @@ var C = (function () { }); C.foo = function () { }; return C; -})(); +}()); var C; (function (C) { C.x = 1; diff --git a/tests/baselines/reference/cloduleWithDuplicateMember2.js b/tests/baselines/reference/cloduleWithDuplicateMember2.js index c16c6c9af8a..f0e8af0e3d2 100644 --- a/tests/baselines/reference/cloduleWithDuplicateMember2.js +++ b/tests/baselines/reference/cloduleWithDuplicateMember2.js @@ -26,7 +26,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var C; (function (C) { C.x = 1; diff --git a/tests/baselines/reference/cloduleWithPriorInstantiatedModule.js b/tests/baselines/reference/cloduleWithPriorInstantiatedModule.js index 601ab0a7536..00040923627 100644 --- a/tests/baselines/reference/cloduleWithPriorInstantiatedModule.js +++ b/tests/baselines/reference/cloduleWithPriorInstantiatedModule.js @@ -26,7 +26,7 @@ var Moclodule = (function () { function Moclodule() { } return Moclodule; -})(); +}()); // Instantiated module. var Moclodule; (function (Moclodule) { @@ -34,6 +34,6 @@ var Moclodule; function Manager() { } return Manager; - })(); + }()); Moclodule.Manager = Manager; })(Moclodule || (Moclodule = {})); diff --git a/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.js b/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.js index cf06f1134fb..ba29858c5dd 100644 --- a/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.js +++ b/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.js @@ -20,7 +20,7 @@ var Moclodule = (function () { function Moclodule() { } return Moclodule; -})(); +}()); // Instantiated module. var Moclodule; (function (Moclodule) { @@ -28,6 +28,6 @@ var Moclodule; function Manager() { } return Manager; - })(); + }()); Moclodule.Manager = Manager; })(Moclodule || (Moclodule = {})); diff --git a/tests/baselines/reference/cloduleWithRecursiveReference.js b/tests/baselines/reference/cloduleWithRecursiveReference.js index 1a688712270..d07af909cc7 100644 --- a/tests/baselines/reference/cloduleWithRecursiveReference.js +++ b/tests/baselines/reference/cloduleWithRecursiveReference.js @@ -14,7 +14,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; var C; (function (C_1) { diff --git a/tests/baselines/reference/clodulesDerivedClasses.js b/tests/baselines/reference/clodulesDerivedClasses.js index 652b3f7bac6..7e6f26ad591 100644 --- a/tests/baselines/reference/clodulesDerivedClasses.js +++ b/tests/baselines/reference/clodulesDerivedClasses.js @@ -32,7 +32,7 @@ var Shape = (function () { function Shape() { } return Shape; -})(); +}()); var Shape; (function (Shape) { var Utils; @@ -47,7 +47,7 @@ var Path = (function (_super) { _super.apply(this, arguments); } return Path; -})(Shape); +}(Shape)); var Path; (function (Path) { var Utils; diff --git a/tests/baselines/reference/collisionArgumentsClassConstructor.js b/tests/baselines/reference/collisionArgumentsClassConstructor.js index ca743777b39..570b10d39d3 100644 --- a/tests/baselines/reference/collisionArgumentsClassConstructor.js +++ b/tests/baselines/reference/collisionArgumentsClassConstructor.js @@ -97,7 +97,7 @@ var c1 = (function () { var arguments; // no error } return c1; -})(); +}()); var c12 = (function () { function c12(arguments) { var rest = []; @@ -107,13 +107,13 @@ var c12 = (function () { var arguments = 10; // no error } return c12; -})(); +}()); var c1NoError = (function () { function c1NoError(arguments) { var arguments = 10; // no error } return c1NoError; -})(); +}()); var c2 = (function () { function c2() { var restParameters = []; @@ -123,13 +123,13 @@ var c2 = (function () { var arguments = 10; // no error } return c2; -})(); +}()); var c2NoError = (function () { function c2NoError() { var arguments = 10; // no error } return c2NoError; -})(); +}()); var c3 = (function () { function c3(arguments) { var restParameters = []; @@ -140,14 +140,14 @@ var c3 = (function () { var arguments = 10; // no error } return c3; -})(); +}()); var c3NoError = (function () { function c3NoError(arguments) { this.arguments = arguments; var arguments = 10; // no error } return c3NoError; -})(); +}()); var c5 = (function () { function c5(i) { var arguments = []; @@ -157,7 +157,7 @@ var c5 = (function () { var arguments; // no error } return c5; -})(); +}()); var c52 = (function () { function c52(arguments) { var rest = []; @@ -167,10 +167,10 @@ var c52 = (function () { var arguments; // no error } return c52; -})(); +}()); var c5NoError = (function () { function c5NoError(arguments) { var arguments; // no error } return c5NoError; -})(); +}()); diff --git a/tests/baselines/reference/collisionArgumentsClassMethod.js b/tests/baselines/reference/collisionArgumentsClassMethod.js index 10c9b288544..a20e0385e6a 100644 --- a/tests/baselines/reference/collisionArgumentsClassMethod.js +++ b/tests/baselines/reference/collisionArgumentsClassMethod.js @@ -87,7 +87,7 @@ var c1 = (function () { var arguments; // no error }; return c1; -})(); +}()); var c3 = (function () { function c3() { } @@ -102,4 +102,4 @@ var c3 = (function () { var arguments = 10; // no error }; return c3; -})(); +}()); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithAccessorChildren.js b/tests/baselines/reference/collisionCodeGenModuleWithAccessorChildren.js index 8152a9c2721..fd502b32ccf 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithAccessorChildren.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithAccessorChildren.js @@ -60,7 +60,7 @@ var M; configurable: true }); return c; - })(); + }()); })(M || (M = {})); var M; (function (M_2) { @@ -76,7 +76,7 @@ var M; configurable: true }); return d; - })(); + }()); })(M || (M = {})); var M; (function (M) { @@ -91,7 +91,7 @@ var M; configurable: true }); return e; - })(); + }()); })(M || (M = {})); var M; (function (M_3) { @@ -107,7 +107,7 @@ var M; configurable: true }); return f; - })(); + }()); })(M || (M = {})); var M; (function (M) { @@ -122,5 +122,5 @@ var M; configurable: true }); return e; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.js b/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.js index 2aa705c9141..24332a84797 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.js @@ -32,7 +32,7 @@ var M; if (p === void 0) { p = M_1.x; } } return c; - })(); + }()); })(M || (M = {})); var M; (function (M_2) { @@ -42,7 +42,7 @@ var M; this.M = M; } return d; - })(); + }()); })(M || (M = {})); var M; (function (M_3) { @@ -52,5 +52,5 @@ var M; var p = M_3.x; } return d2; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.js b/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.js index 05ae475e7d2..cf0fd765e56 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.js @@ -22,7 +22,7 @@ var m1; function m1() { } return m1; - })(); + }()); m1_1.m1 = m1; })(m1 || (m1 = {})); var foo = new m1.m1(); @@ -32,13 +32,13 @@ var m2; function m2() { } return m2; - })(); + }()); m2_1.m2 = m2; var _m2 = (function () { function _m2() { } return _m2; - })(); + }()); m2_1._m2 = _m2; })(m2 || (m2 = {})); var foo = new m2.m2(); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.js b/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.js index d511a86d1fe..594a8dc2295 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.js @@ -14,7 +14,7 @@ var m1; function m2() { } return m2; - })(); + }()); m1.m2 = m2; })(m1 || (m1 = {})); var foo = new m1.m2(); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js index 53807f1cabd..a42b6502483 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js @@ -43,7 +43,7 @@ var M; if (p === void 0) { p = M_1.x; } }; return c; - })(); + }()); })(M || (M = {})); var M; (function (M_2) { @@ -55,7 +55,7 @@ var M; var p = M_2.x; }; return d; - })(); + }()); })(M || (M = {})); var M; (function (M_3) { @@ -68,7 +68,7 @@ var M; } }; return e; - })(); + }()); })(M || (M = {})); var M; (function (M) { @@ -78,5 +78,5 @@ var M; f.prototype.M = function () { }; return f; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.js b/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.js index 2862a844067..6726d32d77d 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.js @@ -60,7 +60,7 @@ var M; function M() { } return M; - })(); + }()); var p = M_2.x; var p2 = new M(); })(m2 || (m2 = {})); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.js b/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.js index 710c09e4558..eed1095cdc3 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.js @@ -36,7 +36,7 @@ var m1; function m1() { } return m1; - })(); + }()); m1_1.m1 = m1; })(m1 || (m1 = {})); var foo = new m1.m1(); @@ -46,7 +46,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1.c1 = c1; var b = new c1(); var c = new m1.m1(); @@ -58,7 +58,7 @@ var m2; function c1() { } return c1; - })(); + }()); m2.c1 = c1; m2.b10 = 10; var x = new c1(); @@ -70,7 +70,7 @@ var m2; function m2() { } return m2; - })(); + }()); m2_1.m2 = m2; var b = new m2(); var d = m2_1.b10; diff --git a/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.js b/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.js index 4b4d6aa7afb..ca9420197fb 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.js @@ -15,13 +15,13 @@ var m1; function m1() { } return m1; - })(); + }()); var x = new m1(); var c1 = (function () { function c1() { } return c1; - })(); + }()); m1_1.c1 = c1; })(m1 || (m1 = {})); var foo = new m1.c1(); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.js b/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.js index 3204a05bc75..50eff733912 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.js @@ -16,7 +16,7 @@ var 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄü function 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123() { } return 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123; - })(); + }()); 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123_1.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 = 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123; })(才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 || (才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 = {})); var x = new 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123(); diff --git a/tests/baselines/reference/collisionExportsRequireAndClass.js b/tests/baselines/reference/collisionExportsRequireAndClass.js index b993f9a23c5..962df0344ed 100644 --- a/tests/baselines/reference/collisionExportsRequireAndClass.js +++ b/tests/baselines/reference/collisionExportsRequireAndClass.js @@ -43,13 +43,13 @@ define(["require", "exports"], function (require, exports) { function require() { } return require; - })(); + }()); exports.require = require; var exports = (function () { function exports() { } return exports; - })(); + }()); exports.exports = exports; var m1; (function (m1) { @@ -57,12 +57,12 @@ define(["require", "exports"], function (require, exports) { function require() { } return require; - })(); + }()); var exports = (function () { function exports() { } return exports; - })(); + }()); })(m1 || (m1 = {})); var m2; (function (m2) { @@ -70,13 +70,13 @@ define(["require", "exports"], function (require, exports) { function require() { } return require; - })(); + }()); m2.require = require; var exports = (function () { function exports() { } return exports; - })(); + }()); m2.exports = exports; })(m2 || (m2 = {})); }); @@ -85,24 +85,24 @@ var require = (function () { function require() { } return require; -})(); +}()); var exports = (function () { function exports() { } return exports; -})(); +}()); var m3; (function (m3) { var require = (function () { function require() { } return require; - })(); + }()); var exports = (function () { function exports() { } return exports; - })(); + }()); })(m3 || (m3 = {})); var m4; (function (m4) { @@ -110,12 +110,12 @@ var m4; function require() { } return require; - })(); + }()); m4.require = require; var exports = (function () { function exports() { } return exports; - })(); + }()); m4.exports = exports; })(m4 || (m4 = {})); diff --git a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.js b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.js index 71432241b00..1842e415d88 100644 --- a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.js +++ b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAlias.js @@ -31,7 +31,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); m.c = c; })(m = exports.m || (exports.m = {})); var exports = m.c; diff --git a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.js b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.js index c6a6e234ee9..b90d2236601 100644 --- a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.js +++ b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.js @@ -29,7 +29,7 @@ var mOfGloalFile; function c() { } return c; - })(); + }()); mOfGloalFile.c = c; })(mOfGloalFile || (mOfGloalFile = {})); var exports = mOfGloalFile.c; diff --git a/tests/baselines/reference/collisionExportsRequireAndModule.js b/tests/baselines/reference/collisionExportsRequireAndModule.js index 3c31c944370..b29364aebe3 100644 --- a/tests/baselines/reference/collisionExportsRequireAndModule.js +++ b/tests/baselines/reference/collisionExportsRequireAndModule.js @@ -100,7 +100,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); require.C = C; })(require = exports.require || (exports.require = {})); function foo() { @@ -113,7 +113,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); exports.C = C; })(exports = exports.exports || (exports.exports = {})); function foo2() { @@ -128,7 +128,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); require.C = C; })(require || (require = {})); var exports; @@ -137,7 +137,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); exports.C = C; })(exports || (exports = {})); })(m1 || (m1 = {})); @@ -149,7 +149,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); require.C = C; })(require = m2.require || (m2.require = {})); var exports; @@ -158,7 +158,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); exports.C = C; })(exports = m2.exports || (m2.exports = {})); })(m2 || (m2 = {})); @@ -170,7 +170,7 @@ var require; function C() { } return C; - })(); + }()); require.C = C; })(require || (require = {})); var exports; @@ -179,7 +179,7 @@ var exports; function C() { } return C; - })(); + }()); exports.C = C; })(exports || (exports = {})); var m3; @@ -190,7 +190,7 @@ var m3; function C() { } return C; - })(); + }()); require.C = C; })(require || (require = {})); var exports; @@ -199,7 +199,7 @@ var m3; function C() { } return C; - })(); + }()); exports.C = C; })(exports || (exports = {})); })(m3 || (m3 = {})); @@ -211,7 +211,7 @@ var m4; function C() { } return C; - })(); + }()); require.C = C; })(require = m4.require || (m4.require = {})); var exports; @@ -220,7 +220,7 @@ var m4; function C() { } return C; - })(); + }()); exports.C = C; })(exports = m4.exports || (m4.exports = {})); })(m4 || (m4 = {})); diff --git a/tests/baselines/reference/collisionRestParameterClassConstructor.js b/tests/baselines/reference/collisionRestParameterClassConstructor.js index fc6e400668c..82d2ddc0896 100644 --- a/tests/baselines/reference/collisionRestParameterClassConstructor.js +++ b/tests/baselines/reference/collisionRestParameterClassConstructor.js @@ -77,13 +77,13 @@ var c1 = (function () { var _i = 10; // no error } return c1; -})(); +}()); var c1NoError = (function () { function c1NoError(_i) { var _i = 10; // no error } return c1NoError; -})(); +}()); var c2 = (function () { function c2() { var restParameters = []; @@ -93,13 +93,13 @@ var c2 = (function () { var _i = 10; // no error } return c2; -})(); +}()); var c2NoError = (function () { function c2NoError() { var _i = 10; // no error } return c2NoError; -})(); +}()); var c3 = (function () { function c3(_i) { var restParameters = []; @@ -110,14 +110,14 @@ var c3 = (function () { var _i = 10; // no error } return c3; -})(); +}()); var c3NoError = (function () { function c3NoError(_i) { this._i = _i; var _i = 10; // no error } return c3NoError; -})(); +}()); var c5 = (function () { function c5(_i) { var rest = []; @@ -127,10 +127,10 @@ var c5 = (function () { var _i; // no error } return c5; -})(); +}()); var c5NoError = (function () { function c5NoError(_i) { var _i; // no error } return c5NoError; -})(); +}()); diff --git a/tests/baselines/reference/collisionRestParameterClassMethod.js b/tests/baselines/reference/collisionRestParameterClassMethod.js index e3471c85f1c..eb92faa7b2a 100644 --- a/tests/baselines/reference/collisionRestParameterClassMethod.js +++ b/tests/baselines/reference/collisionRestParameterClassMethod.js @@ -63,7 +63,7 @@ var c1 = (function () { var _i; // no error }; return c1; -})(); +}()); var c3 = (function () { function c3() { } @@ -78,4 +78,4 @@ var c3 = (function () { var _i = 10; // no error }; return c3; -})(); +}()); diff --git a/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.js b/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.js index adc9c09de27..97e82a1523f 100644 --- a/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.js +++ b/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.js @@ -19,5 +19,5 @@ var Foo = (function () { console.log(_i); // This should result in error } return Foo; -})(); +}()); new Foo(); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js index 731f3d4f064..fc64a8012ee 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js @@ -64,7 +64,7 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -84,7 +84,7 @@ var b = (function (_super) { configurable: true }); return b; -})(Foo); +}(Foo)); var c = (function (_super) { __extends(c, _super); function c() { @@ -108,4 +108,4 @@ var c = (function (_super) { configurable: true }); return c; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js index 06acaa0e02a..b6e7cb121d6 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js @@ -38,7 +38,7 @@ var Foo = (function () { } } return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -47,7 +47,7 @@ var b = (function (_super) { } } return b; -})(Foo); +}(Foo)); var c = (function (_super) { __extends(c, _super); function c() { @@ -58,4 +58,4 @@ var c = (function (_super) { }; } return c; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js index 6702ba8ac3d..14b8bf46697 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js @@ -46,7 +46,7 @@ var Foo = (function () { Foo.prototype._super = function () { }; return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -59,7 +59,7 @@ var b = (function (_super) { b.prototype._super = function () { }; return b; -})(Foo); +}(Foo)); var c = (function (_super) { __extends(c, _super); function c() { @@ -74,4 +74,4 @@ var c = (function (_super) { c.prototype._super = function () { }; return c; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js index 8d13eed617b..2af7a6a870e 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js @@ -36,7 +36,7 @@ var Foo = (function () { }; } return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -49,4 +49,4 @@ var b = (function (_super) { }; } return b; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js index 12685727795..6887a22ae20 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js @@ -54,7 +54,7 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -72,7 +72,7 @@ var b = (function (_super) { configurable: true }); return b; -})(Foo); +}(Foo)); var c = (function (_super) { __extends(c, _super); function c() { @@ -94,4 +94,4 @@ var c = (function (_super) { configurable: true }); return c; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js index 6f543492898..d3b5e7a2030 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js @@ -32,7 +32,7 @@ var Foo = (function () { var _super = 10; // No error } return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -40,7 +40,7 @@ var b = (function (_super) { var _super = 10; // Should be error } return b; -})(Foo); +}(Foo)); var c = (function (_super) { __extends(c, _super); function c() { @@ -50,4 +50,4 @@ var c = (function (_super) { }; } return c; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js index 373ee270014..4553608756d 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js @@ -32,7 +32,7 @@ var Foo = (function () { var _super = 10; // No error }; return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -42,7 +42,7 @@ var b = (function (_super) { var _super = 10; // Should be error }; return b; -})(Foo); +}(Foo)); var c = (function (_super) { __extends(c, _super); function c() { @@ -54,4 +54,4 @@ var c = (function (_super) { }; }; return c; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js index 7ba9b407858..df5d812cf54 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js @@ -34,7 +34,7 @@ var Foo = (function () { this._super = 10; // No error } return Foo; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -47,4 +47,4 @@ var b = (function (_super) { this._super = 10; // No error } return b; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndNameResolution.js b/tests/baselines/reference/collisionSuperAndNameResolution.js index 5cddcc01845..2db90d8b026 100644 --- a/tests/baselines/reference/collisionSuperAndNameResolution.js +++ b/tests/baselines/reference/collisionSuperAndNameResolution.js @@ -23,7 +23,7 @@ var base = (function () { function base() { } return base; -})(); +}()); var Foo = (function (_super) { __extends(Foo, _super); function Foo() { @@ -33,4 +33,4 @@ var Foo = (function (_super) { console.log(_super); // Error as this doesnt not resolve to user defined _super }; return Foo; -})(base); +}(base)); diff --git a/tests/baselines/reference/collisionSuperAndParameter.js b/tests/baselines/reference/collisionSuperAndParameter.js index 965887d6d1b..29b5ad3b496 100644 --- a/tests/baselines/reference/collisionSuperAndParameter.js +++ b/tests/baselines/reference/collisionSuperAndParameter.js @@ -90,7 +90,7 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); var Foo2 = (function (_super) { __extends(Foo2, _super); function Foo2(_super) { @@ -119,7 +119,7 @@ var Foo2 = (function (_super) { configurable: true }); return Foo2; -})(Foo); +}(Foo)); var Foo4 = (function (_super) { __extends(Foo4, _super); function Foo4(_super) { @@ -132,4 +132,4 @@ var Foo4 = (function (_super) { }; }; return Foo4; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndParameter1.js b/tests/baselines/reference/collisionSuperAndParameter1.js index f6d1f23947d..517c126ab44 100644 --- a/tests/baselines/reference/collisionSuperAndParameter1.js +++ b/tests/baselines/reference/collisionSuperAndParameter1.js @@ -19,7 +19,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function (_super) { __extends(Foo2, _super); function Foo2() { @@ -30,4 +30,4 @@ var Foo2 = (function (_super) { }; }; return Foo2; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js index f54bbef28a8..f94a9fde5f2 100644 --- a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js +++ b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js @@ -40,14 +40,14 @@ var a = (function () { function a() { } return a; -})(); +}()); var b1 = (function (_super) { __extends(b1, _super); function b1(_super) { _super.call(this); } return b1; -})(a); +}(a)); var b2 = (function (_super) { __extends(b2, _super); function b2(_super) { @@ -55,14 +55,14 @@ var b2 = (function (_super) { this._super = _super; } return b2; -})(a); +}(a)); var b3 = (function (_super) { __extends(b3, _super); function b3(_super) { _super.call(this); } return b3; -})(a); +}(a)); var b4 = (function (_super) { __extends(b4, _super); function b4(_super) { @@ -70,4 +70,4 @@ var b4 = (function (_super) { this._super = _super; } return b4; -})(a); +}(a)); diff --git a/tests/baselines/reference/collisionThisExpressionAndClassInGlobal.js b/tests/baselines/reference/collisionThisExpressionAndClassInGlobal.js index ccaa335d80e..09dcee3caad 100644 --- a/tests/baselines/reference/collisionThisExpressionAndClassInGlobal.js +++ b/tests/baselines/reference/collisionThisExpressionAndClassInGlobal.js @@ -9,5 +9,5 @@ var _this = (function () { function _this() { } return _this; -})(); +}()); var f = function () { return _this; }; diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.js index 53df2984544..e2f22cdf3e6 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInAccessors.js @@ -71,7 +71,7 @@ var class1 = (function () { configurable: true }); return class1; -})(); +}()); var class2 = (function () { function class2() { } @@ -99,4 +99,4 @@ var class2 = (function () { configurable: true }); return class2; -})(); +}()); diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInConstructor.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInConstructor.js index d0ed79da530..e4027499988 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarInConstructor.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInConstructor.js @@ -33,7 +33,7 @@ var class1 = (function () { }; } return class1; -})(); +}()); var class2 = (function () { function class2() { var _this = this; @@ -45,4 +45,4 @@ var class2 = (function () { }; } return class2; -})(); +}()); diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js index 63b536bd8b6..7c71fd79ade 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js @@ -41,4 +41,4 @@ var a = (function () { }; }; return a; -})(); +}()); diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInProperty.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInProperty.js index 65d181921d5..2a54b5fd7e6 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarInProperty.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInProperty.js @@ -31,7 +31,7 @@ var class1 = (function () { }; } return class1; -})(); +}()); var class2 = (function () { function class2() { var _this = this; @@ -43,4 +43,4 @@ var class2 = (function () { var _this = 2; } return class2; -})(); +}()); diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js index eb2ddd825fb..c71b0dcf1dd 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js @@ -30,7 +30,7 @@ var a = (function () { a.prototype.foo = function () { }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -42,7 +42,7 @@ var b = (function (_super) { var f = function () { return _super.prototype.foo.call(_this); }; }; return b; -})(a); +}(a)); var b2 = (function (_super) { __extends(b2, _super); function b2() { @@ -56,4 +56,4 @@ var b2 = (function (_super) { }; }; return b2; -})(a); +}(a)); diff --git a/tests/baselines/reference/collisionThisExpressionAndModuleInGlobal.js b/tests/baselines/reference/collisionThisExpressionAndModuleInGlobal.js index 777f141451b..240817ac0b9 100644 --- a/tests/baselines/reference/collisionThisExpressionAndModuleInGlobal.js +++ b/tests/baselines/reference/collisionThisExpressionAndModuleInGlobal.js @@ -13,6 +13,6 @@ var _this; function c() { } return c; - })(); + }()); })(_this || (_this = {})); var f = function () { return _this; }; diff --git a/tests/baselines/reference/collisionThisExpressionAndNameResolution.js b/tests/baselines/reference/collisionThisExpressionAndNameResolution.js index 8b128d92946..130f99bcd90 100644 --- a/tests/baselines/reference/collisionThisExpressionAndNameResolution.js +++ b/tests/baselines/reference/collisionThisExpressionAndNameResolution.js @@ -26,4 +26,4 @@ var Foo = (function () { } }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/collisionThisExpressionAndParameter.js b/tests/baselines/reference/collisionThisExpressionAndParameter.js index 3a19cf20d5a..bc15e4b56b5 100644 --- a/tests/baselines/reference/collisionThisExpressionAndParameter.js +++ b/tests/baselines/reference/collisionThisExpressionAndParameter.js @@ -130,7 +130,7 @@ var Foo = (function () { }; }; return Foo; -})(); +}()); var Foo1 = (function () { function Foo1(_this) { var _this = this; @@ -141,7 +141,7 @@ var Foo1 = (function () { }; } return Foo1; -})(); +}()); function f1(_this) { var _this = this; (function (x) { console.log(_this.x); }); @@ -162,7 +162,7 @@ var Foo3 = (function () { }; }; return Foo3; -})(); +}()); function f3(_this) { var _this = this; (function (x) { console.log(_this.x); }); diff --git a/tests/baselines/reference/collisionThisExpressionAndPropertyNameAsConstuctorParameter.js b/tests/baselines/reference/collisionThisExpressionAndPropertyNameAsConstuctorParameter.js index a77098739ec..b8218cd38ff 100644 --- a/tests/baselines/reference/collisionThisExpressionAndPropertyNameAsConstuctorParameter.js +++ b/tests/baselines/reference/collisionThisExpressionAndPropertyNameAsConstuctorParameter.js @@ -44,7 +44,7 @@ var Foo2 = (function () { }; } return Foo2; -})(); +}()); var Foo3 = (function () { function Foo3(_this) { var _this = this; @@ -54,7 +54,7 @@ var Foo3 = (function () { }; } return Foo3; -})(); +}()); var Foo4 = (function () { function Foo4(_this) { var _this = this; @@ -63,7 +63,7 @@ var Foo4 = (function () { }; } return Foo4; -})(); +}()); var Foo5 = (function () { function Foo5(_this) { var _this = this; @@ -73,4 +73,4 @@ var Foo5 = (function () { }; } return Foo5; -})(); +}()); diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js index 90c16543ff2..ef814863934 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js +++ b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.js @@ -49,7 +49,7 @@ var CLASS = (function () { function CLASS() { } return CLASS; -})(); +}()); //The second operand type is Object ANY, OBJECT; BOOLEAN, OBJECT; diff --git a/tests/baselines/reference/commentBeforeStaticMethod1.js b/tests/baselines/reference/commentBeforeStaticMethod1.js index 5c45f6a8cba..2d5fb6ace2e 100644 --- a/tests/baselines/reference/commentBeforeStaticMethod1.js +++ b/tests/baselines/reference/commentBeforeStaticMethod1.js @@ -19,4 +19,4 @@ var C = (function () { return "bar"; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/commentOnClassAccessor1.js b/tests/baselines/reference/commentOnClassAccessor1.js index 428e500da55..0c3e4c1848f 100644 --- a/tests/baselines/reference/commentOnClassAccessor1.js +++ b/tests/baselines/reference/commentOnClassAccessor1.js @@ -19,4 +19,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/commentOnClassAccessor2.js b/tests/baselines/reference/commentOnClassAccessor2.js index 22a6b69f6c3..3b58cc28abd 100644 --- a/tests/baselines/reference/commentOnClassAccessor2.js +++ b/tests/baselines/reference/commentOnClassAccessor2.js @@ -28,4 +28,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/commentOnClassMethod1.js b/tests/baselines/reference/commentOnClassMethod1.js index 1f924ba233f..4b909da55a4 100644 --- a/tests/baselines/reference/commentOnClassMethod1.js +++ b/tests/baselines/reference/commentOnClassMethod1.js @@ -17,4 +17,4 @@ var WebControls = (function () { WebControls.prototype.createControl = function () { }; return WebControls; -})(); +}()); diff --git a/tests/baselines/reference/commentOnSignature1.js b/tests/baselines/reference/commentOnSignature1.js index d29710c631c..38437d6fd13 100644 --- a/tests/baselines/reference/commentOnSignature1.js +++ b/tests/baselines/reference/commentOnSignature1.js @@ -50,7 +50,7 @@ var c = (function () { c.prototype.foo = function (a) { }; return c; -})(); +}()); //// [b.js] /// function foo2(a) { diff --git a/tests/baselines/reference/commentOnStaticMember1.js b/tests/baselines/reference/commentOnStaticMember1.js index b6b9628cad1..ba997369304 100644 --- a/tests/baselines/reference/commentOnStaticMember1.js +++ b/tests/baselines/reference/commentOnStaticMember1.js @@ -13,4 +13,4 @@ var Greeter = (function () { Greeter.foo = function () { }; return Greeter; -})(); +}()); diff --git a/tests/baselines/reference/commentsClass.js b/tests/baselines/reference/commentsClass.js index b42235e9afe..574fc025227 100644 --- a/tests/baselines/reference/commentsClass.js +++ b/tests/baselines/reference/commentsClass.js @@ -79,7 +79,7 @@ var c2 = (function () { function c2() { } return c2; -})(); // trailing comment1 +}()); // trailing comment1 var i2 = new c2(); var i2_c = c2; var c3 = (function () { @@ -87,7 +87,7 @@ var c3 = (function () { function c3() { } // trailing comment of constructor return c3; -})(); /* trailing comment 2 */ +}()); /* trailing comment 2 */ var i3 = new c3(); var i3_c = c3; /** Class comment*/ @@ -96,7 +96,7 @@ var c4 = (function () { function c4() { } /* trailing comment of constructor 2*/ return c4; -})(); +}()); var i4 = new c4(); var i4_c = c4; /** Class with statics*/ @@ -104,7 +104,7 @@ var c5 = (function () { function c5() { } return c5; -})(); +}()); var i5 = new c5(); var i5_c = c5; /// class with statics and constructor @@ -113,7 +113,7 @@ var c6 = (function () { function c6() { } return c6; -})(); +}()); var i6 = new c6(); var i6_c = c6; // class with statics and constructor @@ -122,7 +122,7 @@ var c7 = (function () { function c7() { } return c7; -})(); +}()); var i7 = new c7(); var i7_c = c7; /** class with statics and constructor @@ -135,7 +135,7 @@ var c8 = (function () { */ } return c8; -})(); +}()); var i8 = new c8(); var i8_c = c8; var c9 = (function () { @@ -144,7 +144,7 @@ var c9 = (function () { // should emit this leading comment of } too } return c9; -})(); +}()); //// [commentsClass.d.ts] diff --git a/tests/baselines/reference/commentsClassMembers.js b/tests/baselines/reference/commentsClassMembers.js index 298991c2eef..fe2dc0a63d0 100644 --- a/tests/baselines/reference/commentsClassMembers.js +++ b/tests/baselines/reference/commentsClassMembers.js @@ -413,7 +413,7 @@ var c1 = (function () { configurable: true }); return c1; -})(); +}()); var i1 = new c1(); var i1_p = i1.p1; var i1_f = i1.p2; @@ -473,7 +473,7 @@ var cProperties = (function () { configurable: true }); return cProperties; -})(); +}()); var cProperties_i = new cProperties(); cProperties_i.p2 = cProperties_i.p1; cProperties_i.nc_p2 = cProperties_i.nc_p1; diff --git a/tests/baselines/reference/commentsCommentParsing.js b/tests/baselines/reference/commentsCommentParsing.js index 2f2746145e5..24b2a459bf7 100644 --- a/tests/baselines/reference/commentsCommentParsing.js +++ b/tests/baselines/reference/commentsCommentParsing.js @@ -288,7 +288,7 @@ var NoQuickInfoClass = (function () { function NoQuickInfoClass() { } return NoQuickInfoClass; -})(); +}()); //// [commentsCommentParsing.d.ts] diff --git a/tests/baselines/reference/commentsDottedModuleName.js b/tests/baselines/reference/commentsDottedModuleName.js index ef3e591b55e..b4819ce9ca3 100644 --- a/tests/baselines/reference/commentsDottedModuleName.js +++ b/tests/baselines/reference/commentsDottedModuleName.js @@ -20,7 +20,7 @@ define(["require", "exports"], function (require, exports) { function b() { } return b; - })(); + }()); InnerModule.b = b; })(InnerModule = outerModule.InnerModule || (outerModule.InnerModule = {})); })(outerModule = exports.outerModule || (exports.outerModule = {})); diff --git a/tests/baselines/reference/commentsExternalModules.js b/tests/baselines/reference/commentsExternalModules.js index f1a5781d67b..1fe24c676a7 100644 --- a/tests/baselines/reference/commentsExternalModules.js +++ b/tests/baselines/reference/commentsExternalModules.js @@ -79,7 +79,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); m2.c = c; ; /** i*/ @@ -110,7 +110,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); m2.c = c; ; /** i */ diff --git a/tests/baselines/reference/commentsExternalModules2.js b/tests/baselines/reference/commentsExternalModules2.js index ce367a136e3..18f3564ec7f 100644 --- a/tests/baselines/reference/commentsExternalModules2.js +++ b/tests/baselines/reference/commentsExternalModules2.js @@ -79,7 +79,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); m2.c = c; ; /** i*/ @@ -110,7 +110,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); m2.c = c; ; /** i */ diff --git a/tests/baselines/reference/commentsExternalModules3.js b/tests/baselines/reference/commentsExternalModules3.js index 76ff906155a..85fbcfe019f 100644 --- a/tests/baselines/reference/commentsExternalModules3.js +++ b/tests/baselines/reference/commentsExternalModules3.js @@ -78,7 +78,7 @@ var m1; function c() { } return c; - })(); + }()); m2.c = c; ; /** i*/ @@ -109,7 +109,7 @@ var m4; function c() { } return c; - })(); + }()); m2.c = c; ; /** i */ diff --git a/tests/baselines/reference/commentsFormatting.js b/tests/baselines/reference/commentsFormatting.js index 6dc68b06b9f..cfee157eada 100644 --- a/tests/baselines/reference/commentsFormatting.js +++ b/tests/baselines/reference/commentsFormatting.js @@ -107,7 +107,7 @@ var m; function c() { } return c; - })(); + }()); m.c = c; /** this is first line - 4 spaces right aligned to class but in js file should be aligned to class declaration * this is 8 spaces left aligned @@ -131,7 +131,7 @@ var m; function c2() { } return c2; - })(); + }()); m.c2 = c2; /** this is comment with new lines in between @@ -163,7 +163,7 @@ this is 4 spaces left aligned but above line is empty function c3() { } return c3; - })(); + }()); m.c3 = c3; /** this is first line - aligned to class declaration * this is 0 space + tab @@ -183,7 +183,7 @@ this is 4 spaces left aligned but above line is empty function c4() { } return c4; - })(); + }()); m.c4 = c4; })(m || (m = {})); diff --git a/tests/baselines/reference/commentsInheritance.js b/tests/baselines/reference/commentsInheritance.js index 33726436189..b9d84b2475a 100644 --- a/tests/baselines/reference/commentsInheritance.js +++ b/tests/baselines/reference/commentsInheritance.js @@ -172,7 +172,7 @@ var c1 = (function () { c1.prototype.nc_f1 = function () { }; return c1; -})(); +}()); var i1_i; var c1_i = new c1(); // assign to interface @@ -223,7 +223,7 @@ var c2 = (function () { configurable: true }); return c2; -})(); +}()); var c3 = (function (_super) { __extends(c3, _super); function c3() { @@ -250,7 +250,7 @@ var c3 = (function (_super) { configurable: true }); return c3; -})(c2); +}(c2)); var c2_i = new c2(10); var c3_i = new c3(); // assign @@ -261,7 +261,7 @@ var c4 = (function (_super) { _super.apply(this, arguments); } return c4; -})(c2); +}(c2)); var c4_i = new c4(10); var i2_i; var i3_i; diff --git a/tests/baselines/reference/commentsModules.js b/tests/baselines/reference/commentsModules.js index aa5cd2fb7fa..f2574dcddfb 100644 --- a/tests/baselines/reference/commentsModules.js +++ b/tests/baselines/reference/commentsModules.js @@ -113,7 +113,7 @@ var m1; function c() { } return c; - })(); + }()); m2.c = c; ; /** i*/ @@ -152,7 +152,7 @@ var m2; function c() { } return c; - })(); + }()); m3.c = c; })(m3 = m2.m3 || (m2.m3 = {})); })(m2 || (m2 = {})); /* trailing dotted module comment*/ @@ -169,7 +169,7 @@ var m3; function c() { } return c; - })(); + }()); m5.c = c; })(m5 = m4.m5 || (m4.m5 = {})); })(m4 = m3.m4 || (m3.m4 = {})); @@ -189,7 +189,7 @@ var m4; function c() { } return c; - })(); + }()); m7.c = c; })(m7 = m6.m7 || (m6.m7 = {})); /* trailing inner module */ /* multiple comments*/ })(m6 = m5.m6 || (m5.m6 = {})); @@ -211,7 +211,7 @@ var m5; function c() { } return c; - })(); + }()); m8.c = c; })(m8 = m7.m8 || (m7.m8 = {})); })(m7 = m6.m7 || (m6.m7 = {})); @@ -229,7 +229,7 @@ var m6; function c() { } return c; - })(); + }()); m8.c = c; })(m8 = m7.m8 || (m7.m8 = {})); })(m7 = m6.m7 || (m6.m7 = {})); @@ -247,20 +247,20 @@ var m7; function c() { } return c; - })(); + }()); m9.c = c; /** class d */ var d = (function () { function d() { } return d; - })(); + }()); // class e var e = (function () { function e() { } return e; - })(); + }()); m9.e = e; })(m9 = m8.m9 || (m8.m9 = {})); })(m8 = m7.m8 || (m7.m8 = {})); diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile.js b/tests/baselines/reference/commentsMultiModuleMultiFile.js index cf85a1b1c02..5b30279def5 100644 --- a/tests/baselines/reference/commentsMultiModuleMultiFile.js +++ b/tests/baselines/reference/commentsMultiModuleMultiFile.js @@ -47,7 +47,7 @@ define(["require", "exports"], function (require, exports) { function b() { } return b; - })(); + }()); multiM.b = b; })(multiM = exports.multiM || (exports.multiM = {})); /** thi is multi module 2*/ @@ -58,14 +58,14 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); multiM.c = c; // class e comment var e = (function () { function e() { } return e; - })(); + }()); multiM.e = e; })(multiM = exports.multiM || (exports.multiM = {})); new multiM.b(); @@ -82,14 +82,14 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); multiM.d = d; /// class f comment var f = (function () { function f() { } return f; - })(); + }()); multiM.f = f; })(multiM = exports.multiM || (exports.multiM = {})); new multiM.d(); diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile.js b/tests/baselines/reference/commentsMultiModuleSingleFile.js index 133cc579889..63b6c67888b 100644 --- a/tests/baselines/reference/commentsMultiModuleSingleFile.js +++ b/tests/baselines/reference/commentsMultiModuleSingleFile.js @@ -33,14 +33,14 @@ var multiM; function b() { } return b; - })(); + }()); multiM.b = b; // class d var d = (function () { function d() { } return d; - })(); + }()); multiM.d = d; })(multiM || (multiM = {})); /// this is multi module 2 @@ -51,14 +51,14 @@ var multiM; function c() { } return c; - })(); + }()); multiM.c = c; /// class e var e = (function () { function e() { } return e; - })(); + }()); multiM.e = e; })(multiM || (multiM = {})); new multiM.b(); diff --git a/tests/baselines/reference/commentsOnReturnStatement1.js b/tests/baselines/reference/commentsOnReturnStatement1.js index c2fcb14690d..67c8462bd38 100644 --- a/tests/baselines/reference/commentsOnReturnStatement1.js +++ b/tests/baselines/reference/commentsOnReturnStatement1.js @@ -20,4 +20,4 @@ var DebugClass = (function () { return true; }; return DebugClass; -})(); +}()); diff --git a/tests/baselines/reference/commentsOnStaticMembers.js b/tests/baselines/reference/commentsOnStaticMembers.js index 867c4128940..51ed906841d 100644 --- a/tests/baselines/reference/commentsOnStaticMembers.js +++ b/tests/baselines/reference/commentsOnStaticMembers.js @@ -33,4 +33,4 @@ var test = (function () { */ test.p3 = ""; return test; -})(); +}()); diff --git a/tests/baselines/reference/commentsOverloads.js b/tests/baselines/reference/commentsOverloads.js index d55993572c0..e711a9585ce 100644 --- a/tests/baselines/reference/commentsOverloads.js +++ b/tests/baselines/reference/commentsOverloads.js @@ -219,34 +219,34 @@ var c = (function () { return 10; }; return c; -})(); +}()); var c1 = (function () { function c1(aorb) { } return c1; -})(); +}()); var c2 = (function () { function c2(aorb) { } return c2; -})(); +}()); var c3 = (function () { function c3(aorb) { } return c3; -})(); +}()); var c4 = (function () { /** c4 3 */ function c4(aorb) { } return c4; -})(); +}()); var c5 = (function () { /** c5 implementation*/ function c5(aorb) { } return c5; -})(); +}()); var c_i = new c(); var c1_i_1 = new c1(10); var c1_i_2 = new c1("hello"); diff --git a/tests/baselines/reference/commentsTypeParameters.js b/tests/baselines/reference/commentsTypeParameters.js index 768c238522a..003cafe70ad 100644 --- a/tests/baselines/reference/commentsTypeParameters.js +++ b/tests/baselines/reference/commentsTypeParameters.js @@ -28,7 +28,7 @@ var C = (function () { C.privatestaticmethod = function (a) { }; return C; -})(); +}()); function compare(a, b) { return a === b; } diff --git a/tests/baselines/reference/commentsdoNotEmitComments.js b/tests/baselines/reference/commentsdoNotEmitComments.js index 301ab56e4c0..b77f51348f0 100644 --- a/tests/baselines/reference/commentsdoNotEmitComments.js +++ b/tests/baselines/reference/commentsdoNotEmitComments.js @@ -121,7 +121,7 @@ var c = (function () { return aOrb.toString(); }; return c; -})(); +}()); var i = new c(); var i1_i; var m1; @@ -131,7 +131,7 @@ var m1; this.x = x; } return b; - })(); + }()); m1.b = b; })(m1 || (m1 = {})); var shade = 1; diff --git a/tests/baselines/reference/commentsemitComments.js b/tests/baselines/reference/commentsemitComments.js index 173d9e8fd47..442f558bcfa 100644 --- a/tests/baselines/reference/commentsemitComments.js +++ b/tests/baselines/reference/commentsemitComments.js @@ -126,7 +126,7 @@ var c = (function () { return aOrb.toString(); }; return c; -})(); +}()); /**instance comment*/ var i = new c(); /**interface instance comments*/ @@ -140,7 +140,7 @@ var m1; this.x = x; } return b; - })(); + }()); m1.b = b; })(m1 || (m1 = {})); diff --git a/tests/baselines/reference/commonJSImportAsPrimaryExpression.js b/tests/baselines/reference/commonJSImportAsPrimaryExpression.js index e43b321893a..3f49588c103 100644 --- a/tests/baselines/reference/commonJSImportAsPrimaryExpression.js +++ b/tests/baselines/reference/commonJSImportAsPrimaryExpression.js @@ -21,7 +21,7 @@ var C1 = (function () { } C1.s1 = true; return C1; -})(); +}()); exports.C1 = C1; //// [foo_1.js] "use strict"; diff --git a/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.js b/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.js index 8ecda412106..720554f7e32 100644 --- a/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.js +++ b/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.js @@ -39,7 +39,7 @@ var C1 = (function () { } C1.s1 = true; return C1; -})(); +}()); exports.C1 = C1; (function (E1) { E1[E1["A"] = 0] = "A"; diff --git a/tests/baselines/reference/commonSourceDir6.js b/tests/baselines/reference/commonSourceDir6.js index 6fe0b4a1b8f..88f5828a500 100644 --- a/tests/baselines/reference/commonSourceDir6.js +++ b/tests/baselines/reference/commonSourceDir6.js @@ -16,17 +16,17 @@ export var pi = Math.PI; export var y = x * i; //// [concat.js] -define("tests/cases/compiler/baz", ["require", "exports", "tests/cases/compiler/a/bar", "tests/cases/compiler/a/foo"], function (require, exports, bar_1, foo_1) { +define("baz", ["require", "exports", "a/bar", "a/foo"], function (require, exports, bar_1, foo_1) { "use strict"; exports.pi = Math.PI; exports.y = bar_1.x * foo_1.i; }); -define("tests/cases/compiler/a/foo", ["require", "exports", "tests/cases/compiler/baz"], function (require, exports, baz_1) { +define("a/foo", ["require", "exports", "baz"], function (require, exports, baz_1) { "use strict"; exports.i = Math.sqrt(-1); exports.z = baz_1.pi * baz_1.pi; }); -define("tests/cases/compiler/a/bar", ["require", "exports", "tests/cases/compiler/a/foo"], function (require, exports, foo_2) { +define("a/bar", ["require", "exports", "a/foo"], function (require, exports, foo_2) { "use strict"; exports.x = foo_2.z + foo_2.z; }); diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js index d59ec764680..0de25c15013 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js @@ -207,7 +207,7 @@ var A1 = (function () { return null; }; return A1; -})(); +}()); var B1 = (function () { function B1() { } @@ -215,7 +215,7 @@ var B1 = (function () { return null; }; return B1; -})(); +}()); var Base = (function () { function Base() { } @@ -223,21 +223,21 @@ var Base = (function () { return null; }; return Base; -})(); +}()); var A2 = (function (_super) { __extends(A2, _super); function A2() { _super.apply(this, arguments); } return A2; -})(Base); +}(Base)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(Base); +}(Base)); var a1; var a2; var a3; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js index 4bbc7675a31..4185af60dbc 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js @@ -178,19 +178,19 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var C = (function () { function C() { } return C; -})(); +}()); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js index 397c7e9d8e4..90c67439773 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js @@ -178,19 +178,19 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var C = (function () { function C() { } return C; -})(); +}()); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js index 9f3c037538d..736b57e08ba 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js @@ -121,19 +121,19 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var C = (function () { function C() { } return C; -})(); +}()); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.errors.txt b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.errors.txt deleted file mode 100644 index 908f97345a1..00000000000 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.errors.txt +++ /dev/null @@ -1,155 +0,0 @@ -tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts(28,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts (1 errors) ==== - class Base { - public a: string; - } - - class Derived extends Base { - public b: string; - } - - class C { - public c: string; - } - - var a1: { fn(x: T): T }; - var b1: { fn(): string }; - - var a2: { fn(x: T): T }; - var b2: { fn(x: string): number }; - - var a3: { fn(x?: T): T }; - var b3: { fn(x?: string): number }; - - var a4: { fn(...x: T[]): T }; - var b4: { fn(...x: string[]): number }; - - var a5: { fn(x: T, y: T): T }; - var b5: { fn(x: string, y: number): string }; - - var a6: { fn(x: T, y: U): T }; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var b6: { fn(x: Base, y: C): Base }; - - // operator < - var r1a1 = a1 < b1; - var r1a2 = a2 < b2; - var r1a3 = a3 < b3; - var r1a4 = a4 < b4; - var r1a5 = a5 < b5; - var r1a6 = a6 < b6; - - var r1b1 = b1 < a1; - var r1b2 = b2 < a2; - var r1b3 = b3 < a3; - var r1b4 = b4 < a4; - var r1b5 = b5 < a5; - var r1b6 = b6 < a6; - - // operator > - var r2a1 = a1 > b1; - var r2a2 = a2 > b2; - var r2a3 = a3 > b3; - var r2a4 = a4 > b4; - var r2a5 = a5 > b5; - var r2a6 = a6 > b6; - - var r2b1 = b1 > a1; - var r2b2 = b2 > a2; - var r2b3 = b3 > a3; - var r2b4 = b4 > a4; - var r2b5 = b5 > a5; - var r2b6 = b6 > a6; - - // operator <= - var r3a1 = a1 <= b1; - var r3a2 = a2 <= b2; - var r3a3 = a3 <= b3; - var r3a4 = a4 <= b4; - var r3a5 = a5 <= b5; - var r3a6 = a6 <= b6; - - var r3b1 = b1 <= a1; - var r3b2 = b2 <= a2; - var r3b3 = b3 <= a3; - var r3b4 = b4 <= a4; - var r3b5 = b5 <= a5; - var r3b6 = b6 <= a6; - - // operator >= - var r4a1 = a1 >= b1; - var r4a2 = a2 >= b2; - var r4a3 = a3 >= b3; - var r4a4 = a4 >= b4; - var r4a5 = a5 >= b5; - var r4a6 = a6 >= b6; - - var r4b1 = b1 >= a1; - var r4b2 = b2 >= a2; - var r4b3 = b3 >= a3; - var r4b4 = b4 >= a4; - var r4b5 = b5 >= a5; - var r4b6 = b6 >= a6; - - // operator == - var r5a1 = a1 == b1; - var r5a2 = a2 == b2; - var r5a3 = a3 == b3; - var r5a4 = a4 == b4; - var r5a5 = a5 == b5; - var r5a6 = a6 == b6; - - var r5b1 = b1 == a1; - var r5b2 = b2 == a2; - var r5b3 = b3 == a3; - var r5b4 = b4 == a4; - var r5b5 = b5 == a5; - var r5b6 = b6 == a6; - - // operator != - var r6a1 = a1 != b1; - var r6a2 = a2 != b2; - var r6a3 = a3 != b3; - var r6a4 = a4 != b4; - var r6a5 = a5 != b5; - var r6a6 = a6 != b6; - - var r6b1 = b1 != a1; - var r6b2 = b2 != a2; - var r6b3 = b3 != a3; - var r6b4 = b4 != a4; - var r6b5 = b5 != a5; - var r6b6 = b6 != a6; - - // operator === - var r7a1 = a1 === b1; - var r7a2 = a2 === b2; - var r7a3 = a3 === b3; - var r7a4 = a4 === b4; - var r7a5 = a5 === b5; - var r7a6 = a6 === b6; - - var r7b1 = b1 === a1; - var r7b2 = b2 === a2; - var r7b3 = b3 === a3; - var r7b4 = b4 === a4; - var r7b5 = b5 === a5; - var r7b6 = b6 === a6; - - // operator !== - var r8a1 = a1 !== b1; - var r8a2 = a2 !== b2; - var r8a3 = a3 !== b3; - var r8a4 = a4 !== b4; - var r8a5 = a5 !== b5; - var r8a6 = a6 !== b6; - - var r8b1 = b1 !== a1; - var r8b2 = b2 !== a2; - var r8b3 = b3 !== a3; - var r8b4 = b4 !== a4; - var r8b5 = b5 !== a5; - var r8b6 = b6 !== a6; \ No newline at end of file diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js index 68ebcb9d596..ca7eea70ad6 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js @@ -159,19 +159,19 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var C = (function () { function C() { } return C; -})(); +}()); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.symbols b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.symbols new file mode 100644 index 00000000000..ef92cdd676a --- /dev/null +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.symbols @@ -0,0 +1,599 @@ +=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts === +class Base { +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 0, 0)) + + public a: string; +>a : Symbol(a, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 0, 12)) +} + +class Derived extends Base { +>Derived : Symbol(Derived, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 2, 1)) +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 0, 0)) + + public b: string; +>b : Symbol(b, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 4, 28)) +} + +class C { +>C : Symbol(C, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 6, 1)) + + public c: string; +>c : Symbol(c, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 8, 9)) +} + +var a1: { fn(x: T): T }; +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 9)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 13)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 16)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 13)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 13)) + +var b1: { fn(): string }; +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 9)) + +var a2: { fn(x: T): T }; +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 9)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 13)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 16)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 13)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 13)) + +var b2: { fn(x: string): number }; +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 9)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 13)) + +var a3: { fn(x?: T): T }; +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 9)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 13)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 16)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 13)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 13)) + +var b3: { fn(x?: string): number }; +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 9)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 13)) + +var a4: { fn(...x: T[]): T }; +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 9)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 13)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 16)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 13)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 13)) + +var b4: { fn(...x: string[]): number }; +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 9)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 13)) + +var a5: { fn(x: T, y: T): T }; +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 9)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 13)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 16)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 13)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 21)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 13)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 13)) + +var b5: { fn(x: string, y: number): string }; +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 9)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 13)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 23)) + +var a6: { fn(x: T, y: U): T }; +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 9)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 13)) +>U : Symbol(U, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 15)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 13)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 29)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 13)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 34)) +>U : Symbol(U, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 15)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 13)) + +var b6: { fn(x: Base, y: C): Base }; +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>fn : Symbol(fn, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 9)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 13)) +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 0, 0)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 21)) +>C : Symbol(C, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 6, 1)) +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 0, 0)) + +// operator < +var r1a1 = a1 < b1; +>r1a1 : Symbol(r1a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 31, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r1a2 = a2 < b2; +>r1a2 : Symbol(r1a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 32, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r1a3 = a3 < b3; +>r1a3 : Symbol(r1a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 33, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r1a4 = a4 < b4; +>r1a4 : Symbol(r1a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 34, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r1a5 = a5 < b5; +>r1a5 : Symbol(r1a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 35, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r1a6 = a6 < b6; +>r1a6 : Symbol(r1a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 36, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r1b1 = b1 < a1; +>r1b1 : Symbol(r1b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 38, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r1b2 = b2 < a2; +>r1b2 : Symbol(r1b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 39, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r1b3 = b3 < a3; +>r1b3 : Symbol(r1b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 40, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r1b4 = b4 < a4; +>r1b4 : Symbol(r1b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 41, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r1b5 = b5 < a5; +>r1b5 : Symbol(r1b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 42, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r1b6 = b6 < a6; +>r1b6 : Symbol(r1b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 43, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + +// operator > +var r2a1 = a1 > b1; +>r2a1 : Symbol(r2a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 46, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r2a2 = a2 > b2; +>r2a2 : Symbol(r2a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 47, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r2a3 = a3 > b3; +>r2a3 : Symbol(r2a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 48, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r2a4 = a4 > b4; +>r2a4 : Symbol(r2a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 49, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r2a5 = a5 > b5; +>r2a5 : Symbol(r2a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 50, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r2a6 = a6 > b6; +>r2a6 : Symbol(r2a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 51, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r2b1 = b1 > a1; +>r2b1 : Symbol(r2b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 53, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r2b2 = b2 > a2; +>r2b2 : Symbol(r2b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 54, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r2b3 = b3 > a3; +>r2b3 : Symbol(r2b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 55, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r2b4 = b4 > a4; +>r2b4 : Symbol(r2b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 56, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r2b5 = b5 > a5; +>r2b5 : Symbol(r2b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 57, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r2b6 = b6 > a6; +>r2b6 : Symbol(r2b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 58, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + +// operator <= +var r3a1 = a1 <= b1; +>r3a1 : Symbol(r3a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 61, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r3a2 = a2 <= b2; +>r3a2 : Symbol(r3a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 62, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r3a3 = a3 <= b3; +>r3a3 : Symbol(r3a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 63, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r3a4 = a4 <= b4; +>r3a4 : Symbol(r3a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 64, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r3a5 = a5 <= b5; +>r3a5 : Symbol(r3a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 65, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r3a6 = a6 <= b6; +>r3a6 : Symbol(r3a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 66, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r3b1 = b1 <= a1; +>r3b1 : Symbol(r3b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 68, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r3b2 = b2 <= a2; +>r3b2 : Symbol(r3b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 69, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r3b3 = b3 <= a3; +>r3b3 : Symbol(r3b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 70, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r3b4 = b4 <= a4; +>r3b4 : Symbol(r3b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 71, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r3b5 = b5 <= a5; +>r3b5 : Symbol(r3b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 72, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r3b6 = b6 <= a6; +>r3b6 : Symbol(r3b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 73, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + +// operator >= +var r4a1 = a1 >= b1; +>r4a1 : Symbol(r4a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 76, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r4a2 = a2 >= b2; +>r4a2 : Symbol(r4a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 77, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r4a3 = a3 >= b3; +>r4a3 : Symbol(r4a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 78, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r4a4 = a4 >= b4; +>r4a4 : Symbol(r4a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 79, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r4a5 = a5 >= b5; +>r4a5 : Symbol(r4a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 80, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r4a6 = a6 >= b6; +>r4a6 : Symbol(r4a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 81, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r4b1 = b1 >= a1; +>r4b1 : Symbol(r4b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 83, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r4b2 = b2 >= a2; +>r4b2 : Symbol(r4b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 84, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r4b3 = b3 >= a3; +>r4b3 : Symbol(r4b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 85, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r4b4 = b4 >= a4; +>r4b4 : Symbol(r4b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 86, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r4b5 = b5 >= a5; +>r4b5 : Symbol(r4b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 87, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r4b6 = b6 >= a6; +>r4b6 : Symbol(r4b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 88, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + +// operator == +var r5a1 = a1 == b1; +>r5a1 : Symbol(r5a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 91, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r5a2 = a2 == b2; +>r5a2 : Symbol(r5a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 92, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r5a3 = a3 == b3; +>r5a3 : Symbol(r5a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 93, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r5a4 = a4 == b4; +>r5a4 : Symbol(r5a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 94, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r5a5 = a5 == b5; +>r5a5 : Symbol(r5a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 95, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r5a6 = a6 == b6; +>r5a6 : Symbol(r5a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 96, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r5b1 = b1 == a1; +>r5b1 : Symbol(r5b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 98, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r5b2 = b2 == a2; +>r5b2 : Symbol(r5b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 99, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r5b3 = b3 == a3; +>r5b3 : Symbol(r5b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 100, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r5b4 = b4 == a4; +>r5b4 : Symbol(r5b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 101, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r5b5 = b5 == a5; +>r5b5 : Symbol(r5b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 102, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r5b6 = b6 == a6; +>r5b6 : Symbol(r5b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 103, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + +// operator != +var r6a1 = a1 != b1; +>r6a1 : Symbol(r6a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 106, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r6a2 = a2 != b2; +>r6a2 : Symbol(r6a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 107, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r6a3 = a3 != b3; +>r6a3 : Symbol(r6a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 108, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r6a4 = a4 != b4; +>r6a4 : Symbol(r6a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 109, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r6a5 = a5 != b5; +>r6a5 : Symbol(r6a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 110, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r6a6 = a6 != b6; +>r6a6 : Symbol(r6a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 111, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r6b1 = b1 != a1; +>r6b1 : Symbol(r6b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 113, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r6b2 = b2 != a2; +>r6b2 : Symbol(r6b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 114, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r6b3 = b3 != a3; +>r6b3 : Symbol(r6b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 115, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r6b4 = b4 != a4; +>r6b4 : Symbol(r6b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 116, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r6b5 = b5 != a5; +>r6b5 : Symbol(r6b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 117, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r6b6 = b6 != a6; +>r6b6 : Symbol(r6b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 118, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + +// operator === +var r7a1 = a1 === b1; +>r7a1 : Symbol(r7a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 121, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r7a2 = a2 === b2; +>r7a2 : Symbol(r7a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 122, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r7a3 = a3 === b3; +>r7a3 : Symbol(r7a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 123, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r7a4 = a4 === b4; +>r7a4 : Symbol(r7a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 124, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r7a5 = a5 === b5; +>r7a5 : Symbol(r7a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 125, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r7a6 = a6 === b6; +>r7a6 : Symbol(r7a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 126, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r7b1 = b1 === a1; +>r7b1 : Symbol(r7b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 128, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r7b2 = b2 === a2; +>r7b2 : Symbol(r7b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 129, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r7b3 = b3 === a3; +>r7b3 : Symbol(r7b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 130, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r7b4 = b4 === a4; +>r7b4 : Symbol(r7b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 131, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r7b5 = b5 === a5; +>r7b5 : Symbol(r7b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 132, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r7b6 = b6 === a6; +>r7b6 : Symbol(r7b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 133, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + +// operator !== +var r8a1 = a1 !== b1; +>r8a1 : Symbol(r8a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 136, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) + +var r8a2 = a2 !== b2; +>r8a2 : Symbol(r8a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 137, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) + +var r8a3 = a3 !== b3; +>r8a3 : Symbol(r8a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 138, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) + +var r8a4 = a4 !== b4; +>r8a4 : Symbol(r8a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 139, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) + +var r8a5 = a5 !== b5; +>r8a5 : Symbol(r8a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 140, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) + +var r8a6 = a6 !== b6; +>r8a6 : Symbol(r8a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 141, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) + +var r8b1 = b1 !== a1; +>r8b1 : Symbol(r8b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 143, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 12, 3)) + +var r8b2 = b2 !== a2; +>r8b2 : Symbol(r8b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 144, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 15, 3)) + +var r8b3 = b3 !== a3; +>r8b3 : Symbol(r8b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 145, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 18, 3)) + +var r8b4 = b4 !== a4; +>r8b4 : Symbol(r8b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 146, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 21, 3)) + +var r8b5 = b5 !== a5; +>r8b5 : Symbol(r8b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 147, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 24, 3)) + +var r8b6 = b6 !== a6; +>r8b6 : Symbol(r8b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 148, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts, 27, 3)) + diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.types b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.types new file mode 100644 index 00000000000..d1e7b6c78da --- /dev/null +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.types @@ -0,0 +1,695 @@ +=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts === +class Base { +>Base : Base + + public a: string; +>a : string +} + +class Derived extends Base { +>Derived : Derived +>Base : Base + + public b: string; +>b : string +} + +class C { +>C : C + + public c: string; +>c : string +} + +var a1: { fn(x: T): T }; +>a1 : { fn(x: T): T; } +>fn : (x: T) => T +>T : T +>x : T +>T : T +>T : T + +var b1: { fn(): string }; +>b1 : { fn(): string; } +>fn : () => string + +var a2: { fn(x: T): T }; +>a2 : { fn(x: T): T; } +>fn : (x: T) => T +>T : T +>x : T +>T : T +>T : T + +var b2: { fn(x: string): number }; +>b2 : { fn(x: string): number; } +>fn : (x: string) => number +>x : string + +var a3: { fn(x?: T): T }; +>a3 : { fn(x?: T): T; } +>fn : (x?: T) => T +>T : T +>x : T +>T : T +>T : T + +var b3: { fn(x?: string): number }; +>b3 : { fn(x?: string): number; } +>fn : (x?: string) => number +>x : string + +var a4: { fn(...x: T[]): T }; +>a4 : { fn(...x: T[]): T; } +>fn : (...x: T[]) => T +>T : T +>x : T[] +>T : T +>T : T + +var b4: { fn(...x: string[]): number }; +>b4 : { fn(...x: string[]): number; } +>fn : (...x: string[]) => number +>x : string[] + +var a5: { fn(x: T, y: T): T }; +>a5 : { fn(x: T, y: T): T; } +>fn : (x: T, y: T) => T +>T : T +>x : T +>T : T +>y : T +>T : T +>T : T + +var b5: { fn(x: string, y: number): string }; +>b5 : { fn(x: string, y: number): string; } +>fn : (x: string, y: number) => string +>x : string +>y : number + +var a6: { fn(x: T, y: U): T }; +>a6 : { fn(x: T, y: U): T; } +>fn : (x: T, y: U) => T +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + +var b6: { fn(x: Base, y: C): Base }; +>b6 : { fn(x: Base, y: C): Base; } +>fn : (x: Base, y: C) => Base +>x : Base +>Base : Base +>y : C +>C : C +>Base : Base + +// operator < +var r1a1 = a1 < b1; +>r1a1 : boolean +>a1 < b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r1a2 = a2 < b2; +>r1a2 : boolean +>a2 < b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r1a3 = a3 < b3; +>r1a3 : boolean +>a3 < b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r1a4 = a4 < b4; +>r1a4 : boolean +>a4 < b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r1a5 = a5 < b5; +>r1a5 : boolean +>a5 < b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r1a6 = a6 < b6; +>r1a6 : boolean +>a6 < b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r1b1 = b1 < a1; +>r1b1 : boolean +>b1 < a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r1b2 = b2 < a2; +>r1b2 : boolean +>b2 < a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r1b3 = b3 < a3; +>r1b3 : boolean +>b3 < a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r1b4 = b4 < a4; +>r1b4 : boolean +>b4 < a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r1b5 = b5 < a5; +>r1b5 : boolean +>b5 < a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r1b6 = b6 < a6; +>r1b6 : boolean +>b6 < a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + +// operator > +var r2a1 = a1 > b1; +>r2a1 : boolean +>a1 > b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r2a2 = a2 > b2; +>r2a2 : boolean +>a2 > b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r2a3 = a3 > b3; +>r2a3 : boolean +>a3 > b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r2a4 = a4 > b4; +>r2a4 : boolean +>a4 > b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r2a5 = a5 > b5; +>r2a5 : boolean +>a5 > b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r2a6 = a6 > b6; +>r2a6 : boolean +>a6 > b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r2b1 = b1 > a1; +>r2b1 : boolean +>b1 > a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r2b2 = b2 > a2; +>r2b2 : boolean +>b2 > a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r2b3 = b3 > a3; +>r2b3 : boolean +>b3 > a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r2b4 = b4 > a4; +>r2b4 : boolean +>b4 > a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r2b5 = b5 > a5; +>r2b5 : boolean +>b5 > a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r2b6 = b6 > a6; +>r2b6 : boolean +>b6 > a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + +// operator <= +var r3a1 = a1 <= b1; +>r3a1 : boolean +>a1 <= b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r3a2 = a2 <= b2; +>r3a2 : boolean +>a2 <= b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r3a3 = a3 <= b3; +>r3a3 : boolean +>a3 <= b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r3a4 = a4 <= b4; +>r3a4 : boolean +>a4 <= b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r3a5 = a5 <= b5; +>r3a5 : boolean +>a5 <= b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r3a6 = a6 <= b6; +>r3a6 : boolean +>a6 <= b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r3b1 = b1 <= a1; +>r3b1 : boolean +>b1 <= a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r3b2 = b2 <= a2; +>r3b2 : boolean +>b2 <= a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r3b3 = b3 <= a3; +>r3b3 : boolean +>b3 <= a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r3b4 = b4 <= a4; +>r3b4 : boolean +>b4 <= a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r3b5 = b5 <= a5; +>r3b5 : boolean +>b5 <= a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r3b6 = b6 <= a6; +>r3b6 : boolean +>b6 <= a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + +// operator >= +var r4a1 = a1 >= b1; +>r4a1 : boolean +>a1 >= b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r4a2 = a2 >= b2; +>r4a2 : boolean +>a2 >= b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r4a3 = a3 >= b3; +>r4a3 : boolean +>a3 >= b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r4a4 = a4 >= b4; +>r4a4 : boolean +>a4 >= b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r4a5 = a5 >= b5; +>r4a5 : boolean +>a5 >= b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r4a6 = a6 >= b6; +>r4a6 : boolean +>a6 >= b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r4b1 = b1 >= a1; +>r4b1 : boolean +>b1 >= a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r4b2 = b2 >= a2; +>r4b2 : boolean +>b2 >= a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r4b3 = b3 >= a3; +>r4b3 : boolean +>b3 >= a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r4b4 = b4 >= a4; +>r4b4 : boolean +>b4 >= a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r4b5 = b5 >= a5; +>r4b5 : boolean +>b5 >= a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r4b6 = b6 >= a6; +>r4b6 : boolean +>b6 >= a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + +// operator == +var r5a1 = a1 == b1; +>r5a1 : boolean +>a1 == b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r5a2 = a2 == b2; +>r5a2 : boolean +>a2 == b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r5a3 = a3 == b3; +>r5a3 : boolean +>a3 == b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r5a4 = a4 == b4; +>r5a4 : boolean +>a4 == b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r5a5 = a5 == b5; +>r5a5 : boolean +>a5 == b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r5a6 = a6 == b6; +>r5a6 : boolean +>a6 == b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r5b1 = b1 == a1; +>r5b1 : boolean +>b1 == a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r5b2 = b2 == a2; +>r5b2 : boolean +>b2 == a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r5b3 = b3 == a3; +>r5b3 : boolean +>b3 == a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r5b4 = b4 == a4; +>r5b4 : boolean +>b4 == a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r5b5 = b5 == a5; +>r5b5 : boolean +>b5 == a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r5b6 = b6 == a6; +>r5b6 : boolean +>b6 == a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + +// operator != +var r6a1 = a1 != b1; +>r6a1 : boolean +>a1 != b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r6a2 = a2 != b2; +>r6a2 : boolean +>a2 != b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r6a3 = a3 != b3; +>r6a3 : boolean +>a3 != b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r6a4 = a4 != b4; +>r6a4 : boolean +>a4 != b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r6a5 = a5 != b5; +>r6a5 : boolean +>a5 != b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r6a6 = a6 != b6; +>r6a6 : boolean +>a6 != b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r6b1 = b1 != a1; +>r6b1 : boolean +>b1 != a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r6b2 = b2 != a2; +>r6b2 : boolean +>b2 != a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r6b3 = b3 != a3; +>r6b3 : boolean +>b3 != a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r6b4 = b4 != a4; +>r6b4 : boolean +>b4 != a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r6b5 = b5 != a5; +>r6b5 : boolean +>b5 != a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r6b6 = b6 != a6; +>r6b6 : boolean +>b6 != a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + +// operator === +var r7a1 = a1 === b1; +>r7a1 : boolean +>a1 === b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r7a2 = a2 === b2; +>r7a2 : boolean +>a2 === b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r7a3 = a3 === b3; +>r7a3 : boolean +>a3 === b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r7a4 = a4 === b4; +>r7a4 : boolean +>a4 === b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r7a5 = a5 === b5; +>r7a5 : boolean +>a5 === b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r7a6 = a6 === b6; +>r7a6 : boolean +>a6 === b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r7b1 = b1 === a1; +>r7b1 : boolean +>b1 === a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r7b2 = b2 === a2; +>r7b2 : boolean +>b2 === a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r7b3 = b3 === a3; +>r7b3 : boolean +>b3 === a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r7b4 = b4 === a4; +>r7b4 : boolean +>b4 === a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r7b5 = b5 === a5; +>r7b5 : boolean +>b5 === a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r7b6 = b6 === a6; +>r7b6 : boolean +>b6 === a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + +// operator !== +var r8a1 = a1 !== b1; +>r8a1 : boolean +>a1 !== b1 : boolean +>a1 : { fn(x: T): T; } +>b1 : { fn(): string; } + +var r8a2 = a2 !== b2; +>r8a2 : boolean +>a2 !== b2 : boolean +>a2 : { fn(x: T): T; } +>b2 : { fn(x: string): number; } + +var r8a3 = a3 !== b3; +>r8a3 : boolean +>a3 !== b3 : boolean +>a3 : { fn(x?: T): T; } +>b3 : { fn(x?: string): number; } + +var r8a4 = a4 !== b4; +>r8a4 : boolean +>a4 !== b4 : boolean +>a4 : { fn(...x: T[]): T; } +>b4 : { fn(...x: string[]): number; } + +var r8a5 = a5 !== b5; +>r8a5 : boolean +>a5 !== b5 : boolean +>a5 : { fn(x: T, y: T): T; } +>b5 : { fn(x: string, y: number): string; } + +var r8a6 = a6 !== b6; +>r8a6 : boolean +>a6 !== b6 : boolean +>a6 : { fn(x: T, y: U): T; } +>b6 : { fn(x: Base, y: C): Base; } + +var r8b1 = b1 !== a1; +>r8b1 : boolean +>b1 !== a1 : boolean +>b1 : { fn(): string; } +>a1 : { fn(x: T): T; } + +var r8b2 = b2 !== a2; +>r8b2 : boolean +>b2 !== a2 : boolean +>b2 : { fn(x: string): number; } +>a2 : { fn(x: T): T; } + +var r8b3 = b3 !== a3; +>r8b3 : boolean +>b3 !== a3 : boolean +>b3 : { fn(x?: string): number; } +>a3 : { fn(x?: T): T; } + +var r8b4 = b4 !== a4; +>r8b4 : boolean +>b4 !== a4 : boolean +>b4 : { fn(...x: string[]): number; } +>a4 : { fn(...x: T[]): T; } + +var r8b5 = b5 !== a5; +>r8b5 : boolean +>b5 !== a5 : boolean +>b5 : { fn(x: string, y: number): string; } +>a5 : { fn(x: T, y: T): T; } + +var r8b6 = b6 !== a6; +>r8b6 : boolean +>b6 !== a6 : boolean +>b6 : { fn(x: Base, y: C): Base; } +>a6 : { fn(x: T, y: U): T; } + diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.errors.txt b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.errors.txt deleted file mode 100644 index 5364fea089c..00000000000 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.errors.txt +++ /dev/null @@ -1,155 +0,0 @@ -tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts(28,19): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts (1 errors) ==== - class Base { - public a: string; - } - - class Derived extends Base { - public b: string; - } - - class C { - public c: string; - } - - var a1: { new (x: T): T }; - var b1: { new (): string }; - - var a2: { new (x: T): T }; - var b2: { new (x: string): number }; - - var a3: { new (x?: T): T }; - var b3: { new (x?: string): number }; - - var a4: { new (...x: T[]): T }; - var b4: { new (...x: string[]): number }; - - var a5: { new (x: T, y: T): T }; - var b5: { new (x: string, y: number): string }; - - var a6: { new (x: T, y: U): T }; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var b6: { new (x: Base, y: C): Base }; - - // operator < - var r1a1 = a1 < b1; - var r1a2 = a2 < b2; - var r1a3 = a3 < b3; - var r1a4 = a4 < b4; - var r1a5 = a5 < b5; - var r1a6 = a6 < b6; - - var r1b1 = b1 < a1; - var r1b2 = b2 < a2; - var r1b3 = b3 < a3; - var r1b4 = b4 < a4; - var r1b5 = b5 < a5; - var r1b6 = b6 < a6; - - // operator > - var r2a1 = a1 > b1; - var r2a2 = a2 > b2; - var r2a3 = a3 > b3; - var r2a4 = a4 > b4; - var r2a5 = a5 > b5; - var r2a6 = a6 > b6; - - var r2b1 = b1 > a1; - var r2b2 = b2 > a2; - var r2b3 = b3 > a3; - var r2b4 = b4 > a4; - var r2b5 = b5 > a5; - var r2b6 = b6 > a6; - - // operator <= - var r3a1 = a1 <= b1; - var r3a2 = a2 <= b2; - var r3a3 = a3 <= b3; - var r3a4 = a4 <= b4; - var r3a5 = a5 <= b5; - var r3a6 = a6 <= b6; - - var r3b1 = b1 <= a1; - var r3b2 = b2 <= a2; - var r3b3 = b3 <= a3; - var r3b4 = b4 <= a4; - var r3b5 = b5 <= a5; - var r3b6 = b6 <= a6; - - // operator >= - var r4a1 = a1 >= b1; - var r4a2 = a2 >= b2; - var r4a3 = a3 >= b3; - var r4a4 = a4 >= b4; - var r4a5 = a5 >= b5; - var r4a6 = a6 >= b6; - - var r4b1 = b1 >= a1; - var r4b2 = b2 >= a2; - var r4b3 = b3 >= a3; - var r4b4 = b4 >= a4; - var r4b5 = b5 >= a5; - var r4b6 = b6 >= a6; - - // operator == - var r5a1 = a1 == b1; - var r5a2 = a2 == b2; - var r5a3 = a3 == b3; - var r5a4 = a4 == b4; - var r5a5 = a5 == b5; - var r5a6 = a6 == b6; - - var r5b1 = b1 == a1; - var r5b2 = b2 == a2; - var r5b3 = b3 == a3; - var r5b4 = b4 == a4; - var r5b5 = b5 == a5; - var r5b6 = b6 == a6; - - // operator != - var r6a1 = a1 != b1; - var r6a2 = a2 != b2; - var r6a3 = a3 != b3; - var r6a4 = a4 != b4; - var r6a5 = a5 != b5; - var r6a6 = a6 != b6; - - var r6b1 = b1 != a1; - var r6b2 = b2 != a2; - var r6b3 = b3 != a3; - var r6b4 = b4 != a4; - var r6b5 = b5 != a5; - var r6b6 = b6 != a6; - - // operator === - var r7a1 = a1 === b1; - var r7a2 = a2 === b2; - var r7a3 = a3 === b3; - var r7a4 = a4 === b4; - var r7a5 = a5 === b5; - var r7a6 = a6 === b6; - - var r7b1 = b1 === a1; - var r7b2 = b2 === a2; - var r7b3 = b3 === a3; - var r7b4 = b4 === a4; - var r7b5 = b5 === a5; - var r7b6 = b6 === a6; - - // operator !== - var r8a1 = a1 !== b1; - var r8a2 = a2 !== b2; - var r8a3 = a3 !== b3; - var r8a4 = a4 !== b4; - var r8a5 = a5 !== b5; - var r8a6 = a6 !== b6; - - var r8b1 = b1 !== a1; - var r8b2 = b2 !== a2; - var r8b3 = b3 !== a3; - var r8b4 = b4 !== a4; - var r8b5 = b5 !== a5; - var r8b6 = b6 !== a6; \ No newline at end of file diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js index 60177f0ea22..c64e33827c5 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js @@ -159,19 +159,19 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var C = (function () { function C() { } return C; -})(); +}()); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.symbols b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.symbols new file mode 100644 index 00000000000..08b23dac50a --- /dev/null +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.symbols @@ -0,0 +1,587 @@ +=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts === +class Base { +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 0, 0)) + + public a: string; +>a : Symbol(a, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 0, 12)) +} + +class Derived extends Base { +>Derived : Symbol(Derived, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 2, 1)) +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 0, 0)) + + public b: string; +>b : Symbol(b, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 4, 28)) +} + +class C { +>C : Symbol(C, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 6, 1)) + + public c: string; +>c : Symbol(c, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 8, 9)) +} + +var a1: { new (x: T): T }; +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 15)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 18)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 15)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 15)) + +var b1: { new (): string }; +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var a2: { new (x: T): T }; +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 15)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 18)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 15)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 15)) + +var b2: { new (x: string): number }; +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 15)) + +var a3: { new (x?: T): T }; +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 15)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 18)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 15)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 15)) + +var b3: { new (x?: string): number }; +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 15)) + +var a4: { new (...x: T[]): T }; +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 15)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 18)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 15)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 15)) + +var b4: { new (...x: string[]): number }; +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 15)) + +var a5: { new (x: T, y: T): T }; +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 15)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 18)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 15)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 23)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 15)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 15)) + +var b5: { new (x: string, y: number): string }; +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 15)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 25)) + +var a6: { new (x: T, y: U): T }; +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 15)) +>U : Symbol(U, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 17)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 15)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 31)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 15)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 36)) +>U : Symbol(U, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 17)) +>T : Symbol(T, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 15)) + +var b6: { new (x: Base, y: C): Base }; +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>x : Symbol(x, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 15)) +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 0, 0)) +>y : Symbol(y, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 23)) +>C : Symbol(C, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 6, 1)) +>Base : Symbol(Base, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 0, 0)) + +// operator < +var r1a1 = a1 < b1; +>r1a1 : Symbol(r1a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 31, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r1a2 = a2 < b2; +>r1a2 : Symbol(r1a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 32, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r1a3 = a3 < b3; +>r1a3 : Symbol(r1a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 33, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r1a4 = a4 < b4; +>r1a4 : Symbol(r1a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 34, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r1a5 = a5 < b5; +>r1a5 : Symbol(r1a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 35, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r1a6 = a6 < b6; +>r1a6 : Symbol(r1a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 36, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r1b1 = b1 < a1; +>r1b1 : Symbol(r1b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 38, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r1b2 = b2 < a2; +>r1b2 : Symbol(r1b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 39, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r1b3 = b3 < a3; +>r1b3 : Symbol(r1b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 40, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r1b4 = b4 < a4; +>r1b4 : Symbol(r1b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 41, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r1b5 = b5 < a5; +>r1b5 : Symbol(r1b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 42, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r1b6 = b6 < a6; +>r1b6 : Symbol(r1b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 43, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + +// operator > +var r2a1 = a1 > b1; +>r2a1 : Symbol(r2a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 46, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r2a2 = a2 > b2; +>r2a2 : Symbol(r2a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 47, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r2a3 = a3 > b3; +>r2a3 : Symbol(r2a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 48, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r2a4 = a4 > b4; +>r2a4 : Symbol(r2a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 49, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r2a5 = a5 > b5; +>r2a5 : Symbol(r2a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 50, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r2a6 = a6 > b6; +>r2a6 : Symbol(r2a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 51, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r2b1 = b1 > a1; +>r2b1 : Symbol(r2b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 53, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r2b2 = b2 > a2; +>r2b2 : Symbol(r2b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 54, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r2b3 = b3 > a3; +>r2b3 : Symbol(r2b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 55, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r2b4 = b4 > a4; +>r2b4 : Symbol(r2b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 56, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r2b5 = b5 > a5; +>r2b5 : Symbol(r2b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 57, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r2b6 = b6 > a6; +>r2b6 : Symbol(r2b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 58, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + +// operator <= +var r3a1 = a1 <= b1; +>r3a1 : Symbol(r3a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 61, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r3a2 = a2 <= b2; +>r3a2 : Symbol(r3a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 62, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r3a3 = a3 <= b3; +>r3a3 : Symbol(r3a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 63, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r3a4 = a4 <= b4; +>r3a4 : Symbol(r3a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 64, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r3a5 = a5 <= b5; +>r3a5 : Symbol(r3a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 65, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r3a6 = a6 <= b6; +>r3a6 : Symbol(r3a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 66, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r3b1 = b1 <= a1; +>r3b1 : Symbol(r3b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 68, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r3b2 = b2 <= a2; +>r3b2 : Symbol(r3b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 69, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r3b3 = b3 <= a3; +>r3b3 : Symbol(r3b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 70, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r3b4 = b4 <= a4; +>r3b4 : Symbol(r3b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 71, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r3b5 = b5 <= a5; +>r3b5 : Symbol(r3b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 72, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r3b6 = b6 <= a6; +>r3b6 : Symbol(r3b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 73, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + +// operator >= +var r4a1 = a1 >= b1; +>r4a1 : Symbol(r4a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 76, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r4a2 = a2 >= b2; +>r4a2 : Symbol(r4a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 77, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r4a3 = a3 >= b3; +>r4a3 : Symbol(r4a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 78, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r4a4 = a4 >= b4; +>r4a4 : Symbol(r4a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 79, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r4a5 = a5 >= b5; +>r4a5 : Symbol(r4a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 80, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r4a6 = a6 >= b6; +>r4a6 : Symbol(r4a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 81, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r4b1 = b1 >= a1; +>r4b1 : Symbol(r4b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 83, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r4b2 = b2 >= a2; +>r4b2 : Symbol(r4b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 84, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r4b3 = b3 >= a3; +>r4b3 : Symbol(r4b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 85, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r4b4 = b4 >= a4; +>r4b4 : Symbol(r4b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 86, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r4b5 = b5 >= a5; +>r4b5 : Symbol(r4b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 87, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r4b6 = b6 >= a6; +>r4b6 : Symbol(r4b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 88, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + +// operator == +var r5a1 = a1 == b1; +>r5a1 : Symbol(r5a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 91, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r5a2 = a2 == b2; +>r5a2 : Symbol(r5a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 92, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r5a3 = a3 == b3; +>r5a3 : Symbol(r5a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 93, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r5a4 = a4 == b4; +>r5a4 : Symbol(r5a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 94, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r5a5 = a5 == b5; +>r5a5 : Symbol(r5a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 95, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r5a6 = a6 == b6; +>r5a6 : Symbol(r5a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 96, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r5b1 = b1 == a1; +>r5b1 : Symbol(r5b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 98, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r5b2 = b2 == a2; +>r5b2 : Symbol(r5b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 99, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r5b3 = b3 == a3; +>r5b3 : Symbol(r5b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 100, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r5b4 = b4 == a4; +>r5b4 : Symbol(r5b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 101, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r5b5 = b5 == a5; +>r5b5 : Symbol(r5b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 102, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r5b6 = b6 == a6; +>r5b6 : Symbol(r5b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 103, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + +// operator != +var r6a1 = a1 != b1; +>r6a1 : Symbol(r6a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 106, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r6a2 = a2 != b2; +>r6a2 : Symbol(r6a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 107, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r6a3 = a3 != b3; +>r6a3 : Symbol(r6a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 108, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r6a4 = a4 != b4; +>r6a4 : Symbol(r6a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 109, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r6a5 = a5 != b5; +>r6a5 : Symbol(r6a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 110, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r6a6 = a6 != b6; +>r6a6 : Symbol(r6a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 111, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r6b1 = b1 != a1; +>r6b1 : Symbol(r6b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 113, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r6b2 = b2 != a2; +>r6b2 : Symbol(r6b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 114, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r6b3 = b3 != a3; +>r6b3 : Symbol(r6b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 115, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r6b4 = b4 != a4; +>r6b4 : Symbol(r6b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 116, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r6b5 = b5 != a5; +>r6b5 : Symbol(r6b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 117, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r6b6 = b6 != a6; +>r6b6 : Symbol(r6b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 118, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + +// operator === +var r7a1 = a1 === b1; +>r7a1 : Symbol(r7a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 121, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r7a2 = a2 === b2; +>r7a2 : Symbol(r7a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 122, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r7a3 = a3 === b3; +>r7a3 : Symbol(r7a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 123, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r7a4 = a4 === b4; +>r7a4 : Symbol(r7a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 124, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r7a5 = a5 === b5; +>r7a5 : Symbol(r7a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 125, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r7a6 = a6 === b6; +>r7a6 : Symbol(r7a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 126, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r7b1 = b1 === a1; +>r7b1 : Symbol(r7b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 128, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r7b2 = b2 === a2; +>r7b2 : Symbol(r7b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 129, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r7b3 = b3 === a3; +>r7b3 : Symbol(r7b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 130, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r7b4 = b4 === a4; +>r7b4 : Symbol(r7b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 131, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r7b5 = b5 === a5; +>r7b5 : Symbol(r7b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 132, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r7b6 = b6 === a6; +>r7b6 : Symbol(r7b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 133, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + +// operator !== +var r8a1 = a1 !== b1; +>r8a1 : Symbol(r8a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 136, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) + +var r8a2 = a2 !== b2; +>r8a2 : Symbol(r8a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 137, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) + +var r8a3 = a3 !== b3; +>r8a3 : Symbol(r8a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 138, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) + +var r8a4 = a4 !== b4; +>r8a4 : Symbol(r8a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 139, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) + +var r8a5 = a5 !== b5; +>r8a5 : Symbol(r8a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 140, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) + +var r8a6 = a6 !== b6; +>r8a6 : Symbol(r8a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 141, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) + +var r8b1 = b1 !== a1; +>r8b1 : Symbol(r8b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 143, 3)) +>b1 : Symbol(b1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 13, 3)) +>a1 : Symbol(a1, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 12, 3)) + +var r8b2 = b2 !== a2; +>r8b2 : Symbol(r8b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 144, 3)) +>b2 : Symbol(b2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 16, 3)) +>a2 : Symbol(a2, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 15, 3)) + +var r8b3 = b3 !== a3; +>r8b3 : Symbol(r8b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 145, 3)) +>b3 : Symbol(b3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 19, 3)) +>a3 : Symbol(a3, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 18, 3)) + +var r8b4 = b4 !== a4; +>r8b4 : Symbol(r8b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 146, 3)) +>b4 : Symbol(b4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 22, 3)) +>a4 : Symbol(a4, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 21, 3)) + +var r8b5 = b5 !== a5; +>r8b5 : Symbol(r8b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 147, 3)) +>b5 : Symbol(b5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 25, 3)) +>a5 : Symbol(a5, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 24, 3)) + +var r8b6 = b6 !== a6; +>r8b6 : Symbol(r8b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 148, 3)) +>b6 : Symbol(b6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 28, 3)) +>a6 : Symbol(a6, Decl(comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts, 27, 3)) + diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.types b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.types new file mode 100644 index 00000000000..83cb4317459 --- /dev/null +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.types @@ -0,0 +1,683 @@ +=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts === +class Base { +>Base : Base + + public a: string; +>a : string +} + +class Derived extends Base { +>Derived : Derived +>Base : Base + + public b: string; +>b : string +} + +class C { +>C : C + + public c: string; +>c : string +} + +var a1: { new (x: T): T }; +>a1 : new (x: T) => T +>T : T +>x : T +>T : T +>T : T + +var b1: { new (): string }; +>b1 : new () => string + +var a2: { new (x: T): T }; +>a2 : new (x: T) => T +>T : T +>x : T +>T : T +>T : T + +var b2: { new (x: string): number }; +>b2 : new (x: string) => number +>x : string + +var a3: { new (x?: T): T }; +>a3 : new (x?: T) => T +>T : T +>x : T +>T : T +>T : T + +var b3: { new (x?: string): number }; +>b3 : new (x?: string) => number +>x : string + +var a4: { new (...x: T[]): T }; +>a4 : new (...x: T[]) => T +>T : T +>x : T[] +>T : T +>T : T + +var b4: { new (...x: string[]): number }; +>b4 : new (...x: string[]) => number +>x : string[] + +var a5: { new (x: T, y: T): T }; +>a5 : new (x: T, y: T) => T +>T : T +>x : T +>T : T +>y : T +>T : T +>T : T + +var b5: { new (x: string, y: number): string }; +>b5 : new (x: string, y: number) => string +>x : string +>y : number + +var a6: { new (x: T, y: U): T }; +>a6 : new (x: T, y: U) => T +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + +var b6: { new (x: Base, y: C): Base }; +>b6 : new (x: Base, y: C) => Base +>x : Base +>Base : Base +>y : C +>C : C +>Base : Base + +// operator < +var r1a1 = a1 < b1; +>r1a1 : boolean +>a1 < b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r1a2 = a2 < b2; +>r1a2 : boolean +>a2 < b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r1a3 = a3 < b3; +>r1a3 : boolean +>a3 < b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r1a4 = a4 < b4; +>r1a4 : boolean +>a4 < b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r1a5 = a5 < b5; +>r1a5 : boolean +>a5 < b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r1a6 = a6 < b6; +>r1a6 : boolean +>a6 < b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r1b1 = b1 < a1; +>r1b1 : boolean +>b1 < a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r1b2 = b2 < a2; +>r1b2 : boolean +>b2 < a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r1b3 = b3 < a3; +>r1b3 : boolean +>b3 < a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r1b4 = b4 < a4; +>r1b4 : boolean +>b4 < a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r1b5 = b5 < a5; +>r1b5 : boolean +>b5 < a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r1b6 = b6 < a6; +>r1b6 : boolean +>b6 < a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + +// operator > +var r2a1 = a1 > b1; +>r2a1 : boolean +>a1 > b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r2a2 = a2 > b2; +>r2a2 : boolean +>a2 > b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r2a3 = a3 > b3; +>r2a3 : boolean +>a3 > b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r2a4 = a4 > b4; +>r2a4 : boolean +>a4 > b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r2a5 = a5 > b5; +>r2a5 : boolean +>a5 > b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r2a6 = a6 > b6; +>r2a6 : boolean +>a6 > b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r2b1 = b1 > a1; +>r2b1 : boolean +>b1 > a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r2b2 = b2 > a2; +>r2b2 : boolean +>b2 > a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r2b3 = b3 > a3; +>r2b3 : boolean +>b3 > a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r2b4 = b4 > a4; +>r2b4 : boolean +>b4 > a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r2b5 = b5 > a5; +>r2b5 : boolean +>b5 > a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r2b6 = b6 > a6; +>r2b6 : boolean +>b6 > a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + +// operator <= +var r3a1 = a1 <= b1; +>r3a1 : boolean +>a1 <= b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r3a2 = a2 <= b2; +>r3a2 : boolean +>a2 <= b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r3a3 = a3 <= b3; +>r3a3 : boolean +>a3 <= b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r3a4 = a4 <= b4; +>r3a4 : boolean +>a4 <= b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r3a5 = a5 <= b5; +>r3a5 : boolean +>a5 <= b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r3a6 = a6 <= b6; +>r3a6 : boolean +>a6 <= b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r3b1 = b1 <= a1; +>r3b1 : boolean +>b1 <= a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r3b2 = b2 <= a2; +>r3b2 : boolean +>b2 <= a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r3b3 = b3 <= a3; +>r3b3 : boolean +>b3 <= a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r3b4 = b4 <= a4; +>r3b4 : boolean +>b4 <= a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r3b5 = b5 <= a5; +>r3b5 : boolean +>b5 <= a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r3b6 = b6 <= a6; +>r3b6 : boolean +>b6 <= a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + +// operator >= +var r4a1 = a1 >= b1; +>r4a1 : boolean +>a1 >= b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r4a2 = a2 >= b2; +>r4a2 : boolean +>a2 >= b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r4a3 = a3 >= b3; +>r4a3 : boolean +>a3 >= b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r4a4 = a4 >= b4; +>r4a4 : boolean +>a4 >= b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r4a5 = a5 >= b5; +>r4a5 : boolean +>a5 >= b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r4a6 = a6 >= b6; +>r4a6 : boolean +>a6 >= b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r4b1 = b1 >= a1; +>r4b1 : boolean +>b1 >= a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r4b2 = b2 >= a2; +>r4b2 : boolean +>b2 >= a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r4b3 = b3 >= a3; +>r4b3 : boolean +>b3 >= a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r4b4 = b4 >= a4; +>r4b4 : boolean +>b4 >= a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r4b5 = b5 >= a5; +>r4b5 : boolean +>b5 >= a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r4b6 = b6 >= a6; +>r4b6 : boolean +>b6 >= a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + +// operator == +var r5a1 = a1 == b1; +>r5a1 : boolean +>a1 == b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r5a2 = a2 == b2; +>r5a2 : boolean +>a2 == b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r5a3 = a3 == b3; +>r5a3 : boolean +>a3 == b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r5a4 = a4 == b4; +>r5a4 : boolean +>a4 == b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r5a5 = a5 == b5; +>r5a5 : boolean +>a5 == b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r5a6 = a6 == b6; +>r5a6 : boolean +>a6 == b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r5b1 = b1 == a1; +>r5b1 : boolean +>b1 == a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r5b2 = b2 == a2; +>r5b2 : boolean +>b2 == a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r5b3 = b3 == a3; +>r5b3 : boolean +>b3 == a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r5b4 = b4 == a4; +>r5b4 : boolean +>b4 == a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r5b5 = b5 == a5; +>r5b5 : boolean +>b5 == a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r5b6 = b6 == a6; +>r5b6 : boolean +>b6 == a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + +// operator != +var r6a1 = a1 != b1; +>r6a1 : boolean +>a1 != b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r6a2 = a2 != b2; +>r6a2 : boolean +>a2 != b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r6a3 = a3 != b3; +>r6a3 : boolean +>a3 != b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r6a4 = a4 != b4; +>r6a4 : boolean +>a4 != b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r6a5 = a5 != b5; +>r6a5 : boolean +>a5 != b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r6a6 = a6 != b6; +>r6a6 : boolean +>a6 != b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r6b1 = b1 != a1; +>r6b1 : boolean +>b1 != a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r6b2 = b2 != a2; +>r6b2 : boolean +>b2 != a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r6b3 = b3 != a3; +>r6b3 : boolean +>b3 != a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r6b4 = b4 != a4; +>r6b4 : boolean +>b4 != a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r6b5 = b5 != a5; +>r6b5 : boolean +>b5 != a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r6b6 = b6 != a6; +>r6b6 : boolean +>b6 != a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + +// operator === +var r7a1 = a1 === b1; +>r7a1 : boolean +>a1 === b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r7a2 = a2 === b2; +>r7a2 : boolean +>a2 === b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r7a3 = a3 === b3; +>r7a3 : boolean +>a3 === b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r7a4 = a4 === b4; +>r7a4 : boolean +>a4 === b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r7a5 = a5 === b5; +>r7a5 : boolean +>a5 === b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r7a6 = a6 === b6; +>r7a6 : boolean +>a6 === b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r7b1 = b1 === a1; +>r7b1 : boolean +>b1 === a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r7b2 = b2 === a2; +>r7b2 : boolean +>b2 === a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r7b3 = b3 === a3; +>r7b3 : boolean +>b3 === a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r7b4 = b4 === a4; +>r7b4 : boolean +>b4 === a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r7b5 = b5 === a5; +>r7b5 : boolean +>b5 === a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r7b6 = b6 === a6; +>r7b6 : boolean +>b6 === a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + +// operator !== +var r8a1 = a1 !== b1; +>r8a1 : boolean +>a1 !== b1 : boolean +>a1 : new (x: T) => T +>b1 : new () => string + +var r8a2 = a2 !== b2; +>r8a2 : boolean +>a2 !== b2 : boolean +>a2 : new (x: T) => T +>b2 : new (x: string) => number + +var r8a3 = a3 !== b3; +>r8a3 : boolean +>a3 !== b3 : boolean +>a3 : new (x?: T) => T +>b3 : new (x?: string) => number + +var r8a4 = a4 !== b4; +>r8a4 : boolean +>a4 !== b4 : boolean +>a4 : new (...x: T[]) => T +>b4 : new (...x: string[]) => number + +var r8a5 = a5 !== b5; +>r8a5 : boolean +>a5 !== b5 : boolean +>a5 : new (x: T, y: T) => T +>b5 : new (x: string, y: number) => string + +var r8a6 = a6 !== b6; +>r8a6 : boolean +>a6 !== b6 : boolean +>a6 : new (x: T, y: U) => T +>b6 : new (x: Base, y: C) => Base + +var r8b1 = b1 !== a1; +>r8b1 : boolean +>b1 !== a1 : boolean +>b1 : new () => string +>a1 : new (x: T) => T + +var r8b2 = b2 !== a2; +>r8b2 : boolean +>b2 !== a2 : boolean +>b2 : new (x: string) => number +>a2 : new (x: T) => T + +var r8b3 = b3 !== a3; +>r8b3 : boolean +>b3 !== a3 : boolean +>b3 : new (x?: string) => number +>a3 : new (x?: T) => T + +var r8b4 = b4 !== a4; +>r8b4 : boolean +>b4 !== a4 : boolean +>b4 : new (...x: string[]) => number +>a4 : new (...x: T[]) => T + +var r8b5 = b5 !== a5; +>r8b5 : boolean +>b5 !== a5 : boolean +>b5 : new (x: string, y: number) => string +>a5 : new (x: T, y: T) => T + +var r8b6 = b6 !== a6; +>r8b6 : boolean +>b6 !== a6 : boolean +>b6 : new (x: Base, y: C) => Base +>a6 : new (x: T, y: U) => T + diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js index d6308211191..715b347846e 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnProperty.js @@ -81,22 +81,22 @@ var A1 = (function () { function A1() { } return A1; -})(); +}()); var B1 = (function () { function B1() { } return B1; -})(); +}()); var A2 = (function () { function A2() { } return A2; -})(); +}()); var B2 = (function () { function B2() { } return B2; -})(); +}()); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js index 27d1b68c85d..dc7a12eecdc 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js @@ -269,14 +269,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js index 5a98e12b001..d4be6df98dd 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js @@ -231,14 +231,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js index 24069615e0a..ee5ad2fbd07 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js @@ -117,14 +117,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js index f0dac057ca3..79e4bfd0bbf 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js @@ -174,14 +174,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js index eaf1aca728d..31c0dd3c7c5 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js @@ -174,14 +174,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var a1; var b1; var a2; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js index 822d4b7520a..5decd7a21fb 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js @@ -88,36 +88,36 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var A1 = (function () { function A1() { } return A1; -})(); +}()); var B1 = (function () { function B1() { } return B1; -})(); +}()); var A2 = (function () { function A2() { } return A2; -})(); +}()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A2); +}(A2)); var a1; var a2; var b1; diff --git a/tests/baselines/reference/complexClassRelationships.js b/tests/baselines/reference/complexClassRelationships.js index ca2b31a805c..46974055171 100644 --- a/tests/baselines/reference/complexClassRelationships.js +++ b/tests/baselines/reference/complexClassRelationships.js @@ -64,18 +64,18 @@ var Derived = (function (_super) { return item; }; return Derived; -})(Base); +}(Base)); var BaseCollection = (function () { function BaseCollection(f) { (function (item) { return [item.Components]; }); } return BaseCollection; -})(); +}()); var Base = (function () { function Base() { } return Base; -})(); +}()); var Thing = (function () { function Thing() { } @@ -85,7 +85,7 @@ var Thing = (function () { configurable: true }); return Thing; -})(); +}()); var ComponentCollection = (function () { function ComponentCollection() { } @@ -93,7 +93,7 @@ var ComponentCollection = (function () { return p.prop1; }; return ComponentCollection; -})(); +}()); var Foo = (function () { function Foo() { } @@ -115,16 +115,16 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); var GenericType = (function () { function GenericType(parent) { } return GenericType; -})(); +}()); var FooBase = (function () { function FooBase() { } FooBase.prototype.populate = function () { }; return FooBase; -})(); +}()); diff --git a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js index 71c1cee164f..3d885d3eef1 100644 --- a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js +++ b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js @@ -17,5 +17,5 @@ var S18 = (function (_super) { _super.apply(this, arguments); } return S18; -})(S18); +}(S18)); (new S18(123)).S18 = 0; diff --git a/tests/baselines/reference/complicatedPrivacy.js b/tests/baselines/reference/complicatedPrivacy.js index 7f431f3d136..ffb328f2e94 100644 --- a/tests/baselines/reference/complicatedPrivacy.js +++ b/tests/baselines/reference/complicatedPrivacy.js @@ -131,7 +131,7 @@ var m1; return "Hello world"; }; return C2; - })(); + }()); m2.C2 = C2; })(m2 = m1.m2 || (m1.m2 = {})); function f2(arg1) { @@ -156,19 +156,19 @@ var m1; function C1() { } return C1; - })(); + }()); var C5 = (function () { function C5() { } return C5; - })(); + }()); m1.C5 = C5; })(m1 || (m1 = {})); var C2 = (function () { function C2() { } return C2; -})(); +}()); var m2; (function (m2) { var m3; @@ -180,7 +180,7 @@ var m2; return "Hello"; }; return c_pr; - })(); + }()); m3.c_pr = c_pr; var m4; (function (m4) { @@ -188,7 +188,7 @@ var m2; function C() { } return C; - })(); + }()); var m5; (function (m5) { var m6; diff --git a/tests/baselines/reference/compoundAssignmentLHSIsValue.js b/tests/baselines/reference/compoundAssignmentLHSIsValue.js index bf66183b70a..a55c068d4a4 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundAssignmentLHSIsValue.js @@ -146,7 +146,7 @@ var C = (function () { this += value; }; return C; -})(); +}()); function foo() { this *= value; this += value; @@ -210,7 +210,7 @@ var Derived = (function (_super) { _super. += value; }; return Derived; -})(C); +}(C)); // function expression function bar1() { } value; diff --git a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js index f4e14e54242..70ebca89005 100644 --- a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js @@ -105,7 +105,7 @@ var C = (function () { this = Math.pow(this, value); }; return C; -})(); +}()); function foo() { this = Math.pow(this, value); } @@ -152,7 +152,7 @@ var Derived = (function (_super) { var _a; }; return Derived; -})(C); +}(C)); // function expression function bar1() { } value; diff --git a/tests/baselines/reference/computedPropertyNames12_ES5.js b/tests/baselines/reference/computedPropertyNames12_ES5.js index c73ea11286f..2aec8856286 100644 --- a/tests/baselines/reference/computedPropertyNames12_ES5.js +++ b/tests/baselines/reference/computedPropertyNames12_ES5.js @@ -28,4 +28,4 @@ var C = (function () { } C["hello " + a + " bye"] = 0; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames13_ES5.js b/tests/baselines/reference/computedPropertyNames13_ES5.js index 89562162911..0b713c5c8d7 100644 --- a/tests/baselines/reference/computedPropertyNames13_ES5.js +++ b/tests/baselines/reference/computedPropertyNames13_ES5.js @@ -35,4 +35,4 @@ var C = (function () { C.prototype["hello bye"] = function () { }; C["hello " + a + " bye"] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames14_ES5.js b/tests/baselines/reference/computedPropertyNames14_ES5.js index 5db5e842a2a..e08ae0fd640 100644 --- a/tests/baselines/reference/computedPropertyNames14_ES5.js +++ b/tests/baselines/reference/computedPropertyNames14_ES5.js @@ -21,4 +21,4 @@ var C = (function () { C.prototype[undefined] = function () { }; C[null] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames15_ES5.js b/tests/baselines/reference/computedPropertyNames15_ES5.js index 93258b64c75..91ec9332be8 100644 --- a/tests/baselines/reference/computedPropertyNames15_ES5.js +++ b/tests/baselines/reference/computedPropertyNames15_ES5.js @@ -19,4 +19,4 @@ var C = (function () { C.prototype[p2] = function () { }; C.prototype[p3] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames16_ES5.js b/tests/baselines/reference/computedPropertyNames16_ES5.js index f4d90579d63..5d8471e6560 100644 --- a/tests/baselines/reference/computedPropertyNames16_ES5.js +++ b/tests/baselines/reference/computedPropertyNames16_ES5.js @@ -69,4 +69,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames17_ES5.js b/tests/baselines/reference/computedPropertyNames17_ES5.js index 3b5c100694d..30b14ad523e 100644 --- a/tests/baselines/reference/computedPropertyNames17_ES5.js +++ b/tests/baselines/reference/computedPropertyNames17_ES5.js @@ -45,4 +45,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames21_ES5.js b/tests/baselines/reference/computedPropertyNames21_ES5.js index 81f95cd824d..655de136c34 100644 --- a/tests/baselines/reference/computedPropertyNames21_ES5.js +++ b/tests/baselines/reference/computedPropertyNames21_ES5.js @@ -15,4 +15,4 @@ var C = (function () { }; C.prototype[this.bar()] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.js b/tests/baselines/reference/computedPropertyNames22_ES5.js index e82bf673b52..5448f4dcf8d 100644 --- a/tests/baselines/reference/computedPropertyNames22_ES5.js +++ b/tests/baselines/reference/computedPropertyNames22_ES5.js @@ -21,4 +21,4 @@ var C = (function () { var _a; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.js b/tests/baselines/reference/computedPropertyNames23_ES5.js index 8e42a29f7e7..666807f9f8e 100644 --- a/tests/baselines/reference/computedPropertyNames23_ES5.js +++ b/tests/baselines/reference/computedPropertyNames23_ES5.js @@ -18,4 +18,4 @@ var C = (function () { C.prototype[(_a = {}, _a[this.bar()] = 1, _a)[0]] = function () { }; return C; var _a; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.js b/tests/baselines/reference/computedPropertyNames24_ES5.js index 5a4b79cf44a..24cfe77d93c 100644 --- a/tests/baselines/reference/computedPropertyNames24_ES5.js +++ b/tests/baselines/reference/computedPropertyNames24_ES5.js @@ -21,7 +21,7 @@ var Base = (function () { return 0; }; return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -29,4 +29,4 @@ var C = (function (_super) { } C.prototype[_super.bar.call(this)] = function () { }; return C; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5.js index 832fad174d8..f38ac0b2e0d 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES5.js +++ b/tests/baselines/reference/computedPropertyNames25_ES5.js @@ -26,7 +26,7 @@ var Base = (function () { return 0; }; return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -41,4 +41,4 @@ var C = (function (_super) { var _a; }; return C; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5.js index 09a95419480..41a20ac6477 100644 --- a/tests/baselines/reference/computedPropertyNames26_ES5.js +++ b/tests/baselines/reference/computedPropertyNames26_ES5.js @@ -23,7 +23,7 @@ var Base = (function () { return 0; }; return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -32,4 +32,4 @@ var C = (function (_super) { C.prototype[(_a = {}, _a[_super.bar.call(this)] = 1, _a)[0]] = function () { }; return C; var _a; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.js b/tests/baselines/reference/computedPropertyNames27_ES5.js index 53e2c2988c8..bdef47165b1 100644 --- a/tests/baselines/reference/computedPropertyNames27_ES5.js +++ b/tests/baselines/reference/computedPropertyNames27_ES5.js @@ -15,7 +15,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -23,4 +23,4 @@ var C = (function (_super) { } C.prototype[(_super.call(this), "prop")] = function () { }; return C; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5.js index be79f22c2da..b5b1fdf77aa 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES5.js +++ b/tests/baselines/reference/computedPropertyNames28_ES5.js @@ -20,7 +20,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -32,4 +32,4 @@ var C = (function (_super) { var _a; } return C; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.js b/tests/baselines/reference/computedPropertyNames29_ES5.js index 4682ae9105e..46ba529d7a5 100644 --- a/tests/baselines/reference/computedPropertyNames29_ES5.js +++ b/tests/baselines/reference/computedPropertyNames29_ES5.js @@ -26,4 +26,4 @@ var C = (function () { return 0; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames2_ES5.js b/tests/baselines/reference/computedPropertyNames2_ES5.js index 581b581d87b..9211fccb530 100644 --- a/tests/baselines/reference/computedPropertyNames2_ES5.js +++ b/tests/baselines/reference/computedPropertyNames2_ES5.js @@ -39,4 +39,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5.js index de60b5daf53..e787689d393 100644 --- a/tests/baselines/reference/computedPropertyNames30_ES5.js +++ b/tests/baselines/reference/computedPropertyNames30_ES5.js @@ -25,7 +25,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -42,4 +42,4 @@ var C = (function (_super) { }); } return C; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5.js index f8e34603305..8417f103fb7 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES5.js +++ b/tests/baselines/reference/computedPropertyNames31_ES5.js @@ -28,7 +28,7 @@ var Base = (function () { return 0; }; return Base; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -46,4 +46,4 @@ var C = (function (_super) { return 0; }; return C; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/computedPropertyNames32_ES5.js b/tests/baselines/reference/computedPropertyNames32_ES5.js index a0d8b066b5c..1ae07d37e42 100644 --- a/tests/baselines/reference/computedPropertyNames32_ES5.js +++ b/tests/baselines/reference/computedPropertyNames32_ES5.js @@ -17,4 +17,4 @@ var C = (function () { }; C.prototype[foo()] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.js b/tests/baselines/reference/computedPropertyNames33_ES5.js index 38029893bb1..8db62818e22 100644 --- a/tests/baselines/reference/computedPropertyNames33_ES5.js +++ b/tests/baselines/reference/computedPropertyNames33_ES5.js @@ -23,4 +23,4 @@ var C = (function () { var _a; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.js b/tests/baselines/reference/computedPropertyNames34_ES5.js index 4e5790c53b1..fa0af2897f7 100644 --- a/tests/baselines/reference/computedPropertyNames34_ES5.js +++ b/tests/baselines/reference/computedPropertyNames34_ES5.js @@ -23,4 +23,4 @@ var C = (function () { var _a; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames36_ES5.js b/tests/baselines/reference/computedPropertyNames36_ES5.js index 4bb10ea7543..884e425e25b 100644 --- a/tests/baselines/reference/computedPropertyNames36_ES5.js +++ b/tests/baselines/reference/computedPropertyNames36_ES5.js @@ -15,12 +15,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } @@ -32,4 +32,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames37_ES5.js b/tests/baselines/reference/computedPropertyNames37_ES5.js index c2a346608fe..8cdc0af30e7 100644 --- a/tests/baselines/reference/computedPropertyNames37_ES5.js +++ b/tests/baselines/reference/computedPropertyNames37_ES5.js @@ -15,12 +15,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } @@ -32,4 +32,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames38_ES5.js b/tests/baselines/reference/computedPropertyNames38_ES5.js index 49af4d00d51..0bc1a4521e8 100644 --- a/tests/baselines/reference/computedPropertyNames38_ES5.js +++ b/tests/baselines/reference/computedPropertyNames38_ES5.js @@ -15,12 +15,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } @@ -36,4 +36,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames39_ES5.js b/tests/baselines/reference/computedPropertyNames39_ES5.js index 1b8d3aab2ff..446a9a6fd77 100644 --- a/tests/baselines/reference/computedPropertyNames39_ES5.js +++ b/tests/baselines/reference/computedPropertyNames39_ES5.js @@ -15,12 +15,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } @@ -36,4 +36,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames3_ES5.js b/tests/baselines/reference/computedPropertyNames3_ES5.js index f5a063f91e6..94821a65974 100644 --- a/tests/baselines/reference/computedPropertyNames3_ES5.js +++ b/tests/baselines/reference/computedPropertyNames3_ES5.js @@ -37,4 +37,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.errors.txt b/tests/baselines/reference/computedPropertyNames40_ES5.errors.txt index 482978064d1..40a9e9a2e3d 100644 --- a/tests/baselines/reference/computedPropertyNames40_ES5.errors.txt +++ b/tests/baselines/reference/computedPropertyNames40_ES5.errors.txt @@ -14,7 +14,7 @@ tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES5.ts(9, [""]() { return new Foo } ~~~~ !!! error TS2393: Duplicate function implementation. - ~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~ !!! error TS2411: Property '[""]' of type '() => Foo' is not assignable to string index type '() => Foo2'. [""]() { return new Foo2 } ~~~~ diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.js b/tests/baselines/reference/computedPropertyNames40_ES5.js index e8063762026..a291349d0cf 100644 --- a/tests/baselines/reference/computedPropertyNames40_ES5.js +++ b/tests/baselines/reference/computedPropertyNames40_ES5.js @@ -15,12 +15,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } @@ -28,4 +28,4 @@ var C = (function () { C.prototype[""] = function () { return new Foo; }; C.prototype[""] = function () { return new Foo2; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames40_ES6.errors.txt b/tests/baselines/reference/computedPropertyNames40_ES6.errors.txt index 669d0d04e66..10c0a456dbe 100644 --- a/tests/baselines/reference/computedPropertyNames40_ES6.errors.txt +++ b/tests/baselines/reference/computedPropertyNames40_ES6.errors.txt @@ -14,7 +14,7 @@ tests/cases/conformance/es6/computedProperties/computedPropertyNames40_ES6.ts(9, [""]() { return new Foo } ~~~~ !!! error TS2393: Duplicate function implementation. - ~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~ !!! error TS2411: Property '[""]' of type '() => Foo' is not assignable to string index type '() => Foo2'. [""]() { return new Foo2 } ~~~~ diff --git a/tests/baselines/reference/computedPropertyNames41_ES5.js b/tests/baselines/reference/computedPropertyNames41_ES5.js index 7d7c390bf3e..cad02361496 100644 --- a/tests/baselines/reference/computedPropertyNames41_ES5.js +++ b/tests/baselines/reference/computedPropertyNames41_ES5.js @@ -14,16 +14,16 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } // Computed properties C[""] = function () { return new Foo; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames42_ES5.js b/tests/baselines/reference/computedPropertyNames42_ES5.js index f4fda8fc829..1e1dfff227b 100644 --- a/tests/baselines/reference/computedPropertyNames42_ES5.js +++ b/tests/baselines/reference/computedPropertyNames42_ES5.js @@ -14,14 +14,14 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.js b/tests/baselines/reference/computedPropertyNames43_ES5.js index 57026c3c706..9690d0b8196 100644 --- a/tests/baselines/reference/computedPropertyNames43_ES5.js +++ b/tests/baselines/reference/computedPropertyNames43_ES5.js @@ -22,17 +22,17 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -46,4 +46,4 @@ var D = (function (_super) { configurable: true }); return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.js b/tests/baselines/reference/computedPropertyNames44_ES5.js index 1186f0caef7..78e20a7d6a3 100644 --- a/tests/baselines/reference/computedPropertyNames44_ES5.js +++ b/tests/baselines/reference/computedPropertyNames44_ES5.js @@ -21,12 +21,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } @@ -36,7 +36,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -48,4 +48,4 @@ var D = (function (_super) { configurable: true }); return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.js b/tests/baselines/reference/computedPropertyNames45_ES5.js index ce948e58208..9c7482a4713 100644 --- a/tests/baselines/reference/computedPropertyNames45_ES5.js +++ b/tests/baselines/reference/computedPropertyNames45_ES5.js @@ -22,12 +22,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var C = (function () { function C() { } @@ -37,7 +37,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -49,4 +49,4 @@ var D = (function (_super) { configurable: true }); return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js index 84b92f6c92d..7becf285b2a 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js @@ -21,7 +21,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); //// [computedPropertyNamesDeclarationEmit1_ES5.d.ts] diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.js index 9847ea8b7ef..0b665eb1d9a 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.js @@ -21,7 +21,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); //// [computedPropertyNamesDeclarationEmit2_ES5.d.ts] diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js index 1470605413a..5562e1ea73c 100644 --- a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js @@ -15,4 +15,4 @@ var C = (function () { } C.prototype[methodName] = function (v) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js index 5b99f534002..5c4be60bc6e 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js @@ -13,5 +13,5 @@ var C = (function () { debugger; }; return C; -})(); +}()); //# sourceMappingURL=computedPropertyNamesSourceMap1_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map index c47fcfcad31..e8d4e52ad96 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map @@ -1,2 +1,2 @@ //// [computedPropertyNamesSourceMap1_ES5.js.map] -{"version":3,"file":"computedPropertyNamesSourceMap1_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap1_ES5.ts"],"names":["C","C.constructor","C[\"hello\"]"],"mappings":"AAAA;IAAAA;IAIAC,CAACA;IAHGD,YAACA,OAAOA,CAACA,GAATA;QACIE,QAAQA,CAACA;IACbA,CAACA;IACLF,QAACA;AAADA,CAACA,AAJD,IAIC"} \ No newline at end of file +{"version":3,"file":"computedPropertyNamesSourceMap1_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap1_ES5.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAHG,YAAC,OAAO,CAAC,GAAT;QACI,QAAQ,CAAC;IACb,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt index df0af71fb02..3a64433a709 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (C) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -30,8 +30,8 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts > } > 2 > } -1->Emitted(3, 5) Source(5, 1) + SourceIndex(0) name (C.constructor) -2 >Emitted(3, 6) Source(5, 2) + SourceIndex(0) name (C.constructor) +1->Emitted(3, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(5, 2) + SourceIndex(0) --- >>> C.prototype["hello"] = function () { 1->^^^^ @@ -44,11 +44,11 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts 3 > "hello" 4 > ] 5 > -1->Emitted(4, 5) Source(2, 5) + SourceIndex(0) name (C) -2 >Emitted(4, 17) Source(2, 6) + SourceIndex(0) name (C) -3 >Emitted(4, 24) Source(2, 13) + SourceIndex(0) name (C) -4 >Emitted(4, 25) Source(2, 14) + SourceIndex(0) name (C) -5 >Emitted(4, 28) Source(2, 5) + SourceIndex(0) name (C) +1->Emitted(4, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(4, 17) Source(2, 6) + SourceIndex(0) +3 >Emitted(4, 24) Source(2, 13) + SourceIndex(0) +4 >Emitted(4, 25) Source(2, 14) + SourceIndex(0) +5 >Emitted(4, 28) Source(2, 5) + SourceIndex(0) --- >>> debugger; 1 >^^^^^^^^ @@ -58,9 +58,9 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts > 2 > debugger 3 > ; -1 >Emitted(5, 9) Source(3, 9) + SourceIndex(0) name (C["hello"]) -2 >Emitted(5, 17) Source(3, 17) + SourceIndex(0) name (C["hello"]) -3 >Emitted(5, 18) Source(3, 18) + SourceIndex(0) name (C["hello"]) +1 >Emitted(5, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(5, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(5, 18) Source(3, 18) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -69,8 +69,8 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts 1 > > 2 > } -1 >Emitted(6, 5) Source(4, 5) + SourceIndex(0) name (C["hello"]) -2 >Emitted(6, 6) Source(4, 6) + SourceIndex(0) name (C["hello"]) +1 >Emitted(6, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(4, 6) + SourceIndex(0) --- >>> return C; 1->^^^^ @@ -78,10 +78,10 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts 1-> > 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (C) -2 >Emitted(7, 13) Source(5, 2) + SourceIndex(0) name (C) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 13) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -95,8 +95,8 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts > debugger; > } > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (C) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (C) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.js.map index 9a2dd60999e..9ec6d18cc72 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.js.map +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.js.map @@ -1,2 +1,2 @@ //// [computedPropertyNamesSourceMap1_ES6.js.map] -{"version":3,"file":"computedPropertyNamesSourceMap1_ES6.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap1_ES6.ts"],"names":["C","C[\"hello\"]"],"mappings":"AAAA;IACIA,CAACA,OAAOA,CAACA;QACLC,QAAQA,CAACA;IACbA,CAACA;AACLD,CAACA;AAAA"} \ No newline at end of file +{"version":3,"file":"computedPropertyNamesSourceMap1_ES6.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap1_ES6.ts"],"names":[],"mappings":"AAAA;IACI,CAAC,OAAO,CAAC;QACL,QAAQ,CAAC;IACb,CAAC;AACL,CAAC;AAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.sourcemap.txt index 30493b97347..b589b7ad8ee 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.sourcemap.txt @@ -25,10 +25,10 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts 2 > [ 3 > "hello" 4 > ] -1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) name (C) -2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) name (C) -3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) name (C) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) name (C) +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) --- >>> debugger; 1->^^^^^^^^ @@ -38,9 +38,9 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts > 2 > debugger 3 > ; -1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) name (C["hello"]) -2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) name (C["hello"]) -3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) name (C["hello"]) +1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -48,8 +48,8 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts 1 > > 2 > } -1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (C["hello"]) -2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) name (C["hello"]) +1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) --- >>>} 1 > @@ -58,8 +58,8 @@ sourceFile:computedPropertyNamesSourceMap1_ES6.ts 1 > > 2 >} -1 >Emitted(5, 1) Source(5, 1) + SourceIndex(0) name (C) -2 >Emitted(5, 2) Source(5, 2) + SourceIndex(0) name (C) +1 >Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(5, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=computedPropertyNamesSourceMap1_ES6.js.map1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map index 696204ae8da..baf1e998efd 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map @@ -1,2 +1,2 @@ //// [computedPropertyNamesSourceMap2_ES5.js.map] -{"version":3,"file":"computedPropertyNamesSourceMap2_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES5.ts"],"names":["[\"hello\"]"],"mappings":"AAAA,IAAI,CAAC,GAAG;IACJ,GAAC,OAAO,CAAC,GAAT;QACIA,QAAQA,CAACA;IACbA,CAACA;;CACJ,CAAA"} \ No newline at end of file +{"version":3,"file":"computedPropertyNamesSourceMap2_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES5.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG;IACJ,GAAC,OAAO,CAAC,GAAT;QACI,QAAQ,CAAC;IACb,CAAC;;CACJ,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt index c922e4f706d..f6501777985 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt @@ -49,9 +49,9 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts > 2 > debugger 3 > ; -1 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) name (["hello"]) -2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) name (["hello"]) -3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) name (["hello"]) +1 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) --- >>> }, 1 >^^^^ @@ -60,8 +60,8 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts 1 > > 2 > } -1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (["hello"]) -2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) name (["hello"]) +1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) --- >>> _a >>>); diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.js.map index 251171232e0..f8ca7ab5845 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.js.map +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.js.map @@ -1,2 +1,2 @@ //// [computedPropertyNamesSourceMap2_ES6.js.map] -{"version":3,"file":"computedPropertyNamesSourceMap2_ES6.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES6.ts"],"names":["[\"hello\"]"],"mappings":"AAAA,IAAI,CAAC,GAAG;IACJ,CAAC,OAAO,CAAC;QACLA,QAAQA,CAACA;IACbA,CAACA;CACJ,CAAA"} \ No newline at end of file +{"version":3,"file":"computedPropertyNamesSourceMap2_ES6.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES6.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG;IACJ,CAAC,OAAO,CAAC;QACL,QAAQ,CAAC;IACb,CAAC;CACJ,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.sourcemap.txt index 48149aee0b5..a6f9086e455 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.sourcemap.txt @@ -47,9 +47,9 @@ sourceFile:computedPropertyNamesSourceMap2_ES6.ts > 2 > debugger 3 > ; -1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) name (["hello"]) -2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) name (["hello"]) -3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) name (["hello"]) +1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -57,8 +57,8 @@ sourceFile:computedPropertyNamesSourceMap2_ES6.ts 1 > > 2 > } -1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (["hello"]) -2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) name (["hello"]) +1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) --- >>>}; 1 >^ diff --git a/tests/baselines/reference/concatClassAndString.js b/tests/baselines/reference/concatClassAndString.js index dca09ec7e58..a26a0803f01 100644 --- a/tests/baselines/reference/concatClassAndString.js +++ b/tests/baselines/reference/concatClassAndString.js @@ -11,5 +11,5 @@ var f = (function () { function f() { } return f; -})(); +}()); f += ''; diff --git a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js index b2830e4d1d6..9d90b568d49 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js +++ b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.js @@ -83,7 +83,7 @@ var C = (function () { function C() { } return C; -})(); +}()); ; //Cond is an object type variable condObject ? exprAny1 : exprAny2; diff --git a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js index a493a5cfab0..3514965f1ce 100644 --- a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js @@ -58,7 +58,7 @@ var X = (function () { function X() { } return X; -})(); +}()); ; var A = (function (_super) { __extends(A, _super); @@ -66,7 +66,7 @@ var A = (function (_super) { _super.apply(this, arguments); } return A; -})(X); +}(X)); ; var B = (function (_super) { __extends(B, _super); @@ -74,7 +74,7 @@ var B = (function (_super) { _super.apply(this, arguments); } return B; -})(X); +}(X)); ; var x; var a; diff --git a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js index 3d75eb0507a..8780c92fc1e 100644 --- a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js @@ -34,7 +34,7 @@ var X = (function () { function X() { } return X; -})(); +}()); ; var A = (function (_super) { __extends(A, _super); @@ -42,7 +42,7 @@ var A = (function (_super) { _super.apply(this, arguments); } return A; -})(X); +}(X)); ; var B = (function (_super) { __extends(B, _super); @@ -50,7 +50,7 @@ var B = (function (_super) { _super.apply(this, arguments); } return B; -})(X); +}(X)); ; var x; var a; diff --git a/tests/baselines/reference/conflictMarkerTrivia1.js b/tests/baselines/reference/conflictMarkerTrivia1.js index 68f1b82d38b..8d0354f9823 100644 --- a/tests/baselines/reference/conflictMarkerTrivia1.js +++ b/tests/baselines/reference/conflictMarkerTrivia1.js @@ -13,4 +13,4 @@ var C = (function () { this.v = 1; } return C; -})(); +}()); diff --git a/tests/baselines/reference/conflictMarkerTrivia2.js b/tests/baselines/reference/conflictMarkerTrivia2.js index bbf6726b994..1e58addf706 100644 --- a/tests/baselines/reference/conflictMarkerTrivia2.js +++ b/tests/baselines/reference/conflictMarkerTrivia2.js @@ -22,4 +22,4 @@ var C = (function () { }; C.prototype.bar = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.js b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.js index 6f5b898c5ff..b8d4065abf4 100644 --- a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.js +++ b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.js @@ -18,4 +18,4 @@ var Rule = (function () { this.name = name; } return Rule; -})(); +}()); diff --git a/tests/baselines/reference/constEnumMergingWithValues2.js b/tests/baselines/reference/constEnumMergingWithValues2.js index fea628fa540..07249ddcc5f 100644 --- a/tests/baselines/reference/constEnumMergingWithValues2.js +++ b/tests/baselines/reference/constEnumMergingWithValues2.js @@ -14,6 +14,6 @@ define(["require", "exports"], function (require, exports) { function foo() { } return foo; - })(); + }()); return foo; }); diff --git a/tests/baselines/reference/constantOverloadFunction.js b/tests/baselines/reference/constantOverloadFunction.js index 45c0fe9ff0a..09ff39f582e 100644 --- a/tests/baselines/reference/constantOverloadFunction.js +++ b/tests/baselines/reference/constantOverloadFunction.js @@ -24,7 +24,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -32,7 +32,7 @@ var Derived1 = (function (_super) { } Derived1.prototype.bar = function () { }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -40,7 +40,7 @@ var Derived2 = (function (_super) { } Derived2.prototype.baz = function () { }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { @@ -48,7 +48,7 @@ var Derived3 = (function (_super) { } Derived3.prototype.biz = function () { }; return Derived3; -})(Base); +}(Base)); function foo(tagName) { return null; } diff --git a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js index 946f8196372..37c1b1737cd 100644 --- a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js +++ b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js @@ -25,7 +25,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -33,7 +33,7 @@ var Derived1 = (function (_super) { } Derived1.prototype.bar = function () { }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -41,7 +41,7 @@ var Derived2 = (function (_super) { } Derived2.prototype.baz = function () { }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { @@ -49,7 +49,7 @@ var Derived3 = (function (_super) { } Derived3.prototype.biz = function () { }; return Derived3; -})(Base); +}(Base)); function foo(tagName) { return null; } diff --git a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js index 9cf9d71f7a2..4fd63cf60d0 100644 --- a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js +++ b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js @@ -31,19 +31,19 @@ var Constraint = (function () { } Constraint.prototype.method = function () { }; return Constraint; -})(); +}()); var GenericBase = (function () { function GenericBase() { } return GenericBase; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(GenericBase); +}(GenericBase)); var TypeArg = (function () { function TypeArg() { } @@ -51,9 +51,9 @@ var TypeArg = (function () { Container.People.items; }; return TypeArg; -})(); +}()); var Container = (function () { function Container() { } return Container; -})(); +}()); diff --git a/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.errors.txt b/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.errors.txt deleted file mode 100644 index 15293f3953a..00000000000 --- a/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.errors.txt +++ /dev/null @@ -1,45 +0,0 @@ -tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts(5,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts(8,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts(10,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts(13,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts(21,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts(21,28): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts (6 errors) ==== - // used to be valid, now an error to do this - - interface IComparable { - } - function f>() { - ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - interface I1> { // Error, any does not satisfy the constraint I1 - ~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - interface I2 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - interface I4 T> { - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - // No error - interface I3 { - method1(); - } - - function foo(v: V) => void>() { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - \ No newline at end of file diff --git a/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.symbols b/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.symbols new file mode 100644 index 00000000000..ec987116a43 --- /dev/null +++ b/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.symbols @@ -0,0 +1,60 @@ +=== tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts === +// used to be valid, now an error to do this + +interface IComparable { +>IComparable : Symbol(IComparable, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 0, 0)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 2, 22)) +} +function f>() { +>f : Symbol(f, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 3, 1)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 4, 11)) +>I : Symbol(I, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 4, 13)) +>IComparable : Symbol(IComparable, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 0, 0)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 4, 11)) +} + +interface I1> { // Error, any does not satisfy the constraint I1 +>I1 : Symbol(I1, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 5, 1)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 7, 13)) +>U : Symbol(U, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 7, 15)) +>I1 : Symbol(I1, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 5, 1)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 7, 13)) +} +interface I2 { +>I2 : Symbol(I2, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 8, 1)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 9, 13)) +>U : Symbol(U, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 9, 15)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 9, 13)) +} + +interface I4 T> { +>I4 : Symbol(I4, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 10, 1)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 12, 13)) +>U : Symbol(U, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 12, 15)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 12, 13)) +} + +// No error +interface I3 { +>I3 : Symbol(I3, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 13, 1)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 16, 13)) +>U : Symbol(U, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 16, 15)) + + method1(); +>method1 : Symbol(method1, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 16, 35)) +>X : Symbol(X, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 17, 12)) +>Y : Symbol(Y, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 17, 14)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 16, 13)) +} + +function foo(v: V) => void>() { +>foo : Symbol(foo, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 18, 1)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 20, 13)) +>U : Symbol(U, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 20, 15)) +>V : Symbol(V, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 20, 27)) +>T : Symbol(T, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 20, 13)) +>v : Symbol(v, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 20, 40)) +>V : Symbol(V, Decl(constraintReferencingTypeParameterFromSameTypeParameterList.ts, 20, 27)) +} + + diff --git a/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.types b/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.types new file mode 100644 index 00000000000..f1303486283 --- /dev/null +++ b/tests/baselines/reference/constraintReferencingTypeParameterFromSameTypeParameterList.types @@ -0,0 +1,60 @@ +=== tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts === +// used to be valid, now an error to do this + +interface IComparable { +>IComparable : IComparable +>T : T +} +function f>() { +>f : >() => void +>T : T +>I : I +>IComparable : IComparable +>T : T +} + +interface I1> { // Error, any does not satisfy the constraint I1 +>I1 : I1 +>T : T +>U : U +>I1 : I1 +>T : T +} +interface I2 { +>I2 : I2 +>T : T +>U : U +>T : T +} + +interface I4 T> { +>I4 : I4 +>T : T +>U : U +>T : T +} + +// No error +interface I3 { +>I3 : I3 +>T : T +>U : U + + method1(); +>method1 : () => any +>X : X +>Y : Y +>T : T +} + +function foo(v: V) => void>() { +>foo : (v: V) => void>() => void +>T : T +>U : U +>V : V +>T : T +>v : V +>V : V +} + + diff --git a/tests/baselines/reference/constraintSatisfactionWithAny.js b/tests/baselines/reference/constraintSatisfactionWithAny.js index 06d8b17690a..6655a10ca45 100644 --- a/tests/baselines/reference/constraintSatisfactionWithAny.js +++ b/tests/baselines/reference/constraintSatisfactionWithAny.js @@ -76,7 +76,7 @@ var C = (function () { this.x = x; } return C; -})(); +}()); var c1 = new C(a); var c2 = new C(b); var C2 = (function () { @@ -84,7 +84,7 @@ var C2 = (function () { this.x = x; } return C2; -})(); +}()); var c3 = new C2(a); var c4 = new C2(b); //class C3 { @@ -97,6 +97,6 @@ var C4 = (function () { this.x = x; } return C4; -})(); +}()); var c7 = new C4(a); var c8 = new C4(b); diff --git a/tests/baselines/reference/constraintSatisfactionWithAny2.errors.txt b/tests/baselines/reference/constraintSatisfactionWithAny2.errors.txt deleted file mode 100644 index b297d2be970..00000000000 --- a/tests/baselines/reference/constraintSatisfactionWithAny2.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -tests/cases/conformance/types/typeParameters/typeArgumentLists/constraintSatisfactionWithAny2.ts(4,25): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeParameters/typeArgumentLists/constraintSatisfactionWithAny2.ts (1 errors) ==== - // errors expected for type parameter cannot be referenced in the constraints of the same list - // any is not a valid type argument unless there is no constraint, or the constraint is any - - declare function foo(x: U) => Z>(y: T): Z; - ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var a: any; - - foo(a); - foo(a); \ No newline at end of file diff --git a/tests/baselines/reference/constraintSatisfactionWithAny2.symbols b/tests/baselines/reference/constraintSatisfactionWithAny2.symbols new file mode 100644 index 00000000000..25d389c5c4a --- /dev/null +++ b/tests/baselines/reference/constraintSatisfactionWithAny2.symbols @@ -0,0 +1,27 @@ +=== tests/cases/conformance/types/typeParameters/typeArgumentLists/constraintSatisfactionWithAny2.ts === +// errors expected for type parameter cannot be referenced in the constraints of the same list +// any is not a valid type argument unless there is no constraint, or the constraint is any + +declare function foo(x: U) => Z>(y: T): Z; +>foo : Symbol(foo, Decl(constraintSatisfactionWithAny2.ts, 0, 0)) +>Z : Symbol(Z, Decl(constraintSatisfactionWithAny2.ts, 3, 21)) +>T : Symbol(T, Decl(constraintSatisfactionWithAny2.ts, 3, 23)) +>U : Symbol(U, Decl(constraintSatisfactionWithAny2.ts, 3, 35)) +>x : Symbol(x, Decl(constraintSatisfactionWithAny2.ts, 3, 38)) +>U : Symbol(U, Decl(constraintSatisfactionWithAny2.ts, 3, 35)) +>Z : Symbol(Z, Decl(constraintSatisfactionWithAny2.ts, 3, 21)) +>y : Symbol(y, Decl(constraintSatisfactionWithAny2.ts, 3, 50)) +>T : Symbol(T, Decl(constraintSatisfactionWithAny2.ts, 3, 23)) +>Z : Symbol(Z, Decl(constraintSatisfactionWithAny2.ts, 3, 21)) + +var a: any; +>a : Symbol(a, Decl(constraintSatisfactionWithAny2.ts, 4, 3)) + +foo(a); +>foo : Symbol(foo, Decl(constraintSatisfactionWithAny2.ts, 0, 0)) +>a : Symbol(a, Decl(constraintSatisfactionWithAny2.ts, 4, 3)) + +foo(a); +>foo : Symbol(foo, Decl(constraintSatisfactionWithAny2.ts, 0, 0)) +>a : Symbol(a, Decl(constraintSatisfactionWithAny2.ts, 4, 3)) + diff --git a/tests/baselines/reference/constraintSatisfactionWithAny2.types b/tests/baselines/reference/constraintSatisfactionWithAny2.types new file mode 100644 index 00000000000..e40e00c5161 --- /dev/null +++ b/tests/baselines/reference/constraintSatisfactionWithAny2.types @@ -0,0 +1,29 @@ +=== tests/cases/conformance/types/typeParameters/typeArgumentLists/constraintSatisfactionWithAny2.ts === +// errors expected for type parameter cannot be referenced in the constraints of the same list +// any is not a valid type argument unless there is no constraint, or the constraint is any + +declare function foo(x: U) => Z>(y: T): Z; +>foo : (x: U) => Z>(y: T) => Z +>Z : Z +>T : T +>U : U +>x : U +>U : U +>Z : Z +>y : T +>T : T +>Z : Z + +var a: any; +>a : any + +foo(a); +>foo(a) : {} +>foo : (x: U) => Z>(y: T) => Z +>a : any + +foo(a); +>foo(a) : any +>foo : (x: U) => Z>(y: T) => Z +>a : any + diff --git a/tests/baselines/reference/constraintSatisfactionWithEmptyObject.js b/tests/baselines/reference/constraintSatisfactionWithEmptyObject.js index 7850b0ebd01..2886e26dd66 100644 --- a/tests/baselines/reference/constraintSatisfactionWithEmptyObject.js +++ b/tests/baselines/reference/constraintSatisfactionWithEmptyObject.js @@ -49,7 +49,7 @@ var C = (function () { this.x = x; } return C; -})(); +}()); var r2 = new C({}); var i; // {} constraint @@ -62,6 +62,6 @@ var C2 = (function () { this.x = x; } return C2; -})(); +}()); var r2 = new C2({}); var i2; diff --git a/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.errors.txt b/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.errors.txt deleted file mode 100644 index b7375989e6b..00000000000 --- a/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.errors.txt +++ /dev/null @@ -1,18 +0,0 @@ -tests/cases/compiler/constraintsThatReferenceOtherContstraints1.ts(3,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/constraintsThatReferenceOtherContstraints1.ts(4,29): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/constraintsThatReferenceOtherContstraints1.ts (2 errors) ==== - interface Object { } - - class Foo { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - class Bar { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - data: Foo; // Error 1 Type 'Object' does not satisfy the constraint 'T' for type parameter 'U extends T'. - } - - var x: Foo< { a: string }, { a: string; b: number }>; // Error 2 Type '{ a: string; b: number; }' does not satisfy the constraint 'T' for type - \ No newline at end of file diff --git a/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.js b/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.js index f137ac6baa0..15afabfe251 100644 --- a/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.js +++ b/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.js @@ -14,10 +14,10 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var x; // Error 2 Type '{ a: string; b: number; }' does not satisfy the constraint 'T' for type diff --git a/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.symbols b/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.symbols new file mode 100644 index 00000000000..fa754b23dea --- /dev/null +++ b/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.symbols @@ -0,0 +1,31 @@ +=== tests/cases/compiler/constraintsThatReferenceOtherContstraints1.ts === +interface Object { } +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(constraintsThatReferenceOtherContstraints1.ts, 0, 0)) + +class Foo { } +>Foo : Symbol(Foo, Decl(constraintsThatReferenceOtherContstraints1.ts, 0, 20)) +>T : Symbol(T, Decl(constraintsThatReferenceOtherContstraints1.ts, 2, 10)) +>U : Symbol(U, Decl(constraintsThatReferenceOtherContstraints1.ts, 2, 12)) +>T : Symbol(T, Decl(constraintsThatReferenceOtherContstraints1.ts, 2, 10)) + +class Bar { +>Bar : Symbol(Bar, Decl(constraintsThatReferenceOtherContstraints1.ts, 2, 29)) +>T : Symbol(T, Decl(constraintsThatReferenceOtherContstraints1.ts, 3, 10)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(constraintsThatReferenceOtherContstraints1.ts, 0, 0)) +>U : Symbol(U, Decl(constraintsThatReferenceOtherContstraints1.ts, 3, 27)) +>T : Symbol(T, Decl(constraintsThatReferenceOtherContstraints1.ts, 3, 10)) + + data: Foo; // Error 1 Type 'Object' does not satisfy the constraint 'T' for type parameter 'U extends T'. +>data : Symbol(data, Decl(constraintsThatReferenceOtherContstraints1.ts, 3, 42)) +>Foo : Symbol(Foo, Decl(constraintsThatReferenceOtherContstraints1.ts, 0, 20)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(constraintsThatReferenceOtherContstraints1.ts, 0, 0)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(constraintsThatReferenceOtherContstraints1.ts, 0, 0)) +} + +var x: Foo< { a: string }, { a: string; b: number }>; // Error 2 Type '{ a: string; b: number; }' does not satisfy the constraint 'T' for type +>x : Symbol(x, Decl(constraintsThatReferenceOtherContstraints1.ts, 7, 3)) +>Foo : Symbol(Foo, Decl(constraintsThatReferenceOtherContstraints1.ts, 0, 20)) +>a : Symbol(a, Decl(constraintsThatReferenceOtherContstraints1.ts, 7, 13)) +>a : Symbol(a, Decl(constraintsThatReferenceOtherContstraints1.ts, 7, 28)) +>b : Symbol(b, Decl(constraintsThatReferenceOtherContstraints1.ts, 7, 39)) + diff --git a/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.types b/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.types new file mode 100644 index 00000000000..e3cd5dc51bc --- /dev/null +++ b/tests/baselines/reference/constraintsThatReferenceOtherContstraints1.types @@ -0,0 +1,31 @@ +=== tests/cases/compiler/constraintsThatReferenceOtherContstraints1.ts === +interface Object { } +>Object : Object + +class Foo { } +>Foo : Foo +>T : T +>U : U +>T : T + +class Bar { +>Bar : Bar +>T : T +>Object : Object +>U : U +>T : T + + data: Foo; // Error 1 Type 'Object' does not satisfy the constraint 'T' for type parameter 'U extends T'. +>data : Foo +>Foo : Foo +>Object : Object +>Object : Object +} + +var x: Foo< { a: string }, { a: string; b: number }>; // Error 2 Type '{ a: string; b: number; }' does not satisfy the constraint 'T' for type +>x : Foo<{ a: string; }, { a: string; b: number; }> +>Foo : Foo +>a : string +>a : string +>b : number + diff --git a/tests/baselines/reference/constraintsUsedInPrototypeProperty.js b/tests/baselines/reference/constraintsUsedInPrototypeProperty.js index 7f055e519c3..89ba3d0efa9 100644 --- a/tests/baselines/reference/constraintsUsedInPrototypeProperty.js +++ b/tests/baselines/reference/constraintsUsedInPrototypeProperty.js @@ -7,5 +7,5 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); Foo.prototype; // Foo diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js index 38b7b7fc194..88f35f53b17 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js @@ -80,25 +80,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js index 7d07c1a1712..96318a0d616 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js @@ -125,26 +125,26 @@ var Errors; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Derived); + }(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; - })(Base); + }(Base)); })(Errors || (Errors = {})); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js index ba341eec61f..171c4bc6210 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js @@ -70,25 +70,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js index 304b5cafd66..26757c43def 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js @@ -60,25 +60,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js index 99c885f9716..ae1d0d90445 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js @@ -63,25 +63,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters.js b/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters.js index f31d662d871..89de89c4fca 100644 --- a/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters.js +++ b/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters.js @@ -37,18 +37,18 @@ var C = (function () { this.y = y; } return C; -})(); +}()); var C2 = (function () { function C2(x) { this.x = x; } return C2; -})(); +}()); var C3 = (function () { function C3(x) { this.x = x; } return C3; -})(); +}()); var a; var b; diff --git a/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters2.js b/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters2.js index 26abb6448f9..c58b8ed003e 100644 --- a/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters2.js +++ b/tests/baselines/reference/constructSignatureWithAccessibilityModifiersOnParameters2.js @@ -44,18 +44,18 @@ var C = (function () { this.y = y; } return C; -})(); +}()); var C2 = (function () { function C2(x) { this.x = x; } return C2; -})(); +}()); var C3 = (function () { function C3(y) { this.y = y; } return C3; -})(); +}()); var a; var b; diff --git a/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.js b/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.js index 92528d6635c..f2dc1d2357e 100644 --- a/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.js +++ b/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.js @@ -55,13 +55,13 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var r1 = new C(1, ''); var C2 = (function () { function C2(x) { } return C2; -})(); +}()); var r2 = new C2(1, ''); var i; var r3 = new i(1, ''); diff --git a/tests/baselines/reference/constructSignaturesWithOverloads.js b/tests/baselines/reference/constructSignaturesWithOverloads.js index 1ee6290aeec..999ea156568 100644 --- a/tests/baselines/reference/constructSignaturesWithOverloads.js +++ b/tests/baselines/reference/constructSignaturesWithOverloads.js @@ -56,13 +56,13 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var r1 = new C(1, ''); var C2 = (function () { function C2(x) { } return C2; -})(); +}()); var r2 = new C2(1, ''); var i; var r3 = new i(1, ''); diff --git a/tests/baselines/reference/constructSignaturesWithOverloads2.js b/tests/baselines/reference/constructSignaturesWithOverloads2.js index 642cac9f364..eae1b358dcc 100644 --- a/tests/baselines/reference/constructSignaturesWithOverloads2.js +++ b/tests/baselines/reference/constructSignaturesWithOverloads2.js @@ -46,7 +46,7 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var C; (function (C) { C.x = 1; @@ -56,7 +56,7 @@ var C2 = (function () { function C2(x) { } return C2; -})(); +}()); var C2; (function (C2) { C2.x = 1; diff --git a/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.js b/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.js index 1ef6884816d..1593a378764 100644 --- a/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.js +++ b/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.js @@ -38,11 +38,11 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var C2 = (function () { function C2(x, y) { } return C2; -})(); +}()); var a; var b; diff --git a/tests/baselines/reference/constructorArgWithGenericCallSignature.js b/tests/baselines/reference/constructorArgWithGenericCallSignature.js index ca859869850..c299bba6c91 100644 --- a/tests/baselines/reference/constructorArgWithGenericCallSignature.js +++ b/tests/baselines/reference/constructorArgWithGenericCallSignature.js @@ -21,7 +21,7 @@ var Test; function MyClass(func) { } return MyClass; - })(); + }()); Test.MyClass = MyClass; function F(func) { } Test.F = F; diff --git a/tests/baselines/reference/constructorArgs.js b/tests/baselines/reference/constructorArgs.js index 6fc3511b70e..1d533506e15 100644 --- a/tests/baselines/reference/constructorArgs.js +++ b/tests/baselines/reference/constructorArgs.js @@ -25,7 +25,7 @@ var Super = (function () { function Super(value) { } return Super; -})(); +}()); var Sub = (function (_super) { __extends(Sub, _super); function Sub(options) { @@ -33,4 +33,4 @@ var Sub = (function (_super) { this.options = options; } return Sub; -})(Super); +}(Super)); diff --git a/tests/baselines/reference/constructorArgsErrors1.js b/tests/baselines/reference/constructorArgsErrors1.js index 25701901e13..bb0725ab8b9 100644 --- a/tests/baselines/reference/constructorArgsErrors1.js +++ b/tests/baselines/reference/constructorArgsErrors1.js @@ -9,4 +9,4 @@ var foo = (function () { function foo(a) { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/constructorArgsErrors2.js b/tests/baselines/reference/constructorArgsErrors2.js index a0cab9f39f8..5650c64c96d 100644 --- a/tests/baselines/reference/constructorArgsErrors2.js +++ b/tests/baselines/reference/constructorArgsErrors2.js @@ -11,4 +11,4 @@ var foo = (function () { this.a = a; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/constructorArgsErrors3.js b/tests/baselines/reference/constructorArgsErrors3.js index 3f9b09254a1..4d7d36a02c5 100644 --- a/tests/baselines/reference/constructorArgsErrors3.js +++ b/tests/baselines/reference/constructorArgsErrors3.js @@ -11,4 +11,4 @@ var foo = (function () { this.a = a; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/constructorArgsErrors4.js b/tests/baselines/reference/constructorArgsErrors4.js index c0646a54148..558cb6e68de 100644 --- a/tests/baselines/reference/constructorArgsErrors4.js +++ b/tests/baselines/reference/constructorArgsErrors4.js @@ -11,4 +11,4 @@ var foo = (function () { this.a = a; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/constructorArgsErrors5.js b/tests/baselines/reference/constructorArgsErrors5.js index 3455490aa6f..c481d6f323c 100644 --- a/tests/baselines/reference/constructorArgsErrors5.js +++ b/tests/baselines/reference/constructorArgsErrors5.js @@ -10,4 +10,4 @@ var foo = (function () { function foo(a) { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/constructorAsType.errors.txt b/tests/baselines/reference/constructorAsType.errors.txt index b0d30295cde..7865a5ecac5 100644 --- a/tests/baselines/reference/constructorAsType.errors.txt +++ b/tests/baselines/reference/constructorAsType.errors.txt @@ -1,10 +1,12 @@ tests/cases/compiler/constructorAsType.ts(1,5): error TS2322: Type '() => { name: string; }' is not assignable to type 'new () => { name: string; }'. + Type '() => { name: string; }' provides no match for the signature 'new (): { name: string; }' ==== tests/cases/compiler/constructorAsType.ts (1 errors) ==== var Person:new () => {name: string;} = function () {return {name:"joe"};}; ~~~~~~ !!! error TS2322: Type '() => { name: string; }' is not assignable to type 'new () => { name: string; }'. +!!! error TS2322: Type '() => { name: string; }' provides no match for the signature 'new (): { name: string; }' var Person2:{new() : {name:string;};}; diff --git a/tests/baselines/reference/constructorDefaultValuesReferencingThis.js b/tests/baselines/reference/constructorDefaultValuesReferencingThis.js index e022f46a528..5bc75012f7d 100644 --- a/tests/baselines/reference/constructorDefaultValuesReferencingThis.js +++ b/tests/baselines/reference/constructorDefaultValuesReferencingThis.js @@ -17,17 +17,17 @@ var C = (function () { if (x === void 0) { x = this; } } return C; -})(); +}()); var D = (function () { function D(x) { if (x === void 0) { x = this; } } return D; -})(); +}()); var E = (function () { function E(x) { if (x === void 0) { x = this; } this.x = x; } return E; -})(); +}()); diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js index 305b3e54ead..d06faa80f20 100644 --- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js +++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js @@ -29,18 +29,18 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js index b2bf377f0cc..1c3d6bf16d0 100644 --- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js +++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js @@ -43,14 +43,14 @@ var Base = (function () { function Base(x) { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived(x) { _super.call(this, x); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); // ok, not enforcing assignability relation on this @@ -59,4 +59,4 @@ var Derived2 = (function (_super) { return 1; } return Derived2; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/constructorHasPrototypeProperty.js b/tests/baselines/reference/constructorHasPrototypeProperty.js index a1bdee8e7d4..960b76f52c4 100644 --- a/tests/baselines/reference/constructorHasPrototypeProperty.js +++ b/tests/baselines/reference/constructorHasPrototypeProperty.js @@ -43,14 +43,14 @@ var NonGeneric; function C() { } return C; - })(); + }()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; - })(C); + }(C)); var r = C.prototype; r.foo; var r2 = D.prototype; @@ -62,14 +62,14 @@ var Generic; function C() { } return C; - })(); + }()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; - })(C); + }(C)); var r = C.prototype; // C var ra = r.foo; // any var r2 = D.prototype; // D diff --git a/tests/baselines/reference/constructorImplementationWithDefaultValues.js b/tests/baselines/reference/constructorImplementationWithDefaultValues.js index 2279b13f21d..607ffb1e30b 100644 --- a/tests/baselines/reference/constructorImplementationWithDefaultValues.js +++ b/tests/baselines/reference/constructorImplementationWithDefaultValues.js @@ -27,18 +27,18 @@ var C = (function () { var y = x; } return C; -})(); +}()); var D = (function () { function D(x) { if (x === void 0) { x = null; } var y = x; } return D; -})(); +}()); var E = (function () { function E(x) { if (x === void 0) { x = null; } var y = x; } return E; -})(); +}()); diff --git a/tests/baselines/reference/constructorImplementationWithDefaultValues2.js b/tests/baselines/reference/constructorImplementationWithDefaultValues2.js index 217a8287f14..b0ca55b6504 100644 --- a/tests/baselines/reference/constructorImplementationWithDefaultValues2.js +++ b/tests/baselines/reference/constructorImplementationWithDefaultValues2.js @@ -28,7 +28,7 @@ var C = (function () { var y = x; } return C; -})(); +}()); var D = (function () { function D(x, y) { if (x === void 0) { x = 1; } @@ -37,11 +37,11 @@ var D = (function () { var z = x; } return D; -})(); +}()); var E = (function () { function E(x) { if (x === void 0) { x = new Date(); } var y = x; } return E; -})(); +}()); diff --git a/tests/baselines/reference/constructorInvocationWithTooFewTypeArgs.js b/tests/baselines/reference/constructorInvocationWithTooFewTypeArgs.js index e43276dfef1..6bc52392e1c 100644 --- a/tests/baselines/reference/constructorInvocationWithTooFewTypeArgs.js +++ b/tests/baselines/reference/constructorInvocationWithTooFewTypeArgs.js @@ -15,5 +15,5 @@ var D = (function () { function D() { } return D; -})(); +}()); var d = new D(); diff --git a/tests/baselines/reference/constructorOverloads1.js b/tests/baselines/reference/constructorOverloads1.js index 97f33dca862..47906974f6e 100644 --- a/tests/baselines/reference/constructorOverloads1.js +++ b/tests/baselines/reference/constructorOverloads1.js @@ -28,7 +28,7 @@ var Foo = (function () { Foo.prototype.bar1 = function () { }; Foo.prototype.bar2 = function () { }; return Foo; -})(); +}()); var f1 = new Foo("hey"); var f2 = new Foo(0); var f3 = new Foo(f1); diff --git a/tests/baselines/reference/constructorOverloads2.js b/tests/baselines/reference/constructorOverloads2.js index d95477d84f6..76481ec1bc6 100644 --- a/tests/baselines/reference/constructorOverloads2.js +++ b/tests/baselines/reference/constructorOverloads2.js @@ -36,7 +36,7 @@ var FooBase = (function () { } FooBase.prototype.bar1 = function () { }; return FooBase; -})(); +}()); var Foo = (function (_super) { __extends(Foo, _super); function Foo(x, y) { @@ -44,7 +44,7 @@ var Foo = (function (_super) { } Foo.prototype.bar1 = function () { }; return Foo; -})(FooBase); +}(FooBase)); var f1 = new Foo("hey"); var f2 = new Foo(0); var f3 = new Foo(f1); diff --git a/tests/baselines/reference/constructorOverloads3.js b/tests/baselines/reference/constructorOverloads3.js index c7e4e411319..61f0d50db03 100644 --- a/tests/baselines/reference/constructorOverloads3.js +++ b/tests/baselines/reference/constructorOverloads3.js @@ -34,7 +34,7 @@ var Foo = (function (_super) { } Foo.prototype.bar1 = function () { }; return Foo; -})(FooBase); +}(FooBase)); var f1 = new Foo("hey"); var f2 = new Foo(0); var f3 = new Foo(f1); diff --git a/tests/baselines/reference/constructorOverloads8.js b/tests/baselines/reference/constructorOverloads8.js index 6fc51494aba..f1185b6ab76 100644 --- a/tests/baselines/reference/constructorOverloads8.js +++ b/tests/baselines/reference/constructorOverloads8.js @@ -20,9 +20,9 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var D = (function () { function D(x) { } return D; -})(); +}()); diff --git a/tests/baselines/reference/constructorOverloadsWithDefaultValues.js b/tests/baselines/reference/constructorOverloadsWithDefaultValues.js index 9e5ffe7388e..78a5d337690 100644 --- a/tests/baselines/reference/constructorOverloadsWithDefaultValues.js +++ b/tests/baselines/reference/constructorOverloadsWithDefaultValues.js @@ -18,9 +18,9 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/constructorOverloadsWithOptionalParameters.js b/tests/baselines/reference/constructorOverloadsWithOptionalParameters.js index 183bc4eda01..b251a5f88ce 100644 --- a/tests/baselines/reference/constructorOverloadsWithOptionalParameters.js +++ b/tests/baselines/reference/constructorOverloadsWithOptionalParameters.js @@ -18,9 +18,9 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/constructorParameterProperties.js b/tests/baselines/reference/constructorParameterProperties.js index 11446a316d3..17c6fdaddcd 100644 --- a/tests/baselines/reference/constructorParameterProperties.js +++ b/tests/baselines/reference/constructorParameterProperties.js @@ -28,7 +28,7 @@ var C = (function () { this.z = z; } return C; -})(); +}()); var c; var r = c.y; var r2 = c.x; // error @@ -39,7 +39,7 @@ var D = (function () { this.z = z; } return D; -})(); +}()); var d; var r = d.y; var r2 = d.x; // error diff --git a/tests/baselines/reference/constructorParameterProperties2.js b/tests/baselines/reference/constructorParameterProperties2.js index 02e4cf82c84..c740fc9fd30 100644 --- a/tests/baselines/reference/constructorParameterProperties2.js +++ b/tests/baselines/reference/constructorParameterProperties2.js @@ -37,7 +37,7 @@ var C = (function () { function C(y) { } // ok return C; -})(); +}()); var c; var r = c.y; var D = (function () { @@ -45,7 +45,7 @@ var D = (function () { this.y = y; } // error return D; -})(); +}()); var d; var r2 = d.y; var E = (function () { @@ -53,7 +53,7 @@ var E = (function () { this.y = y; } // error return E; -})(); +}()); var e; var r3 = e.y; // error var F = (function () { @@ -61,6 +61,6 @@ var F = (function () { this.y = y; } // error return F; -})(); +}()); var f; var r4 = f.y; // error diff --git a/tests/baselines/reference/constructorParameterShadowsOuterScopes.js b/tests/baselines/reference/constructorParameterShadowsOuterScopes.js index 18a1891c927..aa6612828fa 100644 --- a/tests/baselines/reference/constructorParameterShadowsOuterScopes.js +++ b/tests/baselines/reference/constructorParameterShadowsOuterScopes.js @@ -32,7 +32,7 @@ var C = (function () { x = 2; // error, x is string } return C; -})(); +}()); var y = 1; var D = (function () { function D(x) { @@ -40,4 +40,4 @@ var D = (function () { var y = ""; } return D; -})(); +}()); diff --git a/tests/baselines/reference/constructorParametersInVariableDeclarations.js b/tests/baselines/reference/constructorParametersInVariableDeclarations.js index 984c8c392b1..659b4ea98fc 100644 --- a/tests/baselines/reference/constructorParametersInVariableDeclarations.js +++ b/tests/baselines/reference/constructorParametersInVariableDeclarations.js @@ -24,7 +24,7 @@ var A = (function () { this.c = function () { return x; }; } return A; -})(); +}()); var B = (function () { function B() { this.a = x; @@ -33,4 +33,4 @@ var B = (function () { var x = 1; } return B; -})(); +}()); diff --git a/tests/baselines/reference/constructorParametersThatShadowExternalNamesInVariableDeclarations.js b/tests/baselines/reference/constructorParametersThatShadowExternalNamesInVariableDeclarations.js index 9e86b185fbd..1bcf24ee4c3 100644 --- a/tests/baselines/reference/constructorParametersThatShadowExternalNamesInVariableDeclarations.js +++ b/tests/baselines/reference/constructorParametersThatShadowExternalNamesInVariableDeclarations.js @@ -20,11 +20,11 @@ var A = (function () { this.a = x; } return A; -})(); +}()); var B = (function () { function B() { this.a = x; var x = ""; } return B; -})(); +}()); diff --git a/tests/baselines/reference/constructorReturningAPrimitive.js b/tests/baselines/reference/constructorReturningAPrimitive.js index 04308590a60..297c9954f55 100644 --- a/tests/baselines/reference/constructorReturningAPrimitive.js +++ b/tests/baselines/reference/constructorReturningAPrimitive.js @@ -27,7 +27,7 @@ var A = (function () { return 1; } return A; -})(); +}()); var a = new A(); var B = (function () { function B() { @@ -35,5 +35,5 @@ var B = (function () { return x; } return B; -})(); +}()); var b = new B(); diff --git a/tests/baselines/reference/constructorReturnsInvalidType.js b/tests/baselines/reference/constructorReturnsInvalidType.js index 7f6119cc8bd..82c5cc4a760 100644 --- a/tests/baselines/reference/constructorReturnsInvalidType.js +++ b/tests/baselines/reference/constructorReturnsInvalidType.js @@ -16,5 +16,5 @@ var X = (function () { } X.prototype.foo = function () { }; return X; -})(); +}()); var x = new X(); diff --git a/tests/baselines/reference/constructorStaticParamName.js b/tests/baselines/reference/constructorStaticParamName.js index cf74aed2ebc..9520a7c052c 100644 --- a/tests/baselines/reference/constructorStaticParamName.js +++ b/tests/baselines/reference/constructorStaticParamName.js @@ -12,4 +12,4 @@ var test = (function () { function test(static) { } return test; -})(); +}()); diff --git a/tests/baselines/reference/constructorStaticParamNameErrors.js b/tests/baselines/reference/constructorStaticParamNameErrors.js index 43e70a8c3cf..91d405efd28 100644 --- a/tests/baselines/reference/constructorStaticParamNameErrors.js +++ b/tests/baselines/reference/constructorStaticParamNameErrors.js @@ -12,4 +12,4 @@ var test = (function () { function test(static) { } return test; -})(); +}()); diff --git a/tests/baselines/reference/constructorWithAssignableReturnExpression.js b/tests/baselines/reference/constructorWithAssignableReturnExpression.js index 238f2e18aea..d691dd2b511 100644 --- a/tests/baselines/reference/constructorWithAssignableReturnExpression.js +++ b/tests/baselines/reference/constructorWithAssignableReturnExpression.js @@ -42,28 +42,28 @@ var C = (function () { return 1; } return C; -})(); +}()); var D = (function () { function D() { return 1; // error } return D; -})(); +}()); var E = (function () { function E() { return { x: 1 }; } return E; -})(); +}()); var F = (function () { function F() { return { x: 1 }; // error } return F; -})(); +}()); var G = (function () { function G() { return { x: null }; } return G; -})(); +}()); diff --git a/tests/baselines/reference/constructorWithExpressionLessReturn.js b/tests/baselines/reference/constructorWithExpressionLessReturn.js index c0074bdecfb..8bf0e2f8de0 100644 --- a/tests/baselines/reference/constructorWithExpressionLessReturn.js +++ b/tests/baselines/reference/constructorWithExpressionLessReturn.js @@ -30,24 +30,24 @@ var C = (function () { return; } return C; -})(); +}()); var D = (function () { function D() { return; } return D; -})(); +}()); var E = (function () { function E(x) { this.x = x; return; } return E; -})(); +}()); var F = (function () { function F(x) { this.x = x; return; } return F; -})(); +}()); diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js index 4765d1de283..905c12e07e3 100644 --- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js +++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js @@ -331,7 +331,7 @@ var TypeScriptAllInOne; console.log(e); }; return Program; - })(); + }()); TypeScriptAllInOne.Program = Program; try { } @@ -484,7 +484,7 @@ var BasicFeatures = (function () { return 1; }; return BasicFeatures; -})(); +}()); var CLASS = (function () { function CLASS() { this.d = function () { yield 0; }; @@ -507,13 +507,13 @@ var CLASS = (function () { return false; }; return CLASS; -})(); +}()); // todo: use these var A = (function () { function A() { } return A; -})(); +}()); method1(val, number); { return val; @@ -531,13 +531,13 @@ var B = (function (_super) { return this.method1(2); }; return B; -})(A); +}(A)); var Overloading = (function () { function Overloading() { this.otherValue = 42; } return Overloading; -})(); +}()); Overloads(value, string); Overloads(); while () diff --git a/tests/baselines/reference/constructorsWithSpecializedSignatures.js b/tests/baselines/reference/constructorsWithSpecializedSignatures.js index 4faa5e4030a..c3a0752ddf8 100644 --- a/tests/baselines/reference/constructorsWithSpecializedSignatures.js +++ b/tests/baselines/reference/constructorsWithSpecializedSignatures.js @@ -49,10 +49,10 @@ var D = (function () { function D(x) { } return D; -})(); +}()); // overloads are ok var D2 = (function () { function D2(x) { } // error return D2; -})(); +}()); diff --git a/tests/baselines/reference/contextualTypeAppliedToVarArgs.js b/tests/baselines/reference/contextualTypeAppliedToVarArgs.js index 77ce90ec737..f8b271ba47c 100644 --- a/tests/baselines/reference/contextualTypeAppliedToVarArgs.js +++ b/tests/baselines/reference/contextualTypeAppliedToVarArgs.js @@ -30,4 +30,4 @@ var Foo = (function () { }); }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTypeWithTuple.js b/tests/baselines/reference/contextualTypeWithTuple.js index cfcdd13f7d0..4fff51de563 100644 --- a/tests/baselines/reference/contextualTypeWithTuple.js +++ b/tests/baselines/reference/contextualTypeWithTuple.js @@ -36,12 +36,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var unionTuple = [new C(), "foo"]; var unionTuple1 = [new C(), "foo"]; var unionTuple2 = [new C(), "foo", new D()]; diff --git a/tests/baselines/reference/contextualTyping.js b/tests/baselines/reference/contextualTyping.js index a763b2b6544..227c6bb1f41 100644 --- a/tests/baselines/reference/contextualTyping.js +++ b/tests/baselines/reference/contextualTyping.js @@ -240,7 +240,7 @@ var C1T5 = (function () { }; } return C1T5; -})(); +}()); // CONTEXT: Module property declaration var C2T5; (function (C2T5) { @@ -279,7 +279,7 @@ var C4T5 = (function () { }; } return C4T5; -})(); +}()); // CONTEXT: Module property assignment var C5T5; (function (C5T5) { @@ -329,7 +329,7 @@ var C11t5 = (function () { function C11t5(f) { } return C11t5; -})(); +}()); ; var i = new C11t5(function (n) { return ({}); }); // CONTEXT: Type annotated expression diff --git a/tests/baselines/reference/contextualTyping.js.map b/tests/baselines/reference/contextualTyping.js.map index 7c814c231e0..247469aeb2d 100644 --- a/tests/baselines/reference/contextualTyping.js.map +++ b/tests/baselines/reference/contextualTyping.js.map @@ -1,2 +1,2 @@ //// [contextualTyping.js.map] -{"version":3,"file":"contextualTyping.js","sourceRoot":"","sources":["contextualTyping.ts"],"names":["C1T5","C1T5.constructor","C2T5","C4T5","C4T5.constructor","C5T5","c9t5","C11t5","C11t5.constructor","EF1","Point"],"mappings":"AAYA,sCAAsC;AACtC;IAAAA;QACIC,QAAGA,GAAqCA,UAASA,CAACA;YAC9C,MAAM,CAAC,CAAC,CAAC;QACb,CAAC,CAAAA;IACLA,CAACA;IAADD,WAACA;AAADA,CAACA,AAJD,IAIC;AAED,uCAAuC;AACvC,IAAO,IAAI,CAIV;AAJD,WAAO,IAAI,EAAC,CAAC;IACEE,QAAGA,GAAqCA,UAASA,CAACA;QACzD,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,CAAAA;AACLA,CAACA,EAJM,IAAI,KAAJ,IAAI,QAIV;AAED,gCAAgC;AAChC,IAAI,IAAI,GAA0B,CAAC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AAC7D,IAAI,IAAI,GAAS,CAAC;IACd,CAAC,EAAE,CAAC;CACP,CAAC,CAAA;AACF,IAAI,IAAI,GAAa,EAAE,CAAC;AACxB,IAAI,IAAI,GAAe,cAAa,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AACxD,IAAI,IAAI,GAAwB,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAClE,IAAI,IAAI,GAAmC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAChF,IAAI,IAAI,GAGJ,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9B,IAAI,IAAI,GAAqC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,IAAI,IAAI,GAAe,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC;AAC/B,IAAI,KAAK,GAAW,CAAO,CAAC,EAAE,CAAC,EAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5C,IAAI,KAAK,GAAwC,CAAC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,IAAI,KAAK,GAAS;IACd,GAAG,EAAQ,CAAC,EAAE,CAAC;CAClB,CAAA;AACD,IAAI,KAAK,GAAS,CAAC;IACf,CAAC,EAAE,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC,CAAA;AACF,IAAI,KAAK,GAAS,CAAC;IACf,CAAC,EAAE,EAAE;CACR,CAAC,CAAA;AAEF,qCAAqC;AACrC;IAEIC;QACIC,IAAIA,CAACA,GAAGA,GAAGA,UAASA,CAACA,EAAEA,CAACA;YACpB,MAAM,CAAC,CAAC,CAAC;QACb,CAAC,CAAAA;IACLA,CAACA;IACLD,WAACA;AAADA,CAACA,AAPD,IAOC;AAED,sCAAsC;AACtC,IAAO,IAAI,CAKV;AALD,WAAO,IAAI,EAAC,CAAC;IAETE,QAAGA,GAAGA,UAASA,CAACA,EAAEA,CAACA;QACf,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,CAAAA;AACLA,CAACA,EALM,IAAI,KAAJ,IAAI,QAKV;AAED,+BAA+B;AAC/B,IAAI,IAAyB,CAAC;AAC9B,IAAI,GAAwB,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAE9D,kCAAkC;AAClC,IAAI,IAAY,CAAC;AACjB,IAAI,CAAC,CAAC,CAAC,GAAS,CAAC,EAAC,CAAC,EAAE,CAAC,EAAC,CAAC,CAAC;AAuBzB,IAAI,KAAK,GAkBS,CAAC,EAAE,CAAC,CAAC;AAEvB,KAAK,CAAC,EAAE,GAAG,CAAC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AACtC,KAAK,CAAC,EAAE,GAAS,CAAC;IACd,CAAC,EAAE,CAAC;CACP,CAAC,CAAC;AACH,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;AACd,KAAK,CAAC,EAAE,GAAG,cAAa,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAC5C,KAAK,CAAC,EAAE,GAAG,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAC7C,KAAK,CAAC,EAAE,GAAG,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAChD,KAAK,CAAC,EAAE,GAAG,UAAS,CAAS,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC;AAE5C,KAAK,CAAC,EAAE,GAAG,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrC,KAAK,CAAC,EAAE,GAAG,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC;AACnB,KAAK,CAAC,GAAG,GAAG,CAAO,CAAC,EAAE,CAAC,EAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AACpC,KAAK,CAAC,GAAG,GAAG,CAAC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,CAAC,GAAG,GAAG;IACR,GAAG,EAAQ,CAAC,EAAE,CAAC;CAClB,CAAA;AACD,KAAK,CAAC,GAAG,GAAS,CAAC;IACf,CAAC,EAAE,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC,CAAA;AACF,KAAK,CAAC,GAAG,GAAS,CAAC;IACf,CAAC,EAAE,EAAE;CACR,CAAC,CAAA;AACF,yBAAyB;AACzB,cAAc,CAAsB,IAAGC,CAACA;AAAA,CAAC;AACzC,IAAI,CAAC,UAAS,CAAC;IACX,MAAM,CAAO,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAEH,4BAA4B;AAC5B,IAAI,KAAK,GAA8B,cAAa,MAAM,CAAC,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC;AAE/F,0BAA0B;AAC1B;IAAcC,eAAYA,CAAsBA;IAAIC,CAACA;IAACD,YAACA;AAADA,CAACA,AAAvD,IAAuD;AAAA,CAAC;AACxD,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AAErD,qCAAqC;AACrC,IAAI,KAAK,GAA2B,CAAC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AAC/D,IAAI,KAAK,GAAU,CAAC;IAChB,CAAC,EAAE,CAAC;CACP,CAAC,CAAC;AACH,IAAI,KAAK,GAAc,EAAE,CAAC;AAC1B,IAAI,KAAK,GAAgB,cAAa,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAC1D,IAAI,KAAK,GAAyB,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AACpE,IAAI,KAAK,GAAoC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAClF,IAAI,KAAK,GAGN,UAAS,CAAQ,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC;AAEnC,IAAI,KAAK,GAAsC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzE,IAAI,KAAK,GAAgB,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC;AACjC,IAAI,MAAM,GAAY,CAAO,CAAC,EAAE,CAAC,EAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9C,IAAI,MAAM,GAAyC,CAAC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClF,IAAI,MAAM,GAAU;IAChB,GAAG,EAAQ,CAAC,EAAE,CAAC;CAClB,CAAA;AACD,IAAI,MAAM,GAAU,CAAC;IACjB,CAAC,EAAE,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC,CAAA;AACF,IAAI,MAAM,GAAU,CAAC;IACjB,CAAC,EAAE,EAAE;CACR,CAAC,CAAA;AAOF,aAAa,CAAC,EAAC,CAAC,IAAIE,MAAMA,CAACA,CAACA,GAACA,CAACA,CAACA,CAACA,CAACA;AAEjC,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAcnB,eAAe,CAAC,EAAE,CAAC;IACfC,IAAIA,CAACA,CAACA,GAAGA,CAACA,CAACA;IACXA,IAAIA,CAACA,CAACA,GAAGA,CAACA,CAACA;IAEXA,MAAMA,CAACA,IAAIA,CAACA;AAChBA,CAACA;AAED,KAAK,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE/B,KAAK,CAAC,SAAS,CAAC,GAAG,GAAG,UAAS,EAAE,EAAE,EAAE;IACjC,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC;AAEF,KAAK,CAAC,SAAS,GAAG;IACd,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,GAAG,EAAE,UAAS,EAAE,EAAE,EAAE;QAChB,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAC;AAIF,IAAI,CAAC,GAAM,EAAG,CAAC"} \ No newline at end of file +{"version":3,"file":"contextualTyping.js","sourceRoot":"","sources":["contextualTyping.ts"],"names":[],"mappings":"AAYA,sCAAsC;AACtC;IAAA;QACI,QAAG,GAAqC,UAAS,CAAC;YAC9C,MAAM,CAAC,CAAC,CAAC;QACb,CAAC,CAAA;IACL,CAAC;IAAD,WAAC;AAAD,CAAC,AAJD,IAIC;AAED,uCAAuC;AACvC,IAAO,IAAI,CAIV;AAJD,WAAO,IAAI,EAAC,CAAC;IACE,QAAG,GAAqC,UAAS,CAAC;QACzD,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,CAAA;AACL,CAAC,EAJM,IAAI,KAAJ,IAAI,QAIV;AAED,gCAAgC;AAChC,IAAI,IAAI,GAA0B,CAAC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AAC7D,IAAI,IAAI,GAAS,CAAC;IACd,CAAC,EAAE,CAAC;CACP,CAAC,CAAA;AACF,IAAI,IAAI,GAAa,EAAE,CAAC;AACxB,IAAI,IAAI,GAAe,cAAa,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AACxD,IAAI,IAAI,GAAwB,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAClE,IAAI,IAAI,GAAmC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAChF,IAAI,IAAI,GAGJ,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9B,IAAI,IAAI,GAAqC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,IAAI,IAAI,GAAe,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC;AAC/B,IAAI,KAAK,GAAW,CAAO,CAAC,EAAE,CAAC,EAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5C,IAAI,KAAK,GAAwC,CAAC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,IAAI,KAAK,GAAS;IACd,GAAG,EAAQ,CAAC,EAAE,CAAC;CAClB,CAAA;AACD,IAAI,KAAK,GAAS,CAAC;IACf,CAAC,EAAE,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC,CAAA;AACF,IAAI,KAAK,GAAS,CAAC;IACf,CAAC,EAAE,EAAE;CACR,CAAC,CAAA;AAEF,qCAAqC;AACrC;IAEI;QACI,IAAI,CAAC,GAAG,GAAG,UAAS,CAAC,EAAE,CAAC;YACpB,MAAM,CAAC,CAAC,CAAC;QACb,CAAC,CAAA;IACL,CAAC;IACL,WAAC;AAAD,CAAC,AAPD,IAOC;AAED,sCAAsC;AACtC,IAAO,IAAI,CAKV;AALD,WAAO,IAAI,EAAC,CAAC;IAET,QAAG,GAAG,UAAS,CAAC,EAAE,CAAC;QACf,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,CAAA;AACL,CAAC,EALM,IAAI,KAAJ,IAAI,QAKV;AAED,+BAA+B;AAC/B,IAAI,IAAyB,CAAC;AAC9B,IAAI,GAAwB,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAE9D,kCAAkC;AAClC,IAAI,IAAY,CAAC;AACjB,IAAI,CAAC,CAAC,CAAC,GAAS,CAAC,EAAC,CAAC,EAAE,CAAC,EAAC,CAAC,CAAC;AAuBzB,IAAI,KAAK,GAkBS,CAAC,EAAE,CAAC,CAAC;AAEvB,KAAK,CAAC,EAAE,GAAG,CAAC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AACtC,KAAK,CAAC,EAAE,GAAS,CAAC;IACd,CAAC,EAAE,CAAC;CACP,CAAC,CAAC;AACH,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;AACd,KAAK,CAAC,EAAE,GAAG,cAAa,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAC5C,KAAK,CAAC,EAAE,GAAG,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAC7C,KAAK,CAAC,EAAE,GAAG,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAChD,KAAK,CAAC,EAAE,GAAG,UAAS,CAAS,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC;AAE5C,KAAK,CAAC,EAAE,GAAG,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrC,KAAK,CAAC,EAAE,GAAG,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC;AACnB,KAAK,CAAC,GAAG,GAAG,CAAO,CAAC,EAAE,CAAC,EAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AACpC,KAAK,CAAC,GAAG,GAAG,CAAC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,CAAC,GAAG,GAAG;IACR,GAAG,EAAQ,CAAC,EAAE,CAAC;CAClB,CAAA;AACD,KAAK,CAAC,GAAG,GAAS,CAAC;IACf,CAAC,EAAE,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC,CAAA;AACF,KAAK,CAAC,GAAG,GAAS,CAAC;IACf,CAAC,EAAE,EAAE;CACR,CAAC,CAAA;AACF,yBAAyB;AACzB,cAAc,CAAsB,IAAG,CAAC;AAAA,CAAC;AACzC,IAAI,CAAC,UAAS,CAAC;IACX,MAAM,CAAO,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAEH,4BAA4B;AAC5B,IAAI,KAAK,GAA8B,cAAa,MAAM,CAAC,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC;AAE/F,0BAA0B;AAC1B;IAAc,eAAY,CAAsB;IAAI,CAAC;IAAC,YAAC;AAAD,CAAC,AAAvD,IAAuD;AAAA,CAAC;AACxD,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AAErD,qCAAqC;AACrC,IAAI,KAAK,GAA2B,CAAC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;AAC/D,IAAI,KAAK,GAAU,CAAC;IAChB,CAAC,EAAE,CAAC;CACP,CAAC,CAAC;AACH,IAAI,KAAK,GAAc,EAAE,CAAC;AAC1B,IAAI,KAAK,GAAgB,cAAa,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAC1D,IAAI,KAAK,GAAyB,UAAS,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AACpE,IAAI,KAAK,GAAoC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC;AAClF,IAAI,KAAK,GAGN,UAAS,CAAQ,IAAI,MAAM,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC;AAEnC,IAAI,KAAK,GAAsC,UAAS,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzE,IAAI,KAAK,GAAgB,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC;AACjC,IAAI,MAAM,GAAY,CAAO,CAAC,EAAE,CAAC,EAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9C,IAAI,MAAM,GAAyC,CAAC,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClF,IAAI,MAAM,GAAU;IAChB,GAAG,EAAQ,CAAC,EAAE,CAAC;CAClB,CAAA;AACD,IAAI,MAAM,GAAU,CAAC;IACjB,CAAC,EAAE,UAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC,CAAA;AACF,IAAI,MAAM,GAAU,CAAC;IACjB,CAAC,EAAE,EAAE;CACR,CAAC,CAAA;AAOF,aAAa,CAAC,EAAC,CAAC,IAAI,MAAM,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC,CAAC;AAEjC,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAcnB,eAAe,CAAC,EAAE,CAAC;IACf,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IAEX,MAAM,CAAC,IAAI,CAAC;AAChB,CAAC;AAED,KAAK,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE/B,KAAK,CAAC,SAAS,CAAC,GAAG,GAAG,UAAS,EAAE,EAAE,EAAE;IACjC,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC;AAEF,KAAK,CAAC,SAAS,GAAG;IACd,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,GAAG,EAAE,UAAS,EAAE,EAAE,EAAE;QAChB,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAC;AAIF,IAAI,CAAC,GAAM,EAAG,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/contextualTyping.sourcemap.txt b/tests/baselines/reference/contextualTyping.sourcemap.txt index 72419ef846a..3557299d96a 100644 --- a/tests/baselines/reference/contextualTyping.sourcemap.txt +++ b/tests/baselines/reference/contextualTyping.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:contextualTyping.ts 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(3, 5) Source(14, 1) + SourceIndex(0) name (C1T5) +1->Emitted(3, 5) Source(14, 1) + SourceIndex(0) --- >>> this.foo = function (i) { 1->^^^^^^^^ @@ -53,11 +53,11 @@ sourceFile:contextualTyping.ts 3 > : (i: number, s: string) => number = 4 > function( 5 > i -1->Emitted(4, 9) Source(15, 5) + SourceIndex(0) name (C1T5.constructor) -2 >Emitted(4, 17) Source(15, 8) + SourceIndex(0) name (C1T5.constructor) -3 >Emitted(4, 20) Source(15, 45) + SourceIndex(0) name (C1T5.constructor) -4 >Emitted(4, 30) Source(15, 54) + SourceIndex(0) name (C1T5.constructor) -5 >Emitted(4, 31) Source(15, 55) + SourceIndex(0) name (C1T5.constructor) +1->Emitted(4, 9) Source(15, 5) + SourceIndex(0) +2 >Emitted(4, 17) Source(15, 8) + SourceIndex(0) +3 >Emitted(4, 20) Source(15, 45) + SourceIndex(0) +4 >Emitted(4, 30) Source(15, 54) + SourceIndex(0) +5 >Emitted(4, 31) Source(15, 55) + SourceIndex(0) --- >>> return i; 1 >^^^^^^^^^^^^ @@ -87,7 +87,7 @@ sourceFile:contextualTyping.ts 3 > 1 >Emitted(6, 9) Source(17, 5) + SourceIndex(0) 2 >Emitted(6, 10) Source(17, 6) + SourceIndex(0) -3 >Emitted(6, 11) Source(17, 6) + SourceIndex(0) name (C1T5.constructor) +3 >Emitted(6, 11) Source(17, 6) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -96,18 +96,18 @@ sourceFile:contextualTyping.ts 1 > > 2 > } -1 >Emitted(7, 5) Source(18, 1) + SourceIndex(0) name (C1T5.constructor) -2 >Emitted(7, 6) Source(18, 2) + SourceIndex(0) name (C1T5.constructor) +1 >Emitted(7, 5) Source(18, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(18, 2) + SourceIndex(0) --- >>> return C1T5; 1->^^^^ 2 > ^^^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(18, 1) + SourceIndex(0) name (C1T5) -2 >Emitted(8, 16) Source(18, 2) + SourceIndex(0) name (C1T5) +1->Emitted(8, 5) Source(18, 1) + SourceIndex(0) +2 >Emitted(8, 16) Source(18, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -121,8 +121,8 @@ sourceFile:contextualTyping.ts > return i; > } > } -1 >Emitted(9, 1) Source(18, 1) + SourceIndex(0) name (C1T5) -2 >Emitted(9, 2) Source(18, 2) + SourceIndex(0) name (C1T5) +1 >Emitted(9, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(18, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(14, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(18, 2) + SourceIndex(0) --- @@ -186,11 +186,11 @@ sourceFile:contextualTyping.ts 3 > : (i: number, s: string) => number = 4 > function( 5 > i -1->Emitted(13, 5) Source(22, 16) + SourceIndex(0) name (C2T5) -2 >Emitted(13, 13) Source(22, 19) + SourceIndex(0) name (C2T5) -3 >Emitted(13, 16) Source(22, 56) + SourceIndex(0) name (C2T5) -4 >Emitted(13, 26) Source(22, 65) + SourceIndex(0) name (C2T5) -5 >Emitted(13, 27) Source(22, 66) + SourceIndex(0) name (C2T5) +1->Emitted(13, 5) Source(22, 16) + SourceIndex(0) +2 >Emitted(13, 13) Source(22, 19) + SourceIndex(0) +3 >Emitted(13, 16) Source(22, 56) + SourceIndex(0) +4 >Emitted(13, 26) Source(22, 65) + SourceIndex(0) +5 >Emitted(13, 27) Source(22, 66) + SourceIndex(0) --- >>> return i; 1 >^^^^^^^^ @@ -221,7 +221,7 @@ sourceFile:contextualTyping.ts 3 > 1 >Emitted(15, 5) Source(24, 5) + SourceIndex(0) 2 >Emitted(15, 6) Source(24, 6) + SourceIndex(0) -3 >Emitted(15, 7) Source(24, 6) + SourceIndex(0) name (C2T5) +3 >Emitted(15, 7) Source(24, 6) + SourceIndex(0) --- >>>})(C2T5 || (C2T5 = {})); 1-> @@ -244,8 +244,8 @@ sourceFile:contextualTyping.ts > return i; > } > } -1->Emitted(16, 1) Source(25, 1) + SourceIndex(0) name (C2T5) -2 >Emitted(16, 2) Source(25, 2) + SourceIndex(0) name (C2T5) +1->Emitted(16, 1) Source(25, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(25, 2) + SourceIndex(0) 3 >Emitted(16, 4) Source(21, 8) + SourceIndex(0) 4 >Emitted(16, 8) Source(21, 12) + SourceIndex(0) 5 >Emitted(16, 13) Source(21, 8) + SourceIndex(0) @@ -962,7 +962,7 @@ sourceFile:contextualTyping.ts 1->class C4T5 { > foo: (i: number, s: string) => string; > -1->Emitted(42, 5) Source(58, 5) + SourceIndex(0) name (C4T5) +1->Emitted(42, 5) Source(58, 5) + SourceIndex(0) --- >>> this.foo = function (i, s) { 1->^^^^^^^^ @@ -984,15 +984,15 @@ sourceFile:contextualTyping.ts 7 > i 8 > , 9 > s -1->Emitted(43, 9) Source(59, 9) + SourceIndex(0) name (C4T5.constructor) -2 >Emitted(43, 13) Source(59, 13) + SourceIndex(0) name (C4T5.constructor) -3 >Emitted(43, 14) Source(59, 14) + SourceIndex(0) name (C4T5.constructor) -4 >Emitted(43, 17) Source(59, 17) + SourceIndex(0) name (C4T5.constructor) -5 >Emitted(43, 20) Source(59, 20) + SourceIndex(0) name (C4T5.constructor) -6 >Emitted(43, 30) Source(59, 29) + SourceIndex(0) name (C4T5.constructor) -7 >Emitted(43, 31) Source(59, 30) + SourceIndex(0) name (C4T5.constructor) -8 >Emitted(43, 33) Source(59, 32) + SourceIndex(0) name (C4T5.constructor) -9 >Emitted(43, 34) Source(59, 33) + SourceIndex(0) name (C4T5.constructor) +1->Emitted(43, 9) Source(59, 9) + SourceIndex(0) +2 >Emitted(43, 13) Source(59, 13) + SourceIndex(0) +3 >Emitted(43, 14) Source(59, 14) + SourceIndex(0) +4 >Emitted(43, 17) Source(59, 17) + SourceIndex(0) +5 >Emitted(43, 20) Source(59, 20) + SourceIndex(0) +6 >Emitted(43, 30) Source(59, 29) + SourceIndex(0) +7 >Emitted(43, 31) Source(59, 30) + SourceIndex(0) +8 >Emitted(43, 33) Source(59, 32) + SourceIndex(0) +9 >Emitted(43, 34) Source(59, 33) + SourceIndex(0) --- >>> return s; 1 >^^^^^^^^^^^^ @@ -1022,7 +1022,7 @@ sourceFile:contextualTyping.ts 3 > 1 >Emitted(45, 9) Source(61, 9) + SourceIndex(0) 2 >Emitted(45, 10) Source(61, 10) + SourceIndex(0) -3 >Emitted(45, 11) Source(61, 10) + SourceIndex(0) name (C4T5.constructor) +3 >Emitted(45, 11) Source(61, 10) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -1031,8 +1031,8 @@ sourceFile:contextualTyping.ts 1 > > 2 > } -1 >Emitted(46, 5) Source(62, 5) + SourceIndex(0) name (C4T5.constructor) -2 >Emitted(46, 6) Source(62, 6) + SourceIndex(0) name (C4T5.constructor) +1 >Emitted(46, 5) Source(62, 5) + SourceIndex(0) +2 >Emitted(46, 6) Source(62, 6) + SourceIndex(0) --- >>> return C4T5; 1->^^^^ @@ -1040,10 +1040,10 @@ sourceFile:contextualTyping.ts 1-> > 2 > } -1->Emitted(47, 5) Source(63, 1) + SourceIndex(0) name (C4T5) -2 >Emitted(47, 16) Source(63, 2) + SourceIndex(0) name (C4T5) +1->Emitted(47, 5) Source(63, 1) + SourceIndex(0) +2 >Emitted(47, 16) Source(63, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -1060,8 +1060,8 @@ sourceFile:contextualTyping.ts > } > } > } -1 >Emitted(48, 1) Source(63, 1) + SourceIndex(0) name (C4T5) -2 >Emitted(48, 2) Source(63, 2) + SourceIndex(0) name (C4T5) +1 >Emitted(48, 1) Source(63, 1) + SourceIndex(0) +2 >Emitted(48, 2) Source(63, 2) + SourceIndex(0) 3 >Emitted(48, 2) Source(56, 1) + SourceIndex(0) 4 >Emitted(48, 6) Source(63, 2) + SourceIndex(0) --- @@ -1131,13 +1131,13 @@ sourceFile:contextualTyping.ts 5 > i 6 > , 7 > s -1->Emitted(52, 5) Source(68, 5) + SourceIndex(0) name (C5T5) -2 >Emitted(52, 13) Source(68, 8) + SourceIndex(0) name (C5T5) -3 >Emitted(52, 16) Source(68, 11) + SourceIndex(0) name (C5T5) -4 >Emitted(52, 26) Source(68, 20) + SourceIndex(0) name (C5T5) -5 >Emitted(52, 27) Source(68, 21) + SourceIndex(0) name (C5T5) -6 >Emitted(52, 29) Source(68, 23) + SourceIndex(0) name (C5T5) -7 >Emitted(52, 30) Source(68, 24) + SourceIndex(0) name (C5T5) +1->Emitted(52, 5) Source(68, 5) + SourceIndex(0) +2 >Emitted(52, 13) Source(68, 8) + SourceIndex(0) +3 >Emitted(52, 16) Source(68, 11) + SourceIndex(0) +4 >Emitted(52, 26) Source(68, 20) + SourceIndex(0) +5 >Emitted(52, 27) Source(68, 21) + SourceIndex(0) +6 >Emitted(52, 29) Source(68, 23) + SourceIndex(0) +7 >Emitted(52, 30) Source(68, 24) + SourceIndex(0) --- >>> return s; 1 >^^^^^^^^ @@ -1168,7 +1168,7 @@ sourceFile:contextualTyping.ts 3 > 1 >Emitted(54, 5) Source(70, 5) + SourceIndex(0) 2 >Emitted(54, 6) Source(70, 6) + SourceIndex(0) -3 >Emitted(54, 7) Source(70, 6) + SourceIndex(0) name (C5T5) +3 >Emitted(54, 7) Source(70, 6) + SourceIndex(0) --- >>>})(C5T5 || (C5T5 = {})); 1-> @@ -1192,8 +1192,8 @@ sourceFile:contextualTyping.ts > return s; > } > } -1->Emitted(55, 1) Source(71, 1) + SourceIndex(0) name (C5T5) -2 >Emitted(55, 2) Source(71, 2) + SourceIndex(0) name (C5T5) +1->Emitted(55, 1) Source(71, 1) + SourceIndex(0) +2 >Emitted(55, 2) Source(71, 2) + SourceIndex(0) 3 >Emitted(55, 4) Source(66, 8) + SourceIndex(0) 4 >Emitted(55, 8) Source(66, 12) + SourceIndex(0) 5 >Emitted(55, 13) Source(66, 8) + SourceIndex(0) @@ -2153,8 +2153,8 @@ sourceFile:contextualTyping.ts 1 >Emitted(86, 1) Source(146, 1) + SourceIndex(0) 2 >Emitted(86, 15) Source(146, 15) + SourceIndex(0) 3 >Emitted(86, 16) Source(146, 37) + SourceIndex(0) -4 >Emitted(86, 20) Source(146, 40) + SourceIndex(0) name (c9t5) -5 >Emitted(86, 21) Source(146, 41) + SourceIndex(0) name (c9t5) +4 >Emitted(86, 20) Source(146, 40) + SourceIndex(0) +5 >Emitted(86, 21) Source(146, 41) + SourceIndex(0) --- >>>; 1 > @@ -2329,9 +2329,9 @@ sourceFile:contextualTyping.ts 1->class C11t5 { 2 > constructor( 3 > f: (n: number) => IFoo -1->Emitted(95, 5) Source(155, 15) + SourceIndex(0) name (C11t5) -2 >Emitted(95, 20) Source(155, 27) + SourceIndex(0) name (C11t5) -3 >Emitted(95, 21) Source(155, 49) + SourceIndex(0) name (C11t5) +1->Emitted(95, 5) Source(155, 15) + SourceIndex(0) +2 >Emitted(95, 20) Source(155, 27) + SourceIndex(0) +3 >Emitted(95, 21) Source(155, 49) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -2339,18 +2339,18 @@ sourceFile:contextualTyping.ts 3 > ^^^^^^^^^^^^^-> 1 >) { 2 > } -1 >Emitted(96, 5) Source(155, 53) + SourceIndex(0) name (C11t5.constructor) -2 >Emitted(96, 6) Source(155, 54) + SourceIndex(0) name (C11t5.constructor) +1 >Emitted(96, 5) Source(155, 53) + SourceIndex(0) +2 >Emitted(96, 6) Source(155, 54) + SourceIndex(0) --- >>> return C11t5; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(97, 5) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(97, 17) Source(155, 56) + SourceIndex(0) name (C11t5) +1->Emitted(97, 5) Source(155, 55) + SourceIndex(0) +2 >Emitted(97, 17) Source(155, 56) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -2359,8 +2359,8 @@ sourceFile:contextualTyping.ts 2 >} 3 > 4 > class C11t5 { constructor(f: (n: number) => IFoo) { } } -1 >Emitted(98, 1) Source(155, 55) + SourceIndex(0) name (C11t5) -2 >Emitted(98, 2) Source(155, 56) + SourceIndex(0) name (C11t5) +1 >Emitted(98, 1) Source(155, 55) + SourceIndex(0) +2 >Emitted(98, 2) Source(155, 56) + SourceIndex(0) 3 >Emitted(98, 2) Source(155, 1) + SourceIndex(0) 4 >Emitted(98, 6) Source(155, 56) + SourceIndex(0) --- @@ -3164,15 +3164,15 @@ sourceFile:contextualTyping.ts 3 >Emitted(124, 15) Source(191, 15) + SourceIndex(0) 4 >Emitted(124, 17) Source(191, 16) + SourceIndex(0) 5 >Emitted(124, 18) Source(191, 17) + SourceIndex(0) -6 >Emitted(124, 22) Source(191, 21) + SourceIndex(0) name (EF1) -7 >Emitted(124, 28) Source(191, 27) + SourceIndex(0) name (EF1) -8 >Emitted(124, 29) Source(191, 28) + SourceIndex(0) name (EF1) -9 >Emitted(124, 30) Source(191, 29) + SourceIndex(0) name (EF1) -10>Emitted(124, 33) Source(191, 30) + SourceIndex(0) name (EF1) -11>Emitted(124, 34) Source(191, 31) + SourceIndex(0) name (EF1) -12>Emitted(124, 35) Source(191, 32) + SourceIndex(0) name (EF1) -13>Emitted(124, 36) Source(191, 33) + SourceIndex(0) name (EF1) -14>Emitted(124, 37) Source(191, 34) + SourceIndex(0) name (EF1) +6 >Emitted(124, 22) Source(191, 21) + SourceIndex(0) +7 >Emitted(124, 28) Source(191, 27) + SourceIndex(0) +8 >Emitted(124, 29) Source(191, 28) + SourceIndex(0) +9 >Emitted(124, 30) Source(191, 29) + SourceIndex(0) +10>Emitted(124, 33) Source(191, 30) + SourceIndex(0) +11>Emitted(124, 34) Source(191, 31) + SourceIndex(0) +12>Emitted(124, 35) Source(191, 32) + SourceIndex(0) +13>Emitted(124, 36) Source(191, 33) + SourceIndex(0) +14>Emitted(124, 37) Source(191, 34) + SourceIndex(0) --- >>>var efv = EF1(1, 2); 1 > @@ -3260,13 +3260,13 @@ sourceFile:contextualTyping.ts 5 > = 6 > x 7 > ; -1 >Emitted(127, 5) Source(208, 5) + SourceIndex(0) name (Point) -2 >Emitted(127, 9) Source(208, 9) + SourceIndex(0) name (Point) -3 >Emitted(127, 10) Source(208, 10) + SourceIndex(0) name (Point) -4 >Emitted(127, 11) Source(208, 11) + SourceIndex(0) name (Point) -5 >Emitted(127, 14) Source(208, 14) + SourceIndex(0) name (Point) -6 >Emitted(127, 15) Source(208, 15) + SourceIndex(0) name (Point) -7 >Emitted(127, 16) Source(208, 16) + SourceIndex(0) name (Point) +1 >Emitted(127, 5) Source(208, 5) + SourceIndex(0) +2 >Emitted(127, 9) Source(208, 9) + SourceIndex(0) +3 >Emitted(127, 10) Source(208, 10) + SourceIndex(0) +4 >Emitted(127, 11) Source(208, 11) + SourceIndex(0) +5 >Emitted(127, 14) Source(208, 14) + SourceIndex(0) +6 >Emitted(127, 15) Source(208, 15) + SourceIndex(0) +7 >Emitted(127, 16) Source(208, 16) + SourceIndex(0) --- >>> this.y = y; 1->^^^^ @@ -3285,13 +3285,13 @@ sourceFile:contextualTyping.ts 5 > = 6 > y 7 > ; -1->Emitted(128, 5) Source(209, 5) + SourceIndex(0) name (Point) -2 >Emitted(128, 9) Source(209, 9) + SourceIndex(0) name (Point) -3 >Emitted(128, 10) Source(209, 10) + SourceIndex(0) name (Point) -4 >Emitted(128, 11) Source(209, 11) + SourceIndex(0) name (Point) -5 >Emitted(128, 14) Source(209, 14) + SourceIndex(0) name (Point) -6 >Emitted(128, 15) Source(209, 15) + SourceIndex(0) name (Point) -7 >Emitted(128, 16) Source(209, 16) + SourceIndex(0) name (Point) +1->Emitted(128, 5) Source(209, 5) + SourceIndex(0) +2 >Emitted(128, 9) Source(209, 9) + SourceIndex(0) +3 >Emitted(128, 10) Source(209, 10) + SourceIndex(0) +4 >Emitted(128, 11) Source(209, 11) + SourceIndex(0) +5 >Emitted(128, 14) Source(209, 14) + SourceIndex(0) +6 >Emitted(128, 15) Source(209, 15) + SourceIndex(0) +7 >Emitted(128, 16) Source(209, 16) + SourceIndex(0) --- >>> return this; 1->^^^^ @@ -3306,11 +3306,11 @@ sourceFile:contextualTyping.ts 3 > 4 > this 5 > ; -1->Emitted(129, 5) Source(211, 5) + SourceIndex(0) name (Point) -2 >Emitted(129, 11) Source(211, 11) + SourceIndex(0) name (Point) -3 >Emitted(129, 12) Source(211, 12) + SourceIndex(0) name (Point) -4 >Emitted(129, 16) Source(211, 16) + SourceIndex(0) name (Point) -5 >Emitted(129, 17) Source(211, 17) + SourceIndex(0) name (Point) +1->Emitted(129, 5) Source(211, 5) + SourceIndex(0) +2 >Emitted(129, 11) Source(211, 11) + SourceIndex(0) +3 >Emitted(129, 12) Source(211, 12) + SourceIndex(0) +4 >Emitted(129, 16) Source(211, 16) + SourceIndex(0) +5 >Emitted(129, 17) Source(211, 17) + SourceIndex(0) --- >>>} 1 > @@ -3319,8 +3319,8 @@ sourceFile:contextualTyping.ts 1 > > 2 >} -1 >Emitted(130, 1) Source(212, 1) + SourceIndex(0) name (Point) -2 >Emitted(130, 2) Source(212, 2) + SourceIndex(0) name (Point) +1 >Emitted(130, 1) Source(212, 1) + SourceIndex(0) +2 >Emitted(130, 2) Source(212, 2) + SourceIndex(0) --- >>>Point.origin = new Point(0, 0); 1-> diff --git a/tests/baselines/reference/contextualTyping10.js b/tests/baselines/reference/contextualTyping10.js index 08a2172b69a..cd324b384fd 100644 --- a/tests/baselines/reference/contextualTyping10.js +++ b/tests/baselines/reference/contextualTyping10.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = [{ id: 1 }, { id: 2 }]; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTyping11.js b/tests/baselines/reference/contextualTyping11.js index a7ec3815fae..9abf332c29e 100644 --- a/tests/baselines/reference/contextualTyping11.js +++ b/tests/baselines/reference/contextualTyping11.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = [({})]; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTyping12.js b/tests/baselines/reference/contextualTyping12.js index c41ccbed990..c9ce3e2f964 100644 --- a/tests/baselines/reference/contextualTyping12.js +++ b/tests/baselines/reference/contextualTyping12.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = [{ id: 1 }, { id: 2, name: "foo" }]; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTyping14.js b/tests/baselines/reference/contextualTyping14.js index 5bae8c948a2..f29e077eaa2 100644 --- a/tests/baselines/reference/contextualTyping14.js +++ b/tests/baselines/reference/contextualTyping14.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = function (a) { return a; }; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTyping15.js b/tests/baselines/reference/contextualTyping15.js index 250076ec4d5..30df3d3d428 100644 --- a/tests/baselines/reference/contextualTyping15.js +++ b/tests/baselines/reference/contextualTyping15.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = function () { return 1; }; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTyping3.js b/tests/baselines/reference/contextualTyping3.js index 19d71f4ca71..2fc0f330b13 100644 --- a/tests/baselines/reference/contextualTyping3.js +++ b/tests/baselines/reference/contextualTyping3.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = { id: 5 }; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTyping4.js b/tests/baselines/reference/contextualTyping4.js index af79e3732f2..36f7c61429f 100644 --- a/tests/baselines/reference/contextualTyping4.js +++ b/tests/baselines/reference/contextualTyping4.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = { id: 5, name: "foo" }; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTyping5.js b/tests/baselines/reference/contextualTyping5.js index 3fcc1530f68..f5e68e93b22 100644 --- a/tests/baselines/reference/contextualTyping5.js +++ b/tests/baselines/reference/contextualTyping5.js @@ -7,4 +7,4 @@ var foo = (function () { this.bar = {}; } return foo; -})(); +}()); diff --git a/tests/baselines/reference/contextualTypingArrayOfLambdas.js b/tests/baselines/reference/contextualTypingArrayOfLambdas.js index 59da607079b..5775e0f064d 100644 --- a/tests/baselines/reference/contextualTypingArrayOfLambdas.js +++ b/tests/baselines/reference/contextualTypingArrayOfLambdas.js @@ -24,19 +24,19 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var xs = [function (x) { }, function (x) { }, function (x) { }]; diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression.js b/tests/baselines/reference/contextualTypingOfConditionalExpression.js index a0f8ea0a4cf..29bb48e7970 100644 --- a/tests/baselines/reference/contextualTypingOfConditionalExpression.js +++ b/tests/baselines/reference/contextualTypingOfConditionalExpression.js @@ -25,19 +25,19 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var x2 = true ? function (a) { return a.foo; } : function (b) { return b.foo; }; diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js index 2833ed37d4b..1d84d74e590 100644 --- a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js +++ b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js @@ -22,19 +22,19 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var x2 = true ? function (a) { return a.foo; } : function (b) { }; diff --git a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration01.js b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration01.js index edbe8c4d338..11081be4fb3 100644 --- a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration01.js +++ b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration01.js @@ -58,7 +58,7 @@ function getFoo1() { arg.strProp = "hello"; }; return class_1; - })(); + }()); } function getFoo2() { return (function () { @@ -71,7 +71,7 @@ function getFoo2() { arg.strProp = "hello"; }; return class_2; - })(); + }()); } function getFoo3() { return (function () { @@ -84,5 +84,5 @@ function getFoo3() { arg.strProp = "hello"; }; return class_3; - })(); + }()); } diff --git a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js index 43e9134689f..ecd6e3c7dde 100644 --- a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js +++ b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js @@ -62,7 +62,7 @@ function getFoo1() { arg.strProp = "hello"; }; return class_1; - })(); + }()); } function getFoo2() { return (function () { @@ -75,7 +75,7 @@ function getFoo2() { }; } return class_2; - })(); + }()); } function getFoo3() { return (function () { @@ -88,5 +88,5 @@ function getFoo3() { }; } return class_3; - })(); + }()); } diff --git a/tests/baselines/reference/contextuallyTypingOrOperator3.errors.txt b/tests/baselines/reference/contextuallyTypingOrOperator3.errors.txt deleted file mode 100644 index ca7385b9c29..00000000000 --- a/tests/baselines/reference/contextuallyTypingOrOperator3.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/compiler/contextuallyTypingOrOperator3.ts(1,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/contextuallyTypingOrOperator3.ts (1 errors) ==== - function foo(u: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var x3: U = u || u; - } \ No newline at end of file diff --git a/tests/baselines/reference/contextuallyTypingOrOperator3.symbols b/tests/baselines/reference/contextuallyTypingOrOperator3.symbols new file mode 100644 index 00000000000..2f8ffb6234c --- /dev/null +++ b/tests/baselines/reference/contextuallyTypingOrOperator3.symbols @@ -0,0 +1,15 @@ +=== tests/cases/compiler/contextuallyTypingOrOperator3.ts === +function foo(u: U) { +>foo : Symbol(foo, Decl(contextuallyTypingOrOperator3.ts, 0, 0)) +>T : Symbol(T, Decl(contextuallyTypingOrOperator3.ts, 0, 13)) +>U : Symbol(U, Decl(contextuallyTypingOrOperator3.ts, 0, 15)) +>T : Symbol(T, Decl(contextuallyTypingOrOperator3.ts, 0, 13)) +>u : Symbol(u, Decl(contextuallyTypingOrOperator3.ts, 0, 29)) +>U : Symbol(U, Decl(contextuallyTypingOrOperator3.ts, 0, 15)) + + var x3: U = u || u; +>x3 : Symbol(x3, Decl(contextuallyTypingOrOperator3.ts, 1, 7)) +>U : Symbol(U, Decl(contextuallyTypingOrOperator3.ts, 0, 15)) +>u : Symbol(u, Decl(contextuallyTypingOrOperator3.ts, 0, 29)) +>u : Symbol(u, Decl(contextuallyTypingOrOperator3.ts, 0, 29)) +} diff --git a/tests/baselines/reference/contextuallyTypingOrOperator3.types b/tests/baselines/reference/contextuallyTypingOrOperator3.types new file mode 100644 index 00000000000..f6ccbbf9ab1 --- /dev/null +++ b/tests/baselines/reference/contextuallyTypingOrOperator3.types @@ -0,0 +1,16 @@ +=== tests/cases/compiler/contextuallyTypingOrOperator3.ts === +function foo(u: U) { +>foo : (u: U) => void +>T : T +>U : U +>T : T +>u : U +>U : U + + var x3: U = u || u; +>x3 : U +>U : U +>u || u : U +>u : U +>u : U +} diff --git a/tests/baselines/reference/convertKeywordsYes.js b/tests/baselines/reference/convertKeywordsYes.js index a68f751f434..ba3c661d1d0 100644 --- a/tests/baselines/reference/convertKeywordsYes.js +++ b/tests/baselines/reference/convertKeywordsYes.js @@ -440,7 +440,7 @@ var bigClass = (function () { this.with = 0; } return bigClass; -})(); +}()); var bigEnum; (function (bigEnum) { bigEnum[bigEnum["constructor"] = 0] = "constructor"; @@ -504,70 +504,70 @@ var bigModule; function constructor() { } return constructor; - })(); + }()); var implements = (function () { function implements() { } return implements; - })(); + }()); var interface = (function () { function interface() { } return interface; - })(); + }()); var let = (function () { function let() { } return let; - })(); + }()); var module = (function () { function module() { } return module; - })(); + }()); var package = (function () { function package() { } return package; - })(); + }()); var private = (function () { function private() { } return private; - })(); + }()); var protected = (function () { function protected() { } return protected; - })(); + }()); var public = (function () { function public() { } return public; - })(); + }()); var set = (function () { function set() { } return set; - })(); + }()); var static = (function () { function static() { } return static; - })(); + }()); var get = (function () { function get() { } return get; - })(); + }()); var yield = (function () { function yield() { } return yield; - })(); + }()); var declare = (function () { function declare() { } return declare; - })(); + }()); })(bigModule || (bigModule = {})); diff --git a/tests/baselines/reference/covariance1.js b/tests/baselines/reference/covariance1.js index bed31338cbe..eadcd9485b6 100644 --- a/tests/baselines/reference/covariance1.js +++ b/tests/baselines/reference/covariance1.js @@ -25,7 +25,7 @@ var M; this.m1 = m1; } return XX; - })(); + }()); M.XX = XX; function f(y) { } M.f = f; diff --git a/tests/baselines/reference/crashInresolveReturnStatement.js b/tests/baselines/reference/crashInresolveReturnStatement.js index 72ece3c8cfc..be2e38ddf49 100644 --- a/tests/baselines/reference/crashInresolveReturnStatement.js +++ b/tests/baselines/reference/crashInresolveReturnStatement.js @@ -26,7 +26,7 @@ var WorkItemToolbar = (function () { WITDialogs.createCopyOfWorkItem(); }; return WorkItemToolbar; -})(); +}()); var CreateCopyOfWorkItemDialog = (function () { function CreateCopyOfWorkItemDialog() { } @@ -34,7 +34,7 @@ var CreateCopyOfWorkItemDialog = (function () { return null; }; return CreateCopyOfWorkItemDialog; -})(); +}()); function createWorkItemDialog(dialogType) { } var WITDialogs = (function () { @@ -44,4 +44,4 @@ var WITDialogs = (function () { createWorkItemDialog(CreateCopyOfWorkItemDialog); }; return WITDialogs; -})(); +}()); diff --git a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js index 332f4897fc7..c385eff83d5 100644 --- a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js +++ b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js @@ -21,14 +21,14 @@ var C = (function () { this.x = 1; } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); function foo(x, items) { return null; } diff --git a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js index 8ae7ccc1354..00f4dbdc377 100644 --- a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js +++ b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js @@ -20,6 +20,6 @@ define(["require", "exports"], function (require, exports) { BuildWorkspaceService.prototype.injectBuildService = function (service) { }; return BuildWorkspaceService; - })(); + }()); exports.BuildWorkspaceService = BuildWorkspaceService; }); diff --git a/tests/baselines/reference/crashOnMethodSignatures.js b/tests/baselines/reference/crashOnMethodSignatures.js index 8475020f307..8444eb0280b 100644 --- a/tests/baselines/reference/crashOnMethodSignatures.js +++ b/tests/baselines/reference/crashOnMethodSignatures.js @@ -9,4 +9,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/crashRegressionTest.js b/tests/baselines/reference/crashRegressionTest.js index 6b8067df83c..22efbf3fba4 100644 --- a/tests/baselines/reference/crashRegressionTest.js +++ b/tests/baselines/reference/crashRegressionTest.js @@ -41,14 +41,14 @@ var MsPortal; this._templateStorage.templateSources[this._name] = value; }; return StringTemplate; - })(); + }()); var TemplateStorage = (function () { function TemplateStorage() { this.templateSources = {}; this.templateData = {}; } return TemplateStorage; - })(); + }()); TemplateEngine.TemplateStorage = TemplateStorage; })(TemplateEngine = Util.TemplateEngine || (Util.TemplateEngine = {})); })(Util = MsPortal.Util || (MsPortal.Util = {})); diff --git a/tests/baselines/reference/createArray.js b/tests/baselines/reference/createArray.js index 82572e05cad..8314570c089 100644 --- a/tests/baselines/reference/createArray.js +++ b/tests/baselines/reference/createArray.js @@ -21,7 +21,7 @@ var C = (function () { function C() { } return C; -})(); +}()); new C[]; var ba = new boolean[]; var sa = new string[]; diff --git a/tests/baselines/reference/declFileAccessors.js b/tests/baselines/reference/declFileAccessors.js index 6c92f5b18d5..e3616c79e38 100644 --- a/tests/baselines/reference/declFileAccessors.js +++ b/tests/baselines/reference/declFileAccessors.js @@ -183,7 +183,7 @@ var c1 = (function () { configurable: true }); return c1; -})(); +}()); exports.c1 = c1; //// [declFileAccessors_1.js] /** This is comment for c2 - the global class*/ @@ -266,7 +266,7 @@ var c2 = (function () { configurable: true }); return c2; -})(); +}()); //// [declFileAccessors_0.d.ts] diff --git a/tests/baselines/reference/declFileAliasUseBeforeDeclaration.js b/tests/baselines/reference/declFileAliasUseBeforeDeclaration.js index 9c0ffc6123b..e5219508329 100644 --- a/tests/baselines/reference/declFileAliasUseBeforeDeclaration.js +++ b/tests/baselines/reference/declFileAliasUseBeforeDeclaration.js @@ -14,7 +14,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); exports.Foo = Foo; //// [declFileAliasUseBeforeDeclaration_test.js] "use strict"; diff --git a/tests/baselines/reference/declFileClassExtendsNull.js b/tests/baselines/reference/declFileClassExtendsNull.js index 0d50b320592..e9081acab55 100644 --- a/tests/baselines/reference/declFileClassExtendsNull.js +++ b/tests/baselines/reference/declFileClassExtendsNull.js @@ -15,7 +15,7 @@ var ExtendsNull = (function (_super) { _super.apply(this, arguments); } return ExtendsNull; -})(null); +}(null)); //// [declFileClassExtendsNull.d.ts] diff --git a/tests/baselines/reference/declFileClassWithIndexSignature.js b/tests/baselines/reference/declFileClassWithIndexSignature.js index 956bbfe5c46..31369db6660 100644 --- a/tests/baselines/reference/declFileClassWithIndexSignature.js +++ b/tests/baselines/reference/declFileClassWithIndexSignature.js @@ -9,7 +9,7 @@ var BlockIntrinsics = (function () { function BlockIntrinsics() { } return BlockIntrinsics; -})(); +}()); //// [declFileClassWithIndexSignature.d.ts] diff --git a/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.js b/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.js index 1a54642fbd4..844559232e4 100644 --- a/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.js +++ b/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.js @@ -15,7 +15,7 @@ var Enhancement = (function () { return this; }; return Enhancement; -})(); +}()); exports.Enhancement = Enhancement; diff --git a/tests/baselines/reference/declFileConstructors.js b/tests/baselines/reference/declFileConstructors.js index e1786dfdd5e..44e816712fb 100644 --- a/tests/baselines/reference/declFileConstructors.js +++ b/tests/baselines/reference/declFileConstructors.js @@ -104,7 +104,7 @@ var SimpleConstructor = (function () { function SimpleConstructor() { } return SimpleConstructor; -})(); +}()); exports.SimpleConstructor = SimpleConstructor; var ConstructorWithParameters = (function () { /** This is comment for function signature*/ @@ -114,7 +114,7 @@ var ConstructorWithParameters = (function () { var d = a; } return ConstructorWithParameters; -})(); +}()); exports.ConstructorWithParameters = ConstructorWithParameters; var ConstructorWithRestParamters = (function () { function ConstructorWithRestParamters(a) { @@ -125,34 +125,34 @@ var ConstructorWithRestParamters = (function () { return a + rests.join(""); } return ConstructorWithRestParamters; -})(); +}()); exports.ConstructorWithRestParamters = ConstructorWithRestParamters; var ConstructorWithOverloads = (function () { function ConstructorWithOverloads(a) { } return ConstructorWithOverloads; -})(); +}()); exports.ConstructorWithOverloads = ConstructorWithOverloads; var ConstructorWithPublicParameterProperty = (function () { function ConstructorWithPublicParameterProperty(x) { this.x = x; } return ConstructorWithPublicParameterProperty; -})(); +}()); exports.ConstructorWithPublicParameterProperty = ConstructorWithPublicParameterProperty; var ConstructorWithPrivateParameterProperty = (function () { function ConstructorWithPrivateParameterProperty(x) { this.x = x; } return ConstructorWithPrivateParameterProperty; -})(); +}()); exports.ConstructorWithPrivateParameterProperty = ConstructorWithPrivateParameterProperty; var ConstructorWithOptionalParameterProperty = (function () { function ConstructorWithOptionalParameterProperty(x) { this.x = x; } return ConstructorWithOptionalParameterProperty; -})(); +}()); exports.ConstructorWithOptionalParameterProperty = ConstructorWithOptionalParameterProperty; var ConstructorWithParameterInitializer = (function () { function ConstructorWithParameterInitializer(x) { @@ -160,7 +160,7 @@ var ConstructorWithParameterInitializer = (function () { this.x = x; } return ConstructorWithParameterInitializer; -})(); +}()); exports.ConstructorWithParameterInitializer = ConstructorWithParameterInitializer; //// [declFileConstructors_1.js] var GlobalSimpleConstructor = (function () { @@ -168,7 +168,7 @@ var GlobalSimpleConstructor = (function () { function GlobalSimpleConstructor() { } return GlobalSimpleConstructor; -})(); +}()); var GlobalConstructorWithParameters = (function () { /** This is comment for function signature*/ function GlobalConstructorWithParameters(/** this is comment about a*/ a, @@ -177,7 +177,7 @@ var GlobalConstructorWithParameters = (function () { var d = a; } return GlobalConstructorWithParameters; -})(); +}()); var GlobalConstructorWithRestParamters = (function () { function GlobalConstructorWithRestParamters(a) { var rests = []; @@ -187,37 +187,37 @@ var GlobalConstructorWithRestParamters = (function () { return a + rests.join(""); } return GlobalConstructorWithRestParamters; -})(); +}()); var GlobalConstructorWithOverloads = (function () { function GlobalConstructorWithOverloads(a) { } return GlobalConstructorWithOverloads; -})(); +}()); var GlobalConstructorWithPublicParameterProperty = (function () { function GlobalConstructorWithPublicParameterProperty(x) { this.x = x; } return GlobalConstructorWithPublicParameterProperty; -})(); +}()); var GlobalConstructorWithPrivateParameterProperty = (function () { function GlobalConstructorWithPrivateParameterProperty(x) { this.x = x; } return GlobalConstructorWithPrivateParameterProperty; -})(); +}()); var GlobalConstructorWithOptionalParameterProperty = (function () { function GlobalConstructorWithOptionalParameterProperty(x) { this.x = x; } return GlobalConstructorWithOptionalParameterProperty; -})(); +}()); var GlobalConstructorWithParameterInitializer = (function () { function GlobalConstructorWithParameterInitializer(x) { if (x === void 0) { x = "hello"; } this.x = x; } return GlobalConstructorWithParameterInitializer; -})(); +}()); //// [declFileConstructors_0.d.ts] diff --git a/tests/baselines/reference/declFileExportImportChain.js b/tests/baselines/reference/declFileExportImportChain.js index 88aa985ef7b..99affd5eb4d 100644 --- a/tests/baselines/reference/declFileExportImportChain.js +++ b/tests/baselines/reference/declFileExportImportChain.js @@ -35,7 +35,7 @@ define(["require", "exports"], function (require, exports) { function c1() { } return c1; - })(); + }()); m2.c1 = c1; })(m2 = m1.m2 || (m1.m2 = {})); })(m1 || (m1 = {})); diff --git a/tests/baselines/reference/declFileExportImportChain2.js b/tests/baselines/reference/declFileExportImportChain2.js index 6b633b0fb97..27c61e9e43d 100644 --- a/tests/baselines/reference/declFileExportImportChain2.js +++ b/tests/baselines/reference/declFileExportImportChain2.js @@ -32,7 +32,7 @@ define(["require", "exports"], function (require, exports) { function c1() { } return c1; - })(); + }()); m2.c1 = c1; })(m2 = m1.m2 || (m1.m2 = {})); })(m1 || (m1 = {})); diff --git a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js index 5d7273098f1..dda944bef3d 100644 --- a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js +++ b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js @@ -33,13 +33,13 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.bar = function () { }; return B; -})(); +}()); var D = (function () { function D() { } @@ -48,7 +48,7 @@ var D = (function () { D.prototype.foo = function () { }; D.prototype.bar = function () { }; return D; -})(); +}()); //// [declFileForClassWithMultipleBaseClasses.d.ts] diff --git a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js index ee2dc8e83bd..2c0e89fe6db 100644 --- a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js +++ b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js @@ -12,7 +12,7 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); //// [declFileForClassWithPrivateOverloadedFunction.d.ts] diff --git a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js index 0f13824fc45..4b9535cd2c3 100644 --- a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js +++ b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js @@ -19,14 +19,14 @@ var X = (function () { function X() { } return X; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(X); +}(X)); //// [declFileForFunctionTypeAsTypeParameter.d.ts] diff --git a/tests/baselines/reference/declFileForTypeParameters.js b/tests/baselines/reference/declFileForTypeParameters.js index ebf4f4826ae..3fbac683ef9 100644 --- a/tests/baselines/reference/declFileForTypeParameters.js +++ b/tests/baselines/reference/declFileForTypeParameters.js @@ -15,7 +15,7 @@ var C = (function () { return this.x; }; return C; -})(); +}()); //// [declFileForTypeParameters.d.ts] diff --git a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js index caaba28859a..117bb6a7bd5 100644 --- a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js +++ b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js @@ -22,19 +22,19 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Baz = (function () { function Baz() { } return Baz; -})(); +}()); //// [declFileGenericClassWithGenericExtendedClass.d.ts] diff --git a/tests/baselines/reference/declFileGenericType.js b/tests/baselines/reference/declFileGenericType.js index ccc022f26d5..0974f9d7b36 100644 --- a/tests/baselines/reference/declFileGenericType.js +++ b/tests/baselines/reference/declFileGenericType.js @@ -52,13 +52,13 @@ var C; function A() { } return A; - })(); + }()); C.A = A; var B = (function () { function B() { } return B; - })(); + }()); C.B = B; function F(x) { return null; } C.F = F; @@ -77,7 +77,7 @@ var C; this.val = val; } return D; - })(); + }()); C.D = D; })(C = exports.C || (exports.C = {})); exports.b = C.F; @@ -94,7 +94,7 @@ var h = (function (_super) { _super.apply(this, arguments); } return h; -})(C.A); +}(C.A)); exports.h = h; exports.j = C.F6; diff --git a/tests/baselines/reference/declFileGenericType2.js b/tests/baselines/reference/declFileGenericType2.js index 416e0f6737c..a4636d82993 100644 --- a/tests/baselines/reference/declFileGenericType2.js +++ b/tests/baselines/reference/declFileGenericType2.js @@ -61,7 +61,7 @@ var templa; _super.call(this); } return AbstractElementController; - })(templa.mvc.AbstractController); + }(templa.mvc.AbstractController)); mvc.AbstractElementController = AbstractElementController; })(mvc = dom.mvc || (dom.mvc = {})); })(dom = templa.dom || (templa.dom = {})); @@ -82,7 +82,7 @@ var templa; this._controllers = []; } return AbstractCompositeElementController; - })(templa.dom.mvc.AbstractElementController); + }(templa.dom.mvc.AbstractElementController)); composite.AbstractCompositeElementController = AbstractCompositeElementController; })(composite = mvc.composite || (mvc.composite = {})); })(mvc = dom.mvc || (dom.mvc = {})); diff --git a/tests/baselines/reference/declFileImportChainInExportAssignment.js b/tests/baselines/reference/declFileImportChainInExportAssignment.js index 41157907e8b..a45ae847ebe 100644 --- a/tests/baselines/reference/declFileImportChainInExportAssignment.js +++ b/tests/baselines/reference/declFileImportChainInExportAssignment.js @@ -19,7 +19,7 @@ var m; function c() { } return c; - })(); + }()); c_1.c = c; })(c = m.c || (m.c = {})); })(m || (m = {})); diff --git a/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.js b/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.js index e12a921ffc2..951291115fe 100644 --- a/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.js +++ b/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.js @@ -18,7 +18,7 @@ var List = (function () { function List() { } return List; -})(); +}()); //// [declFileImportedTypeUseInTypeArgPosition.d.ts] diff --git a/tests/baselines/reference/declFileInternalAliases.js b/tests/baselines/reference/declFileInternalAliases.js index 2ebe48ce782..a21cb18ad1d 100644 --- a/tests/baselines/reference/declFileInternalAliases.js +++ b/tests/baselines/reference/declFileInternalAliases.js @@ -19,7 +19,7 @@ var m; function c() { } return c; - })(); + }()); m.c = c; })(m || (m = {})); var m1; diff --git a/tests/baselines/reference/declFileMethods.js b/tests/baselines/reference/declFileMethods.js index c31fd6950ce..4a317a4e720 100644 --- a/tests/baselines/reference/declFileMethods.js +++ b/tests/baselines/reference/declFileMethods.js @@ -272,7 +272,7 @@ var c1 = (function () { return a; }; return c1; -})(); +}()); exports.c1 = c1; //// [declFileMethods_1.js] var c2 = (function () { @@ -355,7 +355,7 @@ var c2 = (function () { return a; }; return c2; -})(); +}()); //// [declFileMethods_0.d.ts] diff --git a/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.js b/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.js index 443933069da..b2f27673c4d 100644 --- a/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.js +++ b/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.js @@ -16,7 +16,7 @@ var m1; function c() { } return c; - })(); + }()); m1.c = c; })(m1 || (m1 = {})); var d = { diff --git a/tests/baselines/reference/declFileModuleContinuation.js b/tests/baselines/reference/declFileModuleContinuation.js index 70cb0e43668..98235e830b5 100644 --- a/tests/baselines/reference/declFileModuleContinuation.js +++ b/tests/baselines/reference/declFileModuleContinuation.js @@ -20,7 +20,7 @@ var A; function W() { } return W; - })(); + }()); C.W = W; })(C = B.C || (B.C = {})); })(B = A.B || (A.B = {})); diff --git a/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.js b/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.js index 652abed5e6f..6b6fe3eebe4 100644 --- a/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.js +++ b/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.js @@ -14,7 +14,7 @@ var m; function c() { } return c; - })(); + }()); m.c = c; m.a = m; })(m || (m = {})); diff --git a/tests/baselines/reference/declFilePrivateMethodOverloads.js b/tests/baselines/reference/declFilePrivateMethodOverloads.js index d6b2320b904..531b60367a2 100644 --- a/tests/baselines/reference/declFilePrivateMethodOverloads.js +++ b/tests/baselines/reference/declFilePrivateMethodOverloads.js @@ -34,7 +34,7 @@ var c1 = (function () { // Function here }; return c1; -})(); +}()); //// [declFilePrivateMethodOverloads.d.ts] diff --git a/tests/baselines/reference/declFilePrivateStatic.js b/tests/baselines/reference/declFilePrivateStatic.js index 326ce62171d..dd81d94b3c5 100644 --- a/tests/baselines/reference/declFilePrivateStatic.js +++ b/tests/baselines/reference/declFilePrivateStatic.js @@ -43,7 +43,7 @@ var C = (function () { C.x = 1; C.y = 1; return C; -})(); +}()); //// [declFilePrivateStatic.d.ts] diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType.js b/tests/baselines/reference/declFileTypeAnnotationArrayType.js index 0a9d04d6bc7..54dd7bbbc23 100644 --- a/tests/baselines/reference/declFileTypeAnnotationArrayType.js +++ b/tests/baselines/reference/declFileTypeAnnotationArrayType.js @@ -56,27 +56,27 @@ var c = (function () { function c() { } return c; -})(); +}()); var m; (function (m) { var c = (function () { function c() { } return c; - })(); + }()); m.c = c; var g = (function () { function g() { } return g; - })(); + }()); m.g = g; })(m || (m = {})); var g = (function () { function g() { } return g; -})(); +}()); // Just the name function foo() { return [new c()]; diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType.js b/tests/baselines/reference/declFileTypeAnnotationParenType.js index 126ec3a873e..4afe07cc9d8 100644 --- a/tests/baselines/reference/declFileTypeAnnotationParenType.js +++ b/tests/baselines/reference/declFileTypeAnnotationParenType.js @@ -15,7 +15,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var x = [function () { return new c(); }]; var y = [function () { return new c(); }]; var k = (function () { return new c(); }) || ""; diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType.js b/tests/baselines/reference/declFileTypeAnnotationTupleType.js index 91d44c2b07f..323fdce03f9 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTupleType.js +++ b/tests/baselines/reference/declFileTypeAnnotationTupleType.js @@ -23,27 +23,27 @@ var c = (function () { function c() { } return c; -})(); +}()); var m; (function (m) { var c = (function () { function c() { } return c; - })(); + }()); m.c = c; var g = (function () { function g() { } return g; - })(); + }()); m.g = g; })(m || (m = {})); var g = (function () { function g() { } return g; -})(); +}()); // Just the name var k = [new c(), new m.c()]; var l = k; diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js b/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js index 178511f2b78..f7672149308 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js +++ b/tests/baselines/reference/declFileTypeAnnotationTypeAlias.js @@ -38,7 +38,7 @@ var M; function c() { } return c; - })(); + }()); M.c = c; var m; (function (m) { @@ -46,7 +46,7 @@ var M; function c() { } return c; - })(); + }()); m.c = c; })(m = M.m || (M.m = {})); })(M || (M = {})); @@ -58,7 +58,7 @@ var M; function Window() { } return Window; - })(); + }()); N.Window = Window; })(N = M.N || (M.N = {})); })(M || (M = {})); diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.js b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.js index 5e4a8ea714b..befd96a9fa7 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.js +++ b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.js @@ -44,19 +44,19 @@ var c = (function () { function c() { } return c; -})(); +}()); var g = (function () { function g() { } return g; -})(); +}()); var m; (function (m) { var c = (function () { function c() { } return c; - })(); + }()); m.c = c; })(m || (m = {})); // Object literal with everything diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery.js b/tests/baselines/reference/declFileTypeAnnotationTypeQuery.js index 28443bc04ad..e64e81e4939 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeQuery.js +++ b/tests/baselines/reference/declFileTypeAnnotationTypeQuery.js @@ -48,27 +48,27 @@ var c = (function () { function c() { } return c; -})(); +}()); var m; (function (m) { var c = (function () { function c() { } return c; - })(); + }()); m.c = c; var g = (function () { function g() { } return g; - })(); + }()); m.g = g; })(m || (m = {})); var g = (function () { function g() { } return g; -})(); +}()); // Just the name function foo() { return c; diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference.js b/tests/baselines/reference/declFileTypeAnnotationTypeReference.js index 3818f38d2c1..7d2e7102fb6 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeReference.js +++ b/tests/baselines/reference/declFileTypeAnnotationTypeReference.js @@ -48,27 +48,27 @@ var c = (function () { function c() { } return c; -})(); +}()); var m; (function (m) { var c = (function () { function c() { } return c; - })(); + }()); m.c = c; var g = (function () { function g() { } return g; - })(); + }()); m.g = g; })(m || (m = {})); var g = (function () { function g() { } return g; -})(); +}()); // Just the name function foo() { return new c(); diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType.js b/tests/baselines/reference/declFileTypeAnnotationUnionType.js index 0a8e256ef28..c90501bab5c 100644 --- a/tests/baselines/reference/declFileTypeAnnotationUnionType.js +++ b/tests/baselines/reference/declFileTypeAnnotationUnionType.js @@ -27,27 +27,27 @@ var c = (function () { function c() { } return c; -})(); +}()); var m; (function (m) { var c = (function () { function c() { } return c; - })(); + }()); m.c = c; var g = (function () { function g() { } return g; - })(); + }()); m.g = g; })(m || (m = {})); var g = (function () { function g() { } return g; -})(); +}()); // Just the name var k = new c() || new m.c(); var l = new c() || new m.c(); diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.js index f7dc7a18260..957dbb98263 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorAccessors.js @@ -107,12 +107,12 @@ var m; function private1() { } return private1; - })(); + }()); var public1 = (function () { function public1() { } return public1; - })(); + }()); m.public1 = public1; var m2; (function (m2) { @@ -120,7 +120,7 @@ var m; function public2() { } return public2; - })(); + }()); m2.public2 = public2; })(m2 || (m2 = {})); var c = (function () { @@ -256,6 +256,6 @@ var m; configurable: true }); return c; - })(); + }()); m.c = c; })(m || (m = {})); diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.js index 4f66f0c8c7f..7774ee27206 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorParameterOfFunction.js @@ -52,12 +52,12 @@ var m; function private1() { } return private1; - })(); + }()); var public1 = (function () { function public1() { } return public1; - })(); + }()); m.public1 = public1; // Directly using names from this module function foo1(param) { @@ -90,7 +90,7 @@ var m; function public2() { } return public2; - })(); + }()); m2.public2 = public2; })(m2 || (m2 = {})); function foo111(param) { diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js index e12d9ebca63..7e26816beb8 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.js @@ -64,12 +64,12 @@ var m; function private1() { } return private1; - })(); + }()); var public1 = (function () { function public1() { } return public1; - })(); + }()); m.public1 = public1; // Directly using names from this module function foo1() { @@ -106,7 +106,7 @@ var m; function public2() { } return public2; - })(); + }()); m2.public2 = public2; })(m2 || (m2 = {})); function foo111() { diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js index ebad7156617..2b7052903fb 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeAlias.js @@ -50,7 +50,7 @@ var M; function Window() { } return Window; - })(); + }()); N.Window = Window; })(N = M.N || (M.N = {})); })(M || (M = {})); @@ -62,7 +62,7 @@ var M1; function Window() { } return Window; - })(); + }()); N.Window = Window; })(N = M1.N || (M1.N = {})); })(M1 || (M1 = {})); @@ -72,19 +72,19 @@ var M2; function private1() { } return private1; - })(); + }()); var public1 = (function () { function public1() { } return public1; - })(); + }()); var m3; (function (m3) { var public1 = (function () { function public1() { } return public1; - })(); + }()); m3.public1 = public1; })(m3 || (m3 = {})); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js index 19bdce50cd7..46dfaf3c77e 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorTypeLiteral.js @@ -41,14 +41,14 @@ var m; function private1() { } return private1; - })(); + }()); var m2; (function (m2) { var public1 = (function () { function public1() { } return public1; - })(); + }()); m2.public1 = public1; })(m2 || (m2 = {})); m.x2 = { diff --git a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js index 3d4a4337ae9..a75903c7369 100644 --- a/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js +++ b/tests/baselines/reference/declFileTypeAnnotationVisibilityErrorVariableDeclaration.js @@ -40,12 +40,12 @@ var m; function private1() { } return private1; - })(); + }()); var public1 = (function () { function public1() { } return public1; - })(); + }()); m.public1 = public1; // Directly using names from this module var x; @@ -60,7 +60,7 @@ var m; function public2() { } return public2; - })(); + }()); m2.public2 = public2; })(m2 || (m2 = {})); var x3; diff --git a/tests/baselines/reference/declFileTypeofClass.js b/tests/baselines/reference/declFileTypeofClass.js index a7faca03f9d..7058ace0c94 100644 --- a/tests/baselines/reference/declFileTypeofClass.js +++ b/tests/baselines/reference/declFileTypeofClass.js @@ -21,7 +21,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var x; var y = c; var z; @@ -29,7 +29,7 @@ var genericC = (function () { function genericC() { } return genericC; -})(); +}()); var genericX = genericC; diff --git a/tests/baselines/reference/declFileTypeofInAnonymousType.js b/tests/baselines/reference/declFileTypeofInAnonymousType.js index 01025ed1806..68db3d120cd 100644 --- a/tests/baselines/reference/declFileTypeofInAnonymousType.js +++ b/tests/baselines/reference/declFileTypeofInAnonymousType.js @@ -29,7 +29,7 @@ var m1; function c() { } return c; - })(); + }()); m1.c = c; (function (e) { e[e["weekday"] = 0] = "weekday"; diff --git a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js index e21c28138a2..4ac08f97a52 100644 --- a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js +++ b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js @@ -38,7 +38,7 @@ var X; _super.apply(this, arguments); } return W; - })(A.B.Base.W); + }(A.B.Base.W)); base.W = W; })(base = Y.base || (Y.base = {})); })(Y = X.Y || (X.Y = {})); @@ -57,7 +57,7 @@ var X; _super.apply(this, arguments); } return W; - })(X.Y.base.W); + }(X.Y.base.W)); Z.W = W; })(Z = base.Z || (base.Z = {})); })(base = Y.base || (Y.base = {})); diff --git a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js index 587b8ff1e27..6dfce6e8e63 100644 --- a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js +++ b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js @@ -32,7 +32,7 @@ var A; function EventManager() { } return EventManager; - })(); + }()); B.EventManager = EventManager; })(B = A.B || (A.B = {})); })(A || (A = {})); @@ -48,7 +48,7 @@ var A; _super.apply(this, arguments); } return ContextMenu; - })(B.EventManager); + }(B.EventManager)); C.ContextMenu = ContextMenu; })(C = B.C || (B.C = {})); })(B = A.B || (A.B = {})); diff --git a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.js b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.js index 1e599870302..9b69ca88dc2 100644 --- a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.js +++ b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.js @@ -24,7 +24,7 @@ var X; function W() { } return W; - })(); + }()); C.W = W; })(C = B.C || (B.C = {})); })(B = A.B || (A.B = {})); diff --git a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.js b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.js index e225e9bb9f6..aa44c19444a 100644 --- a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.js +++ b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.js @@ -27,7 +27,7 @@ var X; function W() { } return W; - })(); + }()); C.W = W; })(C = B.C || (B.C = {})); })(B = A.B || (A.B = {})); diff --git a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.js b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.js index 34be43c93b3..164626db45a 100644 --- a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.js +++ b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.js @@ -27,7 +27,7 @@ var X; function W() { } return W; - })(); + }()); C.W = W; })(C = B.C || (B.C = {})); })(B = A.B || (A.B = {})); diff --git a/tests/baselines/reference/declInput-2.js b/tests/baselines/reference/declInput-2.js index dcd37454ef0..eece6082356 100644 --- a/tests/baselines/reference/declInput-2.js +++ b/tests/baselines/reference/declInput-2.js @@ -28,12 +28,12 @@ var M; function C() { } return C; - })(); + }()); var E = (function () { function E() { } return E; - })(); + }()); M.E = E; var D = (function () { function D() { @@ -45,6 +45,6 @@ var M; D.prototype.m262 = function (i) { }; D.prototype.m3 = function () { return new C(); }; return D; - })(); + }()); M.D = D; })(M || (M = {})); diff --git a/tests/baselines/reference/declInput.js b/tests/baselines/reference/declInput.js index cd558c93403..1f29093d0a8 100644 --- a/tests/baselines/reference/declInput.js +++ b/tests/baselines/reference/declInput.js @@ -23,7 +23,7 @@ var bar = (function () { x++; }; return bar; -})(); +}()); //// [declInput.d.ts] diff --git a/tests/baselines/reference/declInput3.js b/tests/baselines/reference/declInput3.js index 3be31de3de0..292023270ae 100644 --- a/tests/baselines/reference/declInput3.js +++ b/tests/baselines/reference/declInput3.js @@ -23,7 +23,7 @@ var bar = (function () { x++; }; return bar; -})(); +}()); //// [declInput3.d.ts] diff --git a/tests/baselines/reference/declInput4.js b/tests/baselines/reference/declInput4.js index 07b6f091a14..ec57bfaf3e8 100644 --- a/tests/baselines/reference/declInput4.js +++ b/tests/baselines/reference/declInput4.js @@ -22,12 +22,12 @@ var M; function C() { } return C; - })(); + }()); var E = (function () { function E() { } return E; - })(); + }()); M.E = E; var D = (function () { function D() { @@ -36,7 +36,7 @@ var M; D.prototype.m242 = function () { return null; }; D.prototype.m26 = function (i) { }; return D; - })(); + }()); M.D = D; })(M || (M = {})); diff --git a/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js b/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js index a98620c8529..16756fe0afe 100644 --- a/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js +++ b/tests/baselines/reference/declarationEmitDestructuringParameterProperties.js @@ -23,21 +23,21 @@ var C1 = (function () { this.[x, y, z] = [x, y, z]; } return C1; -})(); +}()); var C2 = (function () { function C2(_a) { var x = _a[0], y = _a[1], z = _a[2]; this.[x, y, z] = [x, y, z]; } return C2; -})(); +}()); var C3 = (function () { function C3(_a) { var x = _a.x, y = _a.y, z = _a.z; this.{ x, y, z } = { x, y, z }; } return C3; -})(); +}()); //// [declarationEmitDestructuringParameterProperties.d.ts] diff --git a/tests/baselines/reference/declarationEmitDestructuringPrivacyError.js b/tests/baselines/reference/declarationEmitDestructuringPrivacyError.js index fa3cae9478b..7f62541ae99 100644 --- a/tests/baselines/reference/declarationEmitDestructuringPrivacyError.js +++ b/tests/baselines/reference/declarationEmitDestructuringPrivacyError.js @@ -12,7 +12,7 @@ var m; function c() { } return c; - })(); + }()); _a = [10, new c(), 30], m.x = _a[0], m.y = _a[1], m.z = _a[2]; var _a; })(m || (m = {})); diff --git a/tests/baselines/reference/declarationEmitDetachedComment1.js b/tests/baselines/reference/declarationEmitDetachedComment1.js index 38c7e60406d..6d3666d389d 100644 --- a/tests/baselines/reference/declarationEmitDetachedComment1.js +++ b/tests/baselines/reference/declarationEmitDetachedComment1.js @@ -41,7 +41,7 @@ var Hello = (function () { function Hello() { } return Hello; -})(); +}()); //// [test2.js] /* A comment at the top of the file. */ /** @@ -51,7 +51,7 @@ var Hi = (function () { function Hi() { } return Hi; -})(); +}()); //// [test3.js] // A one-line comment at the top of the file. /** @@ -61,7 +61,7 @@ var Hola = (function () { function Hola() { } return Hola; -})(); +}()); //// [test1.d.ts] diff --git a/tests/baselines/reference/declarationEmitDetachedComment2.js b/tests/baselines/reference/declarationEmitDetachedComment2.js index d4d176da12c..e06872b5eab 100644 --- a/tests/baselines/reference/declarationEmitDetachedComment2.js +++ b/tests/baselines/reference/declarationEmitDetachedComment2.js @@ -38,19 +38,19 @@ var Hello = (function () { function Hello() { } return Hello; -})(); +}()); //// [test2.js] var Hi = (function () { function Hi() { } return Hi; -})(); +}()); //// [test3.js] var Hola = (function () { function Hola() { } return Hola; -})(); +}()); //// [test1.d.ts] diff --git a/tests/baselines/reference/declarationEmitFBoundedTypeParams.js b/tests/baselines/reference/declarationEmitFBoundedTypeParams.js new file mode 100644 index 00000000000..407dbf395e5 --- /dev/null +++ b/tests/baselines/reference/declarationEmitFBoundedTypeParams.js @@ -0,0 +1,20 @@ +//// [declarationEmitFBoundedTypeParams.ts] + +// Repro from #6040 + +function append(result: a[], value: b): a[] { + result.push(value); + return result; +} + + +//// [declarationEmitFBoundedTypeParams.js] +// Repro from #6040 +function append(result, value) { + result.push(value); + return result; +} + + +//// [declarationEmitFBoundedTypeParams.d.ts] +declare function append(result: a[], value: b): a[]; diff --git a/tests/baselines/reference/declarationEmitFBoundedTypeParams.symbols b/tests/baselines/reference/declarationEmitFBoundedTypeParams.symbols new file mode 100644 index 00000000000..bb12ea89600 --- /dev/null +++ b/tests/baselines/reference/declarationEmitFBoundedTypeParams.symbols @@ -0,0 +1,25 @@ +=== tests/cases/compiler/declarationEmitFBoundedTypeParams.ts === + +// Repro from #6040 + +function append(result: a[], value: b): a[] { +>append : Symbol(append, Decl(declarationEmitFBoundedTypeParams.ts, 0, 0)) +>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 3, 16)) +>b : Symbol(b, Decl(declarationEmitFBoundedTypeParams.ts, 3, 18)) +>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 3, 16)) +>result : Symbol(result, Decl(declarationEmitFBoundedTypeParams.ts, 3, 32)) +>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 3, 16)) +>value : Symbol(value, Decl(declarationEmitFBoundedTypeParams.ts, 3, 44)) +>b : Symbol(b, Decl(declarationEmitFBoundedTypeParams.ts, 3, 18)) +>a : Symbol(a, Decl(declarationEmitFBoundedTypeParams.ts, 3, 16)) + + result.push(value); +>result.push : Symbol(Array.push, Decl(lib.d.ts, --, --)) +>result : Symbol(result, Decl(declarationEmitFBoundedTypeParams.ts, 3, 32)) +>push : Symbol(Array.push, Decl(lib.d.ts, --, --)) +>value : Symbol(value, Decl(declarationEmitFBoundedTypeParams.ts, 3, 44)) + + return result; +>result : Symbol(result, Decl(declarationEmitFBoundedTypeParams.ts, 3, 32)) +} + diff --git a/tests/baselines/reference/declarationEmitFBoundedTypeParams.types b/tests/baselines/reference/declarationEmitFBoundedTypeParams.types new file mode 100644 index 00000000000..7f7198b3b6d --- /dev/null +++ b/tests/baselines/reference/declarationEmitFBoundedTypeParams.types @@ -0,0 +1,26 @@ +=== tests/cases/compiler/declarationEmitFBoundedTypeParams.ts === + +// Repro from #6040 + +function append(result: a[], value: b): a[] { +>append : (result: a[], value: b) => a[] +>a : a +>b : b +>a : a +>result : a[] +>a : a +>value : b +>b : b +>a : a + + result.push(value); +>result.push(value) : number +>result.push : (...items: a[]) => number +>result : a[] +>push : (...items: a[]) => number +>value : b + + return result; +>result : a[] +} + diff --git a/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js b/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js index f39b35fe1f1..a60b35c73ab 100644 --- a/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js +++ b/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.js @@ -20,7 +20,7 @@ var m; function c() { } return c; - })(); + }()); c_1.c = c; })(c = m.c || (m.c = {})); })(m || (m = {})); diff --git a/tests/baselines/reference/declarationEmit_nameConflicts.js b/tests/baselines/reference/declarationEmit_nameConflicts.js index f0db81e0ac8..5004ded4837 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts.js +++ b/tests/baselines/reference/declarationEmit_nameConflicts.js @@ -57,7 +57,7 @@ var f; function c() { } return c; - })(); + }()); f.c = c; })(f || (f = {})); module.exports = f; @@ -72,7 +72,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; var N; (function (N) { @@ -95,7 +95,7 @@ var M; function C() { } return C; - })(); + }()); P.C = C; var N; (function (N) { @@ -121,7 +121,7 @@ var M; function C() { } return C; - })(); + }()); Q.C = C; var N; (function (N) { diff --git a/tests/baselines/reference/declarationEmit_nameConflicts2.js b/tests/baselines/reference/declarationEmit_nameConflicts2.js index e7b145877f8..b93745c3a12 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts2.js +++ b/tests/baselines/reference/declarationEmit_nameConflicts2.js @@ -28,7 +28,7 @@ var X; function C() { } return C; - })(); + }()); base.C = C; var M; (function (M) { diff --git a/tests/baselines/reference/declarationEmit_nameConflicts3.js b/tests/baselines/reference/declarationEmit_nameConflicts3.js index 07299132bd4..f1ea96973b8 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts3.js +++ b/tests/baselines/reference/declarationEmit_nameConflicts3.js @@ -59,7 +59,7 @@ var M; } C.f = function () { }; return C; - })(); + }()); P.C = C; var E = (function (_super) { __extends(E, _super); @@ -67,7 +67,7 @@ var M; _super.apply(this, arguments); } return E; - })(C); + }(C)); P.E = E; (function (D) { D[D["f"] = 0] = "f"; diff --git a/tests/baselines/reference/declarationEmit_protectedMembers.js b/tests/baselines/reference/declarationEmit_protectedMembers.js index 536f4f4aff7..5aad004939d 100644 --- a/tests/baselines/reference/declarationEmit_protectedMembers.js +++ b/tests/baselines/reference/declarationEmit_protectedMembers.js @@ -83,7 +83,7 @@ var C1 = (function () { configurable: true }); return C1; -})(); +}()); // Derived class overriding protected members var C2 = (function (_super) { __extends(C2, _super); @@ -97,7 +97,7 @@ var C2 = (function (_super) { return _super.sf.call(this) + this.sx; }; return C2; -})(C1); +}(C1)); // Derived class making protected members public var C3 = (function (_super) { __extends(C3, _super); @@ -116,7 +116,7 @@ var C3 = (function (_super) { configurable: true }); return C3; -})(C2); +}(C2)); // Protected properties in constructors var C4 = (function () { function C4(a, b) { @@ -124,7 +124,7 @@ var C4 = (function () { this.b = b; } return C4; -})(); +}()); //// [declarationEmit_protectedMembers.d.ts] diff --git a/tests/baselines/reference/declarationFileOverwriteError.js b/tests/baselines/reference/declarationFileOverwriteError.js index a9ae79f8ed6..7bc57cce7d1 100644 --- a/tests/baselines/reference/declarationFileOverwriteError.js +++ b/tests/baselines/reference/declarationFileOverwriteError.js @@ -14,4 +14,4 @@ var d = (function () { function d() { } return d; -})(); +}()); diff --git a/tests/baselines/reference/declarationFileOverwriteErrorWithOut.js b/tests/baselines/reference/declarationFileOverwriteErrorWithOut.js index 34d9c95a005..372d07f5ba7 100644 --- a/tests/baselines/reference/declarationFileOverwriteErrorWithOut.js +++ b/tests/baselines/reference/declarationFileOverwriteErrorWithOut.js @@ -14,4 +14,4 @@ var d = (function () { function d() { } return d; -})(); +}()); diff --git a/tests/baselines/reference/declarationFiles.js b/tests/baselines/reference/declarationFiles.js index 7ef41a630cb..56f44b2c7e4 100644 --- a/tests/baselines/reference/declarationFiles.js +++ b/tests/baselines/reference/declarationFiles.js @@ -54,17 +54,17 @@ var C1 = (function () { } C1.prototype.f = function (x) { return undefined; }; return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { var _this = this; @@ -87,4 +87,4 @@ var C4 = (function () { return function () { return _this; }; }; return C4; -})(); +}()); diff --git a/tests/baselines/reference/declareDottedExtend.js b/tests/baselines/reference/declareDottedExtend.js index 030e5048ef7..f1e9ea0b4de 100644 --- a/tests/baselines/reference/declareDottedExtend.js +++ b/tests/baselines/reference/declareDottedExtend.js @@ -24,11 +24,11 @@ var D = (function (_super) { _super.apply(this, arguments); } return D; -})(ab.C); +}(ab.C)); var E = (function (_super) { __extends(E, _super); function E() { _super.apply(this, arguments); } return E; -})(A.B.C); +}(A.B.C)); diff --git a/tests/baselines/reference/declareIdentifierAsBeginningOfStatementExpression01.js b/tests/baselines/reference/declareIdentifierAsBeginningOfStatementExpression01.js index 047b9b76719..32bbdcff6a9 100644 --- a/tests/baselines/reference/declareIdentifierAsBeginningOfStatementExpression01.js +++ b/tests/baselines/reference/declareIdentifierAsBeginningOfStatementExpression01.js @@ -11,6 +11,6 @@ var C = (function () { function C() { } return C; -})(); +}()); var declare; declare instanceof C; diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.js b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.js index 3fb23375f02..dbbe72ba52c 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.js +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.js @@ -1,12 +1,19 @@ -//// [decoratedDefaultExportsGetExportedAmd.ts] - +//// [tests/cases/conformance/es6/moduleExportsAmd/decoratedDefaultExportsGetExportedAmd.ts] //// + +//// [a.ts] var decorator: ClassDecorator; @decorator export default class Foo {} +//// [b.ts] +var decorator: ClassDecorator; + +@decorator +export default class {} -//// [decoratedDefaultExportsGetExportedAmd.js] + +//// [a.js] var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -21,5 +28,24 @@ define(["require", "exports"], function (require, exports) { Foo = __decorate([ decorator ], Foo); + Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Foo; }); +//// [b.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +define(["require", "exports"], function (require, exports) { + "use strict"; + var decorator; + let default_1 = class { + }; + default_1 = __decorate([ + decorator + ], default_1); + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = default_1; +}); diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.symbols b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.symbols index d8ff6716c38..4414fd9ef87 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.symbols +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.symbols @@ -1,12 +1,21 @@ -=== tests/cases/conformance/es6/moduleExportsAmd/decoratedDefaultExportsGetExportedAmd.ts === - +=== tests/cases/conformance/es6/moduleExportsAmd/a.ts === var decorator: ClassDecorator; ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedAmd.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) >ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) @decorator ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedAmd.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) export default class Foo {} ->Foo : Symbol(Foo, Decl(decoratedDefaultExportsGetExportedAmd.ts, 1, 30)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 30)) + +=== tests/cases/conformance/es6/moduleExportsAmd/b.ts === +var decorator: ClassDecorator; +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) +>ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) + +@decorator +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) + +export default class {} diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.types b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.types index 89df83ce76d..16dc655cc2f 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.types +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.types @@ -1,5 +1,4 @@ -=== tests/cases/conformance/es6/moduleExportsAmd/decoratedDefaultExportsGetExportedAmd.ts === - +=== tests/cases/conformance/es6/moduleExportsAmd/a.ts === var decorator: ClassDecorator; >decorator : (target: TFunction) => TFunction | void >ClassDecorator : (target: TFunction) => TFunction | void @@ -10,3 +9,13 @@ var decorator: ClassDecorator; export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsAmd/b.ts === +var decorator: ClassDecorator; +>decorator : (target: TFunction) => TFunction | void +>ClassDecorator : (target: TFunction) => TFunction | void + +@decorator +>decorator : (target: TFunction) => TFunction | void + +export default class {} + diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.js b/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.js index 32acfbbea39..ab518d73cb9 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.js +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.js @@ -1,12 +1,19 @@ -//// [decoratedDefaultExportsGetExportedCommonjs.ts] - +//// [tests/cases/conformance/es6/moduleExportsCommonjs/decoratedDefaultExportsGetExportedCommonjs.ts] //// + +//// [a.ts] var decorator: ClassDecorator; @decorator export default class Foo {} +//// [b.ts] +var decorator: ClassDecorator; + +@decorator +export default class {} -//// [decoratedDefaultExportsGetExportedCommonjs.js] + +//// [a.js] "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; @@ -20,4 +27,21 @@ let Foo = class { Foo = __decorate([ decorator ], Foo); +Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Foo; +//// [b.js] +"use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var decorator; +let default_1 = class { +}; +default_1 = __decorate([ + decorator +], default_1); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = default_1; diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.symbols b/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.symbols index 35131c1244e..4eafc337573 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.symbols +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.symbols @@ -1,12 +1,21 @@ -=== tests/cases/conformance/es6/moduleExportsCommonjs/decoratedDefaultExportsGetExportedCommonjs.ts === - +=== tests/cases/conformance/es6/moduleExportsCommonjs/a.ts === var decorator: ClassDecorator; ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedCommonjs.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) >ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) @decorator ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedCommonjs.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) export default class Foo {} ->Foo : Symbol(Foo, Decl(decoratedDefaultExportsGetExportedCommonjs.ts, 1, 30)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 30)) + +=== tests/cases/conformance/es6/moduleExportsCommonjs/b.ts === +var decorator: ClassDecorator; +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) +>ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) + +@decorator +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) + +export default class {} diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.types b/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.types index 56c8926342a..01aaf5c0dbe 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.types +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.types @@ -1,5 +1,4 @@ -=== tests/cases/conformance/es6/moduleExportsCommonjs/decoratedDefaultExportsGetExportedCommonjs.ts === - +=== tests/cases/conformance/es6/moduleExportsCommonjs/a.ts === var decorator: ClassDecorator; >decorator : (target: TFunction) => TFunction | void >ClassDecorator : (target: TFunction) => TFunction | void @@ -10,3 +9,13 @@ var decorator: ClassDecorator; export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsCommonjs/b.ts === +var decorator: ClassDecorator; +>decorator : (target: TFunction) => TFunction | void +>ClassDecorator : (target: TFunction) => TFunction | void + +@decorator +>decorator : (target: TFunction) => TFunction | void + +export default class {} + diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.js b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.js index a2b22e4ccdb..ed322374799 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.js +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.js @@ -1,12 +1,18 @@ -//// [decoratedDefaultExportsGetExportedSystem.ts] - +//// [tests/cases/conformance/es6/moduleExportsSystem/decoratedDefaultExportsGetExportedSystem.ts] //// + +//// [a.ts] var decorator: ClassDecorator; @decorator export default class Foo {} +//// [b.ts] +var decorator: ClassDecorator; + +@decorator +export default class {} -//// [decoratedDefaultExportsGetExportedSystem.js] +//// [a.js] System.register([], function(exports_1) { "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { @@ -28,3 +34,25 @@ System.register([], function(exports_1) { } } }); +//// [b.js] +System.register([], function(exports_1) { + "use strict"; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var decorator, default_1; + return { + setters:[], + execute: function() { + let default_1 = class { + }; + default_1 = __decorate([ + decorator + ], default_1); + exports_1("default", default_1); + } + } +}); diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.symbols b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.symbols index 106ea3cacd8..3751c992fa5 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.symbols +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.symbols @@ -1,12 +1,20 @@ -=== tests/cases/conformance/es6/moduleExportsSystem/decoratedDefaultExportsGetExportedSystem.ts === - +=== tests/cases/conformance/es6/moduleExportsSystem/a.ts === var decorator: ClassDecorator; ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedSystem.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) >ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) @decorator ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedSystem.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) export default class Foo {} ->Foo : Symbol(Foo, Decl(decoratedDefaultExportsGetExportedSystem.ts, 1, 30)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 30)) +=== tests/cases/conformance/es6/moduleExportsSystem/b.ts === +var decorator: ClassDecorator; +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) +>ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) + +@decorator +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) + +export default class {} diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.types b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.types index c180f5fcf09..ae36b442665 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.types +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedSystem.types @@ -1,5 +1,4 @@ -=== tests/cases/conformance/es6/moduleExportsSystem/decoratedDefaultExportsGetExportedSystem.ts === - +=== tests/cases/conformance/es6/moduleExportsSystem/a.ts === var decorator: ClassDecorator; >decorator : (target: TFunction) => TFunction | void >ClassDecorator : (target: TFunction) => TFunction | void @@ -10,3 +9,12 @@ var decorator: ClassDecorator; export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsSystem/b.ts === +var decorator: ClassDecorator; +>decorator : (target: TFunction) => TFunction | void +>ClassDecorator : (target: TFunction) => TFunction | void + +@decorator +>decorator : (target: TFunction) => TFunction | void + +export default class {} diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js index 06cee476b57..f8cb770f1d2 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.js @@ -1,12 +1,19 @@ -//// [decoratedDefaultExportsGetExportedUmd.ts] - +//// [tests/cases/conformance/es6/moduleExportsUmd/decoratedDefaultExportsGetExportedUmd.ts] //// + +//// [a.ts] var decorator: ClassDecorator; @decorator export default class Foo {} +//// [b.ts] +var decorator: ClassDecorator; + +@decorator +export default class {} -//// [decoratedDefaultExportsGetExportedUmd.js] + +//// [a.js] var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -28,5 +35,31 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, Foo = __decorate([ decorator ], Foo); + Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Foo; }); +//// [b.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +(function (factory) { + if (typeof module === 'object' && typeof module.exports === 'object') { + var v = factory(require, exports); if (v !== undefined) module.exports = v; + } + else if (typeof define === 'function' && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + var decorator; + let default_1 = class { + }; + default_1 = __decorate([ + decorator + ], default_1); + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = default_1; +}); diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.symbols b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.symbols index f4a8266cfa1..5ea35d450d0 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.symbols +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.symbols @@ -1,12 +1,21 @@ -=== tests/cases/conformance/es6/moduleExportsUmd/decoratedDefaultExportsGetExportedUmd.ts === - +=== tests/cases/conformance/es6/moduleExportsUmd/a.ts === var decorator: ClassDecorator; ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedUmd.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) >ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) @decorator ->decorator : Symbol(decorator, Decl(decoratedDefaultExportsGetExportedUmd.ts, 1, 3)) +>decorator : Symbol(decorator, Decl(a.ts, 0, 3)) export default class Foo {} ->Foo : Symbol(Foo, Decl(decoratedDefaultExportsGetExportedUmd.ts, 1, 30)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 30)) + +=== tests/cases/conformance/es6/moduleExportsUmd/b.ts === +var decorator: ClassDecorator; +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) +>ClassDecorator : Symbol(ClassDecorator, Decl(lib.d.ts, --, --)) + +@decorator +>decorator : Symbol(decorator, Decl(b.ts, 0, 3)) + +export default class {} diff --git a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.types b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.types index a258a600ba0..68212835a6f 100644 --- a/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.types +++ b/tests/baselines/reference/decoratedDefaultExportsGetExportedUmd.types @@ -1,5 +1,4 @@ -=== tests/cases/conformance/es6/moduleExportsUmd/decoratedDefaultExportsGetExportedUmd.ts === - +=== tests/cases/conformance/es6/moduleExportsUmd/a.ts === var decorator: ClassDecorator; >decorator : (target: TFunction) => TFunction | void >ClassDecorator : (target: TFunction) => TFunction | void @@ -10,3 +9,13 @@ var decorator: ClassDecorator; export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsUmd/b.ts === +var decorator: ClassDecorator; +>decorator : (target: TFunction) => TFunction | void +>ClassDecorator : (target: TFunction) => TFunction | void + +@decorator +>decorator : (target: TFunction) => TFunction | void + +export default class {} + diff --git a/tests/baselines/reference/decoratorCallGeneric.js b/tests/baselines/reference/decoratorCallGeneric.js index 8c141d5a131..acc9c48297d 100644 --- a/tests/baselines/reference/decoratorCallGeneric.js +++ b/tests/baselines/reference/decoratorCallGeneric.js @@ -28,4 +28,4 @@ var C = (function () { dec ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies.js b/tests/baselines/reference/decoratorChecksFunctionBodies.js index a5aa63b0b31..d70c4a33460 100644 --- a/tests/baselines/reference/decoratorChecksFunctionBodies.js +++ b/tests/baselines/reference/decoratorChecksFunctionBodies.js @@ -38,4 +38,4 @@ var A = (function () { }) ], A.prototype, "m", null); return A; -})(); +}()); diff --git a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.js b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.js index 51f32d67b4e..92dcc1f836c 100644 --- a/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.js +++ b/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.js @@ -49,4 +49,4 @@ var Wat = (function () { filter(function () { return a_1.test == 'abc'; }) ], Wat, "whatever", null); return Wat; -})(); +}()); diff --git a/tests/baselines/reference/decoratorMetadata.js b/tests/baselines/reference/decoratorMetadata.js index 32ecf919593..2f360df0618 100644 --- a/tests/baselines/reference/decoratorMetadata.js +++ b/tests/baselines/reference/decoratorMetadata.js @@ -24,7 +24,7 @@ var Service = (function () { function Service() { } return Service; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Service; //// [component.js] @@ -56,4 +56,4 @@ var MyComponent = (function () { __metadata('design:paramtypes', [service_1.default]) ], MyComponent); return MyComponent; -})(); +}()); diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js index 911a93f948d..f5048ead631 100644 --- a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js +++ b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js @@ -27,4 +27,4 @@ var MyClass = (function () { __metadata('design:returntype', void 0) ], MyClass.prototype, "doSomething", null); return MyClass; -})(); +}()); diff --git a/tests/baselines/reference/decoratorMetadataOnInferredType.js b/tests/baselines/reference/decoratorMetadataOnInferredType.js index 46d853a7dcd..5a39a6ce42c 100644 --- a/tests/baselines/reference/decoratorMetadataOnInferredType.js +++ b/tests/baselines/reference/decoratorMetadataOnInferredType.js @@ -24,7 +24,7 @@ var A = (function () { console.log('new A'); } return A; -})(); +}()); function decorator(target, propertyKey) { } var B = (function () { @@ -36,5 +36,5 @@ var B = (function () { __metadata('design:type', Object) ], B.prototype, "x", void 0); return B; -})(); +}()); exports.B = B; diff --git a/tests/baselines/reference/decoratorMetadataWithConstructorType.js b/tests/baselines/reference/decoratorMetadataWithConstructorType.js index 28df2186097..39e8d1811aa 100644 --- a/tests/baselines/reference/decoratorMetadataWithConstructorType.js +++ b/tests/baselines/reference/decoratorMetadataWithConstructorType.js @@ -24,7 +24,7 @@ var A = (function () { console.log('new A'); } return A; -})(); +}()); function decorator(target, propertyKey) { } var B = (function () { @@ -36,5 +36,5 @@ var B = (function () { __metadata('design:type', A) ], B.prototype, "x", void 0); return B; -})(); +}()); exports.B = B; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js index 4b37415c4b7..b549d28c7f1 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); exports.db = db; //// [service.js] "use strict"; @@ -49,5 +49,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [db_1.db]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js index 015ed6eb122..acd86e78d76 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); exports.db = db; //// [service.js] "use strict"; @@ -49,5 +49,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [db_1.db]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js index 0aff28542c0..2acd829c107 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); exports.db = db; //// [service.js] "use strict"; @@ -49,5 +49,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [db.db]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js index c9f51ae3eed..4af0beeddcb 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); exports.db = db; //// [service.js] "use strict"; @@ -49,5 +49,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [Object]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js index b5b1dd02ecd..f1537e3b447 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = db; //// [service.js] @@ -50,5 +50,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [db_1.default]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js index 5cb989e750a..7ef2c288810 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = db; //// [service.js] @@ -50,5 +50,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [db_1.default]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js index 7962eae638f..f8469cdd6a4 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = db; //// [service.js] @@ -50,5 +50,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [Object]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js index d4b24d075e9..f1885ccfaec 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js @@ -31,7 +31,7 @@ var db = (function () { db.prototype.doSomething = function () { }; return db; -})(); +}()); exports.db = db; //// [service.js] "use strict"; @@ -49,5 +49,5 @@ var MyClass = (function () { __metadata('design:paramtypes', [database.db]) ], MyClass); return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/decoratorOnClass1.js b/tests/baselines/reference/decoratorOnClass1.js index 81fb8a4afbf..7ea46b4698f 100644 --- a/tests/baselines/reference/decoratorOnClass1.js +++ b/tests/baselines/reference/decoratorOnClass1.js @@ -19,4 +19,4 @@ var C = (function () { dec ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClass2.js b/tests/baselines/reference/decoratorOnClass2.js index d2258f2e0f3..3f24c7ae55b 100644 --- a/tests/baselines/reference/decoratorOnClass2.js +++ b/tests/baselines/reference/decoratorOnClass2.js @@ -20,5 +20,5 @@ var C = (function () { dec ], C); return C; -})(); +}()); exports.C = C; diff --git a/tests/baselines/reference/decoratorOnClass3.js b/tests/baselines/reference/decoratorOnClass3.js index 53888b7f107..5a3601fc1f3 100644 --- a/tests/baselines/reference/decoratorOnClass3.js +++ b/tests/baselines/reference/decoratorOnClass3.js @@ -20,4 +20,4 @@ var C = (function () { dec ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClass4.js b/tests/baselines/reference/decoratorOnClass4.js index bfcfe490498..adbe30db662 100644 --- a/tests/baselines/reference/decoratorOnClass4.js +++ b/tests/baselines/reference/decoratorOnClass4.js @@ -19,4 +19,4 @@ var C = (function () { dec() ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClass5.js b/tests/baselines/reference/decoratorOnClass5.js index b3ceb807408..6741b26373b 100644 --- a/tests/baselines/reference/decoratorOnClass5.js +++ b/tests/baselines/reference/decoratorOnClass5.js @@ -19,4 +19,4 @@ var C = (function () { dec() ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClass8.js b/tests/baselines/reference/decoratorOnClass8.js index 81edefc39fa..e5cd8812ea7 100644 --- a/tests/baselines/reference/decoratorOnClass8.js +++ b/tests/baselines/reference/decoratorOnClass8.js @@ -19,4 +19,4 @@ var C = (function () { dec() ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassAccessor1.js b/tests/baselines/reference/decoratorOnClassAccessor1.js index 5a5d7ec98ee..cf989705b79 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor1.js +++ b/tests/baselines/reference/decoratorOnClassAccessor1.js @@ -24,4 +24,4 @@ var C = (function () { dec ], C.prototype, "accessor", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassAccessor2.js b/tests/baselines/reference/decoratorOnClassAccessor2.js index 62b4d46669b..9e9455b4380 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor2.js +++ b/tests/baselines/reference/decoratorOnClassAccessor2.js @@ -24,4 +24,4 @@ var C = (function () { dec ], C.prototype, "accessor", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassAccessor3.js b/tests/baselines/reference/decoratorOnClassAccessor3.js index ce630dde3b2..8a27914e0c8 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor3.js +++ b/tests/baselines/reference/decoratorOnClassAccessor3.js @@ -24,4 +24,4 @@ var C = (function () { dec ], C.prototype, "accessor", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassAccessor4.js b/tests/baselines/reference/decoratorOnClassAccessor4.js index 5d47233c797..85b35e95cef 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor4.js +++ b/tests/baselines/reference/decoratorOnClassAccessor4.js @@ -24,4 +24,4 @@ var C = (function () { dec ], C.prototype, "accessor", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassAccessor5.js b/tests/baselines/reference/decoratorOnClassAccessor5.js index b0383637272..12ec7a08adc 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor5.js +++ b/tests/baselines/reference/decoratorOnClassAccessor5.js @@ -24,4 +24,4 @@ var C = (function () { dec ], C.prototype, "accessor", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassAccessor6.js b/tests/baselines/reference/decoratorOnClassAccessor6.js index e76151ef562..d5477deb5af 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor6.js +++ b/tests/baselines/reference/decoratorOnClassAccessor6.js @@ -24,4 +24,4 @@ var C = (function () { dec ], C.prototype, "accessor", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassConstructor1.js b/tests/baselines/reference/decoratorOnClassConstructor1.js index c61d1d218a5..3d58c627602 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor1.js +++ b/tests/baselines/reference/decoratorOnClassConstructor1.js @@ -10,4 +10,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1.js b/tests/baselines/reference/decoratorOnClassConstructorParameter1.js index b100a5a60f8..fe04f569e30 100644 --- a/tests/baselines/reference/decoratorOnClassConstructorParameter1.js +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter1.js @@ -22,4 +22,4 @@ var C = (function () { __param(0, dec) ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4.js b/tests/baselines/reference/decoratorOnClassConstructorParameter4.js index 73d7bfba5a9..8d02bd467d6 100644 --- a/tests/baselines/reference/decoratorOnClassConstructorParameter4.js +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter4.js @@ -22,4 +22,4 @@ var C = (function () { __param(1, dec) ], C); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassMethod1.js b/tests/baselines/reference/decoratorOnClassMethod1.js index 3b8d308570c..ef029b84543 100644 --- a/tests/baselines/reference/decoratorOnClassMethod1.js +++ b/tests/baselines/reference/decoratorOnClassMethod1.js @@ -20,4 +20,4 @@ var C = (function () { dec ], C.prototype, "method", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassMethod10.js b/tests/baselines/reference/decoratorOnClassMethod10.js index 22a6be7f613..f90251d6196 100644 --- a/tests/baselines/reference/decoratorOnClassMethod10.js +++ b/tests/baselines/reference/decoratorOnClassMethod10.js @@ -20,4 +20,4 @@ var C = (function () { dec ], C.prototype, "method", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassMethod11.js b/tests/baselines/reference/decoratorOnClassMethod11.js index 59f0594f483..f1589a39286 100644 --- a/tests/baselines/reference/decoratorOnClassMethod11.js +++ b/tests/baselines/reference/decoratorOnClassMethod11.js @@ -26,5 +26,5 @@ var M; this.decorator ], C.prototype, "method", null); return C; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/decoratorOnClassMethod12.js b/tests/baselines/reference/decoratorOnClassMethod12.js index 5c43251e4c1..0650f1d00ee 100644 --- a/tests/baselines/reference/decoratorOnClassMethod12.js +++ b/tests/baselines/reference/decoratorOnClassMethod12.js @@ -28,7 +28,7 @@ var M; } S.prototype.decorator = function (target, key) { }; return S; - })(); + }()); var C = (function (_super) { __extends(C, _super); function C() { @@ -39,5 +39,5 @@ var M; _super.decorator ], C.prototype, "method", null); return C; - })(S); + }(S)); })(M || (M = {})); diff --git a/tests/baselines/reference/decoratorOnClassMethod2.js b/tests/baselines/reference/decoratorOnClassMethod2.js index 1841baeb724..5db2922ed71 100644 --- a/tests/baselines/reference/decoratorOnClassMethod2.js +++ b/tests/baselines/reference/decoratorOnClassMethod2.js @@ -20,4 +20,4 @@ var C = (function () { dec ], C.prototype, "method", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassMethod3.js b/tests/baselines/reference/decoratorOnClassMethod3.js index 8ede72027d8..30f527368f2 100644 --- a/tests/baselines/reference/decoratorOnClassMethod3.js +++ b/tests/baselines/reference/decoratorOnClassMethod3.js @@ -20,4 +20,4 @@ var C = (function () { dec ], C.prototype, "method", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassMethod8.js b/tests/baselines/reference/decoratorOnClassMethod8.js index 2cb404cf078..bf8c06d9b90 100644 --- a/tests/baselines/reference/decoratorOnClassMethod8.js +++ b/tests/baselines/reference/decoratorOnClassMethod8.js @@ -20,4 +20,4 @@ var C = (function () { dec ], C.prototype, "method", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1.js b/tests/baselines/reference/decoratorOnClassMethodParameter1.js index 099f746727c..efb1e4abff2 100644 --- a/tests/baselines/reference/decoratorOnClassMethodParameter1.js +++ b/tests/baselines/reference/decoratorOnClassMethodParameter1.js @@ -23,4 +23,4 @@ var C = (function () { __param(0, dec) ], C.prototype, "method", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassProperty1.js b/tests/baselines/reference/decoratorOnClassProperty1.js index 9283570bf3a..65a399332f1 100644 --- a/tests/baselines/reference/decoratorOnClassProperty1.js +++ b/tests/baselines/reference/decoratorOnClassProperty1.js @@ -19,4 +19,4 @@ var C = (function () { dec ], C.prototype, "prop", void 0); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassProperty10.js b/tests/baselines/reference/decoratorOnClassProperty10.js index 5246dff9643..9df40eaf83a 100644 --- a/tests/baselines/reference/decoratorOnClassProperty10.js +++ b/tests/baselines/reference/decoratorOnClassProperty10.js @@ -19,4 +19,4 @@ var C = (function () { dec() ], C.prototype, "prop", void 0); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassProperty11.js b/tests/baselines/reference/decoratorOnClassProperty11.js index 51bce1f1385..8b771caf8b5 100644 --- a/tests/baselines/reference/decoratorOnClassProperty11.js +++ b/tests/baselines/reference/decoratorOnClassProperty11.js @@ -19,4 +19,4 @@ var C = (function () { dec ], C.prototype, "prop", void 0); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassProperty2.js b/tests/baselines/reference/decoratorOnClassProperty2.js index 153c72ce0b9..3ab2b515e3c 100644 --- a/tests/baselines/reference/decoratorOnClassProperty2.js +++ b/tests/baselines/reference/decoratorOnClassProperty2.js @@ -19,4 +19,4 @@ var C = (function () { dec ], C.prototype, "prop", void 0); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassProperty3.js b/tests/baselines/reference/decoratorOnClassProperty3.js index 4f3b1ca5929..9c0d3f90e42 100644 --- a/tests/baselines/reference/decoratorOnClassProperty3.js +++ b/tests/baselines/reference/decoratorOnClassProperty3.js @@ -19,4 +19,4 @@ var C = (function () { dec ], C.prototype, "prop", void 0); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassProperty6.js b/tests/baselines/reference/decoratorOnClassProperty6.js index e92e018c587..823a652af24 100644 --- a/tests/baselines/reference/decoratorOnClassProperty6.js +++ b/tests/baselines/reference/decoratorOnClassProperty6.js @@ -19,4 +19,4 @@ var C = (function () { dec ], C.prototype, "prop", void 0); return C; -})(); +}()); diff --git a/tests/baselines/reference/decoratorOnClassProperty7.js b/tests/baselines/reference/decoratorOnClassProperty7.js index 9521fe0ce5e..134f35022e0 100644 --- a/tests/baselines/reference/decoratorOnClassProperty7.js +++ b/tests/baselines/reference/decoratorOnClassProperty7.js @@ -19,4 +19,4 @@ var C = (function () { dec ], C.prototype, "prop", void 0); return C; -})(); +}()); diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js index 155c7cede22..51015cf44ed 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherType.js @@ -58,7 +58,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js index f8021a713c4..94f5c942bfc 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -90,7 +90,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/decrementOperatorWithNumberType.js b/tests/baselines/reference/decrementOperatorWithNumberType.js index 98f9b9d8fde..b737c91597a 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberType.js +++ b/tests/baselines/reference/decrementOperatorWithNumberType.js @@ -47,7 +47,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js index 00a613a16f6..b49f94081b9 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/decrementOperatorWithNumberTypeInvalidOperations.js @@ -56,7 +56,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js index 9ce6d2320be..71e52cfd197 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedBooleanType.js @@ -63,7 +63,7 @@ var A = (function () { } A.foo = function () { return true; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js index dfc828dcb28..1502e93e756 100644 --- a/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/decrementOperatorWithUnsupportedStringType.js @@ -75,7 +75,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/defaultArgsInOverloads.js b/tests/baselines/reference/defaultArgsInOverloads.js index defc4f3e223..1b4c65db653 100644 --- a/tests/baselines/reference/defaultArgsInOverloads.js +++ b/tests/baselines/reference/defaultArgsInOverloads.js @@ -33,5 +33,5 @@ var C = (function () { if (a === void 0) { a = null; } }; return C; -})(); +}()); var f; diff --git a/tests/baselines/reference/defaultExportsCannotMerge02.js b/tests/baselines/reference/defaultExportsCannotMerge02.js index 57b175266c1..f327c62e571 100644 --- a/tests/baselines/reference/defaultExportsCannotMerge02.js +++ b/tests/baselines/reference/defaultExportsCannotMerge02.js @@ -31,7 +31,7 @@ var Decl = (function () { function Decl() { } return Decl; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Decl; //// [m2.js] diff --git a/tests/baselines/reference/defaultExportsCannotMerge03.js b/tests/baselines/reference/defaultExportsCannotMerge03.js index 0b4f77bfb10..4369392c6e9 100644 --- a/tests/baselines/reference/defaultExportsCannotMerge03.js +++ b/tests/baselines/reference/defaultExportsCannotMerge03.js @@ -31,7 +31,7 @@ var Decl = (function () { function Decl() { } return Decl; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Decl; //// [m2.js] diff --git a/tests/baselines/reference/defaultExportsGetExportedAmd.js b/tests/baselines/reference/defaultExportsGetExportedAmd.js index b9387a2cc84..fc0385254c0 100644 --- a/tests/baselines/reference/defaultExportsGetExportedAmd.js +++ b/tests/baselines/reference/defaultExportsGetExportedAmd.js @@ -1,11 +1,24 @@ -//// [defaultExportsGetExportedAmd.ts] +//// [tests/cases/conformance/es6/moduleExportsAmd/defaultExportsGetExportedAmd.ts] //// + +//// [a.ts] export default class Foo {} +//// [b.ts] +export default function foo() {} -//// [defaultExportsGetExportedAmd.js] + +//// [a.js] define(["require", "exports"], function (require, exports) { "use strict"; class Foo { } + Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Foo; }); +//// [b.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + function foo() { } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = foo; +}); diff --git a/tests/baselines/reference/defaultExportsGetExportedAmd.symbols b/tests/baselines/reference/defaultExportsGetExportedAmd.symbols index 22376f91b08..bcb37eb7db7 100644 --- a/tests/baselines/reference/defaultExportsGetExportedAmd.symbols +++ b/tests/baselines/reference/defaultExportsGetExportedAmd.symbols @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsAmd/defaultExportsGetExportedAmd.ts === +=== tests/cases/conformance/es6/moduleExportsAmd/a.ts === export default class Foo {} ->Foo : Symbol(Foo, Decl(defaultExportsGetExportedAmd.ts, 0, 0)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 0)) + +=== tests/cases/conformance/es6/moduleExportsAmd/b.ts === +export default function foo() {} +>foo : Symbol(foo, Decl(b.ts, 0, 0)) diff --git a/tests/baselines/reference/defaultExportsGetExportedAmd.types b/tests/baselines/reference/defaultExportsGetExportedAmd.types index 94e511dbef6..a15f5e52f0c 100644 --- a/tests/baselines/reference/defaultExportsGetExportedAmd.types +++ b/tests/baselines/reference/defaultExportsGetExportedAmd.types @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsAmd/defaultExportsGetExportedAmd.ts === +=== tests/cases/conformance/es6/moduleExportsAmd/a.ts === export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsAmd/b.ts === +export default function foo() {} +>foo : () => void + diff --git a/tests/baselines/reference/defaultExportsGetExportedCommonjs.js b/tests/baselines/reference/defaultExportsGetExportedCommonjs.js index 28301251efc..1290404099d 100644 --- a/tests/baselines/reference/defaultExportsGetExportedCommonjs.js +++ b/tests/baselines/reference/defaultExportsGetExportedCommonjs.js @@ -1,9 +1,20 @@ -//// [defaultExportsGetExportedCommonjs.ts] +//// [tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts] //// + +//// [a.ts] export default class Foo {} +//// [b.ts] +export default function foo() {} -//// [defaultExportsGetExportedCommonjs.js] + +//// [a.js] "use strict"; class Foo { } +Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Foo; +//// [b.js] +"use strict"; +function foo() { } +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo; diff --git a/tests/baselines/reference/defaultExportsGetExportedCommonjs.symbols b/tests/baselines/reference/defaultExportsGetExportedCommonjs.symbols index a5be95f1787..ddcaabfed68 100644 --- a/tests/baselines/reference/defaultExportsGetExportedCommonjs.symbols +++ b/tests/baselines/reference/defaultExportsGetExportedCommonjs.symbols @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts === +=== tests/cases/conformance/es6/moduleExportsCommonjs/a.ts === export default class Foo {} ->Foo : Symbol(Foo, Decl(defaultExportsGetExportedCommonjs.ts, 0, 0)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 0)) + +=== tests/cases/conformance/es6/moduleExportsCommonjs/b.ts === +export default function foo() {} +>foo : Symbol(foo, Decl(b.ts, 0, 0)) diff --git a/tests/baselines/reference/defaultExportsGetExportedCommonjs.types b/tests/baselines/reference/defaultExportsGetExportedCommonjs.types index d7034ffa03d..7f7c5bc6f64 100644 --- a/tests/baselines/reference/defaultExportsGetExportedCommonjs.types +++ b/tests/baselines/reference/defaultExportsGetExportedCommonjs.types @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts === +=== tests/cases/conformance/es6/moduleExportsCommonjs/a.ts === export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsCommonjs/b.ts === +export default function foo() {} +>foo : () => void + diff --git a/tests/baselines/reference/defaultExportsGetExportedSystem.js b/tests/baselines/reference/defaultExportsGetExportedSystem.js index 7d5c6ee2854..67dc47f4bd5 100644 --- a/tests/baselines/reference/defaultExportsGetExportedSystem.js +++ b/tests/baselines/reference/defaultExportsGetExportedSystem.js @@ -1,8 +1,13 @@ -//// [defaultExportsGetExportedSystem.ts] +//// [tests/cases/conformance/es6/moduleExportsSystem/defaultExportsGetExportedSystem.ts] //// + +//// [a.ts] export default class Foo {} +//// [b.ts] +export default function foo() {} -//// [defaultExportsGetExportedSystem.js] + +//// [a.js] System.register([], function(exports_1) { "use strict"; var Foo; @@ -15,3 +20,14 @@ System.register([], function(exports_1) { } } }); +//// [b.js] +System.register([], function(exports_1) { + "use strict"; + function foo() { } + exports_1("default", foo); + return { + setters:[], + execute: function() { + } + } +}); diff --git a/tests/baselines/reference/defaultExportsGetExportedSystem.symbols b/tests/baselines/reference/defaultExportsGetExportedSystem.symbols index 9050833680e..cd47917b707 100644 --- a/tests/baselines/reference/defaultExportsGetExportedSystem.symbols +++ b/tests/baselines/reference/defaultExportsGetExportedSystem.symbols @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsSystem/defaultExportsGetExportedSystem.ts === +=== tests/cases/conformance/es6/moduleExportsSystem/a.ts === export default class Foo {} ->Foo : Symbol(Foo, Decl(defaultExportsGetExportedSystem.ts, 0, 0)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 0)) + +=== tests/cases/conformance/es6/moduleExportsSystem/b.ts === +export default function foo() {} +>foo : Symbol(foo, Decl(b.ts, 0, 0)) diff --git a/tests/baselines/reference/defaultExportsGetExportedSystem.types b/tests/baselines/reference/defaultExportsGetExportedSystem.types index d1439f0f99d..a3c0c90e859 100644 --- a/tests/baselines/reference/defaultExportsGetExportedSystem.types +++ b/tests/baselines/reference/defaultExportsGetExportedSystem.types @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsSystem/defaultExportsGetExportedSystem.ts === +=== tests/cases/conformance/es6/moduleExportsSystem/a.ts === export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsSystem/b.ts === +export default function foo() {} +>foo : () => void + diff --git a/tests/baselines/reference/defaultExportsGetExportedUmd.js b/tests/baselines/reference/defaultExportsGetExportedUmd.js index 902fc89c1d4..754c5b00ac8 100644 --- a/tests/baselines/reference/defaultExportsGetExportedUmd.js +++ b/tests/baselines/reference/defaultExportsGetExportedUmd.js @@ -1,8 +1,13 @@ -//// [defaultExportsGetExportedUmd.ts] +//// [tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts] //// + +//// [a.ts] export default class Foo {} +//// [b.ts] +export default function foo() {} -//// [defaultExportsGetExportedUmd.js] + +//// [a.js] (function (factory) { if (typeof module === 'object' && typeof module.exports === 'object') { var v = factory(require, exports); if (v !== undefined) module.exports = v; @@ -14,5 +19,20 @@ export default class Foo {} "use strict"; class Foo { } + Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Foo; }); +//// [b.js] +(function (factory) { + if (typeof module === 'object' && typeof module.exports === 'object') { + var v = factory(require, exports); if (v !== undefined) module.exports = v; + } + else if (typeof define === 'function' && define.amd) { + define(["require", "exports"], factory); + } +})(function (require, exports) { + "use strict"; + function foo() { } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = foo; +}); diff --git a/tests/baselines/reference/defaultExportsGetExportedUmd.symbols b/tests/baselines/reference/defaultExportsGetExportedUmd.symbols index 9c59f10e6e0..6b96dbaf628 100644 --- a/tests/baselines/reference/defaultExportsGetExportedUmd.symbols +++ b/tests/baselines/reference/defaultExportsGetExportedUmd.symbols @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts === +=== tests/cases/conformance/es6/moduleExportsUmd/a.ts === export default class Foo {} ->Foo : Symbol(Foo, Decl(defaultExportsGetExportedUmd.ts, 0, 0)) +>Foo : Symbol(Foo, Decl(a.ts, 0, 0)) + +=== tests/cases/conformance/es6/moduleExportsUmd/b.ts === +export default function foo() {} +>foo : Symbol(foo, Decl(b.ts, 0, 0)) diff --git a/tests/baselines/reference/defaultExportsGetExportedUmd.types b/tests/baselines/reference/defaultExportsGetExportedUmd.types index ed5f4b7f709..a8b2c3495ee 100644 --- a/tests/baselines/reference/defaultExportsGetExportedUmd.types +++ b/tests/baselines/reference/defaultExportsGetExportedUmd.types @@ -1,4 +1,8 @@ -=== tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts === +=== tests/cases/conformance/es6/moduleExportsUmd/a.ts === export default class Foo {} >Foo : Foo +=== tests/cases/conformance/es6/moduleExportsUmd/b.ts === +export default function foo() {} +>foo : () => void + diff --git a/tests/baselines/reference/defaultIndexProps1.js b/tests/baselines/reference/defaultIndexProps1.js index fc8fe52b9fc..58591e237ca 100644 --- a/tests/baselines/reference/defaultIndexProps1.js +++ b/tests/baselines/reference/defaultIndexProps1.js @@ -18,7 +18,7 @@ var Foo = (function () { this.v = "Yo"; } return Foo; -})(); +}()); var f = new Foo(); var q = f["v"]; var o = { v: "Yo2" }; diff --git a/tests/baselines/reference/defaultIndexProps2.js b/tests/baselines/reference/defaultIndexProps2.js index 7652e591cc9..60478ea8a37 100644 --- a/tests/baselines/reference/defaultIndexProps2.js +++ b/tests/baselines/reference/defaultIndexProps2.js @@ -21,7 +21,7 @@ var Foo = (function () { this.v = "Yo"; } return Foo; -})(); +}()); var f = new Foo(); // WScript.Echo(f[0]); var o = { v: "Yo2" }; diff --git a/tests/baselines/reference/defaultValueInConstructorOverload1.js b/tests/baselines/reference/defaultValueInConstructorOverload1.js index 968876bf7ec..a8ac6e04491 100644 --- a/tests/baselines/reference/defaultValueInConstructorOverload1.js +++ b/tests/baselines/reference/defaultValueInConstructorOverload1.js @@ -11,4 +11,4 @@ var C = (function () { if (x === void 0) { x = ''; } } return C; -})(); +}()); diff --git a/tests/baselines/reference/deleteOperatorInvalidOperations.js b/tests/baselines/reference/deleteOperatorInvalidOperations.js index fd15797698e..484b60b4cb4 100644 --- a/tests/baselines/reference/deleteOperatorInvalidOperations.js +++ b/tests/baselines/reference/deleteOperatorInvalidOperations.js @@ -30,4 +30,4 @@ var testADelx = (function () { delete s; //expect error } return testADelx; -})(); +}()); diff --git a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js index 03558d41e87..a9c437b0e7b 100644 --- a/tests/baselines/reference/deleteOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/deleteOperatorWithAnyOtherType.js @@ -80,7 +80,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/deleteOperatorWithBooleanType.js b/tests/baselines/reference/deleteOperatorWithBooleanType.js index 2b390f2dc0f..0b45c7907b0 100644 --- a/tests/baselines/reference/deleteOperatorWithBooleanType.js +++ b/tests/baselines/reference/deleteOperatorWithBooleanType.js @@ -47,7 +47,7 @@ var A = (function () { } A.foo = function () { return false; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/deleteOperatorWithNumberType.js b/tests/baselines/reference/deleteOperatorWithNumberType.js index 024fc850cc4..769dc81c63f 100644 --- a/tests/baselines/reference/deleteOperatorWithNumberType.js +++ b/tests/baselines/reference/deleteOperatorWithNumberType.js @@ -55,7 +55,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/deleteOperatorWithStringType.js b/tests/baselines/reference/deleteOperatorWithStringType.js index 9dcf113b4b2..0d084d096ba 100644 --- a/tests/baselines/reference/deleteOperatorWithStringType.js +++ b/tests/baselines/reference/deleteOperatorWithStringType.js @@ -54,7 +54,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/dependencyViaImportAlias.js b/tests/baselines/reference/dependencyViaImportAlias.js index 4ce37904a22..fad51e2ee1f 100644 --- a/tests/baselines/reference/dependencyViaImportAlias.js +++ b/tests/baselines/reference/dependencyViaImportAlias.js @@ -17,7 +17,7 @@ define(["require", "exports"], function (require, exports) { function A() { } return A; - })(); + }()); exports.A = A; }); //// [B.js] diff --git a/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js b/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js index b9090176add..2e6ac2c7934 100644 --- a/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js +++ b/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js @@ -43,36 +43,36 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { } return Derived; -})(Base); +}(Base)); var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { var r2 = function () { return _super.call(this); }; // error for misplaced super call (nested function) } return Derived2; -})(Base2); +}(Base2)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { var r = function () { _super.call(this); }; // error } return Derived3; -})(Base2); +}(Base2)); var Derived4 = (function (_super) { __extends(Derived4, _super); function Derived4() { var r = _super.call(this); // ok } return Derived4; -})(Base2); +}(Base2)); diff --git a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js index 64da47e68e0..7dbb901362f 100644 --- a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js +++ b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js @@ -33,7 +33,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); // error var Derived = (function (_super) { __extends(Derived, _super); @@ -44,4 +44,4 @@ var Derived = (function (_super) { return 1; }; return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js index 0538ba9b54a..0c7a21232e6 100644 --- a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js +++ b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js @@ -64,14 +64,14 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var d = new Derived(1); var r1 = d.a; var r2 = d.b(); @@ -85,14 +85,14 @@ var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); var d2; var r7 = d2['']; var r8 = d2[1]; diff --git a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js index a575c9bb183..a44d4340b8f 100644 --- a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js +++ b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js @@ -27,7 +27,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); // ok, use assignment compatibility var Derived = (function (_super) { __extends(Derived, _super); @@ -35,12 +35,12 @@ var Derived = (function (_super) { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); // ok, use assignment compatibility var Derived2 = (function (_super) { __extends(Derived2, _super); @@ -48,4 +48,4 @@ var Derived2 = (function (_super) { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); diff --git a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js index 7e11209b8fe..c81c6f048f5 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js +++ b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js @@ -28,7 +28,7 @@ var BaseClass = (function () { BaseClass.prototype._init = function () { }; return BaseClass; -})(); +}()); var DerivedClass = (function (_super) { __extends(DerivedClass, _super); function DerivedClass() { @@ -37,5 +37,5 @@ var DerivedClass = (function (_super) { DerivedClass.prototype._init = function () { }; return DerivedClass; -})(BaseClass); +}(BaseClass)); new DerivedClass(); diff --git a/tests/baselines/reference/derivedClassOverridesPrivates.js b/tests/baselines/reference/derivedClassOverridesPrivates.js index 6662b5013d8..cd486152c1c 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivates.js +++ b/tests/baselines/reference/derivedClassOverridesPrivates.js @@ -25,23 +25,23 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js index 21f2ce87880..5b8af9e85bf 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js @@ -62,7 +62,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived(a) { @@ -83,4 +83,4 @@ var Derived = (function (_super) { configurable: true }); return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js index b5fe3e93af5..5c7d73d5dfd 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js @@ -89,7 +89,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); // Increase visibility of all protected members to public var Derived = (function (_super) { __extends(Derived, _super); @@ -111,7 +111,7 @@ var Derived = (function (_super) { configurable: true }); return Derived; -})(Base); +}(Base)); var d = new Derived(y); var r1 = d.a; var r2 = d.b(y); @@ -127,14 +127,14 @@ var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); var d2; var r7 = d2['']; var r8 = d2[1]; diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js index c4dc1d0e9d5..ebb675a26db 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js @@ -97,7 +97,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); // Errors // decrease visibility of all public members to protected var Derived1 = (function (_super) { @@ -106,7 +106,7 @@ var Derived1 = (function (_super) { _super.call(this, a); } return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2(a) { @@ -114,7 +114,7 @@ var Derived2 = (function (_super) { } Derived2.prototype.b = function (a) { }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3(a) { @@ -126,7 +126,7 @@ var Derived3 = (function (_super) { configurable: true }); return Derived3; -})(Base); +}(Base)); var Derived4 = (function (_super) { __extends(Derived4, _super); function Derived4(a) { @@ -138,21 +138,21 @@ var Derived4 = (function (_super) { configurable: true }); return Derived4; -})(Base); +}(Base)); var Derived5 = (function (_super) { __extends(Derived5, _super); function Derived5(a) { _super.call(this, a); } return Derived5; -})(Base); +}(Base)); var Derived6 = (function (_super) { __extends(Derived6, _super); function Derived6(a) { _super.call(this, a); } return Derived6; -})(Base); +}(Base)); var Derived7 = (function (_super) { __extends(Derived7, _super); function Derived7(a) { @@ -160,7 +160,7 @@ var Derived7 = (function (_super) { } Derived7.s = function (a) { }; return Derived7; -})(Base); +}(Base)); var Derived8 = (function (_super) { __extends(Derived8, _super); function Derived8(a) { @@ -172,7 +172,7 @@ var Derived8 = (function (_super) { configurable: true }); return Derived8; -})(Base); +}(Base)); var Derived9 = (function (_super) { __extends(Derived9, _super); function Derived9(a) { @@ -184,11 +184,11 @@ var Derived9 = (function (_super) { configurable: true }); return Derived9; -})(Base); +}(Base)); var Derived10 = (function (_super) { __extends(Derived10, _super); function Derived10(a) { _super.call(this, a); } return Derived10; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js index f25c3b792de..b8a15ee8b6c 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js @@ -26,18 +26,18 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { _super.apply(this, arguments); } return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived1); +}(Derived1)); diff --git a/tests/baselines/reference/derivedClassOverridesPublicMembers.js b/tests/baselines/reference/derivedClassOverridesPublicMembers.js index 5125be4eeeb..b62f0d8f7d3 100644 --- a/tests/baselines/reference/derivedClassOverridesPublicMembers.js +++ b/tests/baselines/reference/derivedClassOverridesPublicMembers.js @@ -88,7 +88,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived(a) { @@ -109,7 +109,7 @@ var Derived = (function (_super) { configurable: true }); return Derived; -})(Base); +}(Base)); var d = new Derived(y); var r1 = d.a; var r2 = d.b(y); @@ -125,14 +125,14 @@ var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); var d2; var r7 = d2['']; var r8 = d2[1]; diff --git a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js index 9762c88035a..147e6edbbb4 100644 --- a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js +++ b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js @@ -33,23 +33,23 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); diff --git a/tests/baselines/reference/derivedClassParameterProperties.js b/tests/baselines/reference/derivedClassParameterProperties.js index 0d4a476af12..8e5fa82cf0f 100644 --- a/tests/baselines/reference/derivedClassParameterProperties.js +++ b/tests/baselines/reference/derivedClassParameterProperties.js @@ -105,7 +105,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived(y) { @@ -113,7 +113,7 @@ var Derived = (function (_super) { _super.call(this); // ok } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2(y) { @@ -122,7 +122,7 @@ var Derived2 = (function (_super) { _super.call(this); // error } return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3(y) { @@ -131,7 +131,7 @@ var Derived3 = (function (_super) { var a = 1; } return Derived3; -})(Base); +}(Base)); var Derived4 = (function (_super) { __extends(Derived4, _super); function Derived4(y) { @@ -140,7 +140,7 @@ var Derived4 = (function (_super) { _super.call(this); // error } return Derived4; -})(Base); +}(Base)); var Derived5 = (function (_super) { __extends(Derived5, _super); function Derived5(y) { @@ -149,7 +149,7 @@ var Derived5 = (function (_super) { var b = 2; } return Derived5; -})(Base); +}(Base)); var Derived6 = (function (_super) { __extends(Derived6, _super); function Derived6(y) { @@ -158,7 +158,7 @@ var Derived6 = (function (_super) { _super.call(this); // error: "super" has to be called before "this" accessing } return Derived6; -})(Base); +}(Base)); var Derived7 = (function (_super) { __extends(Derived7, _super); function Derived7(y) { @@ -168,7 +168,7 @@ var Derived7 = (function (_super) { _super.call(this); // error } return Derived7; -})(Base); +}(Base)); var Derived8 = (function (_super) { __extends(Derived8, _super); function Derived8(y) { @@ -178,13 +178,13 @@ var Derived8 = (function (_super) { this.b = 3; } return Derived8; -})(Base); +}(Base)); // generic cases of Derived7 and Derived8 var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived9 = (function (_super) { __extends(Derived9, _super); function Derived9(y) { @@ -194,7 +194,7 @@ var Derived9 = (function (_super) { _super.call(this); // error } return Derived9; -})(Base2); +}(Base2)); var Derived10 = (function (_super) { __extends(Derived10, _super); function Derived10(y) { @@ -204,4 +204,4 @@ var Derived10 = (function (_super) { this.b = 3; } return Derived10; -})(Base2); +}(Base2)); diff --git a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js index 0c214d42fec..e043ee8a5c5 100644 --- a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js +++ b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js @@ -42,7 +42,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -79,4 +79,4 @@ var Derived = (function (_super) { }); Derived.a = _super.call(this); return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js index a81a092fa54..1c88306bf3a 100644 --- a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js +++ b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js @@ -38,14 +38,14 @@ var Base = (function () { function Base(a) { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.call(this, this); // ok } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2(a) { @@ -53,7 +53,7 @@ var Derived2 = (function (_super) { this.a = a; } return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3(a) { @@ -62,7 +62,7 @@ var Derived3 = (function (_super) { this.a = a; } return Derived3; -})(Base); +}(Base)); var Derived4 = (function (_super) { __extends(Derived4, _super); function Derived4(a) { @@ -70,4 +70,4 @@ var Derived4 = (function (_super) { this.a = a; } return Derived4; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedClassTransitivity.js b/tests/baselines/reference/derivedClassTransitivity.js index de7669a71b5..38c465492e6 100644 --- a/tests/baselines/reference/derivedClassTransitivity.js +++ b/tests/baselines/reference/derivedClassTransitivity.js @@ -32,7 +32,7 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -40,7 +40,7 @@ var D = (function (_super) { } D.prototype.foo = function () { }; // ok to drop parameters return D; -})(C); +}(C)); var E = (function (_super) { __extends(E, _super); function E() { @@ -48,7 +48,7 @@ var E = (function (_super) { } E.prototype.foo = function (x) { }; // ok to add optional parameters return E; -})(D); +}(D)); var c; var d; var e; diff --git a/tests/baselines/reference/derivedClassTransitivity2.js b/tests/baselines/reference/derivedClassTransitivity2.js index 22e930ab7f9..5d08905a605 100644 --- a/tests/baselines/reference/derivedClassTransitivity2.js +++ b/tests/baselines/reference/derivedClassTransitivity2.js @@ -32,7 +32,7 @@ var C = (function () { } C.prototype.foo = function (x, y) { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -40,7 +40,7 @@ var D = (function (_super) { } D.prototype.foo = function (x) { }; // ok to drop parameters return D; -})(C); +}(C)); var E = (function (_super) { __extends(E, _super); function E() { @@ -48,7 +48,7 @@ var E = (function (_super) { } E.prototype.foo = function (x, y) { }; // ok to add optional parameters return E; -})(D); +}(D)); var c; var d; var e; diff --git a/tests/baselines/reference/derivedClassTransitivity3.js b/tests/baselines/reference/derivedClassTransitivity3.js index a1aa3a978eb..be7e97a8fc5 100644 --- a/tests/baselines/reference/derivedClassTransitivity3.js +++ b/tests/baselines/reference/derivedClassTransitivity3.js @@ -32,7 +32,7 @@ var C = (function () { } C.prototype.foo = function (x, y) { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -40,7 +40,7 @@ var D = (function (_super) { } D.prototype.foo = function (x) { }; // ok to drop parameters return D; -})(C); +}(C)); var E = (function (_super) { __extends(E, _super); function E() { @@ -48,7 +48,7 @@ var E = (function (_super) { } E.prototype.foo = function (x, y) { }; // ok to add optional parameters return E; -})(D); +}(D)); var c; var d; var e; diff --git a/tests/baselines/reference/derivedClassTransitivity4.js b/tests/baselines/reference/derivedClassTransitivity4.js index a4d319707c7..0c70f03218e 100644 --- a/tests/baselines/reference/derivedClassTransitivity4.js +++ b/tests/baselines/reference/derivedClassTransitivity4.js @@ -32,7 +32,7 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -40,7 +40,7 @@ var D = (function (_super) { } D.prototype.foo = function () { }; // ok to drop parameters return D; -})(C); +}(C)); var E = (function (_super) { __extends(E, _super); function E() { @@ -48,7 +48,7 @@ var E = (function (_super) { } E.prototype.foo = function (x) { }; // ok to add optional parameters return E; -})(D); +}(D)); var c; var d; var e; diff --git a/tests/baselines/reference/derivedClassWithAny.js b/tests/baselines/reference/derivedClassWithAny.js index 123853f3afd..34af167011d 100644 --- a/tests/baselines/reference/derivedClassWithAny.js +++ b/tests/baselines/reference/derivedClassWithAny.js @@ -87,7 +87,7 @@ var C = (function () { return 1; }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -114,7 +114,7 @@ var D = (function (_super) { return null; }; return D; -})(C); +}(C)); // if D is a valid class definition than E is now not safe tranisitively through C var E = (function (_super) { __extends(E, _super); @@ -140,7 +140,7 @@ var E = (function (_super) { return ''; }; return E; -})(D); +}(D)); var c; var d; var e; diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js index 3454c60f881..2c0775efc19 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js @@ -41,7 +41,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); // error, not a subtype var Derived = (function (_super) { __extends(Derived, _super); @@ -58,4 +58,4 @@ var Derived = (function (_super) { configurable: true }); return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js index 7de92c9cb2f..540be97d165 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js @@ -51,7 +51,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); // error, not a subtype var Derived = (function (_super) { __extends(Derived, _super); @@ -68,7 +68,7 @@ var Derived = (function (_super) { configurable: true }); return Derived; -})(Base); +}(Base)); var r = Base.x; // ok var r2 = Derived.x; // error var r3 = Base.fn(); // ok diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js index 36d2b7d2dc3..93d5b49fcd0 100644 --- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js @@ -40,7 +40,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); // should be error var Derived = (function (_super) { __extends(Derived, _super); @@ -57,4 +57,4 @@ var Derived = (function (_super) { configurable: true }); return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js index 36080385b3b..b58acc01082 100644 --- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js @@ -52,7 +52,7 @@ var Base = (function () { configurable: true }); return Base; -})(); +}()); // BUG 847404 // should be error var Derived = (function (_super) { @@ -70,7 +70,7 @@ var Derived = (function (_super) { configurable: true }); return Derived; -})(Base); +}(Base)); var r = Base.x; // ok var r2 = Derived.x; // error var r3 = Base.fn(); // ok diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js index 27a634ab2d9..479beebbbfe 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js @@ -37,7 +37,7 @@ var Base = (function () { this.a = x; } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -46,7 +46,7 @@ var Derived = (function (_super) { this.y = 'hello'; } return Derived; -})(Base); +}(Base)); var r = new Derived(); // error var r2 = new Derived(1); var Base2 = (function () { @@ -54,7 +54,7 @@ var Base2 = (function () { this.a = x; } return Base2; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -63,6 +63,6 @@ var D = (function (_super) { this.y = null; } return D; -})(Base2); +}(Base2)); var d = new D(); // error var d2 = new D(new Date()); // ok diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js index 82c5eec1d7d..4dc35c5e006 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js @@ -45,7 +45,7 @@ var Base = (function () { this.a = x; } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -54,7 +54,7 @@ var Derived = (function (_super) { this.y = 'hello'; } return Derived; -})(Base); +}(Base)); var r = new Derived(); // error var r2 = new Derived(1); var r3 = new Derived(1, 2); @@ -64,7 +64,7 @@ var Base2 = (function () { this.a = x; } return Base2; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -73,7 +73,7 @@ var D = (function (_super) { this.y = null; } return D; -})(Base2); +}(Base2)); var d = new D(); // error var d2 = new D(new Date()); // ok var d3 = new D(new Date(), new Date()); diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js index 4bfa7c81577..3b0a673d378 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js @@ -59,7 +59,7 @@ var Base = (function () { this.a = x; } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived(y, z) { @@ -68,7 +68,7 @@ var Derived = (function (_super) { this.b = y; } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -77,7 +77,7 @@ var Derived2 = (function (_super) { this.y = 'hello'; } return Derived2; -})(Derived); +}(Derived)); var r = new Derived(); // error var r2 = new Derived2(1); // error var r3 = new Derived('', ''); @@ -86,7 +86,7 @@ var Base2 = (function () { this.a = x; } return Base2; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D(y, z) { @@ -95,7 +95,7 @@ var D = (function (_super) { this.b = y; } return D; -})(Base); +}(Base)); var D2 = (function (_super) { __extends(D2, _super); function D2() { @@ -104,7 +104,7 @@ var D2 = (function (_super) { this.y = null; } return D2; -})(D); +}(D)); var d = new D2(); // error var d2 = new D2(new Date()); // error var d3 = new D2(new Date(), new Date()); // ok diff --git a/tests/baselines/reference/derivedClasses.js b/tests/baselines/reference/derivedClasses.js index 214c65bde6c..b6103940b33 100644 --- a/tests/baselines/reference/derivedClasses.js +++ b/tests/baselines/reference/derivedClasses.js @@ -47,14 +47,14 @@ var Red = (function (_super) { return getHue() + " red"; }; return Red; -})(Color); +}(Color)); var Color = (function () { function Color() { } Color.prototype.shade = function () { return "some shade"; }; Color.prototype.hue = function () { return "some hue"; }; return Color; -})(); +}()); var Blue = (function (_super) { __extends(Blue, _super); function Blue() { @@ -66,7 +66,7 @@ var Blue = (function (_super) { return getHue() + " blue"; }; return Blue; -})(Color); +}(Color)); var r = new Red(); var b = new Blue(); r.shade(); diff --git a/tests/baselines/reference/derivedGenericClassWithAny.js b/tests/baselines/reference/derivedGenericClassWithAny.js index 15835e78bd5..56daf4b7310 100644 --- a/tests/baselines/reference/derivedGenericClassWithAny.js +++ b/tests/baselines/reference/derivedGenericClassWithAny.js @@ -60,7 +60,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -87,7 +87,7 @@ var D = (function (_super) { return null; }; return D; -})(C); +}(C)); // if D is a valid class definition than E is now not safe tranisitively through C var E = (function (_super) { __extends(E, _super); @@ -104,7 +104,7 @@ var E = (function (_super) { return ''; // error }; return E; -})(D); +}(D)); var c; var d; var e; diff --git a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js index 0839b93971b..2e0a561e846 100644 --- a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js +++ b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js @@ -30,7 +30,7 @@ var Base = (function () { return null; }; return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -45,4 +45,4 @@ var Derived = (function (_super) { var r3 = this.foo({ a: 1, b: 2 }); // { a: number; b: number; } }; return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js b/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js index 7bf7444a0e5..f9982a7bfe9 100644 --- a/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js +++ b/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js @@ -20,7 +20,7 @@ var MyClass = (function () { MyClass.prototype.myMethod = function (myList) { }; return MyClass; -})(); +}()); var x = new MyClass(); x.myMethod(); // should be valid, but MyClass has no implementation to handle it. var y = new MyClass(); diff --git a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js index f00c32114cf..cfbe44166c9 100644 --- a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js +++ b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js @@ -30,19 +30,19 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function () { function Derived() { } return Derived; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var b; var d1; var d2; diff --git a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js index 9a5b4eb8156..28e6429fb7f 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js +++ b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js @@ -187,7 +187,7 @@ var C2 = (function () { var a = _a[0], b = _a[1], c = _a[2]; }; return C2; -})(); +}()); var C3 = (function () { function C3() { } @@ -201,7 +201,7 @@ var C3 = (function () { var a = _a[0], b = _a[1], c = _a[2]; }; return C3; -})(); +}()); function d5(_a) { var _b = _a === void 0 ? { x: 1, y: 2 } : _a, x = _b.x, y = _b.y; } diff --git a/tests/baselines/reference/destructuringParameterDeclaration2.js b/tests/baselines/reference/destructuringParameterDeclaration2.js index dcb2c87f25b..7cc2cb52318 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration2.js +++ b/tests/baselines/reference/destructuringParameterDeclaration2.js @@ -140,7 +140,7 @@ var C4 = (function () { var a = _a[0], b = _a[1], q = _a[2]; }; return C4; -})(); +}()); // Destructuring parameter declarations do not permit type annotations on the individual binding patterns, // as such annotations would conflict with the already established meaning of colons in object literals. // Type annotations must instead be written on the top- level parameter declaration diff --git a/tests/baselines/reference/destructuringParameterDeclaration4.js b/tests/baselines/reference/destructuringParameterDeclaration4.js index adc5264e1ff..2f0f24ac123 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration4.js +++ b/tests/baselines/reference/destructuringParameterDeclaration4.js @@ -90,7 +90,7 @@ var C = (function () { } } // Error, rest parameter can't have accessibilityModifier return C; -})(); +}()); // Rest parameter with generic function foo1() { var a = []; diff --git a/tests/baselines/reference/destructuringParameterDeclaration5.js b/tests/baselines/reference/destructuringParameterDeclaration5.js index 38366ca67ba..2df6ce46b2c 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration5.js +++ b/tests/baselines/reference/destructuringParameterDeclaration5.js @@ -61,26 +61,26 @@ var Class = (function () { function Class() { } return Class; -})(); +}()); var SubClass = (function (_super) { __extends(SubClass, _super); function SubClass() { _super.call(this); } return SubClass; -})(Class); +}(Class)); var D = (function () { function D() { } return D; -})(); +}()); var SubD = (function (_super) { __extends(SubD, _super); function SubD() { _super.call(this); } return SubD; -})(D); +}(D)); function d0(_a) { var x = (_a === void 0 ? { x: new Class() } : _a).x; } diff --git a/tests/baselines/reference/destructuringParameterProperties1.js b/tests/baselines/reference/destructuringParameterProperties1.js index cc16cc78de5..55d62d6720e 100644 --- a/tests/baselines/reference/destructuringParameterProperties1.js +++ b/tests/baselines/reference/destructuringParameterProperties1.js @@ -36,21 +36,21 @@ var C1 = (function () { this.[x, y, z] = [x, y, z]; } return C1; -})(); +}()); var C2 = (function () { function C2(_a) { var x = _a[0], y = _a[1], z = _a[2]; this.[x, y, z] = [x, y, z]; } return C2; -})(); +}()); var C3 = (function () { function C3(_a) { var x = _a.x, y = _a.y, z = _a.z; this.{ x, y, z } = { x, y, z }; } return C3; -})(); +}()); var c1 = new C1([]); c1 = new C1(["larry", "{curly}", "moe"]); var useC1Properties = c1.x === c1.y && c1.y === c1.z; diff --git a/tests/baselines/reference/destructuringParameterProperties2.js b/tests/baselines/reference/destructuringParameterProperties2.js index 27e190af62f..086585fac8e 100644 --- a/tests/baselines/reference/destructuringParameterProperties2.js +++ b/tests/baselines/reference/destructuringParameterProperties2.js @@ -49,7 +49,7 @@ var C1 = (function () { return this.c; }; return C1; -})(); +}()); var x = new C1(undefined, [0, undefined, ""]); var _a = [x.getA(), x.getB(), x.getC()], x_a = _a[0], x_b = _a[1], x_c = _a[2]; var y = new C1(10, [0, "", true]); diff --git a/tests/baselines/reference/destructuringParameterProperties3.js b/tests/baselines/reference/destructuringParameterProperties3.js index fe9e69d7e5b..71992019015 100644 --- a/tests/baselines/reference/destructuringParameterProperties3.js +++ b/tests/baselines/reference/destructuringParameterProperties3.js @@ -52,7 +52,7 @@ var C1 = (function () { return this.c; }; return C1; -})(); +}()); var x = new C1(undefined, [0, true, ""]); var _a = [x.getA(), x.getB(), x.getC()], x_a = _a[0], x_b = _a[1], x_c = _a[2]; var y = new C1(10, [0, true, true]); diff --git a/tests/baselines/reference/destructuringParameterProperties5.js b/tests/baselines/reference/destructuringParameterProperties5.js index d9b1710ae89..d857ea040a8 100644 --- a/tests/baselines/reference/destructuringParameterProperties5.js +++ b/tests/baselines/reference/destructuringParameterProperties5.js @@ -21,6 +21,6 @@ var C1 = (function () { var bar = this.x1 || this.x2 || this.x3 || this.y || this.z; } return C1; -})(); +}()); var a = new C1([{ x1: 10, x2: "", x3: true }, "", false]); var _a = [a.x1, a.x2, a.x3, a.y, a.z], a_x1 = _a[0], a_x2 = _a[1], a_x3 = _a[2], a_y = _a[3], a_z = _a[4]; diff --git a/tests/baselines/reference/destructuringWithGenericParameter.js b/tests/baselines/reference/destructuringWithGenericParameter.js index 61d523f81fa..40c78df673f 100644 --- a/tests/baselines/reference/destructuringWithGenericParameter.js +++ b/tests/baselines/reference/destructuringWithGenericParameter.js @@ -19,7 +19,7 @@ var GenericClass = (function () { function GenericClass() { } return GenericClass; -})(); +}()); var genericObject = new GenericClass(); function genericFunction(object, callback) { callback(object.payload); diff --git a/tests/baselines/reference/destructuringWithNewExpression.js b/tests/baselines/reference/destructuringWithNewExpression.js index 310129674b1..3f30d285b70 100644 --- a/tests/baselines/reference/destructuringWithNewExpression.js +++ b/tests/baselines/reference/destructuringWithNewExpression.js @@ -11,5 +11,5 @@ var C = (function () { this.x = 0; } return C; -})(); +}()); var x = (new C).x; diff --git a/tests/baselines/reference/detachedCommentAtStartOfConstructor1.js b/tests/baselines/reference/detachedCommentAtStartOfConstructor1.js index 13312aea362..a0ae2ef15e9 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfConstructor1.js +++ b/tests/baselines/reference/detachedCommentAtStartOfConstructor1.js @@ -20,4 +20,4 @@ var TestFile = (function () { this.message = getMessage(); } return TestFile; -})(); +}()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfConstructor2.js b/tests/baselines/reference/detachedCommentAtStartOfConstructor2.js index 754b432c7c5..284c9372dab 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfConstructor2.js +++ b/tests/baselines/reference/detachedCommentAtStartOfConstructor2.js @@ -21,4 +21,4 @@ var TestFile = (function () { this.message = getMessage(); } return TestFile; -})(); +}()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js index 3bbea65541f..1b459bbe062 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js +++ b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js @@ -20,4 +20,4 @@ var TestFile = (function () { return function () { return message + _this.name; }; }; return TestFile; -})(); +}()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js index 2a0ac0a4f0a..8b33b737beb 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js +++ b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js @@ -21,4 +21,4 @@ var TestFile = (function () { return function () { return message + _this.name; }; }; return TestFile; -})(); +}()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js index 2505e3f6082..51ae4090ae1 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js @@ -28,4 +28,4 @@ var TestFile = (function () { }; }; return TestFile; -})(); +}()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js index 53f6d08eaf5..22dfe4bbc44 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js @@ -29,4 +29,4 @@ var TestFile = (function () { }; }; return TestFile; -})(); +}()); diff --git a/tests/baselines/reference/differentTypesWithSameName.js b/tests/baselines/reference/differentTypesWithSameName.js index 54a7a0f43bd..a7278cebdbc 100644 --- a/tests/baselines/reference/differentTypesWithSameName.js +++ b/tests/baselines/reference/differentTypesWithSameName.js @@ -23,7 +23,7 @@ var m; function variable() { } return variable; - })(); + }()); m.variable = variable; function doSomething(v) { } @@ -33,6 +33,6 @@ var variable = (function () { function variable() { } return variable; -})(); +}()); var v = new variable(); m.doSomething(v); diff --git a/tests/baselines/reference/directDependenceBetweenTypeAliases.js b/tests/baselines/reference/directDependenceBetweenTypeAliases.js index 370e33483fc..eaee45703f7 100644 --- a/tests/baselines/reference/directDependenceBetweenTypeAliases.js +++ b/tests/baselines/reference/directDependenceBetweenTypeAliases.js @@ -48,13 +48,13 @@ var C = (function () { function C() { } return C; -})(); +}()); // A type query directly depends on the type of the referenced entity. var x = []; var C1 = (function () { function C1() { } return C1; -})(); +}()); var yy; var zz; diff --git a/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js b/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js index 7e292614d43..b6a4eb9783e 100644 --- a/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js +++ b/tests/baselines/reference/disallowLineTerminatorBeforeArrow.js @@ -157,7 +157,7 @@ var m; }; } return City; - })(); + }()); (function (Enum) { Enum[Enum["claw"] = (function () { return 10; diff --git a/tests/baselines/reference/doNotEmitDetachedCommentsAtStartOfConstructor.js b/tests/baselines/reference/doNotEmitDetachedCommentsAtStartOfConstructor.js index ba6dbf8b743..4672d9e0c4c 100644 --- a/tests/baselines/reference/doNotEmitDetachedCommentsAtStartOfConstructor.js +++ b/tests/baselines/reference/doNotEmitDetachedCommentsAtStartOfConstructor.js @@ -43,22 +43,22 @@ var A = (function () { var x = 10; } return A; -})(); +}()); var B = (function () { function B() { var y = 10; } return B; -})(); +}()); var C = (function () { function C() { var x = 10; } return C; -})(); +}()); var D = (function () { function D() { var y = 10; } return D; -})(); +}()); diff --git a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js index de55d21cb1d..cddfb7aecdc 100644 --- a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js +++ b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js @@ -17,5 +17,5 @@ var C = (function () { } C.prototype.foo = function (x, y) { }; return C; -})(); +}()); var x = 10; diff --git a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js index 66896350e6d..3198699405d 100644 --- a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js +++ b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js @@ -15,4 +15,4 @@ var C = (function () { } C.prototype.foo = function (x, y) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/dottedSymbolResolution1.js b/tests/baselines/reference/dottedSymbolResolution1.js index a0ac7a38b88..956968761ae 100644 --- a/tests/baselines/reference/dottedSymbolResolution1.js +++ b/tests/baselines/reference/dottedSymbolResolution1.js @@ -31,7 +31,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); function each(collection, callback) { return null; } diff --git a/tests/baselines/reference/downlevelLetConst16.js b/tests/baselines/reference/downlevelLetConst16.js index d6f05f7584a..4b9d4c438fc 100644 --- a/tests/baselines/reference/downlevelLetConst16.js +++ b/tests/baselines/reference/downlevelLetConst16.js @@ -278,7 +278,7 @@ var A = (function () { use(x); }; return A; -})(); +}()); var B = (function () { function B() { } @@ -302,7 +302,7 @@ var B = (function () { use(x); }; return B; -})(); +}()); function bar1() { var x = 1; use(x); diff --git a/tests/baselines/reference/duplicateAnonymousInners1.js b/tests/baselines/reference/duplicateAnonymousInners1.js index c8cb35afb2e..5bb73bf68ed 100644 --- a/tests/baselines/reference/duplicateAnonymousInners1.js +++ b/tests/baselines/reference/duplicateAnonymousInners1.js @@ -32,12 +32,12 @@ var Foo; function Helper() { } return Helper; - })(); + }()); var Inner = (function () { function Inner() { } return Inner; - })(); + }()); // Inner should show up in intellisense Foo.Outer = 0; })(Foo || (Foo = {})); @@ -48,5 +48,5 @@ var Foo; function Helper() { } return Helper; - })(); + }()); })(Foo || (Foo = {})); diff --git a/tests/baselines/reference/duplicateAnonymousModuleClasses.js b/tests/baselines/reference/duplicateAnonymousModuleClasses.js index f55a3ca8664..74f80a65d40 100644 --- a/tests/baselines/reference/duplicateAnonymousModuleClasses.js +++ b/tests/baselines/reference/duplicateAnonymousModuleClasses.js @@ -63,7 +63,7 @@ var F; function Helper() { } return Helper; - })(); + }()); })(F || (F = {})); var F; (function (F) { @@ -72,7 +72,7 @@ var F; function Helper() { } return Helper; - })(); + }()); })(F || (F = {})); var Foo; (function (Foo) { @@ -80,7 +80,7 @@ var Foo; function Helper() { } return Helper; - })(); + }()); })(Foo || (Foo = {})); var Foo; (function (Foo) { @@ -89,7 +89,7 @@ var Foo; function Helper() { } return Helper; - })(); + }()); })(Foo || (Foo = {})); var Gar; (function (Gar) { @@ -99,7 +99,7 @@ var Gar; function Helper() { } return Helper; - })(); + }()); })(Foo || (Foo = {})); var Foo; (function (Foo) { @@ -108,6 +108,6 @@ var Gar; function Helper() { } return Helper; - })(); + }()); })(Foo || (Foo = {})); })(Gar || (Gar = {})); diff --git a/tests/baselines/reference/duplicateClassElements.js b/tests/baselines/reference/duplicateClassElements.js index da320eb9ac4..ed47c532a76 100644 --- a/tests/baselines/reference/duplicateClassElements.js +++ b/tests/baselines/reference/duplicateClassElements.js @@ -102,4 +102,4 @@ var a = (function () { a.prototype.z2 = function () { }; return a; -})(); +}()); diff --git a/tests/baselines/reference/duplicateConstructorOverloadSignature.js b/tests/baselines/reference/duplicateConstructorOverloadSignature.js index 08bad59f531..8d7980ea0f7 100644 --- a/tests/baselines/reference/duplicateConstructorOverloadSignature.js +++ b/tests/baselines/reference/duplicateConstructorOverloadSignature.js @@ -10,4 +10,4 @@ var C = (function () { function C(x) { } return C; -})(); +}()); diff --git a/tests/baselines/reference/duplicateConstructorOverloadSignature2.js b/tests/baselines/reference/duplicateConstructorOverloadSignature2.js index d739150a588..a9d2a49fb25 100644 --- a/tests/baselines/reference/duplicateConstructorOverloadSignature2.js +++ b/tests/baselines/reference/duplicateConstructorOverloadSignature2.js @@ -10,4 +10,4 @@ var C = (function () { function C(x) { } return C; -})(); +}()); diff --git a/tests/baselines/reference/duplicateExportAssignments.errors.txt b/tests/baselines/reference/duplicateExportAssignments.errors.txt index 47a97f9d8af..a76513133b9 100644 --- a/tests/baselines/reference/duplicateExportAssignments.errors.txt +++ b/tests/baselines/reference/duplicateExportAssignments.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/foo1.ts(3,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/foo1.ts(3,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/externalModules/foo1.ts(3,1): error TS2300: Duplicate identifier 'export='. tests/cases/conformance/externalModules/foo1.ts(4,1): error TS2300: Duplicate identifier 'export='. tests/cases/conformance/externalModules/foo2.ts(3,1): error TS2300: Duplicate identifier 'export='. @@ -17,7 +17,7 @@ tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2300: Duplicate id var y = 20; export = x; ~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~~~~~ !!! error TS2300: Duplicate identifier 'export='. export = y; diff --git a/tests/baselines/reference/duplicateExportAssignments.js b/tests/baselines/reference/duplicateExportAssignments.js index 934ba3ae567..9d75121f232 100644 --- a/tests/baselines/reference/duplicateExportAssignments.js +++ b/tests/baselines/reference/duplicateExportAssignments.js @@ -53,7 +53,7 @@ var y = (function () { function y() { } return y; -})(); +}()); ; module.exports = x; //// [foo3.js] @@ -66,7 +66,7 @@ var y = (function () { function y() { } return y; -})(); +}()); module.exports = x; //// [foo4.js] "use strict"; diff --git a/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js b/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js index ad96e55a507..21733e2cebf 100644 --- a/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js +++ b/tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js @@ -59,7 +59,7 @@ var M; function I() { } return I; - })(); + }()); M.I = I; })(M || (M = {})); var M; @@ -73,7 +73,7 @@ var M; function f() { } return f; - })(); + }()); M.f = f; // error })(M || (M = {})); var M; @@ -86,7 +86,7 @@ var M; function g() { } return g; - })(); + }()); M.g = g; // no error })(M || (M = {})); var M; @@ -95,7 +95,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; })(M || (M = {})); var M; @@ -114,7 +114,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Foo; (function (Foo) { })(Foo || (Foo = {})); diff --git a/tests/baselines/reference/duplicateIdentifiersAcrossFileBoundaries.js b/tests/baselines/reference/duplicateIdentifiersAcrossFileBoundaries.js index a2509ea97f4..70635dcbd7e 100644 --- a/tests/baselines/reference/duplicateIdentifiersAcrossFileBoundaries.js +++ b/tests/baselines/reference/duplicateIdentifiersAcrossFileBoundaries.js @@ -39,19 +39,19 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); function f() { } var v = 3; var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var N; (function (N) { var F; @@ -64,13 +64,13 @@ var I = (function () { function I() { } return I; -})(); // error -- cannot merge interface with non-ambient class +}()); // error -- cannot merge interface with non-ambient class function C2() { } // error -- cannot merge function with non-ambient class var f = (function () { function f() { } return f; -})(); // error -- cannot merge function with non-ambient class +}()); // error -- cannot merge function with non-ambient class var v = 3; var Foo; (function (Foo) { diff --git a/tests/baselines/reference/duplicateLocalVariable1.errors.txt b/tests/baselines/reference/duplicateLocalVariable1.errors.txt index bd6d535d88e..0a49c71e29b 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.errors.txt +++ b/tests/baselines/reference/duplicateLocalVariable1.errors.txt @@ -1,7 +1,7 @@ tests/cases/compiler/duplicateLocalVariable1.ts(2,4): error TS1005: ';' expected. tests/cases/compiler/duplicateLocalVariable1.ts(2,11): error TS1146: Declaration expected. tests/cases/compiler/duplicateLocalVariable1.ts(2,13): error TS2304: Cannot find name 'commonjs'. -tests/cases/compiler/duplicateLocalVariable1.ts(12,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/duplicateLocalVariable1.ts(12,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/duplicateLocalVariable1.ts(187,22): error TS2403: Subsequent variable declarations must have the same type. Variable 'i' must be of type 'any', but here has type 'number'. @@ -25,7 +25,7 @@ tests/cases/compiler/duplicateLocalVariable1.ts(187,22): error TS2403: Subsequen export class TestCase { ~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. constructor (public name: string, public test: ()=>boolean, public errorMessageRegEx?: string) { } } diff --git a/tests/baselines/reference/duplicateLocalVariable1.js b/tests/baselines/reference/duplicateLocalVariable1.js index e155a2e50c9..734b01eaed7 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.js +++ b/tests/baselines/reference/duplicateLocalVariable1.js @@ -357,7 +357,7 @@ var TestCase = (function () { this.errorMessageRegEx = errorMessageRegEx; } return TestCase; -})(); +}()); exports.TestCase = TestCase; var TestRunner = (function () { function TestRunner() { @@ -406,7 +406,7 @@ var TestRunner = (function () { } }; return TestRunner; -})(); +}()); exports.TestRunner = TestRunner; exports.tests = (function () { var testRunner = new TestRunner(); diff --git a/tests/baselines/reference/duplicateLocalVariable2.js b/tests/baselines/reference/duplicateLocalVariable2.js index b507e337250..d6f5c26d628 100644 --- a/tests/baselines/reference/duplicateLocalVariable2.js +++ b/tests/baselines/reference/duplicateLocalVariable2.js @@ -45,7 +45,7 @@ define(["require", "exports"], function (require, exports) { this.errorMessageRegEx = errorMessageRegEx; } return TestCase; - })(); + }()); exports.TestCase = TestCase; var TestRunner = (function () { function TestRunner() { @@ -56,7 +56,7 @@ define(["require", "exports"], function (require, exports) { TestRunner.prototype.addTest = function (test) { }; return TestRunner; - })(); + }()); exports.TestRunner = TestRunner; exports.tests = (function () { var testRunner = new TestRunner(); diff --git a/tests/baselines/reference/duplicateNumericIndexers.js b/tests/baselines/reference/duplicateNumericIndexers.js index 4329e9019fb..87299585bb6 100644 --- a/tests/baselines/reference/duplicateNumericIndexers.js +++ b/tests/baselines/reference/duplicateNumericIndexers.js @@ -39,5 +39,5 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; diff --git a/tests/baselines/reference/duplicatePropertyNames.js b/tests/baselines/reference/duplicatePropertyNames.js index c3cde82e2cc..d4dfe612fc5 100644 --- a/tests/baselines/reference/duplicatePropertyNames.js +++ b/tests/baselines/reference/duplicatePropertyNames.js @@ -58,7 +58,7 @@ var C = (function () { C.prototype.bar = function (x) { }; C.prototype.bar = function (x) { }; return C; -})(); +}()); var a; var b = { foo: '', diff --git a/tests/baselines/reference/duplicateStringIndexers.js b/tests/baselines/reference/duplicateStringIndexers.js index e4f8b7c9f3c..3708d6a4989 100644 --- a/tests/baselines/reference/duplicateStringIndexers.js +++ b/tests/baselines/reference/duplicateStringIndexers.js @@ -42,6 +42,6 @@ var test; function C() { } return C; - })(); + }()); var a; })(test || (test = {})); diff --git a/tests/baselines/reference/duplicateSymbolsExportMatching.js b/tests/baselines/reference/duplicateSymbolsExportMatching.js index 8a8374a8dd4..d37d1efb3bb 100644 --- a/tests/baselines/reference/duplicateSymbolsExportMatching.js +++ b/tests/baselines/reference/duplicateSymbolsExportMatching.js @@ -101,7 +101,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); var C; (function (C) { var t; diff --git a/tests/baselines/reference/duplicateTypeParameters2.js b/tests/baselines/reference/duplicateTypeParameters2.js index 65dce28ad3f..63910fa1758 100644 --- a/tests/baselines/reference/duplicateTypeParameters2.js +++ b/tests/baselines/reference/duplicateTypeParameters2.js @@ -10,10 +10,10 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.bar = function () { }; return B; -})(); +}()); diff --git a/tests/baselines/reference/duplicateVariablesByScope.js b/tests/baselines/reference/duplicateVariablesByScope.js index 43b6e89d412..2f9a0348811 100644 --- a/tests/baselines/reference/duplicateVariablesByScope.js +++ b/tests/baselines/reference/duplicateVariablesByScope.js @@ -63,4 +63,4 @@ var C = (function () { } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/elaboratedErrors.js b/tests/baselines/reference/elaboratedErrors.js index ae5877b2dd6..cb8d1bd1ea4 100644 --- a/tests/baselines/reference/elaboratedErrors.js +++ b/tests/baselines/reference/elaboratedErrors.js @@ -33,7 +33,7 @@ var WorkerFS = (function () { function WorkerFS() { } return WorkerFS; -})(); +}()); var x; var y; // Only one of these errors should be large diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js index df4fddd3b32..a2c0b7df488 100644 --- a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js @@ -14,4 +14,4 @@ var C = (function () { var a = function () { return arguments; }; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/emitDefaultParametersMethod.js b/tests/baselines/reference/emitDefaultParametersMethod.js index 126c19305b3..1048926a187 100644 --- a/tests/baselines/reference/emitDefaultParametersMethod.js +++ b/tests/baselines/reference/emitDefaultParametersMethod.js @@ -43,13 +43,13 @@ var C = (function () { } }; return C; -})(); +}()); var D = (function () { function D(y) { if (y === void 0) { y = "hello"; } } return D; -})(); +}()); var E = (function () { function E(y) { if (y === void 0) { y = "hello"; } @@ -59,4 +59,4 @@ var E = (function () { } } return E; -})(); +}()); diff --git a/tests/baselines/reference/emitMemberAccessExpression.js b/tests/baselines/reference/emitMemberAccessExpression.js index 92fef4b36ff..f242f0903c4 100644 --- a/tests/baselines/reference/emitMemberAccessExpression.js +++ b/tests/baselines/reference/emitMemberAccessExpression.js @@ -40,7 +40,7 @@ var Microsoft; var res = Model.KnockoutExtentions; }; return _Person; - })(); + }()); Model._Person = _Person; })(Model = PeopleAtWork.Model || (PeopleAtWork.Model = {})); })(PeopleAtWork = Microsoft.PeopleAtWork || (Microsoft.PeopleAtWork = {})); @@ -61,7 +61,7 @@ var Microsoft; function KnockoutExtentions() { } return KnockoutExtentions; - })(); + }()); Model.KnockoutExtentions = KnockoutExtentions; })(Model = PeopleAtWork.Model || (PeopleAtWork.Model = {})); })(PeopleAtWork = Microsoft.PeopleAtWork || (Microsoft.PeopleAtWork = {})); diff --git a/tests/baselines/reference/emitRestParametersMethod.js b/tests/baselines/reference/emitRestParametersMethod.js index 5ceb6d768f8..1dec771cde8 100644 --- a/tests/baselines/reference/emitRestParametersMethod.js +++ b/tests/baselines/reference/emitRestParametersMethod.js @@ -34,7 +34,7 @@ var C = (function () { } }; return C; -})(); +}()); var D = (function () { function D() { var rest = []; @@ -55,4 +55,4 @@ var D = (function () { } }; return D; -})(); +}()); diff --git a/tests/baselines/reference/emitThisInSuperMethodCall.js b/tests/baselines/reference/emitThisInSuperMethodCall.js index f5cff5a8fa5..ba648b12d86 100644 --- a/tests/baselines/reference/emitThisInSuperMethodCall.js +++ b/tests/baselines/reference/emitThisInSuperMethodCall.js @@ -39,7 +39,7 @@ var User = (function () { User.prototype.sayHello = function () { }; return User; -})(); +}()); var RegisteredUser = (function (_super) { __extends(RegisteredUser, _super); function RegisteredUser() { @@ -65,4 +65,4 @@ var RegisteredUser = (function (_super) { } }; return RegisteredUser; -})(User); +}(User)); diff --git a/tests/baselines/reference/emptyGenericParamList.js b/tests/baselines/reference/emptyGenericParamList.js index c5d01778f2d..173a9401d87 100644 --- a/tests/baselines/reference/emptyGenericParamList.js +++ b/tests/baselines/reference/emptyGenericParamList.js @@ -7,5 +7,5 @@ var I = (function () { function I() { } return I; -})(); +}()); var x; diff --git a/tests/baselines/reference/emptyModuleName.js b/tests/baselines/reference/emptyModuleName.js index 892ce5f59b1..5c85d39e1ec 100644 --- a/tests/baselines/reference/emptyModuleName.js +++ b/tests/baselines/reference/emptyModuleName.js @@ -17,4 +17,4 @@ var B = (function (_super) { _super.apply(this, arguments); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/emptyTypeArgumentListWithNew.js b/tests/baselines/reference/emptyTypeArgumentListWithNew.js index d51c4f630a6..6fe2aeb5090 100644 --- a/tests/baselines/reference/emptyTypeArgumentListWithNew.js +++ b/tests/baselines/reference/emptyTypeArgumentListWithNew.js @@ -7,5 +7,5 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); new foo(); diff --git a/tests/baselines/reference/enumAssignability.errors.txt b/tests/baselines/reference/enumAssignability.errors.txt index 4a060ac3456..1316727076f 100644 --- a/tests/baselines/reference/enumAssignability.errors.txt +++ b/tests/baselines/reference/enumAssignability.errors.txt @@ -20,7 +20,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssi tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts(43,9): error TS2322: Type 'E' is not assignable to type '(x: T) => T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts(45,9): error TS2322: Type 'E' is not assignable to type 'String'. Property 'charAt' is missing in type 'Number'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts(47,21): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts(48,9): error TS2322: Type 'E' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts(49,9): error TS2322: Type 'E' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts(50,9): error TS2322: Type 'E' is not assignable to type 'V'. @@ -28,7 +27,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssi tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts(52,13): error TS2322: Type 'E' is not assignable to type 'B'. -==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts (21 errors) ==== +==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignability.ts (20 errors) ==== // enums assignable to number, any, Object, errors unless otherwise noted enum E { A } @@ -113,8 +112,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssi !!! error TS2322: Property 'charAt' is missing in type 'Number'. function foo(x: T, y: U, z: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. x = e; ~ !!! error TS2322: Type 'E' is not assignable to type 'T'. diff --git a/tests/baselines/reference/enumAssignability.js b/tests/baselines/reference/enumAssignability.js index 5bf639d9cf1..79e4b461563 100644 --- a/tests/baselines/reference/enumAssignability.js +++ b/tests/baselines/reference/enumAssignability.js @@ -79,7 +79,7 @@ var Others; function C() { } return C; - })(); + }()); var ac; var ai; var b = e; // ok diff --git a/tests/baselines/reference/enumAssignabilityInInheritance.js b/tests/baselines/reference/enumAssignabilityInInheritance.js index 01439854259..dc5237108f5 100644 --- a/tests/baselines/reference/enumAssignabilityInInheritance.js +++ b/tests/baselines/reference/enumAssignabilityInInheritance.js @@ -129,13 +129,13 @@ var A = (function () { function A() { } return A; -})(); +}()); var r4 = foo9(E.A); var A2 = (function () { function A2() { } return A2; -})(); +}()); var r4 = foo10(E.A); var r4 = foo11(E.A); var r4 = foo12(E.A); @@ -154,7 +154,7 @@ var CC = (function () { function CC() { } return CC; -})(); +}()); var CC; (function (CC) { CC.bar = 1; diff --git a/tests/baselines/reference/enumAssignmentCompat.js b/tests/baselines/reference/enumAssignmentCompat.js index f56b1f300ed..b4762d182d4 100644 --- a/tests/baselines/reference/enumAssignmentCompat.js +++ b/tests/baselines/reference/enumAssignmentCompat.js @@ -45,7 +45,7 @@ var W; function D() { } return D; - })(); + }()); W.D = D; })(W || (W = {})); var W; diff --git a/tests/baselines/reference/enumAssignmentCompat2.js b/tests/baselines/reference/enumAssignmentCompat2.js index 1fb7eb65e36..0cc3b6befbf 100644 --- a/tests/baselines/reference/enumAssignmentCompat2.js +++ b/tests/baselines/reference/enumAssignmentCompat2.js @@ -50,7 +50,7 @@ var W; function D() { } return D; - })(); + }()); W.D = D; })(W || (W = {})); var x = W; diff --git a/tests/baselines/reference/enumExportMergingES6.js b/tests/baselines/reference/enumExportMergingES6.js new file mode 100644 index 00000000000..7a5ea5f2718 --- /dev/null +++ b/tests/baselines/reference/enumExportMergingES6.js @@ -0,0 +1,23 @@ +//// [enumExportMergingES6.ts] +export enum Animals { + Cat = 1 +} +export enum Animals { + Dog = 2 +} +export enum Animals { + CatDog = Cat | Dog +} + + +//// [enumExportMergingES6.js] +export var Animals; +(function (Animals) { + Animals[Animals["Cat"] = 1] = "Cat"; +})(Animals || (Animals = {})); +(function (Animals) { + Animals[Animals["Dog"] = 2] = "Dog"; +})(Animals || (Animals = {})); +(function (Animals) { + Animals[Animals["CatDog"] = 3] = "CatDog"; +})(Animals || (Animals = {})); diff --git a/tests/baselines/reference/enumExportMergingES6.symbols b/tests/baselines/reference/enumExportMergingES6.symbols new file mode 100644 index 00000000000..66fc31c5e18 --- /dev/null +++ b/tests/baselines/reference/enumExportMergingES6.symbols @@ -0,0 +1,22 @@ +=== tests/cases/conformance/enums/enumExportMergingES6.ts === +export enum Animals { +>Animals : Symbol(Animals, Decl(enumExportMergingES6.ts, 0, 0), Decl(enumExportMergingES6.ts, 2, 1), Decl(enumExportMergingES6.ts, 5, 1)) + + Cat = 1 +>Cat : Symbol(Animals.Cat, Decl(enumExportMergingES6.ts, 0, 21)) +} +export enum Animals { +>Animals : Symbol(Animals, Decl(enumExportMergingES6.ts, 0, 0), Decl(enumExportMergingES6.ts, 2, 1), Decl(enumExportMergingES6.ts, 5, 1)) + + Dog = 2 +>Dog : Symbol(Animals.Dog, Decl(enumExportMergingES6.ts, 3, 21)) +} +export enum Animals { +>Animals : Symbol(Animals, Decl(enumExportMergingES6.ts, 0, 0), Decl(enumExportMergingES6.ts, 2, 1), Decl(enumExportMergingES6.ts, 5, 1)) + + CatDog = Cat | Dog +>CatDog : Symbol(Animals.CatDog, Decl(enumExportMergingES6.ts, 6, 21)) +>Cat : Symbol(Animals.Cat, Decl(enumExportMergingES6.ts, 0, 21)) +>Dog : Symbol(Animals.Dog, Decl(enumExportMergingES6.ts, 3, 21)) +} + diff --git a/tests/baselines/reference/enumExportMergingES6.types b/tests/baselines/reference/enumExportMergingES6.types new file mode 100644 index 00000000000..da2fc22cb8a --- /dev/null +++ b/tests/baselines/reference/enumExportMergingES6.types @@ -0,0 +1,25 @@ +=== tests/cases/conformance/enums/enumExportMergingES6.ts === +export enum Animals { +>Animals : Animals + + Cat = 1 +>Cat : Animals +>1 : number +} +export enum Animals { +>Animals : Animals + + Dog = 2 +>Dog : Animals +>2 : number +} +export enum Animals { +>Animals : Animals + + CatDog = Cat | Dog +>CatDog : Animals +>Cat | Dog : number +>Cat : Animals +>Dog : Animals +} + diff --git a/tests/baselines/reference/enumGenericTypeClash.js b/tests/baselines/reference/enumGenericTypeClash.js index 849fd2c59d6..931df9f9d98 100644 --- a/tests/baselines/reference/enumGenericTypeClash.js +++ b/tests/baselines/reference/enumGenericTypeClash.js @@ -8,7 +8,7 @@ var X = (function () { function X() { } return X; -})(); +}()); var X; (function (X) { X[X["MyVal"] = 0] = "MyVal"; diff --git a/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.errors.txt b/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.errors.txt index e5c341b34df..1f8def801cc 100644 --- a/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.errors.txt +++ b/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.errors.txt @@ -13,11 +13,10 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotA tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts(95,5): error TS2411: Property 'foo' of type 'E' is not assignable to string index type 'typeof f'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts(105,5): error TS2411: Property 'foo' of type 'E' is not assignable to string index type 'typeof c'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts(111,5): error TS2411: Property 'foo' of type 'E' is not assignable to string index type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts(115,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts(117,5): error TS2411: Property 'foo' of type 'E' is not assignable to string index type 'U'. -==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts (17 errors) ==== +==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts (16 errors) ==== // enums are only subtypes of number, any and no other types enum E { A } @@ -163,8 +162,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotA interface I18 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: E; ~~~~~~~ diff --git a/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.js b/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.js index d932985ad7d..56f40eef6e0 100644 --- a/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.js +++ b/tests/baselines/reference/enumIsNotASubtypeOfAnythingButNumber.js @@ -140,12 +140,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var A2 = (function () { function A2() { } return A2; -})(); +}()); var E2; (function (E2) { E2[E2["A"] = 0] = "A"; @@ -159,7 +159,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js b/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js index 0b30745fa15..96f6c65b85c 100644 --- a/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js +++ b/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js @@ -26,11 +26,11 @@ var base = (function () { this.n = n; } return base; -})(); +}()); var derived = (function (_super) { __extends(derived, _super); function derived() { _super.apply(this, arguments); } return derived; -})(base); +}(base)); diff --git a/tests/baselines/reference/errorOnInitializerInInterfaceProperty.errors.txt b/tests/baselines/reference/errorOnInitializerInInterfaceProperty.errors.txt new file mode 100644 index 00000000000..03e899e7c2d --- /dev/null +++ b/tests/baselines/reference/errorOnInitializerInInterfaceProperty.errors.txt @@ -0,0 +1,10 @@ +tests/cases/compiler/errorOnInitializerInInterfaceProperty.ts(2,19): error TS1246: An interface property cannot have an initializer. + + +==== tests/cases/compiler/errorOnInitializerInInterfaceProperty.ts (1 errors) ==== + interface Foo { + bar: number = 5; + ~ +!!! error TS1246: An interface property cannot have an initializer. + } + \ No newline at end of file diff --git a/tests/baselines/reference/errorOnInitializerInInterfaceProperty.js b/tests/baselines/reference/errorOnInitializerInInterfaceProperty.js new file mode 100644 index 00000000000..c40a3cfb43d --- /dev/null +++ b/tests/baselines/reference/errorOnInitializerInInterfaceProperty.js @@ -0,0 +1,7 @@ +//// [errorOnInitializerInInterfaceProperty.ts] +interface Foo { + bar: number = 5; +} + + +//// [errorOnInitializerInInterfaceProperty.js] diff --git a/tests/baselines/reference/errorOnInitializerInObjectTypeLiteralProperty.errors.txt b/tests/baselines/reference/errorOnInitializerInObjectTypeLiteralProperty.errors.txt new file mode 100644 index 00000000000..f6d10b92b2d --- /dev/null +++ b/tests/baselines/reference/errorOnInitializerInObjectTypeLiteralProperty.errors.txt @@ -0,0 +1,17 @@ +tests/cases/compiler/errorOnInitializerInObjectTypeLiteralProperty.ts(2,19): error TS1247: A type literal property cannot have an initializer. +tests/cases/compiler/errorOnInitializerInObjectTypeLiteralProperty.ts(6,19): error TS1247: A type literal property cannot have an initializer. + + +==== tests/cases/compiler/errorOnInitializerInObjectTypeLiteralProperty.ts (2 errors) ==== + var Foo: { + bar: number = 5; + ~ +!!! error TS1247: A type literal property cannot have an initializer. + }; + + let Bar: { + bar: number = 5; + ~ +!!! error TS1247: A type literal property cannot have an initializer. + }; + \ No newline at end of file diff --git a/tests/baselines/reference/errorOnInitializerInObjectTypeLiteralProperty.js b/tests/baselines/reference/errorOnInitializerInObjectTypeLiteralProperty.js new file mode 100644 index 00000000000..4dcc0b7dce6 --- /dev/null +++ b/tests/baselines/reference/errorOnInitializerInObjectTypeLiteralProperty.js @@ -0,0 +1,13 @@ +//// [errorOnInitializerInObjectTypeLiteralProperty.ts] +var Foo: { + bar: number = 5; +}; + +let Bar: { + bar: number = 5; +}; + + +//// [errorOnInitializerInObjectTypeLiteralProperty.js] +var Foo; +var Bar; diff --git a/tests/baselines/reference/errorRecoveryInClassDeclaration.js b/tests/baselines/reference/errorRecoveryInClassDeclaration.js index 7f95bed19f9..cfe274c34bf 100644 --- a/tests/baselines/reference/errorRecoveryInClassDeclaration.js +++ b/tests/baselines/reference/errorRecoveryInClassDeclaration.js @@ -15,4 +15,4 @@ var C = (function () { var v = foo(public, blaz(), {}); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/errorSuperCalls.js b/tests/baselines/reference/errorSuperCalls.js index d2d4911c76a..4cc6a4d968f 100644 --- a/tests/baselines/reference/errorSuperCalls.js +++ b/tests/baselines/reference/errorSuperCalls.js @@ -122,12 +122,12 @@ var NoBase = (function () { //super call in static class member initializer with no base type NoBase.k = _super.call(this); return NoBase; -})(); +}()); var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); //super call with type arguments @@ -136,12 +136,12 @@ var Derived = (function (_super) { _super.call(this); } return Derived; -})(Base); +}(Base)); var OtherBase = (function () { function OtherBase() { } return OtherBase; -})(); +}()); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { @@ -166,4 +166,4 @@ var OtherDerived = (function (_super) { configurable: true }); return OtherDerived; -})(OtherBase); +}(OtherBase)); diff --git a/tests/baselines/reference/errorSuperPropertyAccess.js b/tests/baselines/reference/errorSuperPropertyAccess.js index 6e35248cd35..cf6ed2598ea 100644 --- a/tests/baselines/reference/errorSuperPropertyAccess.js +++ b/tests/baselines/reference/errorSuperPropertyAccess.js @@ -165,7 +165,7 @@ var NoBase = (function () { configurable: true }); return NoBase; -})(); +}()); var SomeBase = (function () { function SomeBase() { this.privateMember = 0; @@ -178,7 +178,7 @@ var SomeBase = (function () { SomeBase.privateStaticMember = 0; SomeBase.publicStaticMember = 0; return SomeBase; -})(); +}()); //super.publicInstanceMemberNotFunction in constructor of derived class //super.publicInstanceMemberNotFunction in instance member function of derived class //super.publicInstanceMemberNotFunction in instance member accessor(get and set) of derived class @@ -212,7 +212,7 @@ var SomeDerived1 = (function (_super) { }; }; return SomeDerived1; -})(SomeBase); +}(SomeBase)); //super.privateProperty in constructor of derived class //super.privateProperty in instance member function of derived class //super.privateProperty in instance member accessor(get and set) of derived class @@ -237,7 +237,7 @@ var SomeDerived2 = (function (_super) { configurable: true }); return SomeDerived2; -})(SomeBase); +}(SomeBase)); //super.publicStaticMemberNotFunction in static member function of derived class //super.publicStaticMemberNotFunction in static member accessor(get and set) of derived class //super.privateStaticProperty in static member function of derived class @@ -268,6 +268,6 @@ var SomeDerived3 = (function (_super) { configurable: true }); return SomeDerived3; -})(SomeBase); +}(SomeBase)); // In object literal var obj = { n: _super.wat, p: _super.foo.call(this) }; diff --git a/tests/baselines/reference/errorSupression1.js b/tests/baselines/reference/errorSupression1.js index 53e40e585f0..77545131ce3 100644 --- a/tests/baselines/reference/errorSupression1.js +++ b/tests/baselines/reference/errorSupression1.js @@ -14,7 +14,7 @@ var Foo = (function () { } Foo.bar = function () { return "x"; }; return Foo; -})(); +}()); var baz = Foo.b; // Foo.b won't bind. baz.concat("y"); diff --git a/tests/baselines/reference/errorsInGenericTypeReference.js b/tests/baselines/reference/errorsInGenericTypeReference.js index 42c7456be60..a7898810e10 100644 --- a/tests/baselines/reference/errorsInGenericTypeReference.js +++ b/tests/baselines/reference/errorsInGenericTypeReference.js @@ -82,14 +82,14 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); // in call type arguments var testClass1 = (function () { function testClass1() { } testClass1.prototype.method = function () { }; return testClass1; -})(); +}()); var tc1 = new testClass1(); tc1.method(); // error: could not find symbol V // in constructor type arguments @@ -97,7 +97,7 @@ var testClass2 = (function () { function testClass2() { } return testClass2; -})(); +}()); var tc2 = new testClass2(); // error: could not find symbol V // in method return type annotation var testClass3 = (function () { @@ -112,7 +112,7 @@ var testClass3 = (function () { configurable: true }); return testClass3; -})(); +}()); // in function return type annotation function testFunction1() { return null; } // error: could not find symbol V // in paramter types @@ -124,13 +124,13 @@ var testClass4 = (function () { function testClass4() { } return testClass4; -})(); // error: could not find symbol V +}()); // error: could not find symbol V var testClass6 = (function () { function testClass6() { } testClass6.prototype.method = function () { }; // error: could not find symbol V return testClass6; -})(); +}()); // in extends clause var testClass7 = (function (_super) { __extends(testClass7, _super); @@ -138,10 +138,10 @@ var testClass7 = (function (_super) { _super.apply(this, arguments); } return testClass7; -})(Foo); // error: could not find symbol V +}(Foo)); // error: could not find symbol V // in implements clause var testClass8 = (function () { function testClass8() { } return testClass8; -})(); // error: could not find symbol V +}()); // error: could not find symbol V diff --git a/tests/baselines/reference/es3-amd.js b/tests/baselines/reference/es3-amd.js index 03d4a53e9c5..ecdbfe80b46 100644 --- a/tests/baselines/reference/es3-amd.js +++ b/tests/baselines/reference/es3-amd.js @@ -21,4 +21,4 @@ var A = (function () { return 42; }; return A; -})(); +}()); diff --git a/tests/baselines/reference/es3-declaration-amd.js b/tests/baselines/reference/es3-declaration-amd.js index 12dd009cc0e..133cf33629a 100644 --- a/tests/baselines/reference/es3-declaration-amd.js +++ b/tests/baselines/reference/es3-declaration-amd.js @@ -21,7 +21,7 @@ var A = (function () { return 42; }; return A; -})(); +}()); //// [es3-declaration-amd.d.ts] diff --git a/tests/baselines/reference/es3-sourcemap-amd.js b/tests/baselines/reference/es3-sourcemap-amd.js index df673a2fe56..4b16caec721 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.js +++ b/tests/baselines/reference/es3-sourcemap-amd.js @@ -21,5 +21,5 @@ var A = (function () { return 42; }; return A; -})(); +}()); //# sourceMappingURL=es3-sourcemap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es3-sourcemap-amd.js.map b/tests/baselines/reference/es3-sourcemap-amd.js.map index e11de869437..aa9f7aefe09 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.js.map +++ b/tests/baselines/reference/es3-sourcemap-amd.js.map @@ -1,2 +1,2 @@ //// [es3-sourcemap-amd.js.map] -{"version":3,"file":"es3-sourcemap-amd.js","sourceRoot":"","sources":["es3-sourcemap-amd.ts"],"names":["A","A.constructor","A.B"],"mappings":"AACA;IAEIA;IAGAC,CAACA;IAEMD,aAACA,GAARA;QAEIE,MAAMA,CAACA,EAAEA,CAACA;IACdA,CAACA;IACLF,QAACA;AAADA,CAACA,AAXD,IAWC"} \ No newline at end of file +{"version":3,"file":"es3-sourcemap-amd.js","sourceRoot":"","sources":["es3-sourcemap-amd.ts"],"names":[],"mappings":"AACA;IAEI;IAGA,CAAC;IAEM,aAAC,GAAR;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IACL,QAAC;AAAD,CAAC,AAXD,IAWC"} \ No newline at end of file diff --git a/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt b/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt index a20cfaa766d..9cb84dff0ba 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt +++ b/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt @@ -21,7 +21,7 @@ sourceFile:es3-sourcemap-amd.ts 1->class A >{ > -1->Emitted(2, 5) Source(4, 5) + SourceIndex(0) name (A) +1->Emitted(2, 5) Source(4, 5) + SourceIndex(0) --- >>> } 1->^^^^ @@ -32,8 +32,8 @@ sourceFile:es3-sourcemap-amd.ts > > 2 > } -1->Emitted(3, 5) Source(7, 5) + SourceIndex(0) name (A.constructor) -2 >Emitted(3, 6) Source(7, 6) + SourceIndex(0) name (A.constructor) +1->Emitted(3, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(7, 6) + SourceIndex(0) --- >>> A.prototype.B = function () { 1->^^^^ @@ -44,9 +44,9 @@ sourceFile:es3-sourcemap-amd.ts > public 2 > B 3 > -1->Emitted(4, 5) Source(9, 12) + SourceIndex(0) name (A) -2 >Emitted(4, 18) Source(9, 13) + SourceIndex(0) name (A) -3 >Emitted(4, 21) Source(9, 5) + SourceIndex(0) name (A) +1->Emitted(4, 5) Source(9, 12) + SourceIndex(0) +2 >Emitted(4, 18) Source(9, 13) + SourceIndex(0) +3 >Emitted(4, 21) Source(9, 5) + SourceIndex(0) --- >>> return 42; 1 >^^^^^^^^ @@ -61,11 +61,11 @@ sourceFile:es3-sourcemap-amd.ts 3 > 4 > 42 5 > ; -1 >Emitted(5, 9) Source(11, 9) + SourceIndex(0) name (A.B) -2 >Emitted(5, 15) Source(11, 15) + SourceIndex(0) name (A.B) -3 >Emitted(5, 16) Source(11, 16) + SourceIndex(0) name (A.B) -4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) name (A.B) -5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) name (A.B) +1 >Emitted(5, 9) Source(11, 9) + SourceIndex(0) +2 >Emitted(5, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(5, 16) Source(11, 16) + SourceIndex(0) +4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -74,8 +74,8 @@ sourceFile:es3-sourcemap-amd.ts 1 > > 2 > } -1 >Emitted(6, 5) Source(12, 5) + SourceIndex(0) name (A.B) -2 >Emitted(6, 6) Source(12, 6) + SourceIndex(0) name (A.B) +1 >Emitted(6, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(12, 6) + SourceIndex(0) --- >>> return A; 1->^^^^ @@ -83,10 +83,10 @@ sourceFile:es3-sourcemap-amd.ts 1-> > 2 > } -1->Emitted(7, 5) Source(13, 1) + SourceIndex(0) name (A) -2 >Emitted(7, 13) Source(13, 2) + SourceIndex(0) name (A) +1->Emitted(7, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 13) Source(13, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -107,8 +107,8 @@ sourceFile:es3-sourcemap-amd.ts > return 42; > } > } -1 >Emitted(8, 1) Source(13, 1) + SourceIndex(0) name (A) -2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) name (A) +1 >Emitted(8, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(13, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/es3defaultAliasIsQuoted.js b/tests/baselines/reference/es3defaultAliasIsQuoted.js index 393302df518..ac6a0bd24da 100644 --- a/tests/baselines/reference/es3defaultAliasIsQuoted.js +++ b/tests/baselines/reference/es3defaultAliasIsQuoted.js @@ -21,7 +21,7 @@ var Foo = (function () { } Foo.CONSTANT = "Foo"; return Foo; -})(); +}()); exports.Foo = Foo; function assert(value) { if (!value) diff --git a/tests/baselines/reference/es5-amd.js b/tests/baselines/reference/es5-amd.js index e33fecaed64..ebfc5ee12d1 100644 --- a/tests/baselines/reference/es5-amd.js +++ b/tests/baselines/reference/es5-amd.js @@ -21,4 +21,4 @@ var A = (function () { return 42; }; return A; -})(); +}()); diff --git a/tests/baselines/reference/es5-commonjs.js b/tests/baselines/reference/es5-commonjs.js index da5bff3aea7..6a301f9a2ac 100644 --- a/tests/baselines/reference/es5-commonjs.js +++ b/tests/baselines/reference/es5-commonjs.js @@ -23,6 +23,6 @@ var A = (function () { return 42; }; return A; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = A; diff --git a/tests/baselines/reference/es5-commonjs4.js b/tests/baselines/reference/es5-commonjs4.js index 56bb5ba5f79..b67c771df3c 100644 --- a/tests/baselines/reference/es5-commonjs4.js +++ b/tests/baselines/reference/es5-commonjs4.js @@ -24,6 +24,6 @@ var A = (function () { return 42; }; return A; -})(); +}()); exports.default = A; exports.__esModule = 1; diff --git a/tests/baselines/reference/es5-declaration-amd.js b/tests/baselines/reference/es5-declaration-amd.js index e180e88d514..32c9690dc4e 100644 --- a/tests/baselines/reference/es5-declaration-amd.js +++ b/tests/baselines/reference/es5-declaration-amd.js @@ -21,7 +21,7 @@ var A = (function () { return 42; }; return A; -})(); +}()); //// [es5-declaration-amd.d.ts] diff --git a/tests/baselines/reference/es5-souremap-amd.js b/tests/baselines/reference/es5-souremap-amd.js index 8bfb47fc3b8..b957f605e7c 100644 --- a/tests/baselines/reference/es5-souremap-amd.js +++ b/tests/baselines/reference/es5-souremap-amd.js @@ -21,5 +21,5 @@ var A = (function () { return 42; }; return A; -})(); +}()); //# sourceMappingURL=es5-souremap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd.js.map b/tests/baselines/reference/es5-souremap-amd.js.map index b8412bd1e72..4c7e152e95b 100644 --- a/tests/baselines/reference/es5-souremap-amd.js.map +++ b/tests/baselines/reference/es5-souremap-amd.js.map @@ -1,2 +1,2 @@ //// [es5-souremap-amd.js.map] -{"version":3,"file":"es5-souremap-amd.js","sourceRoot":"","sources":["es5-souremap-amd.ts"],"names":["A","A.constructor","A.B"],"mappings":"AACA;IAEIA;IAGAC,CAACA;IAEMD,aAACA,GAARA;QAEIE,MAAMA,CAACA,EAAEA,CAACA;IACdA,CAACA;IACLF,QAACA;AAADA,CAACA,AAXD,IAWC"} \ No newline at end of file +{"version":3,"file":"es5-souremap-amd.js","sourceRoot":"","sources":["es5-souremap-amd.ts"],"names":[],"mappings":"AACA;IAEI;IAGA,CAAC;IAEM,aAAC,GAAR;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IACL,QAAC;AAAD,CAAC,AAXD,IAWC"} \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd.sourcemap.txt b/tests/baselines/reference/es5-souremap-amd.sourcemap.txt index 9b6b4af56ca..fc573856f9c 100644 --- a/tests/baselines/reference/es5-souremap-amd.sourcemap.txt +++ b/tests/baselines/reference/es5-souremap-amd.sourcemap.txt @@ -21,7 +21,7 @@ sourceFile:es5-souremap-amd.ts 1->class A >{ > -1->Emitted(2, 5) Source(4, 5) + SourceIndex(0) name (A) +1->Emitted(2, 5) Source(4, 5) + SourceIndex(0) --- >>> } 1->^^^^ @@ -32,8 +32,8 @@ sourceFile:es5-souremap-amd.ts > > 2 > } -1->Emitted(3, 5) Source(7, 5) + SourceIndex(0) name (A.constructor) -2 >Emitted(3, 6) Source(7, 6) + SourceIndex(0) name (A.constructor) +1->Emitted(3, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(7, 6) + SourceIndex(0) --- >>> A.prototype.B = function () { 1->^^^^ @@ -44,9 +44,9 @@ sourceFile:es5-souremap-amd.ts > public 2 > B 3 > -1->Emitted(4, 5) Source(9, 12) + SourceIndex(0) name (A) -2 >Emitted(4, 18) Source(9, 13) + SourceIndex(0) name (A) -3 >Emitted(4, 21) Source(9, 5) + SourceIndex(0) name (A) +1->Emitted(4, 5) Source(9, 12) + SourceIndex(0) +2 >Emitted(4, 18) Source(9, 13) + SourceIndex(0) +3 >Emitted(4, 21) Source(9, 5) + SourceIndex(0) --- >>> return 42; 1 >^^^^^^^^ @@ -61,11 +61,11 @@ sourceFile:es5-souremap-amd.ts 3 > 4 > 42 5 > ; -1 >Emitted(5, 9) Source(11, 9) + SourceIndex(0) name (A.B) -2 >Emitted(5, 15) Source(11, 15) + SourceIndex(0) name (A.B) -3 >Emitted(5, 16) Source(11, 16) + SourceIndex(0) name (A.B) -4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) name (A.B) -5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) name (A.B) +1 >Emitted(5, 9) Source(11, 9) + SourceIndex(0) +2 >Emitted(5, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(5, 16) Source(11, 16) + SourceIndex(0) +4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -74,8 +74,8 @@ sourceFile:es5-souremap-amd.ts 1 > > 2 > } -1 >Emitted(6, 5) Source(12, 5) + SourceIndex(0) name (A.B) -2 >Emitted(6, 6) Source(12, 6) + SourceIndex(0) name (A.B) +1 >Emitted(6, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(12, 6) + SourceIndex(0) --- >>> return A; 1->^^^^ @@ -83,10 +83,10 @@ sourceFile:es5-souremap-amd.ts 1-> > 2 > } -1->Emitted(7, 5) Source(13, 1) + SourceIndex(0) name (A) -2 >Emitted(7, 13) Source(13, 2) + SourceIndex(0) name (A) +1->Emitted(7, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 13) Source(13, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -107,8 +107,8 @@ sourceFile:es5-souremap-amd.ts > return 42; > } > } -1 >Emitted(8, 1) Source(13, 1) + SourceIndex(0) name (A) -2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) name (A) +1 >Emitted(8, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(13, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/es5-system.js b/tests/baselines/reference/es5-system.js index 1fde76a762c..a9633352b8b 100644 --- a/tests/baselines/reference/es5-system.js +++ b/tests/baselines/reference/es5-system.js @@ -28,7 +28,7 @@ System.register([], function(exports_1) { return 42; }; return A; - })(); + }()); exports_1("default", A); } } diff --git a/tests/baselines/reference/es5-umd.js b/tests/baselines/reference/es5-umd.js index 8c68092cbc6..f98d5cde719 100644 --- a/tests/baselines/reference/es5-umd.js +++ b/tests/baselines/reference/es5-umd.js @@ -22,4 +22,4 @@ var A = (function () { return 42; }; return A; -})(); +}()); diff --git a/tests/baselines/reference/es5-umd2.js b/tests/baselines/reference/es5-umd2.js index 7a6dd8f1063..abc98aa77d6 100644 --- a/tests/baselines/reference/es5-umd2.js +++ b/tests/baselines/reference/es5-umd2.js @@ -31,6 +31,6 @@ export class A return 42; }; return A; - })(); + }()); exports.A = A; }); diff --git a/tests/baselines/reference/es5-umd3.js b/tests/baselines/reference/es5-umd3.js index 0665c52696e..27e2e72aab4 100644 --- a/tests/baselines/reference/es5-umd3.js +++ b/tests/baselines/reference/es5-umd3.js @@ -31,7 +31,7 @@ export default class A return 42; }; return A; - })(); + }()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = A; }); diff --git a/tests/baselines/reference/es5-umd4.js b/tests/baselines/reference/es5-umd4.js index 546b882cac8..8ac60343759 100644 --- a/tests/baselines/reference/es5-umd4.js +++ b/tests/baselines/reference/es5-umd4.js @@ -33,6 +33,6 @@ export = A; return 42; }; return A; - })(); + }()); return A; }); diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration.js index ee513ea6e5f..fc8acfb95ea 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration.js @@ -12,7 +12,7 @@ var C = (function () { } C.prototype.method = function () { }; return C; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = C; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js index bd348d97893..0f60a104a7e 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js @@ -12,7 +12,7 @@ var default_1 = (function () { } default_1.prototype.method = function () { }; return default_1; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = default_1; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js index bd038613308..00af2676a0d 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js @@ -24,7 +24,7 @@ var C = (function () { return new C(); }; return C; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = C; var after = new C(); diff --git a/tests/baselines/reference/es5ExportEqualsDts.js b/tests/baselines/reference/es5ExportEqualsDts.js index 3d2e493a5ac..bc083ca0756 100644 --- a/tests/baselines/reference/es5ExportEqualsDts.js +++ b/tests/baselines/reference/es5ExportEqualsDts.js @@ -23,7 +23,7 @@ var A = (function () { return aVal; }; return A; -})(); +}()); module.exports = A; diff --git a/tests/baselines/reference/es5ModuleInternalNamedImports.js b/tests/baselines/reference/es5ModuleInternalNamedImports.js index 506f6bbed33..e8963b7db40 100644 --- a/tests/baselines/reference/es5ModuleInternalNamedImports.js +++ b/tests/baselines/reference/es5ModuleInternalNamedImports.js @@ -44,7 +44,7 @@ define(["require", "exports"], function (require, exports) { function M_C() { } return M_C; - })(); + }()); M.M_C = M_C; // instantiated module var M_M; diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.js b/tests/baselines/reference/es5ModuleWithModuleGenAmd.js index 22c34aa6fff..7060153f0d0 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenAmd.js +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd.js @@ -21,6 +21,6 @@ define(["require", "exports"], function (require, exports) { return 42; }; return A; - })(); + }()); exports.A = A; }); diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js index ec0c7fafc85..e5f995fb5e0 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js +++ b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js @@ -20,5 +20,5 @@ var A = (function () { return 42; }; return A; -})(); +}()); exports.A = A; diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.errors.txt b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.errors.txt index faf27a85206..90f10087194 100644 --- a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.errors.txt +++ b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/compiler/es5ModuleWithoutModuleGenTarget.ts (1 errors) ==== export class A ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. { constructor () { diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js index ae6bd73c1cc..34ad74818b2 100644 --- a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js +++ b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js @@ -20,5 +20,5 @@ var A = (function () { return 42; }; return A; -})(); +}()); exports.A = A; diff --git a/tests/baselines/reference/es5andes6module.js b/tests/baselines/reference/es5andes6module.js index 0d489357852..a6ca59befbf 100644 --- a/tests/baselines/reference/es5andes6module.js +++ b/tests/baselines/reference/es5andes6module.js @@ -22,5 +22,5 @@ var A = (function () { return 42; }; return A; -})(); +}()); exports.default = A; diff --git a/tests/baselines/reference/es6-sourcemap-amd.js.map b/tests/baselines/reference/es6-sourcemap-amd.js.map index 779c13b1296..5c62572f0a6 100644 --- a/tests/baselines/reference/es6-sourcemap-amd.js.map +++ b/tests/baselines/reference/es6-sourcemap-amd.js.map @@ -1,2 +1,2 @@ //// [es6-sourcemap-amd.js.map] -{"version":3,"file":"es6-sourcemap-amd.js","sourceRoot":"","sources":["es6-sourcemap-amd.ts"],"names":["A","A.constructor","A.B"],"mappings":"AACA;IAEIA;IAGAC,CAACA;IAEMD,CAACA;QAEJE,MAAMA,CAACA,EAAEA,CAACA;IACdA,CAACA;AACLF,CAACA;AAAA"} \ No newline at end of file +{"version":3,"file":"es6-sourcemap-amd.js","sourceRoot":"","sources":["es6-sourcemap-amd.ts"],"names":[],"mappings":"AACA;IAEI;IAGA,CAAC;IAEM,CAAC;QAEJ,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;AACL,CAAC;AAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/es6-sourcemap-amd.sourcemap.txt b/tests/baselines/reference/es6-sourcemap-amd.sourcemap.txt index 179dd79ba17..db329263ffa 100644 --- a/tests/baselines/reference/es6-sourcemap-amd.sourcemap.txt +++ b/tests/baselines/reference/es6-sourcemap-amd.sourcemap.txt @@ -21,7 +21,7 @@ sourceFile:es6-sourcemap-amd.ts 1->class A >{ > -1->Emitted(2, 5) Source(4, 5) + SourceIndex(0) name (A) +1->Emitted(2, 5) Source(4, 5) + SourceIndex(0) --- >>> } 1->^^^^ @@ -32,8 +32,8 @@ sourceFile:es6-sourcemap-amd.ts > > 2 > } -1->Emitted(3, 5) Source(7, 5) + SourceIndex(0) name (A.constructor) -2 >Emitted(3, 6) Source(7, 6) + SourceIndex(0) name (A.constructor) +1->Emitted(3, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(3, 6) Source(7, 6) + SourceIndex(0) --- >>> B() { 1->^^^^ @@ -43,8 +43,8 @@ sourceFile:es6-sourcemap-amd.ts > > public 2 > B -1->Emitted(4, 5) Source(9, 12) + SourceIndex(0) name (A) -2 >Emitted(4, 6) Source(9, 13) + SourceIndex(0) name (A) +1->Emitted(4, 5) Source(9, 12) + SourceIndex(0) +2 >Emitted(4, 6) Source(9, 13) + SourceIndex(0) --- >>> return 42; 1->^^^^^^^^ @@ -59,11 +59,11 @@ sourceFile:es6-sourcemap-amd.ts 3 > 4 > 42 5 > ; -1->Emitted(5, 9) Source(11, 9) + SourceIndex(0) name (A.B) -2 >Emitted(5, 15) Source(11, 15) + SourceIndex(0) name (A.B) -3 >Emitted(5, 16) Source(11, 16) + SourceIndex(0) name (A.B) -4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) name (A.B) -5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) name (A.B) +1->Emitted(5, 9) Source(11, 9) + SourceIndex(0) +2 >Emitted(5, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(5, 16) Source(11, 16) + SourceIndex(0) +4 >Emitted(5, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(5, 19) Source(11, 19) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -71,8 +71,8 @@ sourceFile:es6-sourcemap-amd.ts 1 > > 2 > } -1 >Emitted(6, 5) Source(12, 5) + SourceIndex(0) name (A.B) -2 >Emitted(6, 6) Source(12, 6) + SourceIndex(0) name (A.B) +1 >Emitted(6, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(12, 6) + SourceIndex(0) --- >>>} 1 > @@ -81,8 +81,8 @@ sourceFile:es6-sourcemap-amd.ts 1 > > 2 >} -1 >Emitted(7, 1) Source(13, 1) + SourceIndex(0) name (A) -2 >Emitted(7, 2) Source(13, 2) + SourceIndex(0) name (A) +1 >Emitted(7, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(13, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=es6-sourcemap-amd.js.map1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> diff --git a/tests/baselines/reference/es6ClassSuperCodegenBug.js b/tests/baselines/reference/es6ClassSuperCodegenBug.js index 9f15af96be8..c32865478e3 100644 --- a/tests/baselines/reference/es6ClassSuperCodegenBug.js +++ b/tests/baselines/reference/es6ClassSuperCodegenBug.js @@ -24,7 +24,7 @@ var A = (function () { function A(str1, str2) { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -36,4 +36,4 @@ var B = (function (_super) { } } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/es6ClassTest.js b/tests/baselines/reference/es6ClassTest.js index 9247dfde1c3..365e91321a4 100644 --- a/tests/baselines/reference/es6ClassTest.js +++ b/tests/baselines/reference/es6ClassTest.js @@ -97,7 +97,7 @@ var Bar = (function () { return x; }; return Bar; -})(); +}()); // new-style class var Foo = (function (_super) { __extends(Foo, _super); @@ -115,7 +115,7 @@ var Foo = (function (_super) { Foo.prototype.boo = function (x) { return x; }; Foo.statVal = 0; return Foo; -})(Bar); +}(Bar)); var f = new Foo(); //class GetSetMonster { // // attack(target) { diff --git a/tests/baselines/reference/es6ClassTest2.js b/tests/baselines/reference/es6ClassTest2.js index 20200a692ff..86ff00121cf 100644 --- a/tests/baselines/reference/es6ClassTest2.js +++ b/tests/baselines/reference/es6ClassTest2.js @@ -174,7 +174,7 @@ var BasicMonster = (function () { // WScript.Echo("Attacks " + target); }; return BasicMonster; -})(); +}()); var m1 = new BasicMonster("1", 100); var m2 = new BasicMonster("2", 100); m1.attack(m2); @@ -210,7 +210,7 @@ var GetSetMonster = (function () { configurable: true }); return GetSetMonster; -})(); +}()); var m3 = new BasicMonster("1", 100); var m4 = new BasicMonster("2", 100); m3.attack(m4); @@ -226,7 +226,7 @@ var OverloadedMonster = (function () { //WScript.Echo("Attacks " + target); }; return OverloadedMonster; -})(); +}()); var m5 = new OverloadedMonster("1"); var m6 = new OverloadedMonster("2"); m5.attack(m6); @@ -246,7 +246,7 @@ var SplatMonster = (function () { } }; return SplatMonster; -})(); +}()); function foo() { return true; } var PrototypeMonster = (function () { function PrototypeMonster() { @@ -254,7 +254,7 @@ var PrototypeMonster = (function () { this.b = foo(); } return PrototypeMonster; -})(); +}()); var SuperParent = (function () { function SuperParent(a) { } @@ -263,7 +263,7 @@ var SuperParent = (function () { SuperParent.prototype.c = function () { }; return SuperParent; -})(); +}()); var SuperChild = (function (_super) { __extends(SuperChild, _super); function SuperChild() { @@ -276,7 +276,7 @@ var SuperChild = (function (_super) { _super.prototype.c.call(this); }; return SuperChild; -})(SuperParent); +}(SuperParent)); var Statics = (function () { function Statics() { } @@ -285,7 +285,7 @@ var Statics = (function () { }; Statics.foo = 1; return Statics; -})(); +}()); var stat = new Statics(); var ImplementsInterface = (function () { function ImplementsInterface() { @@ -293,7 +293,7 @@ var ImplementsInterface = (function () { this.z = "foo"; } return ImplementsInterface; -})(); +}()); var Visibility = (function () { function Visibility() { this.x = 1; @@ -302,14 +302,14 @@ var Visibility = (function () { Visibility.prototype.foo = function () { }; Visibility.prototype.bar = function () { }; return Visibility; -})(); +}()); var BaseClassWithConstructor = (function () { function BaseClassWithConstructor(x, s) { this.x = x; this.s = s; } return BaseClassWithConstructor; -})(); +}()); // used to test codegen var ChildClassWithoutConstructor = (function (_super) { __extends(ChildClassWithoutConstructor, _super); @@ -317,5 +317,5 @@ var ChildClassWithoutConstructor = (function (_super) { _super.apply(this, arguments); } return ChildClassWithoutConstructor; -})(BaseClassWithConstructor); +}(BaseClassWithConstructor)); var ccwc = new ChildClassWithoutConstructor(1, "s"); diff --git a/tests/baselines/reference/es6ClassTest3.js b/tests/baselines/reference/es6ClassTest3.js index 572bd079636..daf6f63a2c1 100644 --- a/tests/baselines/reference/es6ClassTest3.js +++ b/tests/baselines/reference/es6ClassTest3.js @@ -27,5 +27,5 @@ var M; Visibility.prototype.bar = function () { }; ; return Visibility; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/es6ClassTest5.js b/tests/baselines/reference/es6ClassTest5.js index b6d3e55b8e1..b909fac58b5 100644 --- a/tests/baselines/reference/es6ClassTest5.js +++ b/tests/baselines/reference/es6ClassTest5.js @@ -20,10 +20,10 @@ var C1T5 = (function () { }; } return C1T5; -})(); +}()); var bigClass = (function () { function bigClass() { this.break = 1; } return bigClass; -})(); +}()); diff --git a/tests/baselines/reference/es6ClassTest7.js b/tests/baselines/reference/es6ClassTest7.js index 970e9c4fd9e..14662410a14 100644 --- a/tests/baselines/reference/es6ClassTest7.js +++ b/tests/baselines/reference/es6ClassTest7.js @@ -20,4 +20,4 @@ var Bar = (function (_super) { _super.apply(this, arguments); } return Bar; -})(M.Foo); +}(M.Foo)); diff --git a/tests/baselines/reference/es6ClassTest8.js b/tests/baselines/reference/es6ClassTest8.js index f96bbd16b0b..afac7054ee3 100644 --- a/tests/baselines/reference/es6ClassTest8.js +++ b/tests/baselines/reference/es6ClassTest8.js @@ -50,7 +50,7 @@ var C = (function () { var b = f1(f1(bar)); } return C; -})(); +}()); var Vector = (function () { function Vector(x, y, z) { this.x = x; @@ -63,7 +63,7 @@ var Vector = (function () { Vector.cross = function (v1, v2) { return null; }; Vector.dot = function (v1, v2) { return null; }; return Vector; -})(); +}()); var Camera = (function () { function Camera(pos, lookAt) { this.pos = pos; @@ -73,4 +73,4 @@ var Camera = (function () { this.up = Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))); } return Camera; -})(); +}()); diff --git a/tests/baselines/reference/es6DeclOrdering.js b/tests/baselines/reference/es6DeclOrdering.js index 53726e3b0bf..b5dc55ebc9c 100644 --- a/tests/baselines/reference/es6DeclOrdering.js +++ b/tests/baselines/reference/es6DeclOrdering.js @@ -26,4 +26,4 @@ var Bar = (function () { return this._store.length; }; return Bar; -})(); +}()); diff --git a/tests/baselines/reference/es6ExportAllInEs5.js b/tests/baselines/reference/es6ExportAllInEs5.js index fcd858bf457..73de2e7cce3 100644 --- a/tests/baselines/reference/es6ExportAllInEs5.js +++ b/tests/baselines/reference/es6ExportAllInEs5.js @@ -22,7 +22,7 @@ var c = (function () { function c() { } return c; -})(); +}()); exports.c = c; var m; (function (m) { diff --git a/tests/baselines/reference/es6ExportClauseInEs5.js b/tests/baselines/reference/es6ExportClauseInEs5.js index 9d30e585fde..f602f1ff609 100644 --- a/tests/baselines/reference/es6ExportClauseInEs5.js +++ b/tests/baselines/reference/es6ExportClauseInEs5.js @@ -22,7 +22,7 @@ var c = (function () { function c() { } return c; -})(); +}()); exports.c = c; exports.c2 = c; var m; diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js index 83fb99134de..ab9bd3d98c8 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js @@ -26,7 +26,7 @@ var c = (function () { function c() { } return c; -})(); +}()); exports.c = c; var m; (function (m) { diff --git a/tests/baselines/reference/es6ExportEqualsInterop.js b/tests/baselines/reference/es6ExportEqualsInterop.js index 3d9c1c95fcd..1ad4222d222 100644 --- a/tests/baselines/reference/es6ExportEqualsInterop.js +++ b/tests/baselines/reference/es6ExportEqualsInterop.js @@ -290,7 +290,6 @@ exports.a8 = function_module_2.a; var class_module_2 = require("class-module"); exports.a0 = class_module_2.a; // export-star -__export(require("interface")); __export(require("variable")); __export(require("interface-variable")); __export(require("module")); diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts.js b/tests/baselines/reference/es6ImportDefaultBindingDts.js index 7adac1fab32..dbc90cb80a3 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingDts.js +++ b/tests/baselines/reference/es6ImportDefaultBindingDts.js @@ -17,7 +17,7 @@ var c = (function () { function c() { } return c; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = c; //// [client.js] diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js index 51fc7bf6897..d7dfe29208d 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js @@ -27,6 +27,7 @@ var x1: number = m; exports.a = 10; exports.x = exports.a; exports.m = exports.a; +Object.defineProperty(exports, "__esModule", { value: true }); exports.default = {}; //// [es6ImportDefaultBindingFollowedWithNamedImport_1.js] "use strict"; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.errors.txt index 76c424a74d4..97c66a17960 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.errors.txt @@ -1,15 +1,21 @@ tests/cases/compiler/client.ts(1,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(2,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(3,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(3,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'. +tests/cases/compiler/client.ts(4,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(5,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(5,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'. +tests/cases/compiler/client.ts(6,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(7,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(7,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'. tests/cases/compiler/client.ts(7,37): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'. +tests/cases/compiler/client.ts(8,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(9,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(9,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'. +tests/cases/compiler/client.ts(10,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'. +tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. ==== tests/cases/compiler/server.ts (0 errors) ==== @@ -17,23 +23,29 @@ tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compil var a = 10; export default a; -==== tests/cases/compiler/client.ts (12 errors) ==== +==== tests/cases/compiler/client.ts (18 errors) ==== export import defaultBinding1, { } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = defaultBinding1; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding2, { a } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. ~ !!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'. export var x1: number = defaultBinding2; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding3, { a as b } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. ~ !!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'. export var x1: number = defaultBinding3; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding4, { x, a as y } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. @@ -42,16 +54,22 @@ tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compil ~ !!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'. export var x1: number = defaultBinding4; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding5, { x as z, } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. ~ !!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'. export var x1: number = defaultBinding5; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding6, { m, } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. ~ !!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'. export var x1: number = defaultBinding6; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts.js index 6618fcb9db7..a0916932d4c 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts.js @@ -30,37 +30,37 @@ var a = (function () { function a() { } return a; -})(); +}()); exports.a = a; var x = (function () { function x() { } return x; -})(); +}()); exports.x = x; var m = (function () { function m() { } return m; -})(); +}()); exports.m = m; var a11 = (function () { function a11() { } return a11; -})(); +}()); exports.a11 = a11; var a12 = (function () { function a12() { } return a12; -})(); +}()); exports.a12 = a12; var x11 = (function () { function x11() { } return x11; -})(); +}()); exports.x11 = x11; //// [client.js] "use strict"; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.js index f2a50fb494b..b588c9516e9 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportDts1.js @@ -25,7 +25,7 @@ var a = (function () { function a() { } return a; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = a; //// [client.js] diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt index 83f91787b87..859fe59b47f 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.errors.txt @@ -1,9 +1,15 @@ tests/cases/compiler/client.ts(1,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(2,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(3,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(4,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(5,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(6,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(7,12): error TS2323: Cannot redeclare exported variable 'x1'. +tests/cases/compiler/client.ts(8,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(9,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(10,12): error TS2323: Cannot redeclare exported variable 'x1'. tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'. ==== tests/cases/compiler/server.ts (0 errors) ==== @@ -13,7 +19,7 @@ tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot export var m = a; export default {}; -==== tests/cases/compiler/client.ts (6 errors) ==== +==== tests/cases/compiler/client.ts (12 errors) ==== export import defaultBinding1, { } from "server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. @@ -21,21 +27,33 @@ tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = a; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding3, { a as b } from "server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = b; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding4, { x, a as y } from "server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = x; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export var x1: number = y; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding5, { x as z, } from "server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = z; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. export import defaultBinding6, { m, } from "server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var x1: number = m; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'x1'. \ No newline at end of file diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js index c4d43e40daf..20abd2e6132 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.js @@ -14,7 +14,7 @@ var a = (function () { function a() { } return a; -})(); +}()); exports.a = a; //// [client.js] "use strict"; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js index 94b3296f363..5a2f1f35290 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.js @@ -16,7 +16,7 @@ define(["require", "exports"], function (require, exports) { function a() { } return a; - })(); + }()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = a; }); diff --git a/tests/baselines/reference/es6ImportNameSpaceImportDts.js b/tests/baselines/reference/es6ImportNameSpaceImportDts.js index 0e6252a76a5..cf66c08331e 100644 --- a/tests/baselines/reference/es6ImportNameSpaceImportDts.js +++ b/tests/baselines/reference/es6ImportNameSpaceImportDts.js @@ -15,7 +15,7 @@ var c = (function () { function c() { } return c; -})(); +}()); exports.c = c; ; //// [client.js] diff --git a/tests/baselines/reference/es6ImportNamedImportDts.js b/tests/baselines/reference/es6ImportNamedImportDts.js index ceb8219b2fd..7fdf620164b 100644 --- a/tests/baselines/reference/es6ImportNamedImportDts.js +++ b/tests/baselines/reference/es6ImportNamedImportDts.js @@ -52,85 +52,85 @@ var a = (function () { function a() { } return a; -})(); +}()); exports.a = a; var a11 = (function () { function a11() { } return a11; -})(); +}()); exports.a11 = a11; var a12 = (function () { function a12() { } return a12; -})(); +}()); exports.a12 = a12; var x = (function () { function x() { } return x; -})(); +}()); exports.x = x; var x11 = (function () { function x11() { } return x11; -})(); +}()); exports.x11 = x11; var m = (function () { function m() { } return m; -})(); +}()); exports.m = m; var a1 = (function () { function a1() { } return a1; -})(); +}()); exports.a1 = a1; var x1 = (function () { function x1() { } return x1; -})(); +}()); exports.x1 = x1; var a111 = (function () { function a111() { } return a111; -})(); +}()); exports.a111 = a111; var x111 = (function () { function x111() { } return x111; -})(); +}()); exports.x111 = x111; var z1 = (function () { function z1() { } return z1; -})(); +}()); exports.z1 = z1; var z2 = (function () { function z2() { } return z2; -})(); +}()); exports.z2 = z2; var aaaa = (function () { function aaaa() { } return aaaa; -})(); +}()); exports.aaaa = aaaa; var aaaa1 = (function () { function aaaa1() { } return aaaa1; -})(); +}()); exports.aaaa1 = aaaa1; //// [client.js] "use strict"; diff --git a/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.js b/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.js index 03c74489bfd..3e85778de58 100644 --- a/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.js +++ b/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.js @@ -20,7 +20,7 @@ var a; function c() { } return c; - })(); + }()); a.c = c; })(a = exports.a || (exports.a = {})); //// [es6ImportNamedImportInIndirectExportAssignment_1.js] diff --git a/tests/baselines/reference/es6ImportNamedImportWithExport.errors.txt b/tests/baselines/reference/es6ImportNamedImportWithExport.errors.txt index a5a4301683e..3b2d6b0cbd0 100644 --- a/tests/baselines/reference/es6ImportNamedImportWithExport.errors.txt +++ b/tests/baselines/reference/es6ImportNamedImportWithExport.errors.txt @@ -1,11 +1,21 @@ tests/cases/compiler/client.ts(1,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(2,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(3,12): error TS2323: Cannot redeclare exported variable 'xxxx'. tests/cases/compiler/client.ts(4,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(5,12): error TS2323: Cannot redeclare exported variable 'xxxx'. tests/cases/compiler/client.ts(6,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(7,12): error TS2323: Cannot redeclare exported variable 'xxxx'. +tests/cases/compiler/client.ts(8,12): error TS2323: Cannot redeclare exported variable 'xxxx'. tests/cases/compiler/client.ts(9,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(10,12): error TS2323: Cannot redeclare exported variable 'xxxx'. tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported variable 'xxxx'. tests/cases/compiler/client.ts(13,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(14,12): error TS2323: Cannot redeclare exported variable 'xxxx'. +tests/cases/compiler/client.ts(15,12): error TS2323: Cannot redeclare exported variable 'xxxx'. tests/cases/compiler/client.ts(16,1): error TS1191: An import declaration cannot have modifiers. +tests/cases/compiler/client.ts(17,12): error TS2323: Cannot redeclare exported variable 'xxxx'. +tests/cases/compiler/client.ts(18,12): error TS2323: Cannot redeclare exported variable 'xxxx'. tests/cases/compiler/client.ts(19,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(21,1): error TS1191: An import declaration cannot have modifiers. tests/cases/compiler/client.ts(25,1): error TS1191: An import declaration cannot have modifiers. @@ -23,7 +33,7 @@ tests/cases/compiler/client.ts(26,1): error TS1191: An import declaration cannot export var z2 = 10; export var aaaa = 10; -==== tests/cases/compiler/client.ts (12 errors) ==== +==== tests/cases/compiler/client.ts (22 errors) ==== export import { } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. @@ -31,33 +41,53 @@ tests/cases/compiler/client.ts(26,1): error TS1191: An import declaration cannot ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var xxxx = a; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export import { a as b } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var xxxx = b; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export import { x, a as y } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var xxxx = x; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export var xxxx = y; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export import { x as z, } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var xxxx = z; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export import { m, } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var xxxx = m; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export import { a1, x1 } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var xxxx = a1; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export var xxxx = x1; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export import { a1 as a11, x1 as x11 } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. export var xxxx = a11; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export var xxxx = x11; + ~~~~ +!!! error TS2323: Cannot redeclare exported variable 'xxxx'. export import { z1 } from "./server"; ~~~~~~ !!! error TS1191: An import declaration cannot have modifiers. diff --git a/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js b/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js index da401100405..583a008f0ac 100644 --- a/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js +++ b/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.js @@ -27,14 +27,14 @@ var C = (function () { this.prop = "hello"; } return C; -})(); +}()); exports.C = C; var C2 = (function () { function C2() { this.prop2 = "world"; } return C2; -})(); +}()); exports.C2 = C2; //// [client.js] "use strict"; diff --git a/tests/baselines/reference/es6MemberScoping.js b/tests/baselines/reference/es6MemberScoping.js index 7e70045ceb3..d38a64c611a 100644 --- a/tests/baselines/reference/es6MemberScoping.js +++ b/tests/baselines/reference/es6MemberScoping.js @@ -26,10 +26,10 @@ var Foo = (function () { return this._store.length; }; return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } Foo2.Foo2 = function () { return 0; }; // should not be an error return Foo2; -})(); +}()); diff --git a/tests/baselines/reference/es6ModuleInternalNamedImports2.js b/tests/baselines/reference/es6ModuleInternalNamedImports2.js index 9dee8153e56..98226a1e52b 100644 --- a/tests/baselines/reference/es6ModuleInternalNamedImports2.js +++ b/tests/baselines/reference/es6ModuleInternalNamedImports2.js @@ -58,7 +58,6 @@ export var M; // alias M.M_A = M_M; })(M || (M = {})); -export var M; (function (M) { // Reexports export { M_V as v }; diff --git a/tests/baselines/reference/escapedIdentifiers.js b/tests/baselines/reference/escapedIdentifiers.js index 64eaaa5784f..c1b5fe8ae09 100644 --- a/tests/baselines/reference/escapedIdentifiers.js +++ b/tests/baselines/reference/escapedIdentifiers.js @@ -154,12 +154,12 @@ var classType1 = (function () { function classType1() { } return classType1; -})(); +}()); var classType\u0032 = (function () { function classType\u0032() { } return classType\u0032; -})(); +}()); var classType1Object1 = new classType1(); classType1Object1.foo1 = 2; var classType1Object2 = new classType\u0031(); @@ -187,7 +187,7 @@ var testClass = (function () { arg4 = 2; }; return testClass; -})(); +}()); // constructors var constructorTestClass = (function () { function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) { @@ -197,7 +197,7 @@ var constructorTestClass = (function () { this.arg4 = arg4; } return constructorTestClass; -})(); +}()); var constructorTestObject = new constructorTestClass(1, 'string', true, 2); constructorTestObject.arg\u0031 = 1; constructorTestObject.arg2 = 'string'; diff --git a/tests/baselines/reference/everyTypeAssignableToAny.js b/tests/baselines/reference/everyTypeAssignableToAny.js index 8730167c3ff..0b72b915618 100644 --- a/tests/baselines/reference/everyTypeAssignableToAny.js +++ b/tests/baselines/reference/everyTypeAssignableToAny.js @@ -66,7 +66,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var ac; var ai; var E; diff --git a/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.js b/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.js index 707801dc4ee..50068024b83 100644 --- a/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.js +++ b/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.js @@ -53,12 +53,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } var M; (function (M) { @@ -66,7 +66,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; diff --git a/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.js b/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.js index 40e45bf7ec0..8ae23514920 100644 --- a/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.js +++ b/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.js @@ -59,12 +59,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } function F2(x) { return x < 42; } var M; @@ -73,7 +73,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; @@ -84,7 +84,7 @@ var N; function A() { } return A; - })(); + }()); N.A = A; function F2(x) { return x.toString(); } N.F2 = F2; diff --git a/tests/baselines/reference/everyTypeWithInitializer.js b/tests/baselines/reference/everyTypeWithInitializer.js index aae0a9fe291..b6af5725c92 100644 --- a/tests/baselines/reference/everyTypeWithInitializer.js +++ b/tests/baselines/reference/everyTypeWithInitializer.js @@ -54,12 +54,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } var M; (function (M) { @@ -67,7 +67,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; diff --git a/tests/baselines/reference/exportAlreadySeen.js b/tests/baselines/reference/exportAlreadySeen.js index 68d30a697fd..749b08b18cd 100644 --- a/tests/baselines/reference/exportAlreadySeen.js +++ b/tests/baselines/reference/exportAlreadySeen.js @@ -31,7 +31,7 @@ var M; function C() { } return C; - })(); + }()); N.C = C; })(N = M.N || (M.N = {})); })(M || (M = {})); diff --git a/tests/baselines/reference/exportAssignClassAndModule.js b/tests/baselines/reference/exportAssignClassAndModule.js index 0fbfcc93948..bdfceef6b80 100644 --- a/tests/baselines/reference/exportAssignClassAndModule.js +++ b/tests/baselines/reference/exportAssignClassAndModule.js @@ -24,7 +24,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); module.exports = Foo; //// [exportAssignClassAndModule_1.js] "use strict"; diff --git a/tests/baselines/reference/exportAssignDottedName.errors.txt b/tests/baselines/reference/exportAssignDottedName.errors.txt index 39a0a2577ee..3ed4f3c888f 100644 --- a/tests/baselines/reference/exportAssignDottedName.errors.txt +++ b/tests/baselines/reference/exportAssignDottedName.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/foo1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/foo1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/foo2.ts (0 errors) ==== @@ -8,7 +8,7 @@ tests/cases/conformance/externalModules/foo1.ts(1,17): error TS1148: Cannot comp ==== tests/cases/conformance/externalModules/foo1.ts (1 errors) ==== export function x(){ ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. return true; } \ No newline at end of file diff --git a/tests/baselines/reference/exportAssignImportedIdentifier.errors.txt b/tests/baselines/reference/exportAssignImportedIdentifier.errors.txt index 753bc567619..167c0baca3d 100644 --- a/tests/baselines/reference/exportAssignImportedIdentifier.errors.txt +++ b/tests/baselines/reference/exportAssignImportedIdentifier.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/foo1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/foo1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/foo3.ts (0 errors) ==== @@ -7,7 +7,7 @@ tests/cases/conformance/externalModules/foo1.ts(1,17): error TS1148: Cannot comp ==== tests/cases/conformance/externalModules/foo1.ts (1 errors) ==== export function x(){ ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. return true; } diff --git a/tests/baselines/reference/exportAssignNonIdentifier.errors.txt b/tests/baselines/reference/exportAssignNonIdentifier.errors.txt index c3d58c9b36f..9e8bfa8d747 100644 --- a/tests/baselines/reference/exportAssignNonIdentifier.errors.txt +++ b/tests/baselines/reference/exportAssignNonIdentifier.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/foo1.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/foo1.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/externalModules/foo6.ts(1,14): error TS1109: Expression expected. @@ -6,7 +6,7 @@ tests/cases/conformance/externalModules/foo6.ts(1,14): error TS1109: Expression var x = 10; export = typeof x; // Ok ~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/foo2.ts (0 errors) ==== export = "sausages"; // Ok diff --git a/tests/baselines/reference/exportAssignNonIdentifier.js b/tests/baselines/reference/exportAssignNonIdentifier.js index 8a266a35396..6209ade63cd 100644 --- a/tests/baselines/reference/exportAssignNonIdentifier.js +++ b/tests/baselines/reference/exportAssignNonIdentifier.js @@ -40,7 +40,7 @@ module.exports = (function () { function Foo3() { } return Foo3; -})(); +}()); //// [foo4.js] "use strict"; module.exports = true; diff --git a/tests/baselines/reference/exportAssignTypes.errors.txt b/tests/baselines/reference/exportAssignTypes.errors.txt index ba5538777c5..9d39f48fec8 100644 --- a/tests/baselines/reference/exportAssignTypes.errors.txt +++ b/tests/baselines/reference/exportAssignTypes.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/expString.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/expString.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/consumer.ts (0 errors) ==== @@ -27,7 +27,7 @@ tests/cases/conformance/externalModules/expString.ts(2,1): error TS1148: Cannot var x = "test"; export = x; ~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/expNumber.ts (0 errors) ==== var x = 42; diff --git a/tests/baselines/reference/exportAssignmentAndDeclaration.js b/tests/baselines/reference/exportAssignmentAndDeclaration.js index b2202df50e6..9e87d733c6b 100644 --- a/tests/baselines/reference/exportAssignmentAndDeclaration.js +++ b/tests/baselines/reference/exportAssignmentAndDeclaration.js @@ -23,6 +23,6 @@ define(["require", "exports"], function (require, exports) { function C1() { } return C1; - })(); + }()); return C1; }); diff --git a/tests/baselines/reference/exportAssignmentClass.js b/tests/baselines/reference/exportAssignmentClass.js index 000684f1a9f..02c74fe1f39 100644 --- a/tests/baselines/reference/exportAssignmentClass.js +++ b/tests/baselines/reference/exportAssignmentClass.js @@ -19,7 +19,7 @@ define(["require", "exports"], function (require, exports) { this.p = 0; } return C; - })(); + }()); return C; }); //// [exportAssignmentClass_B.js] diff --git a/tests/baselines/reference/exportAssignmentConstrainedGenericType.js b/tests/baselines/reference/exportAssignmentConstrainedGenericType.js index 08c1adb3a04..c0b8f2b50c1 100644 --- a/tests/baselines/reference/exportAssignmentConstrainedGenericType.js +++ b/tests/baselines/reference/exportAssignmentConstrainedGenericType.js @@ -20,7 +20,7 @@ var Foo = (function () { function Foo(x) { } return Foo; -})(); +}()); module.exports = Foo; //// [foo_1.js] "use strict"; diff --git a/tests/baselines/reference/exportAssignmentGenericType.js b/tests/baselines/reference/exportAssignmentGenericType.js index e9c6e821522..390a929ce35 100644 --- a/tests/baselines/reference/exportAssignmentGenericType.js +++ b/tests/baselines/reference/exportAssignmentGenericType.js @@ -18,7 +18,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); module.exports = Foo; //// [foo_1.js] "use strict"; diff --git a/tests/baselines/reference/exportAssignmentOfGenericType1.js b/tests/baselines/reference/exportAssignmentOfGenericType1.js index 54d936a4101..0504bad39c7 100644 --- a/tests/baselines/reference/exportAssignmentOfGenericType1.js +++ b/tests/baselines/reference/exportAssignmentOfGenericType1.js @@ -20,7 +20,7 @@ define(["require", "exports"], function (require, exports) { function T() { } return T; - })(); + }()); return T; }); //// [exportAssignmentOfGenericType1_1.js] @@ -37,7 +37,7 @@ define(["require", "exports", "exportAssignmentOfGenericType1_0"], function (req _super.apply(this, arguments); } return M; - })(q); + }(q)); var m; var r = m.foo; }); diff --git a/tests/baselines/reference/exportAssignmentTopLevelClodule.js b/tests/baselines/reference/exportAssignmentTopLevelClodule.js index 28075a7e55b..08220cc8de3 100644 --- a/tests/baselines/reference/exportAssignmentTopLevelClodule.js +++ b/tests/baselines/reference/exportAssignmentTopLevelClodule.js @@ -24,7 +24,7 @@ define(["require", "exports"], function (require, exports) { this.test = "test"; } return Foo; - })(); + }()); var Foo; (function (Foo) { Foo.answer = 42; diff --git a/tests/baselines/reference/exportAssignmentWithExports.js b/tests/baselines/reference/exportAssignmentWithExports.js index 9f43a515ad0..626e7881548 100644 --- a/tests/baselines/reference/exportAssignmentWithExports.js +++ b/tests/baselines/reference/exportAssignmentWithExports.js @@ -9,11 +9,11 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; var D = (function () { function D() { } return D; -})(); +}()); module.exports = D; diff --git a/tests/baselines/reference/exportCodeGen.js b/tests/baselines/reference/exportCodeGen.js index 30ed0b07ae9..41564c35d1a 100644 --- a/tests/baselines/reference/exportCodeGen.js +++ b/tests/baselines/reference/exportCodeGen.js @@ -100,7 +100,7 @@ var E; function C() { } return C; - })(); + }()); E.C = C; var M; (function (M) { @@ -120,7 +120,7 @@ var F; function C() { } return C; - })(); + }()); var M; (function (M) { var x = 42; diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.js b/tests/baselines/reference/exportDeclarationInInternalModule.js index 4a1ee9b739f..ecd9d5adf4d 100644 --- a/tests/baselines/reference/exportDeclarationInInternalModule.js +++ b/tests/baselines/reference/exportDeclarationInInternalModule.js @@ -28,21 +28,21 @@ var Bbb = (function () { function Bbb() { } return Bbb; -})(); +}()); var Aaa = (function (_super) { __extends(Aaa, _super); function Aaa() { _super.apply(this, arguments); } return Aaa; -})(Bbb); +}(Bbb)); var Aaa; (function (Aaa) { var SomeType = (function () { function SomeType() { } return SomeType; - })(); + }()); Aaa.SomeType = SomeType; })(Aaa || (Aaa = {})); var Bbb; @@ -51,9 +51,9 @@ var Bbb; function SomeType() { } return SomeType; - })(); + }()); Bbb.SomeType = SomeType; - __export(require()); // this line causes the nullref + // this line causes the nullref })(Bbb || (Bbb = {})); var a; diff --git a/tests/baselines/reference/exportDeclaredModule.errors.txt b/tests/baselines/reference/exportDeclaredModule.errors.txt index 47ee543e0c0..c235d4c448f 100644 --- a/tests/baselines/reference/exportDeclaredModule.errors.txt +++ b/tests/baselines/reference/exportDeclaredModule.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/foo1.ts(6,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/foo1.ts(6,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/foo2.ts (0 errors) ==== @@ -12,5 +12,5 @@ tests/cases/conformance/externalModules/foo1.ts(6,1): error TS1148: Cannot compi } export = M1; ~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. \ No newline at end of file diff --git a/tests/baselines/reference/exportImport.js b/tests/baselines/reference/exportImport.js index 0177bbbecaa..eb0623efced 100644 --- a/tests/baselines/reference/exportImport.js +++ b/tests/baselines/reference/exportImport.js @@ -23,7 +23,7 @@ define(["require", "exports"], function (require, exports) { this.name = 'one'; } return Widget1; - })(); + }()); return Widget1; }); //// [exporter.js] diff --git a/tests/baselines/reference/exportImportAlias.js b/tests/baselines/reference/exportImportAlias.js index dea9705fc9f..be77f755368 100644 --- a/tests/baselines/reference/exportImportAlias.js +++ b/tests/baselines/reference/exportImportAlias.js @@ -79,7 +79,7 @@ var A; this.y = y; } return Point; - })(); + }()); A.Point = Point; })(A || (A = {})); var C; @@ -104,7 +104,7 @@ var X; this.y = y; } return Point; - })(); + }()); Y.Point = Point; })(Y = X.Y || (X.Y = {})); })(X || (X = {})); @@ -122,7 +122,7 @@ var K; this.name = name; } return L; - })(); + }()); K.L = L; var L; (function (L) { diff --git a/tests/baselines/reference/exportImportAndClodule.js b/tests/baselines/reference/exportImportAndClodule.js index 0873051b40d..e519d555792 100644 --- a/tests/baselines/reference/exportImportAndClodule.js +++ b/tests/baselines/reference/exportImportAndClodule.js @@ -27,7 +27,7 @@ var K; this.name = name; } return L; - })(); + }()); K.L = L; var L; (function (L) { diff --git a/tests/baselines/reference/exportNonInitializedVariablesAMD.js b/tests/baselines/reference/exportNonInitializedVariablesAMD.js index 9759f41831b..d8dd17a562c 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesAMD.js +++ b/tests/baselines/reference/exportNonInitializedVariablesAMD.js @@ -44,7 +44,7 @@ define(["require", "exports"], function (require, exports) { function A() { } return A; - })(); + }()); var B; (function (B) { B.a = 1, B.c = 2; @@ -62,7 +62,7 @@ define(["require", "exports"], function (require, exports) { function D() { } return D; - })(); + }()); exports.e1 = new D; exports.f1 = new D; exports.g1 = new D; diff --git a/tests/baselines/reference/exportNonInitializedVariablesCommonJS.js b/tests/baselines/reference/exportNonInitializedVariablesCommonJS.js index 047b22c2ce1..f986ef7f36b 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesCommonJS.js +++ b/tests/baselines/reference/exportNonInitializedVariablesCommonJS.js @@ -43,7 +43,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var B; (function (B) { B.a = 1, B.c = 2; @@ -61,7 +61,7 @@ var D = (function () { function D() { } return D; -})(); +}()); exports.e1 = new D; exports.f1 = new D; exports.g1 = new D; diff --git a/tests/baselines/reference/exportNonInitializedVariablesSystem.js b/tests/baselines/reference/exportNonInitializedVariablesSystem.js index c2b78f35cc2..b5674bf5ce3 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesSystem.js +++ b/tests/baselines/reference/exportNonInitializedVariablesSystem.js @@ -46,7 +46,7 @@ System.register([], function(exports_1) { function A() { } return A; - })(); + }()); (function (B) { B.a = 1, B.c = 2; })(B || (B = {})); @@ -62,7 +62,7 @@ System.register([], function(exports_1) { function D() { } return D; - })(); + }()); exports_1("e1", e1 = new D); exports_1("f1", f1 = new D); exports_1("g1", g1 = new D); diff --git a/tests/baselines/reference/exportNonInitializedVariablesUMD.js b/tests/baselines/reference/exportNonInitializedVariablesUMD.js index 2567fb57ecf..772f63205b6 100644 --- a/tests/baselines/reference/exportNonInitializedVariablesUMD.js +++ b/tests/baselines/reference/exportNonInitializedVariablesUMD.js @@ -51,7 +51,7 @@ export let h1: D = new D; function A() { } return A; - })(); + }()); var B; (function (B) { B.a = 1, B.c = 2; @@ -69,7 +69,7 @@ export let h1: D = new D; function D() { } return D; - })(); + }()); exports.e1 = new D; exports.f1 = new D; exports.g1 = new D; diff --git a/tests/baselines/reference/exportNonVisibleType.errors.txt b/tests/baselines/reference/exportNonVisibleType.errors.txt index 04c174b4994..bc4dac4ca58 100644 --- a/tests/baselines/reference/exportNonVisibleType.errors.txt +++ b/tests/baselines/reference/exportNonVisibleType.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/foo1.ts(7,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/foo1.ts(7,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/foo1.ts (1 errors) ==== @@ -10,7 +10,7 @@ tests/cases/conformance/externalModules/foo1.ts(7,1): error TS1148: Cannot compi var x: I1 = {a: "test", b: 42}; export = x; // Should fail, I1 not exported. ~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/foo2.ts (0 errors) ==== diff --git a/tests/baselines/reference/exportNonVisibleType.js b/tests/baselines/reference/exportNonVisibleType.js index ad2b2a9d910..6208c164be8 100644 --- a/tests/baselines/reference/exportNonVisibleType.js +++ b/tests/baselines/reference/exportNonVisibleType.js @@ -45,7 +45,7 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); module.exports = C1; //// [foo3.js] "use strict"; @@ -53,5 +53,5 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); module.exports = C1; diff --git a/tests/baselines/reference/exportPrivateType.js b/tests/baselines/reference/exportPrivateType.js index 14267730dfb..efdd7cb8e6e 100644 --- a/tests/baselines/reference/exportPrivateType.js +++ b/tests/baselines/reference/exportPrivateType.js @@ -37,12 +37,12 @@ var foo; function C1() { } return C1; - })(); + }()); var C2 = (function () { function C2() { } C2.prototype.test = function () { return true; }; return C2; - })(); + }()); })(foo || (foo = {})); var y = foo.g; // Exported variable 'y' has or is using private type 'foo.C2'. diff --git a/tests/baselines/reference/exportStar-amd.errors.txt b/tests/baselines/reference/exportStar-amd.errors.txt index adab0516103..edd5c0d51bd 100644 --- a/tests/baselines/reference/exportStar-amd.errors.txt +++ b/tests/baselines/reference/exportStar-amd.errors.txt @@ -1,4 +1,6 @@ tests/cases/conformance/es6/modules/main.ts(1,8): error TS1192: Module '"tests/cases/conformance/es6/modules/t4"' has no default export. +tests/cases/conformance/es6/modules/t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. +tests/cases/conformance/es6/modules/t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. ==== tests/cases/conformance/es6/modules/t1.ts (0 errors) ==== @@ -16,10 +18,14 @@ tests/cases/conformance/es6/modules/main.ts(1,8): error TS1192: Module '"tests/c var z = "z"; export { x, y, z }; -==== tests/cases/conformance/es6/modules/t4.ts (0 errors) ==== +==== tests/cases/conformance/es6/modules/t4.ts (2 errors) ==== export * from "./t1"; export * from "./t2"; export * from "./t3"; + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. ==== tests/cases/conformance/es6/modules/main.ts (1 errors) ==== import hello, { x, y, z, foo } from "./t4"; diff --git a/tests/baselines/reference/exportStar.errors.txt b/tests/baselines/reference/exportStar.errors.txt index adab0516103..edd5c0d51bd 100644 --- a/tests/baselines/reference/exportStar.errors.txt +++ b/tests/baselines/reference/exportStar.errors.txt @@ -1,4 +1,6 @@ tests/cases/conformance/es6/modules/main.ts(1,8): error TS1192: Module '"tests/cases/conformance/es6/modules/t4"' has no default export. +tests/cases/conformance/es6/modules/t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. +tests/cases/conformance/es6/modules/t4.ts(3,1): error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. ==== tests/cases/conformance/es6/modules/t1.ts (0 errors) ==== @@ -16,10 +18,14 @@ tests/cases/conformance/es6/modules/main.ts(1,8): error TS1192: Module '"tests/c var z = "z"; export { x, y, z }; -==== tests/cases/conformance/es6/modules/t4.ts (0 errors) ==== +==== tests/cases/conformance/es6/modules/t4.ts (2 errors) ==== export * from "./t1"; export * from "./t2"; export * from "./t3"; + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'x'. Consider explicitly re-exporting to resolve the ambiguity. + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2308: Module "./t1" has already exported a member named 'y'. Consider explicitly re-exporting to resolve the ambiguity. ==== tests/cases/conformance/es6/modules/main.ts (1 errors) ==== import hello, { x, y, z, foo } from "./t4"; diff --git a/tests/baselines/reference/exportStarForValues.js b/tests/baselines/reference/exportStarForValues.js new file mode 100644 index 00000000000..dd432ecc1d3 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues.js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/exportStarForValues.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export * from "file1" +var x; + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x; +}); diff --git a/tests/baselines/reference/exportStarForValues.symbols b/tests/baselines/reference/exportStarForValues.symbols new file mode 100644 index 00000000000..6694afecdc6 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export * from "file1" +var x; +>x : Symbol(x, Decl(file2.ts, 1, 3)) + diff --git a/tests/baselines/reference/exportStarForValues.types b/tests/baselines/reference/exportStarForValues.types new file mode 100644 index 00000000000..b326a7e7ff6 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues.types @@ -0,0 +1,11 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export * from "file1" +var x; +>x : any + diff --git a/tests/baselines/reference/exportStarForValues10.js b/tests/baselines/reference/exportStarForValues10.js new file mode 100644 index 00000000000..dca5dad9b7a --- /dev/null +++ b/tests/baselines/reference/exportStarForValues10.js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/exportStarForValues10.ts] //// + +//// [file0.ts] + +export var v = 1; + +//// [file1.ts] +export interface Foo { x } + +//// [file2.ts] +export * from "file0"; +export * from "file1"; +var x = 1; + +//// [file0.js] +System.register([], function(exports_1) { + "use strict"; + var v; + return { + setters:[], + execute: function() { + exports_1("v", v = 1); + } + } +}); +//// [file1.js] +System.register([], function(exports_1) { + "use strict"; + return { + setters:[], + execute: function() { + } + } +}); +//// [file2.js] +System.register(["file0"], function(exports_1) { + "use strict"; + var x; + function exportStar_1(m) { + var exports = {}; + for(var n in m) { + if (n !== "default") exports[n] = m[n]; + } + exports_1(exports); + } + return { + setters:[ + function (file0_1_1) { + exportStar_1(file0_1_1); + }], + execute: function() { + x = 1; + } + } +}); diff --git a/tests/baselines/reference/exportStarForValues10.symbols b/tests/baselines/reference/exportStarForValues10.symbols new file mode 100644 index 00000000000..2de35864d27 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues10.symbols @@ -0,0 +1,16 @@ +=== tests/cases/compiler/file0.ts === + +export var v = 1; +>v : Symbol(v, Decl(file0.ts, 1, 10)) + +=== tests/cases/compiler/file1.ts === +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 0, 22)) + +=== tests/cases/compiler/file2.ts === +export * from "file0"; +export * from "file1"; +var x = 1; +>x : Symbol(x, Decl(file2.ts, 2, 3)) + diff --git a/tests/baselines/reference/exportStarForValues10.types b/tests/baselines/reference/exportStarForValues10.types new file mode 100644 index 00000000000..370f02318c1 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues10.types @@ -0,0 +1,18 @@ +=== tests/cases/compiler/file0.ts === + +export var v = 1; +>v : number +>1 : number + +=== tests/cases/compiler/file1.ts === +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export * from "file0"; +export * from "file1"; +var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValues2.js b/tests/baselines/reference/exportStarForValues2.js new file mode 100644 index 00000000000..e45d5bdd3ba --- /dev/null +++ b/tests/baselines/reference/exportStarForValues2.js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/exportStarForValues2.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export * from "file1" +var x = 1; + +//// [file3.ts] +export * from "file2" +var x = 1; + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); +//// [file3.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); diff --git a/tests/baselines/reference/exportStarForValues2.symbols b/tests/baselines/reference/exportStarForValues2.symbols new file mode 100644 index 00000000000..0fa739f5431 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues2.symbols @@ -0,0 +1,16 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export * from "file1" +var x = 1; +>x : Symbol(x, Decl(file2.ts, 1, 3)) + +=== tests/cases/compiler/file3.ts === +export * from "file2" +var x = 1; +>x : Symbol(x, Decl(file3.ts, 1, 3)) + diff --git a/tests/baselines/reference/exportStarForValues2.types b/tests/baselines/reference/exportStarForValues2.types new file mode 100644 index 00000000000..f1de53bd7cf --- /dev/null +++ b/tests/baselines/reference/exportStarForValues2.types @@ -0,0 +1,18 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export * from "file1" +var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file3.ts === +export * from "file2" +var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValues3.js b/tests/baselines/reference/exportStarForValues3.js new file mode 100644 index 00000000000..9efe5ccf8e5 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues3.js @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/exportStarForValues3.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export interface A { x } +export * from "file1" +var x = 1; + +//// [file3.ts] +export interface B { x } +export * from "file1" +var x = 1; + +//// [file4.ts] +export interface C { x } +export * from "file2" +export * from "file3" +var x = 1; + +//// [file5.ts] +export * from "file4" +var x = 1; + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); +//// [file3.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); +//// [file4.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); +//// [file5.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); diff --git a/tests/baselines/reference/exportStarForValues3.symbols b/tests/baselines/reference/exportStarForValues3.symbols new file mode 100644 index 00000000000..a79aeb36588 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues3.symbols @@ -0,0 +1,39 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : Symbol(A, Decl(file2.ts, 0, 0)) +>x : Symbol(x, Decl(file2.ts, 0, 20)) + +export * from "file1" +var x = 1; +>x : Symbol(x, Decl(file2.ts, 2, 3)) + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : Symbol(B, Decl(file3.ts, 0, 0)) +>x : Symbol(x, Decl(file3.ts, 0, 20)) + +export * from "file1" +var x = 1; +>x : Symbol(x, Decl(file3.ts, 2, 3)) + +=== tests/cases/compiler/file4.ts === +export interface C { x } +>C : Symbol(C, Decl(file4.ts, 0, 0)) +>x : Symbol(x, Decl(file4.ts, 0, 20)) + +export * from "file2" +export * from "file3" +var x = 1; +>x : Symbol(x, Decl(file4.ts, 3, 3)) + +=== tests/cases/compiler/file5.ts === +export * from "file4" +var x = 1; +>x : Symbol(x, Decl(file5.ts, 1, 3)) + diff --git a/tests/baselines/reference/exportStarForValues3.types b/tests/baselines/reference/exportStarForValues3.types new file mode 100644 index 00000000000..d2ee5ebb1d4 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues3.types @@ -0,0 +1,43 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : A +>x : any + +export * from "file1" +var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : B +>x : any + +export * from "file1" +var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file4.ts === +export interface C { x } +>C : C +>x : any + +export * from "file2" +export * from "file3" +var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file5.ts === +export * from "file4" +var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValues4.js b/tests/baselines/reference/exportStarForValues4.js new file mode 100644 index 00000000000..34b13bb00f3 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues4.js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/exportStarForValues4.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export interface A { x } +export * from "file1" +export * from "file3" +var x = 1; + +//// [file3.ts] +export interface B { x } +export * from "file2" +var x = 1; + + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file3.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); +//// [file2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + var x = 1; +}); diff --git a/tests/baselines/reference/exportStarForValues4.symbols b/tests/baselines/reference/exportStarForValues4.symbols new file mode 100644 index 00000000000..465d6ed3237 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues4.symbols @@ -0,0 +1,25 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : Symbol(A, Decl(file2.ts, 0, 0)) +>x : Symbol(x, Decl(file2.ts, 0, 20)) + +export * from "file1" +export * from "file3" +var x = 1; +>x : Symbol(x, Decl(file2.ts, 3, 3)) + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : Symbol(B, Decl(file3.ts, 0, 0)) +>x : Symbol(x, Decl(file3.ts, 0, 20)) + +export * from "file2" +var x = 1; +>x : Symbol(x, Decl(file3.ts, 2, 3)) + diff --git a/tests/baselines/reference/exportStarForValues4.types b/tests/baselines/reference/exportStarForValues4.types new file mode 100644 index 00000000000..b381f9461e8 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues4.types @@ -0,0 +1,27 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : A +>x : any + +export * from "file1" +export * from "file3" +var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : B +>x : any + +export * from "file2" +var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValues5.js b/tests/baselines/reference/exportStarForValues5.js new file mode 100644 index 00000000000..dc4d4c8b68e --- /dev/null +++ b/tests/baselines/reference/exportStarForValues5.js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/exportStarForValues5.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export * from "file1" +export var x; + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); diff --git a/tests/baselines/reference/exportStarForValues5.symbols b/tests/baselines/reference/exportStarForValues5.symbols new file mode 100644 index 00000000000..a2950afa73f --- /dev/null +++ b/tests/baselines/reference/exportStarForValues5.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export * from "file1" +export var x; +>x : Symbol(x, Decl(file2.ts, 1, 10)) + diff --git a/tests/baselines/reference/exportStarForValues5.types b/tests/baselines/reference/exportStarForValues5.types new file mode 100644 index 00000000000..9edfc88289a --- /dev/null +++ b/tests/baselines/reference/exportStarForValues5.types @@ -0,0 +1,11 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export * from "file1" +export var x; +>x : any + diff --git a/tests/baselines/reference/exportStarForValues6.js b/tests/baselines/reference/exportStarForValues6.js new file mode 100644 index 00000000000..69357d87ee0 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues6.js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/exportStarForValues6.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export * from "file1" +export var x = 1; + +//// [file1.js] +System.register([], function(exports_1) { + "use strict"; + return { + setters:[], + execute: function() { + } + } +}); +//// [file2.js] +System.register([], function(exports_1) { + "use strict"; + var x; + return { + setters:[], + execute: function() { + exports_1("x", x = 1); + } + } +}); diff --git a/tests/baselines/reference/exportStarForValues6.symbols b/tests/baselines/reference/exportStarForValues6.symbols new file mode 100644 index 00000000000..c57baf301dd --- /dev/null +++ b/tests/baselines/reference/exportStarForValues6.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export * from "file1" +export var x = 1; +>x : Symbol(x, Decl(file2.ts, 1, 10)) + diff --git a/tests/baselines/reference/exportStarForValues6.types b/tests/baselines/reference/exportStarForValues6.types new file mode 100644 index 00000000000..4fe38a45d02 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues6.types @@ -0,0 +1,12 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export * from "file1" +export var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValues7.js b/tests/baselines/reference/exportStarForValues7.js new file mode 100644 index 00000000000..39a152fdc89 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues7.js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/exportStarForValues7.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export * from "file1" +export var x = 1; + +//// [file3.ts] +export * from "file2" +export var x = 1; + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.x = 1; +}); +//// [file3.js] +define(["require", "exports", "file2"], function (require, exports, file2_1) { + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + } + __export(file2_1); + exports.x = 1; +}); diff --git a/tests/baselines/reference/exportStarForValues7.symbols b/tests/baselines/reference/exportStarForValues7.symbols new file mode 100644 index 00000000000..b59f2890047 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues7.symbols @@ -0,0 +1,16 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export * from "file1" +export var x = 1; +>x : Symbol(x, Decl(file2.ts, 1, 10)) + +=== tests/cases/compiler/file3.ts === +export * from "file2" +export var x = 1; +>x : Symbol(x, Decl(file3.ts, 1, 10)) + diff --git a/tests/baselines/reference/exportStarForValues7.types b/tests/baselines/reference/exportStarForValues7.types new file mode 100644 index 00000000000..d37661320d6 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues7.types @@ -0,0 +1,18 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export * from "file1" +export var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file3.ts === +export * from "file2" +export var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValues8.js b/tests/baselines/reference/exportStarForValues8.js new file mode 100644 index 00000000000..f8e7678a40c --- /dev/null +++ b/tests/baselines/reference/exportStarForValues8.js @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/exportStarForValues8.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export interface A { x } +export * from "file1" +export var x = 1; + +//// [file3.ts] +export interface B { x } +export * from "file1" +export var x = 1; + +//// [file4.ts] +export interface C { x } +export * from "file2" +export * from "file3" +export var x = 1; + +//// [file5.ts] +export * from "file4" +export var x = 1; + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file2.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.x = 1; +}); +//// [file3.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.x = 1; +}); +//// [file4.js] +define(["require", "exports", "file2", "file3"], function (require, exports, file2_1, file3_1) { + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + } + __export(file2_1); + __export(file3_1); + exports.x = 1; +}); +//// [file5.js] +define(["require", "exports", "file4"], function (require, exports, file4_1) { + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + } + __export(file4_1); + exports.x = 1; +}); diff --git a/tests/baselines/reference/exportStarForValues8.symbols b/tests/baselines/reference/exportStarForValues8.symbols new file mode 100644 index 00000000000..be958ecabe8 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues8.symbols @@ -0,0 +1,39 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : Symbol(A, Decl(file2.ts, 0, 0)) +>x : Symbol(x, Decl(file2.ts, 0, 20)) + +export * from "file1" +export var x = 1; +>x : Symbol(x, Decl(file2.ts, 2, 10)) + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : Symbol(B, Decl(file3.ts, 0, 0)) +>x : Symbol(x, Decl(file3.ts, 0, 20)) + +export * from "file1" +export var x = 1; +>x : Symbol(x, Decl(file3.ts, 2, 10)) + +=== tests/cases/compiler/file4.ts === +export interface C { x } +>C : Symbol(C, Decl(file4.ts, 0, 0)) +>x : Symbol(x, Decl(file4.ts, 0, 20)) + +export * from "file2" +export * from "file3" +export var x = 1; +>x : Symbol(x, Decl(file4.ts, 3, 10)) + +=== tests/cases/compiler/file5.ts === +export * from "file4" +export var x = 1; +>x : Symbol(x, Decl(file5.ts, 1, 10)) + diff --git a/tests/baselines/reference/exportStarForValues8.types b/tests/baselines/reference/exportStarForValues8.types new file mode 100644 index 00000000000..9cc1484eecb --- /dev/null +++ b/tests/baselines/reference/exportStarForValues8.types @@ -0,0 +1,43 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : A +>x : any + +export * from "file1" +export var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : B +>x : any + +export * from "file1" +export var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file4.ts === +export interface C { x } +>C : C +>x : any + +export * from "file2" +export * from "file3" +export var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file5.ts === +export * from "file4" +export var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValues9.js b/tests/baselines/reference/exportStarForValues9.js new file mode 100644 index 00000000000..e057e4d4027 --- /dev/null +++ b/tests/baselines/reference/exportStarForValues9.js @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/exportStarForValues9.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export interface A { x } +export * from "file1" +export * from "file3" +export var x = 1; + +//// [file3.ts] +export interface B { x } +export * from "file2" +export var x = 1; + + +//// [file1.js] +define(["require", "exports"], function (require, exports) { + "use strict"; +}); +//// [file3.js] +define(["require", "exports", "file2"], function (require, exports, file2_1) { + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + } + __export(file2_1); + exports.x = 1; +}); +//// [file2.js] +define(["require", "exports", "file3"], function (require, exports, file3_1) { + "use strict"; + function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + } + __export(file3_1); + exports.x = 1; +}); diff --git a/tests/baselines/reference/exportStarForValues9.symbols b/tests/baselines/reference/exportStarForValues9.symbols new file mode 100644 index 00000000000..0684c9e7b7c --- /dev/null +++ b/tests/baselines/reference/exportStarForValues9.symbols @@ -0,0 +1,25 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : Symbol(A, Decl(file2.ts, 0, 0)) +>x : Symbol(x, Decl(file2.ts, 0, 20)) + +export * from "file1" +export * from "file3" +export var x = 1; +>x : Symbol(x, Decl(file2.ts, 3, 10)) + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : Symbol(B, Decl(file3.ts, 0, 0)) +>x : Symbol(x, Decl(file3.ts, 0, 20)) + +export * from "file2" +export var x = 1; +>x : Symbol(x, Decl(file3.ts, 2, 10)) + diff --git a/tests/baselines/reference/exportStarForValues9.types b/tests/baselines/reference/exportStarForValues9.types new file mode 100644 index 00000000000..3cf250ec50b --- /dev/null +++ b/tests/baselines/reference/exportStarForValues9.types @@ -0,0 +1,27 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export interface A { x } +>A : A +>x : any + +export * from "file1" +export * from "file3" +export var x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/file3.ts === +export interface B { x } +>B : B +>x : any + +export * from "file2" +export var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarForValuesInSystem.js b/tests/baselines/reference/exportStarForValuesInSystem.js new file mode 100644 index 00000000000..a33465f7e2e --- /dev/null +++ b/tests/baselines/reference/exportStarForValuesInSystem.js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/exportStarForValuesInSystem.ts] //// + +//// [file1.ts] + +export interface Foo { x } + +//// [file2.ts] +export * from "file1" +var x = 1; + +//// [file1.js] +System.register([], function(exports_1) { + "use strict"; + return { + setters:[], + execute: function() { + } + } +}); +//// [file2.js] +System.register([], function(exports_1) { + "use strict"; + var x; + return { + setters:[], + execute: function() { + x = 1; + } + } +}); diff --git a/tests/baselines/reference/exportStarForValuesInSystem.symbols b/tests/baselines/reference/exportStarForValuesInSystem.symbols new file mode 100644 index 00000000000..c9ef9830c60 --- /dev/null +++ b/tests/baselines/reference/exportStarForValuesInSystem.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Symbol(Foo, Decl(file1.ts, 0, 0)) +>x : Symbol(x, Decl(file1.ts, 1, 22)) + +=== tests/cases/compiler/file2.ts === +export * from "file1" +var x = 1; +>x : Symbol(x, Decl(file2.ts, 1, 3)) + diff --git a/tests/baselines/reference/exportStarForValuesInSystem.types b/tests/baselines/reference/exportStarForValuesInSystem.types new file mode 100644 index 00000000000..36d07741e10 --- /dev/null +++ b/tests/baselines/reference/exportStarForValuesInSystem.types @@ -0,0 +1,12 @@ +=== tests/cases/compiler/file1.ts === + +export interface Foo { x } +>Foo : Foo +>x : any + +=== tests/cases/compiler/file2.ts === +export * from "file1" +var x = 1; +>x : number +>1 : number + diff --git a/tests/baselines/reference/exportStarFromEmptyModule.js b/tests/baselines/reference/exportStarFromEmptyModule.js index e131d5ae8d9..afb4d2f10c1 100644 --- a/tests/baselines/reference/exportStarFromEmptyModule.js +++ b/tests/baselines/reference/exportStarFromEmptyModule.js @@ -29,7 +29,7 @@ var A = (function () { function A() { } return A; -})(); +}()); exports.A = A; //// [exportStarFromEmptyModule_module2.js] // empty @@ -44,7 +44,7 @@ var A = (function () { function A() { } return A; -})(); +}()); exports.A = A; //// [exportStarFromEmptyModule_module4.js] "use strict"; diff --git a/tests/baselines/reference/exportVisibility.js b/tests/baselines/reference/exportVisibility.js index f4c7e97b297..a49cd744441 100644 --- a/tests/baselines/reference/exportVisibility.js +++ b/tests/baselines/reference/exportVisibility.js @@ -15,7 +15,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); exports.Foo = Foo; exports.foo = new Foo(); function test(foo) { diff --git a/tests/baselines/reference/exportingContainingVisibleType.js b/tests/baselines/reference/exportingContainingVisibleType.js index 0742731636a..f2d78fe9a88 100644 --- a/tests/baselines/reference/exportingContainingVisibleType.js +++ b/tests/baselines/reference/exportingContainingVisibleType.js @@ -25,6 +25,6 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return Foo; - })(); + }()); exports.x = 5; }); diff --git a/tests/baselines/reference/exportsAndImports1-amd.js b/tests/baselines/reference/exportsAndImports1-amd.js index 555a56ce31f..9e04b3485d2 100644 --- a/tests/baselines/reference/exportsAndImports1-amd.js +++ b/tests/baselines/reference/exportsAndImports1-amd.js @@ -45,7 +45,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); exports.C = C; var E; (function (E) { diff --git a/tests/baselines/reference/exportsAndImports1.js b/tests/baselines/reference/exportsAndImports1.js index 312b379dde1..46eda0656ad 100644 --- a/tests/baselines/reference/exportsAndImports1.js +++ b/tests/baselines/reference/exportsAndImports1.js @@ -44,7 +44,7 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; var E; (function (E) { diff --git a/tests/baselines/reference/exportsAndImports3-amd.js b/tests/baselines/reference/exportsAndImports3-amd.js index be86b9ba7b8..0e315f1f18b 100644 --- a/tests/baselines/reference/exportsAndImports3-amd.js +++ b/tests/baselines/reference/exportsAndImports3-amd.js @@ -46,7 +46,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); exports.C = C; exports.C1 = C; (function (E) { diff --git a/tests/baselines/reference/exportsAndImports3.js b/tests/baselines/reference/exportsAndImports3.js index e29f403a5e0..16115a192da 100644 --- a/tests/baselines/reference/exportsAndImports3.js +++ b/tests/baselines/reference/exportsAndImports3.js @@ -45,7 +45,7 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; exports.C1 = C; (function (E) { diff --git a/tests/baselines/reference/exportsAndImports4-es6.js b/tests/baselines/reference/exportsAndImports4-es6.js index 3d3278b4462..39c6583e935 100644 --- a/tests/baselines/reference/exportsAndImports4-es6.js +++ b/tests/baselines/reference/exportsAndImports4-es6.js @@ -41,6 +41,7 @@ export { a, b, c, d, e1, e2, f1, f2 }; //// [t1.js] "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); exports.default = "hello"; //// [t3.js] "use strict"; diff --git a/tests/baselines/reference/extBaseClass1.js b/tests/baselines/reference/extBaseClass1.js index 07923eccc88..446c6df9c94 100644 --- a/tests/baselines/reference/extBaseClass1.js +++ b/tests/baselines/reference/extBaseClass1.js @@ -32,7 +32,7 @@ var M; this.x = 10; } return B; - })(); + }()); M.B = B; var C = (function (_super) { __extends(C, _super); @@ -40,7 +40,7 @@ var M; _super.apply(this, arguments); } return C; - })(B); + }(B)); M.C = C; })(M || (M = {})); var M; @@ -51,7 +51,7 @@ var M; _super.apply(this, arguments); } return C2; - })(M.B); + }(M.B)); M.C2 = C2; })(M || (M = {})); var N; @@ -62,6 +62,6 @@ var N; _super.apply(this, arguments); } return C3; - })(M.B); + }(M.B)); N.C3 = C3; })(N || (N = {})); diff --git a/tests/baselines/reference/extBaseClass2.js b/tests/baselines/reference/extBaseClass2.js index 6e9972c3f29..f7bd85d685c 100644 --- a/tests/baselines/reference/extBaseClass2.js +++ b/tests/baselines/reference/extBaseClass2.js @@ -24,7 +24,7 @@ var N; _super.apply(this, arguments); } return C4; - })(M.B); + }(M.B)); N.C4 = C4; })(N || (N = {})); var M; @@ -35,6 +35,6 @@ var M; _super.apply(this, arguments); } return C5; - })(B); + }(B)); M.C5 = C5; })(M || (M = {})); diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType.js b/tests/baselines/reference/extendAndImplementTheSameBaseType.js index 6a631ceebf8..e52e5b497ac 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType.js @@ -24,7 +24,7 @@ var C = (function () { } C.prototype.bar = function () { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -32,7 +32,7 @@ var D = (function (_super) { } D.prototype.baz = function () { }; return D; -})(C); +}(C)); var c; var d = new D(); d.bar(); diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js index 42cf785c0b0..1f4f62a42ee 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js @@ -29,7 +29,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -37,7 +37,7 @@ var D = (function (_super) { } D.prototype.baz = function () { }; return D; -})(C); +}(C)); var d = new D(); var r = d.foo; var r2 = d.foo; diff --git a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js index d8c54b58d7e..d598389d0fa 100644 --- a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js +++ b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js @@ -15,10 +15,10 @@ var derived = (function (_super) { _super.apply(this, arguments); } return derived; -})(base); +}(base)); var base = (function () { function base(n) { this.n = n; } return base; -})(); +}()); diff --git a/tests/baselines/reference/extendClassExpressionFromModule.js b/tests/baselines/reference/extendClassExpressionFromModule.js index 0c137f54486..56b54d2821f 100644 --- a/tests/baselines/reference/extendClassExpressionFromModule.js +++ b/tests/baselines/reference/extendClassExpressionFromModule.js @@ -17,7 +17,7 @@ var x = (function () { function x() { } return x; -})(); +}()); module.exports = x; //// [foo2.js] "use strict"; @@ -34,4 +34,4 @@ var y = (function (_super) { _super.apply(this, arguments); } return y; -})(x); +}(x)); diff --git a/tests/baselines/reference/extendConstructSignatureInInterface.js b/tests/baselines/reference/extendConstructSignatureInInterface.js new file mode 100644 index 00000000000..20f43a948b8 --- /dev/null +++ b/tests/baselines/reference/extendConstructSignatureInInterface.js @@ -0,0 +1,27 @@ +//// [extendConstructSignatureInInterface.ts] +interface C { + new(x: number): C; +} + +var CStatic: C; +class E extends CStatic { +} + +var e: E = new E(1); + + +//// [extendConstructSignatureInInterface.js] +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +var CStatic; +var E = (function (_super) { + __extends(E, _super); + function E() { + _super.apply(this, arguments); + } + return E; +}(CStatic)); +var e = new E(1); diff --git a/tests/baselines/reference/extendConstructSignatureInInterface.symbols b/tests/baselines/reference/extendConstructSignatureInInterface.symbols new file mode 100644 index 00000000000..df966bc9fcc --- /dev/null +++ b/tests/baselines/reference/extendConstructSignatureInInterface.symbols @@ -0,0 +1,23 @@ +=== tests/cases/compiler/extendConstructSignatureInInterface.ts === +interface C { +>C : Symbol(C, Decl(extendConstructSignatureInInterface.ts, 0, 0)) + + new(x: number): C; +>x : Symbol(x, Decl(extendConstructSignatureInInterface.ts, 1, 8)) +>C : Symbol(C, Decl(extendConstructSignatureInInterface.ts, 0, 0)) +} + +var CStatic: C; +>CStatic : Symbol(CStatic, Decl(extendConstructSignatureInInterface.ts, 4, 3)) +>C : Symbol(C, Decl(extendConstructSignatureInInterface.ts, 0, 0)) + +class E extends CStatic { +>E : Symbol(E, Decl(extendConstructSignatureInInterface.ts, 4, 15)) +>CStatic : Symbol(CStatic, Decl(extendConstructSignatureInInterface.ts, 4, 3)) +} + +var e: E = new E(1); +>e : Symbol(e, Decl(extendConstructSignatureInInterface.ts, 8, 3)) +>E : Symbol(E, Decl(extendConstructSignatureInInterface.ts, 4, 15)) +>E : Symbol(E, Decl(extendConstructSignatureInInterface.ts, 4, 15)) + diff --git a/tests/baselines/reference/extendConstructSignatureInInterface.types b/tests/baselines/reference/extendConstructSignatureInInterface.types new file mode 100644 index 00000000000..363107b2e54 --- /dev/null +++ b/tests/baselines/reference/extendConstructSignatureInInterface.types @@ -0,0 +1,25 @@ +=== tests/cases/compiler/extendConstructSignatureInInterface.ts === +interface C { +>C : C + + new(x: number): C; +>x : number +>C : C +} + +var CStatic: C; +>CStatic : C +>C : C + +class E extends CStatic { +>E : E +>CStatic : C +} + +var e: E = new E(1); +>e : E +>E : E +>new E(1) : E +>E : typeof E +>1 : number + diff --git a/tests/baselines/reference/extendNonClassSymbol1.js b/tests/baselines/reference/extendNonClassSymbol1.js index 29408686068..558e6d6ba57 100644 --- a/tests/baselines/reference/extendNonClassSymbol1.js +++ b/tests/baselines/reference/extendNonClassSymbol1.js @@ -14,7 +14,7 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var x = A; var C = (function (_super) { __extends(C, _super); @@ -22,4 +22,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(x); // error, could not find symbol xs +}(x)); // error, could not find symbol xs diff --git a/tests/baselines/reference/extendNonClassSymbol2.js b/tests/baselines/reference/extendNonClassSymbol2.js index a65eeca612a..3785c7c5846 100644 --- a/tests/baselines/reference/extendNonClassSymbol2.js +++ b/tests/baselines/reference/extendNonClassSymbol2.js @@ -21,4 +21,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(Foo); // error, could not find symbol Foo +}(Foo)); // error, could not find symbol Foo diff --git a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js index 004c89be3fb..6542492e200 100644 --- a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js +++ b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js @@ -38,7 +38,7 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); exports.Model = Model; //// [extendingClassFromAliasAndUsageInIndexer_moduleA.js] "use strict"; @@ -54,7 +54,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [extendingClassFromAliasAndUsageInIndexer_moduleB.js] "use strict"; @@ -70,7 +70,7 @@ var VisualizationModel = (function (_super) { _super.apply(this, arguments); } return VisualizationModel; -})(Backbone.Model); +}(Backbone.Model)); exports.VisualizationModel = VisualizationModel; //// [extendingClassFromAliasAndUsageInIndexer_main.js] "use strict"; diff --git a/tests/baselines/reference/extendsClauseAlreadySeen.js b/tests/baselines/reference/extendsClauseAlreadySeen.js index ed6602c116a..fb9a3f12378 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen.js @@ -16,7 +16,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -24,4 +24,4 @@ var D = (function (_super) { } D.prototype.baz = function () { }; return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/extendsClauseAlreadySeen2.js b/tests/baselines/reference/extendsClauseAlreadySeen2.js index 2c77f4e673f..9423789dd35 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen2.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen2.js @@ -16,7 +16,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -24,4 +24,4 @@ var D = (function (_super) { } D.prototype.baz = function () { }; return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/externModule.js b/tests/baselines/reference/externModule.js index bf175f0eeff..d5684ea1f46 100644 --- a/tests/baselines/reference/externModule.js +++ b/tests/baselines/reference/externModule.js @@ -47,7 +47,7 @@ module; function XDate() { } return XDate; - })(); + }()); exports.XDate = XDate; } var d = new XDate(); diff --git a/tests/baselines/reference/externalModuleAssignToVar.js b/tests/baselines/reference/externalModuleAssignToVar.js index dc74c9446e2..e621b7c930b 100644 --- a/tests/baselines/reference/externalModuleAssignToVar.js +++ b/tests/baselines/reference/externalModuleAssignToVar.js @@ -33,7 +33,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); exports.C = C; }); //// [externalModuleAssignToVar_core_require2.js] @@ -43,7 +43,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); return C; }); //// [externalModuleAssignToVar_ext.js] @@ -53,7 +53,7 @@ define(["require", "exports"], function (require, exports) { function D() { } return D; - })(); + }()); return D; }); //// [externalModuleAssignToVar_core.js] diff --git a/tests/baselines/reference/externalModuleExportingGenericClass.js b/tests/baselines/reference/externalModuleExportingGenericClass.js index 78608c08c56..c4b8556bb80 100644 --- a/tests/baselines/reference/externalModuleExportingGenericClass.js +++ b/tests/baselines/reference/externalModuleExportingGenericClass.js @@ -21,7 +21,7 @@ var C = (function () { function C() { } return C; -})(); +}()); module.exports = C; //// [externalModuleExportingGenericClass_file1.js] "use strict"; diff --git a/tests/baselines/reference/externalModuleQualification.js b/tests/baselines/reference/externalModuleQualification.js index 3f9978c7b0a..26255ac3fcd 100644 --- a/tests/baselines/reference/externalModuleQualification.js +++ b/tests/baselines/reference/externalModuleQualification.js @@ -19,7 +19,7 @@ var DiffEditor = (function () { if (id === void 0) { id = exports.ID; } } return DiffEditor; -})(); +}()); exports.DiffEditor = DiffEditor; var NavigateAction = (function () { function NavigateAction() { @@ -27,4 +27,4 @@ var NavigateAction = (function () { NavigateAction.prototype.f = function (editor) { }; return NavigateAction; -})(); +}()); diff --git a/tests/baselines/reference/externalModuleWithoutCompilerFlag1.errors.txt b/tests/baselines/reference/externalModuleWithoutCompilerFlag1.errors.txt index 64874c767ee..e2ffd4ec372 100644 --- a/tests/baselines/reference/externalModuleWithoutCompilerFlag1.errors.txt +++ b/tests/baselines/reference/externalModuleWithoutCompilerFlag1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/externalModuleWithoutCompilerFlag1.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/externalModuleWithoutCompilerFlag1.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/compiler/externalModuleWithoutCompilerFlag1.ts (1 errors) ==== @@ -6,5 +6,5 @@ tests/cases/compiler/externalModuleWithoutCompilerFlag1.ts(3,17): error TS1148: // Not on line 0 because we want to verify the error is placed in the appropriate location. export module M { ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. } \ No newline at end of file diff --git a/tests/baselines/reference/fatArrowSelf.js b/tests/baselines/reference/fatArrowSelf.js index 7648cb28a4b..db9aaa347dc 100644 --- a/tests/baselines/reference/fatArrowSelf.js +++ b/tests/baselines/reference/fatArrowSelf.js @@ -33,7 +33,7 @@ var Events; EventEmitter.prototype.addListener = function (type, listener) { }; return EventEmitter; - })(); + }()); Events.EventEmitter = EventEmitter; })(Events || (Events = {})); var Consumer; @@ -51,5 +51,5 @@ var Consumer; EventEmitterConsummer.prototype.changed = function () { }; return EventEmitterConsummer; - })(); + }()); })(Consumer || (Consumer = {})); diff --git a/tests/baselines/reference/fieldAndGetterWithSameName.js b/tests/baselines/reference/fieldAndGetterWithSameName.js index a43e9cf0a1b..eb5171acd75 100644 --- a/tests/baselines/reference/fieldAndGetterWithSameName.js +++ b/tests/baselines/reference/fieldAndGetterWithSameName.js @@ -16,6 +16,6 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C; - })(); + }()); exports.C = C; }); diff --git a/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.js b/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.js index 164fd091c16..0c6f1c8034d 100644 --- a/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.js +++ b/tests/baselines/reference/filesEmittingIntoSameOutputWithOutOption.js @@ -10,13 +10,13 @@ function foo() { //// [a.js] -define("tests/cases/compiler/a", ["require", "exports"], function (require, exports) { +define("a", ["require", "exports"], function (require, exports) { "use strict"; var c = (function () { function c() { } return c; - })(); + }()); exports.c = c; }); function foo() { diff --git a/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.js b/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.js index ce91d4616f4..af0a1e7a63b 100644 --- a/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.js +++ b/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.js @@ -10,5 +10,5 @@ var A = (function () { function A() { } return A; -})(); +}()); var a = new A(); diff --git a/tests/baselines/reference/fluentClasses.js b/tests/baselines/reference/fluentClasses.js index 12f3cfff48d..3d5efcc1b1a 100644 --- a/tests/baselines/reference/fluentClasses.js +++ b/tests/baselines/reference/fluentClasses.js @@ -31,7 +31,7 @@ var A = (function () { return this; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -41,7 +41,7 @@ var B = (function (_super) { return this; }; return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -51,6 +51,6 @@ var C = (function (_super) { return this; }; return C; -})(B); +}(B)); var c; var z = c.foo().bar().baz(); // Fluent pattern diff --git a/tests/baselines/reference/for-inStatements.js b/tests/baselines/reference/for-inStatements.js index d735a37ba97..5c097a68ccc 100644 --- a/tests/baselines/reference/for-inStatements.js +++ b/tests/baselines/reference/for-inStatements.js @@ -122,7 +122,7 @@ var A = (function () { return null; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -137,7 +137,7 @@ var B = (function (_super) { return null; }; return B; -})(A); +}(A)); var i; for (var x in i[42]) { } var M; @@ -146,7 +146,7 @@ var M; function X() { } return X; - })(); + }()); M.X = X; })(M || (M = {})); for (var x in M) { } diff --git a/tests/baselines/reference/for-inStatementsInvalid.js b/tests/baselines/reference/for-inStatementsInvalid.js index 93b9fb9b97f..caec9bd1987 100644 --- a/tests/baselines/reference/for-inStatementsInvalid.js +++ b/tests/baselines/reference/for-inStatementsInvalid.js @@ -103,7 +103,7 @@ var A = (function () { return null; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -118,6 +118,6 @@ var B = (function (_super) { return null; }; return B; -})(A); +}(A)); var i; for (var x in i[42]) { } diff --git a/tests/baselines/reference/forStatements.js b/tests/baselines/reference/forStatements.js index 253fafc81e8..c380185ecf5 100644 --- a/tests/baselines/reference/forStatements.js +++ b/tests/baselines/reference/forStatements.js @@ -52,12 +52,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } var M; (function (M) { @@ -65,7 +65,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; diff --git a/tests/baselines/reference/forStatementsMultipleInvalidDecl.js b/tests/baselines/reference/forStatementsMultipleInvalidDecl.js index 20639c687cb..aff01bc8565 100644 --- a/tests/baselines/reference/forStatementsMultipleInvalidDecl.js +++ b/tests/baselines/reference/forStatementsMultipleInvalidDecl.js @@ -64,19 +64,19 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(C); +}(C)); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } var M; (function (M) { @@ -84,7 +84,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; diff --git a/tests/baselines/reference/forgottenNew.js b/tests/baselines/reference/forgottenNew.js index 72b0537882e..927f21a04df 100644 --- a/tests/baselines/reference/forgottenNew.js +++ b/tests/baselines/reference/forgottenNew.js @@ -12,7 +12,7 @@ var Tools; function NullLogger() { } return NullLogger; - })(); + }()); Tools.NullLogger = NullLogger; })(Tools || (Tools = {})); var logger = Tools.NullLogger(); diff --git a/tests/baselines/reference/funClodule.js b/tests/baselines/reference/funClodule.js index cc7dba7e476..8ea98ad7487 100644 --- a/tests/baselines/reference/funClodule.js +++ b/tests/baselines/reference/funClodule.js @@ -30,4 +30,4 @@ var foo3 = (function () { function foo3() { } return foo3; -})(); // Should error +}()); // Should error diff --git a/tests/baselines/reference/functionAndPropertyNameConflict.js b/tests/baselines/reference/functionAndPropertyNameConflict.js index 28a2cd54c9e..bd3b5b7243d 100644 --- a/tests/baselines/reference/functionAndPropertyNameConflict.js +++ b/tests/baselines/reference/functionAndPropertyNameConflict.js @@ -19,4 +19,4 @@ var C65 = (function () { configurable: true }); return C65; -})(); +}()); diff --git a/tests/baselines/reference/functionArgShadowing.js b/tests/baselines/reference/functionArgShadowing.js index 451e46536e0..bae1365a789 100644 --- a/tests/baselines/reference/functionArgShadowing.js +++ b/tests/baselines/reference/functionArgShadowing.js @@ -20,13 +20,13 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.bar = function () { }; return B; -})(); +}()); function foo(x) { var x = new B(); x.bar(); // the property bar does not exist on a value of type A @@ -38,4 +38,4 @@ var C = (function () { var n = p; } return C; -})(); +}()); diff --git a/tests/baselines/reference/functionCall5.js b/tests/baselines/reference/functionCall5.js index dc7db4a9959..4eccd50ed3c 100644 --- a/tests/baselines/reference/functionCall5.js +++ b/tests/baselines/reference/functionCall5.js @@ -10,7 +10,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1.c1 = c1; })(m1 || (m1 = {})); function foo() { return new m1.c1(); } diff --git a/tests/baselines/reference/functionCall7.js b/tests/baselines/reference/functionCall7.js index cb30e5d8b24..68e9e4af77a 100644 --- a/tests/baselines/reference/functionCall7.js +++ b/tests/baselines/reference/functionCall7.js @@ -15,7 +15,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1.c1 = c1; })(m1 || (m1 = {})); function foo(a) { a.a = 1; } diff --git a/tests/baselines/reference/functionConstraintSatisfaction.js b/tests/baselines/reference/functionConstraintSatisfaction.js index b8741456178..eb654b1a2a2 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction.js +++ b/tests/baselines/reference/functionConstraintSatisfaction.js @@ -69,7 +69,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b; var c; @@ -87,7 +87,7 @@ var C2 = (function () { function C2() { } return C2; -})(); +}()); var a2; var b2; var c2; diff --git a/tests/baselines/reference/functionConstraintSatisfaction2.errors.txt b/tests/baselines/reference/functionConstraintSatisfaction2.errors.txt index 871368da9fe..7b3aa92828d 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction2.errors.txt +++ b/tests/baselines/reference/functionConstraintSatisfaction2.errors.txt @@ -3,22 +3,29 @@ tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstrain tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(6,1): error TS2346: Supplied parameters do not match any signature of call target. tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(7,1): error TS2346: Supplied parameters do not match any signature of call target. tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(23,14): error TS2345: Argument of type 'Function' is not assignable to parameter of type '(x: string) => string'. + Type 'Function' provides no match for the signature '(x: string): string' tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(24,15): error TS2345: Argument of type '(x: string[]) => string[]' is not assignable to parameter of type '(x: string) => string'. Types of parameters 'x' and 'x' are incompatible. Type 'string[]' is not assignable to type 'string'. tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(25,15): error TS2345: Argument of type 'typeof C' is not assignable to parameter of type '(x: string) => string'. + Type 'typeof C' provides no match for the signature '(x: string): string' tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(26,15): error TS2345: Argument of type 'new (x: string) => string' is not assignable to parameter of type '(x: string) => string'. + Type 'new (x: string) => string' provides no match for the signature '(x: string): string' tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(28,16): error TS2345: Argument of type '(x: U, y: V) => U' is not assignable to parameter of type '(x: string) => string'. tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(29,16): error TS2345: Argument of type 'typeof C2' is not assignable to parameter of type '(x: string) => string'. + Type 'typeof C2' provides no match for the signature '(x: string): string' tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(30,16): error TS2345: Argument of type 'new (x: T) => T' is not assignable to parameter of type '(x: string) => string'. + Type 'new (x: T) => T' provides no match for the signature '(x: string): string' tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(34,16): error TS2345: Argument of type 'F2' is not assignable to parameter of type '(x: string) => string'. -tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(36,38): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'F2' provides no match for the signature '(x: string): string' tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(37,10): error TS2345: Argument of type 'T' is not assignable to parameter of type '(x: string) => string'. Type '() => void' is not assignable to type '(x: string) => string'. tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts(38,10): error TS2345: Argument of type 'U' is not assignable to parameter of type '(x: string) => string'. + Type 'T' is not assignable to type '(x: string) => string'. + Type '() => void' is not assignable to type '(x: string) => string'. -==== tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts (14 errors) ==== +==== tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts (13 errors) ==== // satisfaction of a constraint to Function, all of these invocations are errors unless otherwise noted function foo(x: T): T { return x; } @@ -51,6 +58,7 @@ tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstrain var r = foo2(new Function()); ~~~~~~~~~~~~~~ !!! error TS2345: Argument of type 'Function' is not assignable to parameter of type '(x: string) => string'. +!!! error TS2345: Type 'Function' provides no match for the signature '(x: string): string' var r2 = foo2((x: string[]) => x); ~~~~~~~~~~~~~~~~~~ !!! error TS2345: Argument of type '(x: string[]) => string[]' is not assignable to parameter of type '(x: string) => string'. @@ -59,9 +67,11 @@ tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstrain var r6 = foo2(C); ~ !!! error TS2345: Argument of type 'typeof C' is not assignable to parameter of type '(x: string) => string'. +!!! error TS2345: Type 'typeof C' provides no match for the signature '(x: string): string' var r7 = foo2(b); ~ !!! error TS2345: Argument of type 'new (x: string) => string' is not assignable to parameter of type '(x: string) => string'. +!!! error TS2345: Type 'new (x: string) => string' provides no match for the signature '(x: string): string' var r8 = foo2((x: U) => x); // no error expected var r11 = foo2((x: U, y: V) => x); ~~~~~~~~~~~~~~~~~~~~~~~ @@ -69,19 +79,20 @@ tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstrain var r13 = foo2(C2); ~~ !!! error TS2345: Argument of type 'typeof C2' is not assignable to parameter of type '(x: string) => string'. +!!! error TS2345: Type 'typeof C2' provides no match for the signature '(x: string): string' var r14 = foo2(b2); ~~ !!! error TS2345: Argument of type 'new (x: T) => T' is not assignable to parameter of type '(x: string) => string'. +!!! error TS2345: Type 'new (x: T) => T' provides no match for the signature '(x: string): string' interface F2 extends Function { foo: string; } var f2: F2; var r16 = foo2(f2); ~~ !!! error TS2345: Argument of type 'F2' is not assignable to parameter of type '(x: string) => string'. +!!! error TS2345: Type 'F2' provides no match for the signature '(x: string): string' function fff(x: T, y: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo2(x); ~ !!! error TS2345: Argument of type 'T' is not assignable to parameter of type '(x: string) => string'. @@ -89,5 +100,7 @@ tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstrain foo2(y); ~ !!! error TS2345: Argument of type 'U' is not assignable to parameter of type '(x: string) => string'. +!!! error TS2345: Type 'T' is not assignable to type '(x: string) => string'. +!!! error TS2345: Type '() => void' is not assignable to type '(x: string) => string'. } \ No newline at end of file diff --git a/tests/baselines/reference/functionConstraintSatisfaction2.js b/tests/baselines/reference/functionConstraintSatisfaction2.js index 9e70a508ccd..ccbfbc70aba 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction2.js +++ b/tests/baselines/reference/functionConstraintSatisfaction2.js @@ -51,13 +51,13 @@ var C = (function () { function C() { } return C; -})(); +}()); var b; var C2 = (function () { function C2() { } return C2; -})(); +}()); var b2; var r = foo2(new Function()); var r2 = foo2(function (x) { return x; }); diff --git a/tests/baselines/reference/functionConstraintSatisfaction3.js b/tests/baselines/reference/functionConstraintSatisfaction3.js index 2c1bfa4d399..fee12434eee 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction3.js +++ b/tests/baselines/reference/functionConstraintSatisfaction3.js @@ -49,7 +49,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b; var c; @@ -64,7 +64,7 @@ var C2 = (function () { function C2() { } return C2; -})(); +}()); var a2; var b2; var c2; diff --git a/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.js b/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.js index fe10f96f7bb..be2aa29460a 100644 --- a/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.js +++ b/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.js @@ -18,4 +18,4 @@ var CDoc = (function () { doSomething(function () { }); } return CDoc; -})(); +}()); diff --git a/tests/baselines/reference/functionExpressionContextualTyping1.js b/tests/baselines/reference/functionExpressionContextualTyping1.js index 8d60572b30f..9592af7138c 100644 --- a/tests/baselines/reference/functionExpressionContextualTyping1.js +++ b/tests/baselines/reference/functionExpressionContextualTyping1.js @@ -75,7 +75,7 @@ var Class = (function () { } Class.prototype.foo = function () { }; return Class; -})(); +}()); var a1 = function (a1) { a1.foo(); return 1; @@ -117,4 +117,4 @@ var C = (function () { }; // Per spec, no contextual signature can be extracted in this case. } return C; -})(); +}()); diff --git a/tests/baselines/reference/functionImplementationErrors.js b/tests/baselines/reference/functionImplementationErrors.js index 4436f1bc94f..2dc6c8a1bc4 100644 --- a/tests/baselines/reference/functionImplementationErrors.js +++ b/tests/baselines/reference/functionImplementationErrors.js @@ -125,26 +125,26 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var AnotherClass = (function () { function AnotherClass() { } return AnotherClass; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { _super.apply(this, arguments); } return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); function f8() { return new Derived1(); return new Derived2(); diff --git a/tests/baselines/reference/functionImplementations.js b/tests/baselines/reference/functionImplementations.js index 512da960b78..6e37f929efe 100644 --- a/tests/baselines/reference/functionImplementations.js +++ b/tests/baselines/reference/functionImplementations.js @@ -232,14 +232,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var b; var b = function () { return new Base(); @@ -290,12 +290,12 @@ var Derived2 = (function (_super) { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var AnotherClass = (function () { function AnotherClass() { } return AnotherClass; -})(); +}()); // if f is a contextually typed function expression, the inferred return type is the union type // of the types of the return statement expressions in the function body, // ignoring return statements with no expressions. diff --git a/tests/baselines/reference/functionLiteralForOverloads2.js b/tests/baselines/reference/functionLiteralForOverloads2.js index f374dfb4599..ed6bdcf7841 100644 --- a/tests/baselines/reference/functionLiteralForOverloads2.js +++ b/tests/baselines/reference/functionLiteralForOverloads2.js @@ -34,12 +34,12 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var D = (function () { function D(x) { } return D; -})(); +}()); var f = C; var f2 = C; var f3 = D; diff --git a/tests/baselines/reference/functionOverloadErrors.js b/tests/baselines/reference/functionOverloadErrors.js index b0c0f449456..a07f04ae9a8 100644 --- a/tests/baselines/reference/functionOverloadErrors.js +++ b/tests/baselines/reference/functionOverloadErrors.js @@ -141,7 +141,7 @@ var cls = (function () { cls.prototype.f = function () { }; cls.prototype.g = function () { }; return cls; -})(); +}()); //Function overloads with differing export var M; (function (M) { diff --git a/tests/baselines/reference/functionOverloads5.js b/tests/baselines/reference/functionOverloads5.js index b59154d2417..f23c66f3beb 100644 --- a/tests/baselines/reference/functionOverloads5.js +++ b/tests/baselines/reference/functionOverloads5.js @@ -11,4 +11,4 @@ var baz = (function () { } baz.prototype.foo = function (bar) { }; return baz; -})(); +}()); diff --git a/tests/baselines/reference/functionOverloads6.js b/tests/baselines/reference/functionOverloads6.js index 2c19b376dc8..442708ca718 100644 --- a/tests/baselines/reference/functionOverloads6.js +++ b/tests/baselines/reference/functionOverloads6.js @@ -12,4 +12,4 @@ var foo = (function () { } foo.fnOverload = function (foo) { }; return foo; -})(); +}()); diff --git a/tests/baselines/reference/functionOverloads7.js b/tests/baselines/reference/functionOverloads7.js index 540abf9eb8c..4d807d57548 100644 --- a/tests/baselines/reference/functionOverloads7.js +++ b/tests/baselines/reference/functionOverloads7.js @@ -20,4 +20,4 @@ var foo = (function () { foo = this.bar("test"); }; return foo; -})(); +}()); diff --git a/tests/baselines/reference/functionOverloadsOutOfOrder.js b/tests/baselines/reference/functionOverloadsOutOfOrder.js index 32d69fb72ff..f675646fed7 100644 --- a/tests/baselines/reference/functionOverloadsOutOfOrder.js +++ b/tests/baselines/reference/functionOverloadsOutOfOrder.js @@ -23,7 +23,7 @@ var d = (function () { return ns.toString(); }; return d; -})(); +}()); var e = (function () { function e() { } @@ -31,4 +31,4 @@ var e = (function () { return ns.toString(); }; return e; -})(); +}()); diff --git a/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.js b/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.js index ab0baf20592..1d38d65ad38 100644 --- a/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.js +++ b/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.js @@ -19,12 +19,12 @@ var B = (function () { function B() { } return B; -})(); +}()); var A = (function () { function A() { } return A; -})(); +}()); function Choice() { var v_args = []; for (var _i = 0; _i < arguments.length; _i++) { diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs.js b/tests/baselines/reference/functionSubtypingOfVarArgs.js index ddcb0570908..7485abe1927 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs.js @@ -28,7 +28,7 @@ var EventBase = (function () { this._listeners.push(listener); }; return EventBase; -})(); +}()); var StringEvent = (function (_super) { __extends(StringEvent, _super); function StringEvent() { @@ -38,4 +38,4 @@ var StringEvent = (function (_super) { _super.prototype.add.call(this, listener); }; return StringEvent; -})(EventBase); +}(EventBase)); diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs2.js b/tests/baselines/reference/functionSubtypingOfVarArgs2.js index d04a5b97dae..33d0e8c7e03 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs2.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs2.js @@ -28,7 +28,7 @@ var EventBase = (function () { this._listeners.push(listener); }; return EventBase; -})(); +}()); var StringEvent = (function (_super) { __extends(StringEvent, _super); function StringEvent() { @@ -38,4 +38,4 @@ var StringEvent = (function (_super) { _super.prototype.add.call(this, listener); }; return StringEvent; -})(EventBase); +}(EventBase)); diff --git a/tests/baselines/reference/functionWithMultipleReturnStatements.errors.txt b/tests/baselines/reference/functionWithMultipleReturnStatements.errors.txt index a981d337093..cc10d4c782c 100644 --- a/tests/baselines/reference/functionWithMultipleReturnStatements.errors.txt +++ b/tests/baselines/reference/functionWithMultipleReturnStatements.errors.txt @@ -4,12 +4,9 @@ tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMulti tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts(32,10): error TS2354: No best common type exists among return expressions. tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts(44,10): error TS2354: No best common type exists among return expressions. tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts(49,10): error TS2354: No best common type exists among return expressions. -tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts(57,10): error TS2354: No best common type exists among return expressions. -tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts(57,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts(57,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -==== tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts (9 errors) ==== +==== tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMultipleReturnStatements.ts (6 errors) ==== // return type of a function with multiple returns is the BCT of each return statement // it is an error if there is no single BCT, these are error cases @@ -79,12 +76,6 @@ tests/cases/conformance/types/typeRelationships/bestCommonType/functionWithMulti } function f8(x: T, y: U) { - ~~ -!!! error TS2354: No best common type exists among return expressions. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. if (true) { return x; } else { diff --git a/tests/baselines/reference/functionWithSameNameAsField.js b/tests/baselines/reference/functionWithSameNameAsField.js index cc9b6b12d44..f4b328e4c5b 100644 --- a/tests/baselines/reference/functionWithSameNameAsField.js +++ b/tests/baselines/reference/functionWithSameNameAsField.js @@ -17,4 +17,4 @@ var TestProgressBar = (function () { return this; }; return TestProgressBar; -})(); +}()); diff --git a/tests/baselines/reference/functionsInClassExpressions.js b/tests/baselines/reference/functionsInClassExpressions.js index debd8138831..616e6a3251c 100644 --- a/tests/baselines/reference/functionsInClassExpressions.js +++ b/tests/baselines/reference/functionsInClassExpressions.js @@ -22,4 +22,4 @@ var Foo = (function () { } class_1.prototype.m = function () { return this.bar; }; return class_1; -})(); +}()); diff --git a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.js b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.js index f76e5342aee..4dfe851683a 100644 --- a/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.js +++ b/tests/baselines/reference/functionsMissingReturnStatementsAndExpressions.js @@ -236,4 +236,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/fuzzy.js b/tests/baselines/reference/fuzzy.js index b98a9ced107..af2bda74339 100644 --- a/tests/baselines/reference/fuzzy.js +++ b/tests/baselines/reference/fuzzy.js @@ -47,6 +47,6 @@ var M; return ({ oneI: this }); }; return C; - })(); + }()); M.C = C; })(M || (M = {})); diff --git a/tests/baselines/reference/generatedContextualTyping.js b/tests/baselines/reference/generatedContextualTyping.js index a867d4b7629..8093c8bec41 100644 --- a/tests/baselines/reference/generatedContextualTyping.js +++ b/tests/baselines/reference/generatedContextualTyping.js @@ -365,21 +365,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { _super.apply(this, arguments); } return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var b = new Base(), d1 = new Derived1(), d2 = new Derived2(); var x1 = function () { return [d1, d2]; }; var x2 = function () { return [d1, d2]; }; @@ -398,673 +398,673 @@ var x13 = (function () { this.member = function () { return [d1, d2]; }; } return x13; -})(); +}()); var x14 = (function () { function x14() { this.member = function () { return [d1, d2]; }; } return x14; -})(); +}()); var x15 = (function () { function x15() { this.member = function named() { return [d1, d2]; }; } return x15; -})(); +}()); var x16 = (function () { function x16() { this.member = function () { return [d1, d2]; }; } return x16; -})(); +}()); var x17 = (function () { function x17() { this.member = function () { return [d1, d2]; }; } return x17; -})(); +}()); var x18 = (function () { function x18() { this.member = function named() { return [d1, d2]; }; } return x18; -})(); +}()); var x19 = (function () { function x19() { this.member = [d1, d2]; } return x19; -})(); +}()); var x20 = (function () { function x20() { this.member = [d1, d2]; } return x20; -})(); +}()); var x21 = (function () { function x21() { this.member = [d1, d2]; } return x21; -})(); +}()); var x22 = (function () { function x22() { this.member = { n: [d1, d2] }; } return x22; -})(); +}()); var x23 = (function () { function x23() { this.member = function (n) { var n; return null; }; } return x23; -})(); +}()); var x24 = (function () { function x24() { this.member = { func: function (n) { return [d1, d2]; } }; } return x24; -})(); +}()); var x25 = (function () { function x25() { this.member = function () { return [d1, d2]; }; } return x25; -})(); +}()); var x26 = (function () { function x26() { this.member = function () { return [d1, d2]; }; } return x26; -})(); +}()); var x27 = (function () { function x27() { this.member = function named() { return [d1, d2]; }; } return x27; -})(); +}()); var x28 = (function () { function x28() { this.member = function () { return [d1, d2]; }; } return x28; -})(); +}()); var x29 = (function () { function x29() { this.member = function () { return [d1, d2]; }; } return x29; -})(); +}()); var x30 = (function () { function x30() { this.member = function named() { return [d1, d2]; }; } return x30; -})(); +}()); var x31 = (function () { function x31() { this.member = [d1, d2]; } return x31; -})(); +}()); var x32 = (function () { function x32() { this.member = [d1, d2]; } return x32; -})(); +}()); var x33 = (function () { function x33() { this.member = [d1, d2]; } return x33; -})(); +}()); var x34 = (function () { function x34() { this.member = { n: [d1, d2] }; } return x34; -})(); +}()); var x35 = (function () { function x35() { this.member = function (n) { var n; return null; }; } return x35; -})(); +}()); var x36 = (function () { function x36() { this.member = { func: function (n) { return [d1, d2]; } }; } return x36; -})(); +}()); var x37 = (function () { function x37() { this.member = function () { return [d1, d2]; }; } return x37; -})(); +}()); var x38 = (function () { function x38() { this.member = function () { return [d1, d2]; }; } return x38; -})(); +}()); var x39 = (function () { function x39() { this.member = function named() { return [d1, d2]; }; } return x39; -})(); +}()); var x40 = (function () { function x40() { this.member = function () { return [d1, d2]; }; } return x40; -})(); +}()); var x41 = (function () { function x41() { this.member = function () { return [d1, d2]; }; } return x41; -})(); +}()); var x42 = (function () { function x42() { this.member = function named() { return [d1, d2]; }; } return x42; -})(); +}()); var x43 = (function () { function x43() { this.member = [d1, d2]; } return x43; -})(); +}()); var x44 = (function () { function x44() { this.member = [d1, d2]; } return x44; -})(); +}()); var x45 = (function () { function x45() { this.member = [d1, d2]; } return x45; -})(); +}()); var x46 = (function () { function x46() { this.member = { n: [d1, d2] }; } return x46; -})(); +}()); var x47 = (function () { function x47() { this.member = function (n) { var n; return null; }; } return x47; -})(); +}()); var x48 = (function () { function x48() { this.member = { func: function (n) { return [d1, d2]; } }; } return x48; -})(); +}()); var x49 = (function () { function x49() { } x49.member = function () { return [d1, d2]; }; return x49; -})(); +}()); var x50 = (function () { function x50() { } x50.member = function () { return [d1, d2]; }; return x50; -})(); +}()); var x51 = (function () { function x51() { } x51.member = function named() { return [d1, d2]; }; return x51; -})(); +}()); var x52 = (function () { function x52() { } x52.member = function () { return [d1, d2]; }; return x52; -})(); +}()); var x53 = (function () { function x53() { } x53.member = function () { return [d1, d2]; }; return x53; -})(); +}()); var x54 = (function () { function x54() { } x54.member = function named() { return [d1, d2]; }; return x54; -})(); +}()); var x55 = (function () { function x55() { } x55.member = [d1, d2]; return x55; -})(); +}()); var x56 = (function () { function x56() { } x56.member = [d1, d2]; return x56; -})(); +}()); var x57 = (function () { function x57() { } x57.member = [d1, d2]; return x57; -})(); +}()); var x58 = (function () { function x58() { } x58.member = { n: [d1, d2] }; return x58; -})(); +}()); var x59 = (function () { function x59() { } x59.member = function (n) { var n; return null; }; return x59; -})(); +}()); var x60 = (function () { function x60() { } x60.member = { func: function (n) { return [d1, d2]; } }; return x60; -})(); +}()); var x61 = (function () { function x61() { } x61.member = function () { return [d1, d2]; }; return x61; -})(); +}()); var x62 = (function () { function x62() { } x62.member = function () { return [d1, d2]; }; return x62; -})(); +}()); var x63 = (function () { function x63() { } x63.member = function named() { return [d1, d2]; }; return x63; -})(); +}()); var x64 = (function () { function x64() { } x64.member = function () { return [d1, d2]; }; return x64; -})(); +}()); var x65 = (function () { function x65() { } x65.member = function () { return [d1, d2]; }; return x65; -})(); +}()); var x66 = (function () { function x66() { } x66.member = function named() { return [d1, d2]; }; return x66; -})(); +}()); var x67 = (function () { function x67() { } x67.member = [d1, d2]; return x67; -})(); +}()); var x68 = (function () { function x68() { } x68.member = [d1, d2]; return x68; -})(); +}()); var x69 = (function () { function x69() { } x69.member = [d1, d2]; return x69; -})(); +}()); var x70 = (function () { function x70() { } x70.member = { n: [d1, d2] }; return x70; -})(); +}()); var x71 = (function () { function x71() { } x71.member = function (n) { var n; return null; }; return x71; -})(); +}()); var x72 = (function () { function x72() { } x72.member = { func: function (n) { return [d1, d2]; } }; return x72; -})(); +}()); var x73 = (function () { function x73() { } x73.member = function () { return [d1, d2]; }; return x73; -})(); +}()); var x74 = (function () { function x74() { } x74.member = function () { return [d1, d2]; }; return x74; -})(); +}()); var x75 = (function () { function x75() { } x75.member = function named() { return [d1, d2]; }; return x75; -})(); +}()); var x76 = (function () { function x76() { } x76.member = function () { return [d1, d2]; }; return x76; -})(); +}()); var x77 = (function () { function x77() { } x77.member = function () { return [d1, d2]; }; return x77; -})(); +}()); var x78 = (function () { function x78() { } x78.member = function named() { return [d1, d2]; }; return x78; -})(); +}()); var x79 = (function () { function x79() { } x79.member = [d1, d2]; return x79; -})(); +}()); var x80 = (function () { function x80() { } x80.member = [d1, d2]; return x80; -})(); +}()); var x81 = (function () { function x81() { } x81.member = [d1, d2]; return x81; -})(); +}()); var x82 = (function () { function x82() { } x82.member = { n: [d1, d2] }; return x82; -})(); +}()); var x83 = (function () { function x83() { } x83.member = function (n) { var n; return null; }; return x83; -})(); +}()); var x84 = (function () { function x84() { } x84.member = { func: function (n) { return [d1, d2]; } }; return x84; -})(); +}()); var x85 = (function () { function x85(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } } return x85; -})(); +}()); var x86 = (function () { function x86(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } } return x86; -})(); +}()); var x87 = (function () { function x87(parm) { if (parm === void 0) { parm = function named() { return [d1, d2]; }; } } return x87; -})(); +}()); var x88 = (function () { function x88(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } } return x88; -})(); +}()); var x89 = (function () { function x89(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } } return x89; -})(); +}()); var x90 = (function () { function x90(parm) { if (parm === void 0) { parm = function named() { return [d1, d2]; }; } } return x90; -})(); +}()); var x91 = (function () { function x91(parm) { if (parm === void 0) { parm = [d1, d2]; } } return x91; -})(); +}()); var x92 = (function () { function x92(parm) { if (parm === void 0) { parm = [d1, d2]; } } return x92; -})(); +}()); var x93 = (function () { function x93(parm) { if (parm === void 0) { parm = [d1, d2]; } } return x93; -})(); +}()); var x94 = (function () { function x94(parm) { if (parm === void 0) { parm = { n: [d1, d2] }; } } return x94; -})(); +}()); var x95 = (function () { function x95(parm) { if (parm === void 0) { parm = function (n) { var n; return null; }; } } return x95; -})(); +}()); var x96 = (function () { function x96(parm) { if (parm === void 0) { parm = { func: function (n) { return [d1, d2]; } }; } } return x96; -})(); +}()); var x97 = (function () { function x97(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x97; -})(); +}()); var x98 = (function () { function x98(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x98; -})(); +}()); var x99 = (function () { function x99(parm) { if (parm === void 0) { parm = function named() { return [d1, d2]; }; } this.parm = parm; } return x99; -})(); +}()); var x100 = (function () { function x100(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x100; -})(); +}()); var x101 = (function () { function x101(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x101; -})(); +}()); var x102 = (function () { function x102(parm) { if (parm === void 0) { parm = function named() { return [d1, d2]; }; } this.parm = parm; } return x102; -})(); +}()); var x103 = (function () { function x103(parm) { if (parm === void 0) { parm = [d1, d2]; } this.parm = parm; } return x103; -})(); +}()); var x104 = (function () { function x104(parm) { if (parm === void 0) { parm = [d1, d2]; } this.parm = parm; } return x104; -})(); +}()); var x105 = (function () { function x105(parm) { if (parm === void 0) { parm = [d1, d2]; } this.parm = parm; } return x105; -})(); +}()); var x106 = (function () { function x106(parm) { if (parm === void 0) { parm = { n: [d1, d2] }; } this.parm = parm; } return x106; -})(); +}()); var x107 = (function () { function x107(parm) { if (parm === void 0) { parm = function (n) { var n; return null; }; } this.parm = parm; } return x107; -})(); +}()); var x108 = (function () { function x108(parm) { if (parm === void 0) { parm = { func: function (n) { return [d1, d2]; } }; } this.parm = parm; } return x108; -})(); +}()); var x109 = (function () { function x109(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x109; -})(); +}()); var x110 = (function () { function x110(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x110; -})(); +}()); var x111 = (function () { function x111(parm) { if (parm === void 0) { parm = function named() { return [d1, d2]; }; } this.parm = parm; } return x111; -})(); +}()); var x112 = (function () { function x112(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x112; -})(); +}()); var x113 = (function () { function x113(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } this.parm = parm; } return x113; -})(); +}()); var x114 = (function () { function x114(parm) { if (parm === void 0) { parm = function named() { return [d1, d2]; }; } this.parm = parm; } return x114; -})(); +}()); var x115 = (function () { function x115(parm) { if (parm === void 0) { parm = [d1, d2]; } this.parm = parm; } return x115; -})(); +}()); var x116 = (function () { function x116(parm) { if (parm === void 0) { parm = [d1, d2]; } this.parm = parm; } return x116; -})(); +}()); var x117 = (function () { function x117(parm) { if (parm === void 0) { parm = [d1, d2]; } this.parm = parm; } return x117; -})(); +}()); var x118 = (function () { function x118(parm) { if (parm === void 0) { parm = { n: [d1, d2] }; } this.parm = parm; } return x118; -})(); +}()); var x119 = (function () { function x119(parm) { if (parm === void 0) { parm = function (n) { var n; return null; }; } this.parm = parm; } return x119; -})(); +}()); var x120 = (function () { function x120(parm) { if (parm === void 0) { parm = { func: function (n) { return [d1, d2]; } }; } this.parm = parm; } return x120; -})(); +}()); function x121(parm) { if (parm === void 0) { parm = function () { return [d1, d2]; }; } } diff --git a/tests/baselines/reference/generativeRecursionWithTypeOf.js b/tests/baselines/reference/generativeRecursionWithTypeOf.js index 2b7eebfd11c..5a2ee9a0f1a 100644 --- a/tests/baselines/reference/generativeRecursionWithTypeOf.js +++ b/tests/baselines/reference/generativeRecursionWithTypeOf.js @@ -16,7 +16,7 @@ var C = (function () { } C.foo = function (x) { }; return C; -})(); +}()); var M; (function (M) { function f(x) { diff --git a/tests/baselines/reference/generatorTypeCheck31.errors.txt b/tests/baselines/reference/generatorTypeCheck31.errors.txt index a0336b464a4..3f54edacb2a 100644 --- a/tests/baselines/reference/generatorTypeCheck31.errors.txt +++ b/tests/baselines/reference/generatorTypeCheck31.errors.txt @@ -1,4 +1,5 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts(2,11): error TS2322: Type 'IterableIterator<(x: any) => any>' is not assignable to type '() => Iterable<(x: string) => number>'. + Type 'IterableIterator<(x: any) => any>' provides no match for the signature '(): Iterable<(x: string) => number>' ==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts (1 errors) ==== @@ -10,4 +11,5 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck31.ts(2,11): erro } () ~~~~~~~~ !!! error TS2322: Type 'IterableIterator<(x: any) => any>' is not assignable to type '() => Iterable<(x: string) => number>'. +!!! error TS2322: Type 'IterableIterator<(x: any) => any>' provides no match for the signature '(): Iterable<(x: string) => number>' } \ No newline at end of file diff --git a/tests/baselines/reference/generatorTypeCheck59.errors.txt b/tests/baselines/reference/generatorTypeCheck59.errors.txt index d8d532a430a..d8179803821 100644 --- a/tests/baselines/reference/generatorTypeCheck59.errors.txt +++ b/tests/baselines/reference/generatorTypeCheck59.errors.txt @@ -1,16 +1,15 @@ -tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts(3,9): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning. tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts(3,11): error TS1163: A 'yield' expression is only allowed in a generator body. +tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts(4,9): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning. ==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts (2 errors) ==== function* g() { class C { @(yield "") - ~~~~~~~~~~~ ~~~~~ !!! error TS1163: A 'yield' expression is only allowed in a generator body. m() { } - ~~~~~~~~~~~~~~~ + ~ !!! error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning. }; } \ No newline at end of file diff --git a/tests/baselines/reference/genericArrayExtenstions.errors.txt b/tests/baselines/reference/genericArrayExtenstions.errors.txt index f3035497910..7b332366fed 100644 --- a/tests/baselines/reference/genericArrayExtenstions.errors.txt +++ b/tests/baselines/reference/genericArrayExtenstions.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/genericArrayExtenstions.ts(1,22): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/genericArrayExtenstions.ts(1,22): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/genericArrayExtenstions.ts(1,22): error TS2420: Class 'ObservableArray' incorrectly implements interface 'T[]'. Property 'length' is missing in type 'ObservableArray'. @@ -6,7 +6,7 @@ tests/cases/compiler/genericArrayExtenstions.ts(1,22): error TS2420: Class 'Obse ==== tests/cases/compiler/genericArrayExtenstions.ts (2 errors) ==== export declare class ObservableArray implements Array { // MS.Entertainment.ObservableArray ~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~~~~~~~~~ !!! error TS2420: Class 'ObservableArray' incorrectly implements interface 'T[]'. !!! error TS2420: Property 'length' is missing in type 'ObservableArray'. diff --git a/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js b/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js index 88f9713c3fe..2a5177ca255 100644 --- a/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js +++ b/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js @@ -14,4 +14,4 @@ var Bar = (function () { Bar.prototype.getBar = function (foo) { }; return Bar; -})(); +}()); diff --git a/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.errors.txt b/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.errors.txt deleted file mode 100644 index 2ff34413595..00000000000 --- a/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -tests/cases/compiler/genericAssignmentCompatOfFunctionSignatures1.ts(1,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/genericAssignmentCompatOfFunctionSignatures1.ts(2,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/genericAssignmentCompatOfFunctionSignatures1.ts (2 errors) ==== - var x1 = function foo3(x: T, z: U) { } - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var x2 = function foo3(x: T, z: U) { } - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - x1 = x2; - x2 = x1; \ No newline at end of file diff --git a/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.symbols b/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.symbols new file mode 100644 index 00000000000..1dfb699d3b4 --- /dev/null +++ b/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.symbols @@ -0,0 +1,35 @@ +=== tests/cases/compiler/genericAssignmentCompatOfFunctionSignatures1.ts === +var x1 = function foo3(x: T, z: U) { } +>x1 : Symbol(x1, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 3)) +>foo3 : Symbol(foo3, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 8)) +>T : Symbol(T, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 23)) +>U : Symbol(U, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 25)) +>a : Symbol(a, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 37)) +>T : Symbol(T, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 23)) +>b : Symbol(b, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 43)) +>x : Symbol(x, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 57)) +>T : Symbol(T, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 23)) +>z : Symbol(z, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 62)) +>U : Symbol(U, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 25)) + +var x2 = function foo3(x: T, z: U) { } +>x2 : Symbol(x2, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 3)) +>foo3 : Symbol(foo3, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 8)) +>T : Symbol(T, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 23)) +>U : Symbol(U, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 25)) +>a : Symbol(a, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 37)) +>T : Symbol(T, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 23)) +>b : Symbol(b, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 43)) +>x : Symbol(x, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 57)) +>T : Symbol(T, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 23)) +>z : Symbol(z, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 62)) +>U : Symbol(U, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 25)) + +x1 = x2; +>x1 : Symbol(x1, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 3)) +>x2 : Symbol(x2, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 3)) + +x2 = x1; +>x2 : Symbol(x2, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 1, 3)) +>x1 : Symbol(x1, Decl(genericAssignmentCompatOfFunctionSignatures1.ts, 0, 3)) + diff --git a/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.types b/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.types new file mode 100644 index 00000000000..c5765a5adf4 --- /dev/null +++ b/tests/baselines/reference/genericAssignmentCompatOfFunctionSignatures1.types @@ -0,0 +1,39 @@ +=== tests/cases/compiler/genericAssignmentCompatOfFunctionSignatures1.ts === +var x1 = function foo3(x: T, z: U) { } +>x1 : (x: T, z: U) => void +>function foo3(x: T, z: U) { } : (x: T, z: U) => void +>foo3 : (x: T, z: U) => void +>T : T +>U : U +>a : T +>T : T +>b : string +>x : T +>T : T +>z : U +>U : U + +var x2 = function foo3(x: T, z: U) { } +>x2 : (x: T, z: U) => void +>function foo3(x: T, z: U) { } : (x: T, z: U) => void +>foo3 : (x: T, z: U) => void +>T : T +>U : U +>a : T +>T : T +>b : number +>x : T +>T : T +>z : U +>U : U + +x1 = x2; +>x1 = x2 : (x: T, z: U) => void +>x1 : (x: T, z: U) => void +>x2 : (x: T, z: U) => void + +x2 = x1; +>x2 = x1 : (x: T, z: U) => void +>x2 : (x: T, z: U) => void +>x1 : (x: T, z: U) => void + diff --git a/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js b/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js index 70f70ae07ba..81d65dbbbb4 100644 --- a/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js +++ b/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js @@ -25,7 +25,7 @@ var A = (function () { } A.prototype.compareTo = function (other) { return 1; }; return A; -})(); +}()); var z = { x: new A() }; var a1 = { x: new A() }; var a2 = function () { diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty.js b/tests/baselines/reference/genericBaseClassLiteralProperty.js index f8a5f78e753..5aa43d78826 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty.js @@ -22,7 +22,7 @@ var BaseClass = (function () { function BaseClass() { } return BaseClass; -})(); +}()); var SubClass = (function (_super) { __extends(SubClass, _super); function SubClass() { @@ -33,4 +33,4 @@ var SubClass = (function (_super) { var y = this._getValue2(); }; return SubClass; -})(BaseClass); +}(BaseClass)); diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty2.js b/tests/baselines/reference/genericBaseClassLiteralProperty2.js index d5c480955d8..3226f1cd659 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty2.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty2.js @@ -25,13 +25,13 @@ var CollectionItem2 = (function () { function CollectionItem2() { } return CollectionItem2; -})(); +}()); var BaseCollection2 = (function () { function BaseCollection2() { this._itemsByKey = {}; } return BaseCollection2; -})(); +}()); var DataView2 = (function (_super) { __extends(DataView2, _super); function DataView2() { @@ -41,4 +41,4 @@ var DataView2 = (function (_super) { this._itemsByKey['dummy'] = item; }; return DataView2; -})(BaseCollection2); +}(BaseCollection2)); diff --git a/tests/baselines/reference/genericCallTypeArgumentInference.js b/tests/baselines/reference/genericCallTypeArgumentInference.js index cfa366e5e2b..994b4a52e60 100644 --- a/tests/baselines/reference/genericCallTypeArgumentInference.js +++ b/tests/baselines/reference/genericCallTypeArgumentInference.js @@ -139,7 +139,7 @@ var C = (function () { return x; }; return C; -})(); +}()); var c = new C('', 1); var r4 = c.foo('', 1); // string var r5 = c.foo2('', 1); // number diff --git a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js index 9df55756ee2..04d5bd2d997 100644 --- a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js +++ b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js @@ -118,21 +118,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var b; var d1; var d2; @@ -187,7 +187,7 @@ var C = (function () { return x; }; return C; -})(); +}()); var c = new C(b, d1); var r4 = c.foo(d1, d2); // Base var r5 = c.foo2(b, d2); // Derived diff --git a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference2.errors.txt b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference2.errors.txt index d8228dd2243..6ac3c9e6703 100644 --- a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference2.errors.txt +++ b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference2.errors.txt @@ -1,14 +1,11 @@ -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts(3,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts(11,26): error TS2345: Argument of type 'number' is not assignable to parameter of type 'Date'. Property 'toDateString' is missing in type 'Number'. -==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts (2 errors) ==== +==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference2.ts (1 errors) ==== // Generic call with parameters of T and U, U extends T, no parameter of type U function foo(t: T) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var u: U; return u; } diff --git a/tests/baselines/reference/genericCallWithFixedArguments.js b/tests/baselines/reference/genericCallWithFixedArguments.js index e588c0d113d..a207d5c6d17 100644 --- a/tests/baselines/reference/genericCallWithFixedArguments.js +++ b/tests/baselines/reference/genericCallWithFixedArguments.js @@ -13,12 +13,12 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.bar = function () { }; return B; -})(); +}()); function g(x) { } g(7); // the parameter list is fixed, so this should not error diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments4.js b/tests/baselines/reference/genericCallWithFunctionTypedArguments4.js index 06c49c64f5b..c4290b73828 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments4.js +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments4.js @@ -28,12 +28,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var a; function foo4(cb) { var u; diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgs.js b/tests/baselines/reference/genericCallWithObjectTypeArgs.js index b5429e9df43..3496c28ecc3 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgs.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgs.js @@ -26,17 +26,17 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var X = (function () { function X() { } return X; -})(); +}()); function foo(t, t2) { var x; return x; diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js index bded01ead69..509dd9a1136 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js @@ -42,21 +42,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); // returns {}[] function f(a) { return [a.x, a.y]; diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.js index ca8c11bd7b3..308051b720e 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.js @@ -40,17 +40,17 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var X = (function () { function X() { } return X; -})(); +}()); function foo(t, t2) { var x; return x; diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js index 96c2f9300db..d3f18e0bfcb 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js @@ -50,14 +50,14 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); function f(x) { var r; return r; diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.errors.txt b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.errors.txt index 54455782cc2..6c2be7b10d1 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.errors.txt +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.errors.txt @@ -1,10 +1,9 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints3.ts(18,10): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'Derived' is not a valid type argument because it is not a supertype of candidate 'Derived2'. Property 'y' is missing in type 'Derived2'. -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints3.ts(20,29): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints3.ts (2 errors) ==== +==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints3.ts (1 errors) ==== // Generic call with constraints infering type parameter from object member properties class Base { @@ -29,8 +28,6 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObj !!! error TS2453: Property 'y' is missing in type 'Derived2'. function f2(a: U) { - ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var r: T; return r; } diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js index daaa2f5c0eb..acab51690d3 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js @@ -48,21 +48,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); function f(a) { var r; return r; diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.errors.txt b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.errors.txt index 5f416bb8596..c5c6cbe05c6 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.errors.txt +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.errors.txt @@ -1,9 +1,9 @@ -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints4.ts(12,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints4.ts(28,19): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints4.ts(19,17): error TS2345: Argument of type 'C' is not assignable to parameter of type 'D'. + Property 'y' is missing in type 'C'. tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints4.ts(30,24): error TS2345: Argument of type 'C' is not assignable to parameter of type 'T'. -==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints4.ts (3 errors) ==== +==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints4.ts (2 errors) ==== // Generic call with constraints infering type parameter from object member properties class C { @@ -16,8 +16,6 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObj } function foo(t: T, t2: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. return (x: T) => t2; } @@ -25,6 +23,9 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObj var d: D; var r = foo(c, d); var r2 = foo(d, c); // error because C does not extend D + ~ +!!! error TS2345: Argument of type 'C' is not assignable to parameter of type 'D'. +!!! error TS2345: Property 'y' is missing in type 'C'. var r3 = foo(c, { x: '', foo: c }); var r4 = foo(null, null); var r5 = foo({}, null); @@ -34,8 +35,6 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObj var r9 = foo(() => { }, () => 1); function other() { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var r4 = foo(c, d); var r5 = foo(c, d); // error ~ diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.js index 10d32ddeae7..2025c3eb6c0 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints4.js @@ -39,12 +39,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); function foo(t, t2) { return function (x) { return t2; }; } diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.errors.txt b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.errors.txt index 887abfaff63..2632e867edf 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.errors.txt +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.errors.txt @@ -1,5 +1,7 @@ -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints5.ts(12,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints5.ts(21,19): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints5.ts(18,17): error TS2345: Argument of type 'C' is not assignable to parameter of type 'D'. + Property 'y' is missing in type 'C'. +tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints5.ts(19,23): error TS2345: Argument of type '() => void' is not assignable to parameter of type '() => number'. + Type 'void' is not assignable to type 'number'. tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndConstraints5.ts(22,24): error TS2345: Argument of type 'C' is not assignable to parameter of type 'T'. @@ -16,19 +18,21 @@ tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObj } function foo(t: T, t2: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. return (x: T) => t2; } var c: C; var d: D; var r2 = foo(d, c); // the constraints are self-referencing, no downstream error + ~ +!!! error TS2345: Argument of type 'C' is not assignable to parameter of type 'D'. +!!! error TS2345: Property 'y' is missing in type 'C'. var r9 = foo(() => 1, () => { }); // the constraints are self-referencing, no downstream error + ~~~~~~~~~ +!!! error TS2345: Argument of type '() => void' is not assignable to parameter of type '() => number'. +!!! error TS2345: Type 'void' is not assignable to type 'number'. function other() { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var r5 = foo(c, d); // error ~ !!! error TS2345: Argument of type 'C' is not assignable to parameter of type 'T'. diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.js index 95b98767a09..355f639748b 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.js @@ -30,12 +30,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); function foo(t, t2) { return function (x) { return t2; }; } diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.errors.txt b/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.errors.txt deleted file mode 100644 index b0c0bee94fd..00000000000 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.errors.txt +++ /dev/null @@ -1,33 +0,0 @@ -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndIndexersErrors.ts(15,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndIndexersErrors.ts(23,9): error TS2322: Type 'T' is not assignable to type 'U'. - - -==== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndIndexersErrors.ts (2 errors) ==== - // Type inference infers from indexers in target type, error cases - - function foo(x: T) { - return x; - } - - function other(arg: T) { - var b: { - [x: string]: Object; - [x: number]: T; // ok, T is a subtype of Object because its apparent type is {} - }; - var r2 = foo(b); // T - } - - function other3(arg: T) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var b: { - [x: string]: Object; - [x: number]: T; - }; - var r2 = foo(b); - var d = r2[1]; - var e = r2['1']; - var u: U = r2[1]; // ok - ~ -!!! error TS2322: Type 'T' is not assignable to type 'U'. - } \ No newline at end of file diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.symbols b/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.symbols new file mode 100644 index 00000000000..0f3fe58da01 --- /dev/null +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.symbols @@ -0,0 +1,76 @@ +=== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndIndexersErrors.ts === +// Type inference infers from indexers in target type, error cases + +function foo(x: T) { +>foo : Symbol(foo, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 0, 0)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 2, 13)) +>x : Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 2, 16)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 2, 13)) + + return x; +>x : Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 2, 16)) +} + +function other(arg: T) { +>other : Symbol(other, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 4, 1)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 6, 15)) +>arg : Symbol(arg, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 6, 18)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 6, 15)) + + var b: { +>b : Symbol(b, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 7, 7)) + + [x: string]: Object; +>x : Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 8, 9)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + [x: number]: T; // ok, T is a subtype of Object because its apparent type is {} +>x : Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 9, 9)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 6, 15)) + + }; + var r2 = foo(b); // T +>r2 : Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 11, 7)) +>foo : Symbol(foo, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 0, 0)) +>b : Symbol(b, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 7, 7)) +} + +function other3(arg: T) { +>other3 : Symbol(other3, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 12, 1)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 14, 16)) +>U : Symbol(U, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 14, 28)) +>U : Symbol(U, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 14, 28)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>arg : Symbol(arg, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 14, 45)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 14, 16)) + + var b: { +>b : Symbol(b, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 15, 7)) + + [x: string]: Object; +>x : Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 16, 9)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + [x: number]: T; +>x : Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 17, 9)) +>T : Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 14, 16)) + + }; + var r2 = foo(b); +>r2 : Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 19, 7)) +>foo : Symbol(foo, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 0, 0)) +>b : Symbol(b, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 15, 7)) + + var d = r2[1]; +>d : Symbol(d, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 20, 7)) +>r2 : Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 19, 7)) + + var e = r2['1']; +>e : Symbol(e, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 21, 7)) +>r2 : Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 19, 7)) + + var u: U = r2[1]; // ok +>u : Symbol(u, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 22, 7)) +>U : Symbol(U, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 14, 28)) +>r2 : Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexersErrors.ts, 19, 7)) +} diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.types b/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.types new file mode 100644 index 00000000000..bde72409edc --- /dev/null +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexersErrors.types @@ -0,0 +1,84 @@ +=== tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgsAndIndexersErrors.ts === +// Type inference infers from indexers in target type, error cases + +function foo(x: T) { +>foo : (x: T) => T +>T : T +>x : T +>T : T + + return x; +>x : T +} + +function other(arg: T) { +>other : (arg: T) => void +>T : T +>arg : T +>T : T + + var b: { +>b : { [x: string]: Object; [x: number]: T; } + + [x: string]: Object; +>x : string +>Object : Object + + [x: number]: T; // ok, T is a subtype of Object because its apparent type is {} +>x : number +>T : T + + }; + var r2 = foo(b); // T +>r2 : { [x: string]: Object; [x: number]: T; } +>foo(b) : { [x: string]: Object; [x: number]: T; } +>foo : (x: T) => T +>b : { [x: string]: Object; [x: number]: T; } +} + +function other3(arg: T) { +>other3 : (arg: T) => void +>T : T +>U : U +>U : U +>Date : Date +>arg : T +>T : T + + var b: { +>b : { [x: string]: Object; [x: number]: T; } + + [x: string]: Object; +>x : string +>Object : Object + + [x: number]: T; +>x : number +>T : T + + }; + var r2 = foo(b); +>r2 : { [x: string]: Object; [x: number]: T; } +>foo(b) : { [x: string]: Object; [x: number]: T; } +>foo : (x: T) => T +>b : { [x: string]: Object; [x: number]: T; } + + var d = r2[1]; +>d : T +>r2[1] : T +>r2 : { [x: string]: Object; [x: number]: T; } +>1 : number + + var e = r2['1']; +>e : Object +>r2['1'] : Object +>r2 : { [x: string]: Object; [x: number]: T; } +>'1' : string + + var u: U = r2[1]; // ok +>u : U +>U : U +>r2[1] : T +>r2 : { [x: string]: Object; [x: number]: T; } +>1 : number +} diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndInitializers.errors.txt b/tests/baselines/reference/genericCallWithObjectTypeArgsAndInitializers.errors.txt index e9fae450377..9795248e2f7 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndInitializers.errors.txt +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndInitializers.errors.txt @@ -1,17 +1,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(5,33): error TS2322: Type 'number' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(6,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(6,37): error TS2322: Type 'T' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(7,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(7,37): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(8,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(8,31): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(8,56): error TS2322: Type 'U' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(9,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(9,31): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts(9,50): error TS2322: Type 'V' is not assignable to type 'U'. + Type 'T' is not assignable to type 'V'. -==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts (11 errors) ==== +==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericCallWithObjectTypeArgsAndInitializers.ts (3 errors) ==== // Generic typed parameters with initializers function foo(x: T = null) { return x; } // ok @@ -20,26 +13,11 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/genericC ~~~~~~~~ !!! error TS2322: Type 'number' is not assignable to type 'T'. function foo4(x: T, y: U = x) { } // error - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~~~~~ !!! error TS2322: Type 'T' is not assignable to type 'U'. function foo5(x: U, y: T = x) { } // ok - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. function foo6(x: T, y: U, z: V = y) { } // error - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~~~~~ !!! error TS2322: Type 'U' is not assignable to type 'V'. - function foo7(x: V, y: U = x) { } // should be ok - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~ -!!! error TS2322: Type 'V' is not assignable to type 'U'. \ No newline at end of file +!!! error TS2322: Type 'T' is not assignable to type 'V'. + function foo7(x: V, y: U = x) { } // should be ok \ No newline at end of file diff --git a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js index 093757d513d..31b4cd181b9 100644 --- a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js +++ b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js @@ -35,13 +35,13 @@ var M; function C1() { } return C1; - })(); + }()); M.C1 = C1; var A = (function () { function A() { } return A; - })(); + }()); M.A = A; var B = (function (_super) { __extends(B, _super); @@ -49,7 +49,7 @@ var M; _super.apply(this, arguments); } return B; - })(C1); + }(C1)); M.B = B; var D = (function () { function D() { @@ -62,6 +62,6 @@ var M; v.subscribe(function (newValue) { }); }; return D; - })(); + }()); M.D = D; })(M || (M = {})); diff --git a/tests/baselines/reference/genericCallsWithoutParens.js b/tests/baselines/reference/genericCallsWithoutParens.js index a479fbab375..b920016b58d 100644 --- a/tests/baselines/reference/genericCallsWithoutParens.js +++ b/tests/baselines/reference/genericCallsWithoutParens.js @@ -16,5 +16,5 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); // parse error diff --git a/tests/baselines/reference/genericClassExpressionInFunction.js b/tests/baselines/reference/genericClassExpressionInFunction.js index bb45587eea1..f334da52625 100644 --- a/tests/baselines/reference/genericClassExpressionInFunction.js +++ b/tests/baselines/reference/genericClassExpressionInFunction.js @@ -41,7 +41,7 @@ var A = (function () { function A() { } return A; -})(); +}()); function B1() { // class expression can use T return (function (_super) { @@ -50,7 +50,7 @@ function B1() { _super.apply(this, arguments); } return class_1; - })(A); + }(A)); } var B2 = (function () { function B2() { @@ -60,10 +60,10 @@ var B2 = (function () { _super.apply(this, arguments); } return class_2; - })(A); + }(A)); } return B2; -})(); +}()); function B3() { return (function (_super) { __extends(Inner, _super); @@ -71,7 +71,7 @@ function B3() { _super.apply(this, arguments); } return Inner; - })(A); + }(A)); } // extends can call B var K = (function (_super) { @@ -80,14 +80,14 @@ var K = (function (_super) { _super.apply(this, arguments); } return K; -})(B1()); +}(B1())); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})((new B2().anon)); +}((new B2().anon))); var b3Number = B3(); var S = (function (_super) { __extends(S, _super); @@ -95,7 +95,7 @@ var S = (function (_super) { _super.apply(this, arguments); } return S; -})(b3Number); +}(b3Number)); var c = new C(); var k = new K(); var s = new S(); diff --git a/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.js b/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.js index 7d26be5fb2e..588cf93fe4b 100644 --- a/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.js +++ b/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.js @@ -14,7 +14,7 @@ var bar; function Foo() { } return Foo; - })(); + }()); bar.Foo = Foo; })(bar || (bar = {})); diff --git a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js index f77f60a2fb9..9f71ace88a9 100644 --- a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js +++ b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js @@ -17,16 +17,16 @@ var A = (function (_super) { _super.apply(this, arguments); } return A; -})(B); +}(B)); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(C); +}(C)); var C = (function () { function C(p) { } return C; -})(); +}()); diff --git a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js index 69261747244..8f90c2fb6e4 100644 --- a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js +++ b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js @@ -93,7 +93,7 @@ var Portal; Validator.prototype.destroy = function () { }; Validator.prototype._validate = function (value) { return 0; }; return Validator; - })(); + }()); Validators.Validator = Validator; })(Validators = Controls.Validators || (Controls.Validators = {})); })(Controls = Portal.Controls || (Portal.Controls = {})); @@ -112,7 +112,7 @@ var PortalFx; _super.call(this, message); } return Validator; - })(Portal.Controls.Validators.Validator); + }(Portal.Controls.Validators.Validator)); Validators.Validator = Validator; })(Validators = Controls.Validators || (Controls.Validators = {})); })(Controls = ViewModels.Controls || (ViewModels.Controls = {})); @@ -123,4 +123,4 @@ var ViewModel = (function () { this.validators = ko.observableArray(); } return ViewModel; -})(); +}()); diff --git a/tests/baselines/reference/genericClassStaticMethod.js b/tests/baselines/reference/genericClassStaticMethod.js index aed721aa7d5..394e6650e0a 100644 --- a/tests/baselines/reference/genericClassStaticMethod.js +++ b/tests/baselines/reference/genericClassStaticMethod.js @@ -22,7 +22,7 @@ var Foo = (function () { Foo.getFoo = function () { }; return Foo; -})(); +}()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { @@ -31,4 +31,4 @@ var Bar = (function (_super) { Bar.getFoo = function () { }; return Bar; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js b/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js index 5156c4d6b12..50510d88c24 100644 --- a/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js +++ b/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js @@ -76,7 +76,7 @@ var ImmediatelyFix; return x(null); }; return C; - })(); + }()); var c = new C(); var r = c.foo(function (x) { return ''; }); // {} var r2 = c.foo(function (x) { return ''; }); // string @@ -88,7 +88,7 @@ var ImmediatelyFix; return x(null); }; return C2; - })(); + }()); var c2 = new C2(); var ra = c2.foo(function (x) { return 1; }); // number var r3a = c2.foo(function (x) { return 1; }); // number @@ -102,7 +102,7 @@ var WithCandidates; return cb(x); }; return C; - })(); + }()); var c; var r4 = c.foo2(1, function (a) { return ''; }); // string, contextual signature instantiation is applied to generic functions var r5 = c.foo2(1, function (a) { return ''; }); // string @@ -114,7 +114,7 @@ var WithCandidates; return cb(x); }; return C2; - })(); + }()); var c2; var r7 = c2.foo3(1, function (a) { return ''; }, ''); // string var r8 = c2.foo3(1, function (a) { return ''; }, ''); // string @@ -125,7 +125,7 @@ var WithCandidates; return cb(x); }; return C3; - })(); + }()); var c3; function other(t, u) { var r10 = c.foo2(1, function (x) { return ''; }); // error diff --git a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js index 5b0a4c11164..467675c3497 100644 --- a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js +++ b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js @@ -67,17 +67,17 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var X = (function () { function X() { } return X; -})(); +}()); var Class; (function (Class) { var G = (function () { @@ -88,7 +88,7 @@ var Class; return x; }; return G; - })(); + }()); var c1 = new X(); var d1 = new X(); var g; @@ -102,7 +102,7 @@ var Class; return x; }; return G2; - })(); + }()); var g2; var r = g2.foo2(c1, d1); var r2 = g2.foo2(c1, c1); diff --git a/tests/baselines/reference/genericClassWithStaticFactory.js b/tests/baselines/reference/genericClassWithStaticFactory.js index 6fbef32dc1b..ee65f23c2f1 100644 --- a/tests/baselines/reference/genericClassWithStaticFactory.js +++ b/tests/baselines/reference/genericClassWithStaticFactory.js @@ -230,7 +230,7 @@ var Editor; return this.insertEntryBefore(entry); }; return List; - })(); + }()); Editor.List = List; var ListFactory = (function () { function ListFactory() { @@ -262,6 +262,6 @@ var Editor; } }; return ListFactory; - })(); + }()); Editor.ListFactory = ListFactory; })(Editor || (Editor = {})); diff --git a/tests/baselines/reference/genericClassWithStaticsUsingTypeArguments.js b/tests/baselines/reference/genericClassWithStaticsUsingTypeArguments.js index 4caeacd19e2..2039e459572 100644 --- a/tests/baselines/reference/genericClassWithStaticsUsingTypeArguments.js +++ b/tests/baselines/reference/genericClassWithStaticsUsingTypeArguments.js @@ -30,4 +30,4 @@ var Foo = (function () { Foo.d = false || (function (x) { return x || undefined; })(null); Foo.e = function (x) { return null; }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/genericClasses0.js b/tests/baselines/reference/genericClasses0.js index 158793a9cbf..df6e691b9da 100644 --- a/tests/baselines/reference/genericClasses0.js +++ b/tests/baselines/reference/genericClasses0.js @@ -12,7 +12,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var v1; var y = v1.x; // should be 'string' diff --git a/tests/baselines/reference/genericClasses1.js b/tests/baselines/reference/genericClasses1.js index 804d6624a32..de4ad6f917b 100644 --- a/tests/baselines/reference/genericClasses1.js +++ b/tests/baselines/reference/genericClasses1.js @@ -12,7 +12,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var v1 = new C(); var y = v1.x; // should be 'string' diff --git a/tests/baselines/reference/genericClasses2.js b/tests/baselines/reference/genericClasses2.js index b581621dc97..dcfed142d02 100644 --- a/tests/baselines/reference/genericClasses2.js +++ b/tests/baselines/reference/genericClasses2.js @@ -20,7 +20,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var v1; var y = v1.x; // should be 'string' var w = v1.y.a; // should be 'string' diff --git a/tests/baselines/reference/genericClasses3.js b/tests/baselines/reference/genericClasses3.js index 14ffab2f6f6..2bd33efb3dc 100644 --- a/tests/baselines/reference/genericClasses3.js +++ b/tests/baselines/reference/genericClasses3.js @@ -27,14 +27,14 @@ var B = (function () { function B() { } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(B); +}(B)); var v2; var y = v2.x; // should be 'string' var u = v2.a; // should be 'string' diff --git a/tests/baselines/reference/genericClasses4.js b/tests/baselines/reference/genericClasses4.js index 24927413d3e..ab3620d2d79 100644 --- a/tests/baselines/reference/genericClasses4.js +++ b/tests/baselines/reference/genericClasses4.js @@ -37,4 +37,4 @@ var Vec2_T = (function () { return retval; }; return Vec2_T; -})(); +}()); diff --git a/tests/baselines/reference/genericClassesInModule.js b/tests/baselines/reference/genericClassesInModule.js index 3f19b1f71f7..e531e25ec7a 100644 --- a/tests/baselines/reference/genericClassesInModule.js +++ b/tests/baselines/reference/genericClassesInModule.js @@ -16,13 +16,13 @@ var Foo; function B() { } return B; - })(); + }()); Foo.B = B; var A = (function () { function A() { } return A; - })(); + }()); Foo.A = A; })(Foo || (Foo = {})); var a = new Foo.B(); diff --git a/tests/baselines/reference/genericClassesInModule2.js b/tests/baselines/reference/genericClassesInModule2.js index 1ec61d09864..a17d9272c5b 100644 --- a/tests/baselines/reference/genericClassesInModule2.js +++ b/tests/baselines/reference/genericClassesInModule2.js @@ -32,13 +32,13 @@ define(["require", "exports"], function (require, exports) { var child = new B(this); }; return A; - })(); + }()); exports.A = A; var B = (function () { function B(parent) { this.parent = parent; } return B; - })(); + }()); exports.B = B; }); diff --git a/tests/baselines/reference/genericCloduleInModule.js b/tests/baselines/reference/genericCloduleInModule.js index 92c519aa012..e3f926e1f91 100644 --- a/tests/baselines/reference/genericCloduleInModule.js +++ b/tests/baselines/reference/genericCloduleInModule.js @@ -21,7 +21,7 @@ var A; B.prototype.foo = function () { }; B.bar = function () { }; return B; - })(); + }()); A.B = B; var B; (function (B) { diff --git a/tests/baselines/reference/genericCloduleInModule2.js b/tests/baselines/reference/genericCloduleInModule2.js index bb8021ffe8c..433a165db92 100644 --- a/tests/baselines/reference/genericCloduleInModule2.js +++ b/tests/baselines/reference/genericCloduleInModule2.js @@ -24,7 +24,7 @@ var A; B.prototype.foo = function () { }; B.bar = function () { }; return B; - })(); + }()); A.B = B; })(A || (A = {})); var A; diff --git a/tests/baselines/reference/genericCloneReturnTypes.js b/tests/baselines/reference/genericCloneReturnTypes.js index d7a279fb0bc..6d301c008e6 100644 --- a/tests/baselines/reference/genericCloneReturnTypes.js +++ b/tests/baselines/reference/genericCloneReturnTypes.js @@ -34,7 +34,7 @@ var Bar = (function () { return new Bar(this.size); }; return Bar; -})(); +}()); var b; var b2 = b.clone(); var b3; diff --git a/tests/baselines/reference/genericCloneReturnTypes2.js b/tests/baselines/reference/genericCloneReturnTypes2.js index 9a1201af7f8..1e908c4c865 100644 --- a/tests/baselines/reference/genericCloneReturnTypes2.js +++ b/tests/baselines/reference/genericCloneReturnTypes2.js @@ -25,7 +25,7 @@ var MyList = (function () { return new MyList(this.size); }; return MyList; -})(); +}()); var a; var b = a.clone(); // ok var c = a.clone(); // bug was there was an error on this line diff --git a/tests/baselines/reference/genericConstraint1.js b/tests/baselines/reference/genericConstraint1.js index 38de98b121a..52ce0143357 100644 --- a/tests/baselines/reference/genericConstraint1.js +++ b/tests/baselines/reference/genericConstraint1.js @@ -16,6 +16,6 @@ var C = (function () { return null; }; return C; -})(); +}()); var x = new C(); x.bar2(2, ""); diff --git a/tests/baselines/reference/genericConstraint2.errors.txt b/tests/baselines/reference/genericConstraint2.errors.txt index c1be6fc2325..97d468f5d5d 100644 --- a/tests/baselines/reference/genericConstraint2.errors.txt +++ b/tests/baselines/reference/genericConstraint2.errors.txt @@ -1,18 +1,15 @@ -tests/cases/compiler/genericConstraint2.ts(5,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/genericConstraint2.ts(11,7): error TS2420: Class 'ComparableString' incorrectly implements interface 'Comparable'. Property 'comparer' is missing in type 'ComparableString'. -tests/cases/compiler/genericConstraint2.ts(21,17): error TS2344: Type 'ComparableString' does not satisfy the constraint 'Comparable'. +tests/cases/compiler/genericConstraint2.ts(21,17): error TS2344: Type 'ComparableString' does not satisfy the constraint 'Comparable'. Property 'comparer' is missing in type 'ComparableString'. -==== tests/cases/compiler/genericConstraint2.ts (3 errors) ==== +==== tests/cases/compiler/genericConstraint2.ts (2 errors) ==== interface Comparable { comparer(other: T): number; } function compare>(x: T, y: T): number { - ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. if (x == null) return y == null ? 0 : -1; if (y == null) return 1; return x.comparer(y); @@ -33,5 +30,5 @@ tests/cases/compiler/genericConstraint2.ts(21,17): error TS2344: Type 'Comparabl var b = new ComparableString("b"); var c = compare(a, b); ~~~~~~~~~~~~~~~~ -!!! error TS2344: Type 'ComparableString' does not satisfy the constraint 'Comparable'. +!!! error TS2344: Type 'ComparableString' does not satisfy the constraint 'Comparable'. !!! error TS2344: Property 'comparer' is missing in type 'ComparableString'. \ No newline at end of file diff --git a/tests/baselines/reference/genericConstraint2.js b/tests/baselines/reference/genericConstraint2.js index 9548ae485b4..9056ec847d7 100644 --- a/tests/baselines/reference/genericConstraint2.js +++ b/tests/baselines/reference/genericConstraint2.js @@ -37,7 +37,7 @@ var ComparableString = (function () { return 0; }; return ComparableString; -})(); +}()); var a = new ComparableString("a"); var b = new ComparableString("b"); var c = compare(a, b); diff --git a/tests/baselines/reference/genericConstraint3.errors.txt b/tests/baselines/reference/genericConstraint3.errors.txt deleted file mode 100644 index 525b11504fb..00000000000 --- a/tests/baselines/reference/genericConstraint3.errors.txt +++ /dev/null @@ -1,9 +0,0 @@ -tests/cases/compiler/genericConstraint3.ts(2,16): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/genericConstraint3.ts (1 errors) ==== - interface C

{ x: P; } - interface A> { x: U; } - ~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface B extends A<{}, { x: {} }> { } // Should not produce an error \ No newline at end of file diff --git a/tests/baselines/reference/genericConstraint3.symbols b/tests/baselines/reference/genericConstraint3.symbols new file mode 100644 index 00000000000..57cb9d03115 --- /dev/null +++ b/tests/baselines/reference/genericConstraint3.symbols @@ -0,0 +1,21 @@ +=== tests/cases/compiler/genericConstraint3.ts === +interface C

{ x: P; } +>C : Symbol(C, Decl(genericConstraint3.ts, 0, 0)) +>P : Symbol(P, Decl(genericConstraint3.ts, 0, 12)) +>x : Symbol(x, Decl(genericConstraint3.ts, 0, 16)) +>P : Symbol(P, Decl(genericConstraint3.ts, 0, 12)) + +interface A> { x: U; } +>A : Symbol(A, Decl(genericConstraint3.ts, 0, 24)) +>T : Symbol(T, Decl(genericConstraint3.ts, 1, 12)) +>U : Symbol(U, Decl(genericConstraint3.ts, 1, 14)) +>C : Symbol(C, Decl(genericConstraint3.ts, 0, 0)) +>T : Symbol(T, Decl(genericConstraint3.ts, 1, 12)) +>x : Symbol(x, Decl(genericConstraint3.ts, 1, 32)) +>U : Symbol(U, Decl(genericConstraint3.ts, 1, 14)) + +interface B extends A<{}, { x: {} }> { } // Should not produce an error +>B : Symbol(B, Decl(genericConstraint3.ts, 1, 40)) +>A : Symbol(A, Decl(genericConstraint3.ts, 0, 24)) +>x : Symbol(x, Decl(genericConstraint3.ts, 2, 27)) + diff --git a/tests/baselines/reference/genericConstraint3.types b/tests/baselines/reference/genericConstraint3.types new file mode 100644 index 00000000000..84d6f0676f5 --- /dev/null +++ b/tests/baselines/reference/genericConstraint3.types @@ -0,0 +1,21 @@ +=== tests/cases/compiler/genericConstraint3.ts === +interface C

{ x: P; } +>C : C

+>P : P +>x : P +>P : P + +interface A> { x: U; } +>A : A +>T : T +>U : U +>C : C

+>T : T +>x : U +>U : U + +interface B extends A<{}, { x: {} }> { } // Should not produce an error +>B : B +>A : A +>x : {} + diff --git a/tests/baselines/reference/genericConstraintDeclaration.js b/tests/baselines/reference/genericConstraintDeclaration.js index 6e3f8d5ff8b..eafda32f122 100644 --- a/tests/baselines/reference/genericConstraintDeclaration.js +++ b/tests/baselines/reference/genericConstraintDeclaration.js @@ -14,7 +14,7 @@ var List = (function () { } List.empty = function () { return null; }; return List; -})(); +}()); //// [genericConstraintDeclaration.d.ts] diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js index b4e56933775..d2bf12667fc 100644 --- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js +++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js @@ -41,7 +41,7 @@ var EndGate; this._from = from.Clone(); } return Tween; - })(); + }()); Tweening.Tween = Tween; })(Tweening = EndGate.Tweening || (EndGate.Tweening = {})); })(EndGate || (EndGate = {})); @@ -55,7 +55,7 @@ var EndGate; _super.call(this, from); } return NumberTween; - })(Tweening.Tween); + }(Tweening.Tween)); Tweening.NumberTween = NumberTween; })(Tweening = EndGate.Tweening || (EndGate.Tweening = {})); })(EndGate || (EndGate = {})); diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js index 54a807a8e87..f61f57cb615 100644 --- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js +++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js @@ -40,7 +40,7 @@ var EndGate; this._from = from.Clone(); } return Tween; - })(); + }()); Tweening.Tween = Tween; })(Tweening = EndGate.Tweening || (EndGate.Tweening = {})); })(EndGate || (EndGate = {})); @@ -54,7 +54,7 @@ var EndGate; _super.call(this, from); } return NumberTween; - })(Tweening.Tween); + }(Tweening.Tween)); Tweening.NumberTween = NumberTween; })(Tweening = EndGate.Tweening || (EndGate.Tweening = {})); })(EndGate || (EndGate = {})); diff --git a/tests/baselines/reference/genericConstructExpressionWithoutArgs.js b/tests/baselines/reference/genericConstructExpressionWithoutArgs.js index c3066de2721..5eb21728eb1 100644 --- a/tests/baselines/reference/genericConstructExpressionWithoutArgs.js +++ b/tests/baselines/reference/genericConstructExpressionWithoutArgs.js @@ -15,12 +15,12 @@ var B = (function () { function B() { } return B; -})(); +}()); var b = new B; // no error var C = (function () { function C() { } return C; -})(); +}()); var c = new C; // C var c2 = new C(); // error, type params are actually part of the arg list so you need both diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js index eb27365ebc5..906145850f1 100644 --- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js +++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js @@ -22,14 +22,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var x; var y; x = y; // error diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js index be94a778858..1c73075acc4 100644 --- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js +++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js @@ -22,14 +22,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var x; var y; x = y; // error diff --git a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js index 9ad885a899a..7caa65b971b 100644 --- a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js +++ b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js @@ -21,7 +21,7 @@ var Collection = (function () { } Collection.prototype.add = function (x) { }; return Collection; -})(); +}()); var utils; var c = new Collection(); var r3 = utils.mapReduce(c, function (x) { return 1; }, function (y) { return new Date(); }); diff --git a/tests/baselines/reference/genericGetter.js b/tests/baselines/reference/genericGetter.js index 59425d8c13b..81e2531f1b9 100644 --- a/tests/baselines/reference/genericGetter.js +++ b/tests/baselines/reference/genericGetter.js @@ -21,6 +21,6 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var c = new C(); var r = c.x; diff --git a/tests/baselines/reference/genericGetter2.js b/tests/baselines/reference/genericGetter2.js index 9d39ce02d5f..022233b78e0 100644 --- a/tests/baselines/reference/genericGetter2.js +++ b/tests/baselines/reference/genericGetter2.js @@ -13,7 +13,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function () { function C() { } @@ -25,4 +25,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/genericGetter3.js b/tests/baselines/reference/genericGetter3.js index 1cb01c6f112..93465009378 100644 --- a/tests/baselines/reference/genericGetter3.js +++ b/tests/baselines/reference/genericGetter3.js @@ -16,7 +16,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function () { function C() { } @@ -28,6 +28,6 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var c = new C(); var r = c.x; diff --git a/tests/baselines/reference/genericImplements.js b/tests/baselines/reference/genericImplements.js index b8d295153a4..1a67fb29ad8 100644 --- a/tests/baselines/reference/genericImplements.js +++ b/tests/baselines/reference/genericImplements.js @@ -25,13 +25,13 @@ var A = (function () { function A() { } return A; -})(); +}()); ; var B = (function () { function B() { } return B; -})(); +}()); ; // OK var X = (function () { @@ -39,18 +39,18 @@ var X = (function () { } X.prototype.f = function () { return undefined; }; return X; -})(); // { f: () => { b; } } +}()); // { f: () => { b; } } // OK var Y = (function () { function Y() { } Y.prototype.f = function () { return undefined; }; return Y; -})(); // { f: () => { a; } } +}()); // { f: () => { a; } } // OK var Z = (function () { function Z() { } Z.prototype.f = function () { return undefined; }; return Z; -})(); // { f: () => T } +}()); // { f: () => T } diff --git a/tests/baselines/reference/genericInstanceOf.js b/tests/baselines/reference/genericInstanceOf.js index 9017cfe050a..6d060a75fe1 100644 --- a/tests/baselines/reference/genericInstanceOf.js +++ b/tests/baselines/reference/genericInstanceOf.js @@ -22,4 +22,4 @@ var C = (function () { } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/genericInterfaceImplementation.js b/tests/baselines/reference/genericInterfaceImplementation.js index 8dc442b4959..c68c3e0d222 100644 --- a/tests/baselines/reference/genericInterfaceImplementation.js +++ b/tests/baselines/reference/genericInterfaceImplementation.js @@ -27,4 +27,4 @@ var None = (function () { return new None(); }; return None; -})(); +}()); diff --git a/tests/baselines/reference/genericInterfacesWithoutTypeArguments.js b/tests/baselines/reference/genericInterfacesWithoutTypeArguments.js index 4db7f2d0b1d..e6a2fd65a66 100644 --- a/tests/baselines/reference/genericInterfacesWithoutTypeArguments.js +++ b/tests/baselines/reference/genericInterfacesWithoutTypeArguments.js @@ -10,6 +10,6 @@ var C = (function () { function C() { } return C; -})(); +}()); var i; var c; diff --git a/tests/baselines/reference/genericMemberFunction.errors.txt b/tests/baselines/reference/genericMemberFunction.errors.txt index 2199966ea56..1410b6d94e3 100644 --- a/tests/baselines/reference/genericMemberFunction.errors.txt +++ b/tests/baselines/reference/genericMemberFunction.errors.txt @@ -1,45 +1,30 @@ -tests/cases/compiler/genericMemberFunction.ts(2,20): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/genericMemberFunction.ts(7,20): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/genericMemberFunction.ts(10,20): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/genericMemberFunction.ts(15,19): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/genericMemberFunction.ts(16,5): error TS2304: Cannot find name 'a'. tests/cases/compiler/genericMemberFunction.ts(17,5): error TS2304: Cannot find name 'removedFiles'. -tests/cases/compiler/genericMemberFunction.ts(17,30): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/genericMemberFunction.ts(18,12): error TS2339: Property 'removeFile' does not exist on type 'BuildResult'. -==== tests/cases/compiler/genericMemberFunction.ts (8 errors) ==== +==== tests/cases/compiler/genericMemberFunction.ts (3 errors) ==== export class BuildError{ public parent(): FileWithErrors { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. return undefined; } } export class FileWithErrors{ public errors(): BuildError[] { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. return undefined; } public parent(): BuildResult { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. return undefined; } } export class BuildResult{ public merge(other: BuildResult): void { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. a.b.c.d.e.f.g = 0; ~ !!! error TS2304: Cannot find name 'a'. removedFiles.forEach((each: FileWithErrors) => { ~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'removedFiles'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. this.removeFile(each); ~~~~~~~~~~ !!! error TS2339: Property 'removeFile' does not exist on type 'BuildResult'. diff --git a/tests/baselines/reference/genericMemberFunction.js b/tests/baselines/reference/genericMemberFunction.js index b442b2f8757..c15868e20c4 100644 --- a/tests/baselines/reference/genericMemberFunction.js +++ b/tests/baselines/reference/genericMemberFunction.js @@ -32,7 +32,7 @@ define(["require", "exports"], function (require, exports) { return undefined; }; return BuildError; - })(); + }()); exports.BuildError = BuildError; var FileWithErrors = (function () { function FileWithErrors() { @@ -44,7 +44,7 @@ define(["require", "exports"], function (require, exports) { return undefined; }; return FileWithErrors; - })(); + }()); exports.FileWithErrors = FileWithErrors; var BuildResult = (function () { function BuildResult() { @@ -57,6 +57,6 @@ define(["require", "exports"], function (require, exports) { }); }; return BuildResult; - })(); + }()); exports.BuildResult = BuildResult; }); diff --git a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.errors.txt b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.errors.txt index 43a73e76a3e..7778e1c3346 100644 --- a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.errors.txt +++ b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter.errors.txt @@ -1,12 +1,9 @@ -tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts(1,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts(3,19): error TS2304: Cannot find name 'T'. tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts(4,14): error TS2304: Cannot find name 'T'. -==== tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts (3 errors) ==== +==== tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts (2 errors) ==== function foo(y: T, z: U) { return y; } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. module foo { export var x: T; ~ diff --git a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js index 27961a68c73..ac51424deea 100644 --- a/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js +++ b/tests/baselines/reference/genericMergedDeclarationUsingTypeParameter2.js @@ -11,7 +11,7 @@ var foo = (function () { function foo(x) { } return foo; -})(); +}()); var foo; (function (foo) { var y = 1; diff --git a/tests/baselines/reference/genericObjectCreationWithoutTypeArgs.js b/tests/baselines/reference/genericObjectCreationWithoutTypeArgs.js index 75e85283aa9..bbd621ca09f 100644 --- a/tests/baselines/reference/genericObjectCreationWithoutTypeArgs.js +++ b/tests/baselines/reference/genericObjectCreationWithoutTypeArgs.js @@ -14,7 +14,7 @@ var SS = (function () { function SS() { } return SS; -})(); +}()); var x1 = new SS(); // OK var x2 = new SS(); // Correctly give error var x3 = new SS(); // OK diff --git a/tests/baselines/reference/genericObjectLitReturnType.js b/tests/baselines/reference/genericObjectLitReturnType.js index 826f5233b55..e9b1ba2f60d 100644 --- a/tests/baselines/reference/genericObjectLitReturnType.js +++ b/tests/baselines/reference/genericObjectLitReturnType.js @@ -17,7 +17,7 @@ var X = (function () { } X.prototype.f = function (t) { return { a: t }; }; return X; -})(); +}()); var x; var t1 = x.f(5); t1.a = 5; // Should not error: t1 should have type {a: number}, instead has type {a: T} diff --git a/tests/baselines/reference/genericOfACloduleType1.js b/tests/baselines/reference/genericOfACloduleType1.js index 1f115aa486a..3e4b9d3a9d4 100644 --- a/tests/baselines/reference/genericOfACloduleType1.js +++ b/tests/baselines/reference/genericOfACloduleType1.js @@ -18,7 +18,7 @@ var G = (function () { } G.prototype.bar = function (x) { return x; }; return G; -})(); +}()); var M; (function (M) { var C = (function () { @@ -26,7 +26,7 @@ var M; } C.prototype.foo = function () { }; return C; - })(); + }()); M.C = C; var C; (function (C) { @@ -34,7 +34,7 @@ var M; function X() { } return X; - })(); + }()); C.X = X; })(C = M.C || (M.C = {})); var g1 = new G(); diff --git a/tests/baselines/reference/genericOfACloduleType2.js b/tests/baselines/reference/genericOfACloduleType2.js index 1d671289cb2..f1e3f2a8a00 100644 --- a/tests/baselines/reference/genericOfACloduleType2.js +++ b/tests/baselines/reference/genericOfACloduleType2.js @@ -21,7 +21,7 @@ var G = (function () { } G.prototype.bar = function (x) { return x; }; return G; -})(); +}()); var M; (function (M) { var C = (function () { @@ -29,7 +29,7 @@ var M; } C.prototype.foo = function () { }; return C; - })(); + }()); M.C = C; var C; (function (C) { @@ -37,7 +37,7 @@ var M; function X() { } return X; - })(); + }()); C.X = X; })(C = M.C || (M.C = {})); var g1 = new G(); diff --git a/tests/baselines/reference/genericOverloadSignatures.js b/tests/baselines/reference/genericOverloadSignatures.js index 45a21d5a334..829ee557e4e 100644 --- a/tests/baselines/reference/genericOverloadSignatures.js +++ b/tests/baselines/reference/genericOverloadSignatures.js @@ -36,5 +36,5 @@ var C2 = (function () { function C2() { } return C2; -})(); +}()); var b; diff --git a/tests/baselines/reference/genericPrototypeProperty.js b/tests/baselines/reference/genericPrototypeProperty.js index fb6f9b78848..77102b280a1 100644 --- a/tests/baselines/reference/genericPrototypeProperty.js +++ b/tests/baselines/reference/genericPrototypeProperty.js @@ -15,7 +15,7 @@ var C = (function () { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var r = C.prototype; // should be any var r2 = r.x; diff --git a/tests/baselines/reference/genericPrototypeProperty2.js b/tests/baselines/reference/genericPrototypeProperty2.js index cbe33431ca4..3f1b6e21adc 100644 --- a/tests/baselines/reference/genericPrototypeProperty2.js +++ b/tests/baselines/reference/genericPrototypeProperty2.js @@ -25,23 +25,23 @@ var BaseEvent = (function () { function BaseEvent() { } return BaseEvent; -})(); +}()); var MyEvent = (function (_super) { __extends(MyEvent, _super); function MyEvent() { _super.apply(this, arguments); } return MyEvent; -})(BaseEvent); +}(BaseEvent)); var BaseEventWrapper = (function () { function BaseEventWrapper() { } return BaseEventWrapper; -})(); +}()); var MyEventWrapper = (function (_super) { __extends(MyEventWrapper, _super); function MyEventWrapper() { _super.apply(this, arguments); } return MyEventWrapper; -})(BaseEventWrapper); +}(BaseEventWrapper)); diff --git a/tests/baselines/reference/genericPrototypeProperty3.js b/tests/baselines/reference/genericPrototypeProperty3.js index 6447a4e0ac2..b7cca85561c 100644 --- a/tests/baselines/reference/genericPrototypeProperty3.js +++ b/tests/baselines/reference/genericPrototypeProperty3.js @@ -24,23 +24,23 @@ var BaseEvent = (function () { function BaseEvent() { } return BaseEvent; -})(); +}()); var MyEvent = (function (_super) { __extends(MyEvent, _super); function MyEvent() { _super.apply(this, arguments); } return MyEvent; -})(BaseEvent); +}(BaseEvent)); var BaseEventWrapper = (function () { function BaseEventWrapper() { } return BaseEventWrapper; -})(); +}()); var MyEventWrapper = (function (_super) { __extends(MyEventWrapper, _super); function MyEventWrapper() { _super.apply(this, arguments); } return MyEventWrapper; -})(BaseEventWrapper); +}(BaseEventWrapper)); diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js index a1f7566f1c0..73012f714e8 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js @@ -52,7 +52,7 @@ var TypeScript2; return undefined; }; return PullSymbol; - })(); + }()); TypeScript2.PullSymbol = PullSymbol; var PullTypeSymbol = (function (_super) { __extends(PullTypeSymbol, _super); @@ -60,6 +60,6 @@ var TypeScript2; _super.apply(this, arguments); } return PullTypeSymbol; - })(PullSymbol); + }(PullSymbol)); TypeScript2.PullTypeSymbol = PullTypeSymbol; })(TypeScript2 || (TypeScript2 = {})); diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js index a0229e19925..61cb758c48e 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js @@ -44,7 +44,7 @@ var TypeScript; MemberName.create = function (arg1, arg2, arg3) { }; return MemberName; - })(); + }()); TypeScript.MemberName = MemberName; })(TypeScript || (TypeScript = {})); var TypeScript; @@ -54,7 +54,7 @@ var TypeScript; this.type = null; } return PullSymbol; - })(); + }()); TypeScript.PullSymbol = PullSymbol; var PullTypeSymbol = (function (_super) { __extends(PullTypeSymbol, _super); @@ -76,6 +76,6 @@ var TypeScript; } }; return PullTypeSymbol; - })(PullSymbol); + }(PullSymbol)); TypeScript.PullTypeSymbol = PullTypeSymbol; })(TypeScript || (TypeScript = {})); diff --git a/tests/baselines/reference/genericReturnTypeFromGetter1.js b/tests/baselines/reference/genericReturnTypeFromGetter1.js index 76b60435f55..56367ca9c5e 100644 --- a/tests/baselines/reference/genericReturnTypeFromGetter1.js +++ b/tests/baselines/reference/genericReturnTypeFromGetter1.js @@ -21,6 +21,6 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return DbSet; - })(); + }()); exports.DbSet = DbSet; }); diff --git a/tests/baselines/reference/genericReversingTypeParameters.js b/tests/baselines/reference/genericReversingTypeParameters.js index 2a52c2e9ba6..33f598a1642 100644 --- a/tests/baselines/reference/genericReversingTypeParameters.js +++ b/tests/baselines/reference/genericReversingTypeParameters.js @@ -17,7 +17,7 @@ var BiMap = (function () { BiMap.prototype.get = function (key) { return null; }; BiMap.prototype.inverse = function () { return null; }; return BiMap; -})(); +}()); var b = new BiMap(); var r1 = b.get(''); var i = b.inverse(); // used to get the type wrong here. diff --git a/tests/baselines/reference/genericReversingTypeParameters2.js b/tests/baselines/reference/genericReversingTypeParameters2.js index 4f4bc564f89..40102d790d9 100644 --- a/tests/baselines/reference/genericReversingTypeParameters2.js +++ b/tests/baselines/reference/genericReversingTypeParameters2.js @@ -16,7 +16,7 @@ var BiMap = (function () { BiMap.prototype.get = function (key) { return null; }; BiMap.prototype.inverse = function () { return null; }; return BiMap; -})(); +}()); var b = new BiMap(); var i = b.inverse(); // used to get the type wrong here. var r2b = i.get(1); diff --git a/tests/baselines/reference/genericSignatureIdentity.js b/tests/baselines/reference/genericSignatureIdentity.js new file mode 100644 index 00000000000..9a51a61edbd --- /dev/null +++ b/tests/baselines/reference/genericSignatureIdentity.js @@ -0,0 +1,32 @@ +//// [genericSignatureIdentity.ts] +// This test is here to remind us of our current limits of type identity checking. +// Ideally all of the below declarations would be considered different (and thus errors) +// but they aren't because we erase type parameters to type any and don't check that +// constraints are identical. + +var x: { + (x: T): T; +}; + +var x: { + (x: T): T; +}; + +var x: { + (x: T): T; +}; + +var x: { + (x: any): any; +}; + + +//// [genericSignatureIdentity.js] +// This test is here to remind us of our current limits of type identity checking. +// Ideally all of the below declarations would be considered different (and thus errors) +// but they aren't because we erase type parameters to type any and don't check that +// constraints are identical. +var x; +var x; +var x; +var x; diff --git a/tests/baselines/reference/genericSignatureIdentity.symbols b/tests/baselines/reference/genericSignatureIdentity.symbols new file mode 100644 index 00000000000..afd12ec266a --- /dev/null +++ b/tests/baselines/reference/genericSignatureIdentity.symbols @@ -0,0 +1,49 @@ +=== tests/cases/compiler/genericSignatureIdentity.ts === +// This test is here to remind us of our current limits of type identity checking. +// Ideally all of the below declarations would be considered different (and thus errors) +// but they aren't because we erase type parameters to type any and don't check that +// constraints are identical. + +var x: { +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 5, 3), Decl(genericSignatureIdentity.ts, 9, 3), Decl(genericSignatureIdentity.ts, 13, 3), Decl(genericSignatureIdentity.ts, 17, 3)) + + (x: T): T; +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 6, 5)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 6, 21)) +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 6, 5)) +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 6, 5)) + +}; + +var x: { +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 5, 3), Decl(genericSignatureIdentity.ts, 9, 3), Decl(genericSignatureIdentity.ts, 13, 3), Decl(genericSignatureIdentity.ts, 17, 3)) + + (x: T): T; +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 10, 5)) +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 10, 23)) +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 10, 5)) +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 10, 5)) + +}; + +var x: { +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 5, 3), Decl(genericSignatureIdentity.ts, 9, 3), Decl(genericSignatureIdentity.ts, 13, 3), Decl(genericSignatureIdentity.ts, 17, 3)) + + (x: T): T; +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 14, 5)) +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 14, 8)) +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 14, 5)) +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 14, 5)) + +}; + +var x: { +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 5, 3), Decl(genericSignatureIdentity.ts, 9, 3), Decl(genericSignatureIdentity.ts, 13, 3), Decl(genericSignatureIdentity.ts, 17, 3)) + + (x: any): any; +>T : Symbol(T, Decl(genericSignatureIdentity.ts, 18, 5)) +>x : Symbol(x, Decl(genericSignatureIdentity.ts, 18, 8)) + +}; + diff --git a/tests/baselines/reference/genericSignatureIdentity.types b/tests/baselines/reference/genericSignatureIdentity.types new file mode 100644 index 00000000000..9385718a361 --- /dev/null +++ b/tests/baselines/reference/genericSignatureIdentity.types @@ -0,0 +1,49 @@ +=== tests/cases/compiler/genericSignatureIdentity.ts === +// This test is here to remind us of our current limits of type identity checking. +// Ideally all of the below declarations would be considered different (and thus errors) +// but they aren't because we erase type parameters to type any and don't check that +// constraints are identical. + +var x: { +>x : (x: T) => T + + (x: T): T; +>T : T +>Date : Date +>x : T +>T : T +>T : T + +}; + +var x: { +>x : (x: T) => T + + (x: T): T; +>T : T +>x : T +>T : T +>T : T + +}; + +var x: { +>x : (x: T) => T + + (x: T): T; +>T : T +>x : T +>T : T +>T : T + +}; + +var x: { +>x : (x: T) => T + + (x: any): any; +>T : T +>x : any + +}; + diff --git a/tests/baselines/reference/genericSpecializations1.js b/tests/baselines/reference/genericSpecializations1.js index 3e59fceff97..2aabf708a6f 100644 --- a/tests/baselines/reference/genericSpecializations1.js +++ b/tests/baselines/reference/genericSpecializations1.js @@ -21,16 +21,16 @@ var IntFooBad = (function () { } IntFooBad.prototype.foo = function (x) { return null; }; return IntFooBad; -})(); +}()); var StringFoo2 = (function () { function StringFoo2() { } StringFoo2.prototype.foo = function (x) { return null; }; return StringFoo2; -})(); +}()); var StringFoo3 = (function () { function StringFoo3() { } StringFoo3.prototype.foo = function (x) { return null; }; return StringFoo3; -})(); +}()); diff --git a/tests/baselines/reference/genericSpecializations2.js b/tests/baselines/reference/genericSpecializations2.js index 8497d2db8b4..6975575ec5e 100644 --- a/tests/baselines/reference/genericSpecializations2.js +++ b/tests/baselines/reference/genericSpecializations2.js @@ -27,22 +27,22 @@ var IFoo = (function () { return null; }; return IFoo; -})(); +}()); var IntFooBad = (function () { function IntFooBad() { } IntFooBad.prototype.foo = function (x) { return null; }; return IntFooBad; -})(); +}()); var StringFoo2 = (function () { function StringFoo2() { } StringFoo2.prototype.foo = function (x) { return null; }; return StringFoo2; -})(); +}()); var StringFoo3 = (function () { function StringFoo3() { } StringFoo3.prototype.foo = function (x) { return null; }; return StringFoo3; -})(); +}()); diff --git a/tests/baselines/reference/genericSpecializations3.js b/tests/baselines/reference/genericSpecializations3.js index 3c582ae31fd..03d07b6dff9 100644 --- a/tests/baselines/reference/genericSpecializations3.js +++ b/tests/baselines/reference/genericSpecializations3.js @@ -43,21 +43,21 @@ var IntFooBad = (function () { } IntFooBad.prototype.foo = function (x) { return null; }; return IntFooBad; -})(); +}()); var intFooBad; var IntFoo = (function () { function IntFoo() { } IntFoo.prototype.foo = function (x) { return null; }; return IntFoo; -})(); +}()); var intFoo; var StringFoo2 = (function () { function StringFoo2() { } StringFoo2.prototype.foo = function (x) { return null; }; return StringFoo2; -})(); +}()); var stringFoo2; stringFoo2.foo("hm"); intFoo = stringFoo2; // error @@ -67,5 +67,5 @@ var StringFoo3 = (function () { } StringFoo3.prototype.foo = function (x) { return null; }; return StringFoo3; -})(); +}()); var stringFoo3; diff --git a/tests/baselines/reference/genericStaticAnyTypeFunction.js b/tests/baselines/reference/genericStaticAnyTypeFunction.js index 6816afec910..7ed9494d3cf 100644 --- a/tests/baselines/reference/genericStaticAnyTypeFunction.js +++ b/tests/baselines/reference/genericStaticAnyTypeFunction.js @@ -30,4 +30,4 @@ var A = (function () { return this.one(source, 42); // should not error }; return A; -})(); +}()); diff --git a/tests/baselines/reference/genericTypeAssertions1.js b/tests/baselines/reference/genericTypeAssertions1.js index 54637007d99..904e696af48 100644 --- a/tests/baselines/reference/genericTypeAssertions1.js +++ b/tests/baselines/reference/genericTypeAssertions1.js @@ -10,7 +10,7 @@ var A = (function () { } A.prototype.foo = function (x) { }; return A; -})(); +}()); var foo = new A(); var r = new A(); // error var r2 = foo; // error diff --git a/tests/baselines/reference/genericTypeAssertions2.js b/tests/baselines/reference/genericTypeAssertions2.js index 22ff708592e..02a51aed35d 100644 --- a/tests/baselines/reference/genericTypeAssertions2.js +++ b/tests/baselines/reference/genericTypeAssertions2.js @@ -24,7 +24,7 @@ var A = (function () { } A.prototype.foo = function (x) { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -34,7 +34,7 @@ var B = (function (_super) { return null; }; return B; -})(A); +}(A)); var foo = new A(); var r = new B(); var r2 = new B(); // error diff --git a/tests/baselines/reference/genericTypeAssertions4.js b/tests/baselines/reference/genericTypeAssertions4.js index d6d8672283c..2c5bbf51d7f 100644 --- a/tests/baselines/reference/genericTypeAssertions4.js +++ b/tests/baselines/reference/genericTypeAssertions4.js @@ -36,7 +36,7 @@ var A = (function () { } A.prototype.foo = function () { return ""; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -44,7 +44,7 @@ var B = (function (_super) { } B.prototype.bar = function () { return 1; }; return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -52,7 +52,7 @@ var C = (function (_super) { } C.prototype.baz = function () { return 1; }; return C; -})(A); +}(A)); var a; var b; var c; diff --git a/tests/baselines/reference/genericTypeAssertions6.js b/tests/baselines/reference/genericTypeAssertions6.js index 30a5d5ff5e5..5bc7a943163 100644 --- a/tests/baselines/reference/genericTypeAssertions6.js +++ b/tests/baselines/reference/genericTypeAssertions6.js @@ -40,7 +40,7 @@ var A = (function () { y = x; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -54,6 +54,6 @@ var B = (function (_super) { var e = new Date(); }; return B; -})(A); +}(A)); var b; var c = b; diff --git a/tests/baselines/reference/genericTypeConstraints.js b/tests/baselines/reference/genericTypeConstraints.js index eb8bed1fb92..5f4bb41a83f 100644 --- a/tests/baselines/reference/genericTypeConstraints.js +++ b/tests/baselines/reference/genericTypeConstraints.js @@ -24,21 +24,21 @@ var Foo = (function () { } Foo.prototype.fooMethod = function () { }; return Foo; -})(); +}()); var FooExtended = (function () { function FooExtended() { } return FooExtended; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var BarExtended = (function (_super) { __extends(BarExtended, _super); function BarExtended() { _super.call(this); } return BarExtended; -})(Bar); +}(Bar)); diff --git a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js index 0cbf3581706..7fe6c49d65e 100644 --- a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js +++ b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js @@ -49,7 +49,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var a; var b; @@ -63,14 +63,14 @@ var D = (function (_super) { _super.apply(this, arguments); } return D; -})(C); +}(C)); var M; (function (M) { var E = (function () { function E() { } return E; - })(); + }()); M.E = E; })(M || (M = {})); var D2 = (function (_super) { @@ -79,12 +79,12 @@ var D2 = (function (_super) { _super.apply(this, arguments); } return D2; -})(M.E); +}(M.E)); var D3 = (function () { function D3() { } return D3; -})(); +}()); function h(x) { } function i(x) { } var j = null; diff --git a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js index 355030caa1b..12be456a8a8 100644 --- a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js +++ b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js @@ -58,14 +58,14 @@ var D = (function (_super) { _super.apply(this, arguments); } return D; -})(I); +}(I)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(M.C); +}(M.C)); function h(x) { } function i(x) { } var j = null; diff --git a/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js b/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js index 90ad9e1ff93..8e8060194b0 100644 --- a/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js +++ b/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js @@ -17,7 +17,7 @@ var C = (function () { } C.prototype.foo = function () { return null; }; return C; -})(); +}()); var c1; // error var i1; // error var c2; // should be an error diff --git a/tests/baselines/reference/genericTypeUsedWithoutTypeArguments1.js b/tests/baselines/reference/genericTypeUsedWithoutTypeArguments1.js index d651c5bea61..765d9733727 100644 --- a/tests/baselines/reference/genericTypeUsedWithoutTypeArguments1.js +++ b/tests/baselines/reference/genericTypeUsedWithoutTypeArguments1.js @@ -8,4 +8,4 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); diff --git a/tests/baselines/reference/genericTypeWithCallableMembers.js b/tests/baselines/reference/genericTypeWithCallableMembers.js index ebf95b41dcc..c1a28b384bb 100644 --- a/tests/baselines/reference/genericTypeWithCallableMembers.js +++ b/tests/baselines/reference/genericTypeWithCallableMembers.js @@ -23,4 +23,4 @@ var C = (function () { var x2 = new this.data2(); // was error, shouldn't be }; return C; -})(); +}()); diff --git a/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js b/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js index 1a57b866d99..3c3577b853e 100644 --- a/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js +++ b/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js @@ -15,6 +15,6 @@ var X = (function () { } X.prototype.f = function (a) { }; return X; -})(); +}()); var x = new X(); var i = x; // Should not be allowed -- type of 'f' is incompatible with 'I' diff --git a/tests/baselines/reference/genericWithCallSignatures1.js b/tests/baselines/reference/genericWithCallSignatures1.js index 0d512faa7e1..95145470ac3 100644 --- a/tests/baselines/reference/genericWithCallSignatures1.js +++ b/tests/baselines/reference/genericWithCallSignatures1.js @@ -28,4 +28,4 @@ var MyClass = (function () { var x = this.callableThing(); }; return MyClass; -})(); +}()); diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js index 441123c9fd4..b7c0ca2a0db 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js @@ -17,6 +17,6 @@ var LazyArray = (function () { return this.objects; }; return LazyArray; -})(); +}()); var lazyArray = new LazyArray(); var value = lazyArray.array()["test"]; // used to be an error diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js index 1a536132d15..1f016b401ed 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js @@ -26,7 +26,7 @@ define(["require", "exports"], function (require, exports) { function Collection() { } return Collection; - })(); + }()); exports.Collection = Collection; var List = (function (_super) { __extends(List, _super); @@ -35,13 +35,13 @@ define(["require", "exports"], function (require, exports) { } List.prototype.Bar = function () { }; return List; - })(Collection); + }(Collection)); exports.List = List; var CollectionItem = (function () { function CollectionItem() { } return CollectionItem; - })(); + }()); exports.CollectionItem = CollectionItem; var ListItem = (function (_super) { __extends(ListItem, _super); @@ -49,6 +49,6 @@ define(["require", "exports"], function (require, exports) { _super.apply(this, arguments); } return ListItem; - })(CollectionItem); + }(CollectionItem)); exports.ListItem = ListItem; }); diff --git a/tests/baselines/reference/genericWithOpenTypeParameters1.js b/tests/baselines/reference/genericWithOpenTypeParameters1.js index 90202767012..90ea23e43ef 100644 --- a/tests/baselines/reference/genericWithOpenTypeParameters1.js +++ b/tests/baselines/reference/genericWithOpenTypeParameters1.js @@ -17,7 +17,7 @@ var B = (function () { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var x; x.foo(1); // no error var f = function (x) { return x.foo(1); }; // error diff --git a/tests/baselines/reference/generics3.js b/tests/baselines/reference/generics3.js index d88ed1082cd..8c68384dd68 100644 --- a/tests/baselines/reference/generics3.js +++ b/tests/baselines/reference/generics3.js @@ -12,7 +12,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b; a = b; // Ok - should be identical diff --git a/tests/baselines/reference/generics4.js b/tests/baselines/reference/generics4.js index 95d8aea4f55..42b64224eb2 100644 --- a/tests/baselines/reference/generics4.js +++ b/tests/baselines/reference/generics4.js @@ -12,7 +12,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b; a = b; // Not ok - return types of "f" are different diff --git a/tests/baselines/reference/generics4NoError.js b/tests/baselines/reference/generics4NoError.js index 0076dc81fb6..b247a24b633 100644 --- a/tests/baselines/reference/generics4NoError.js +++ b/tests/baselines/reference/generics4NoError.js @@ -11,7 +11,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b; diff --git a/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js b/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js index 72eeb1ab683..43e933cd0fc 100644 --- a/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js +++ b/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js @@ -25,7 +25,7 @@ var C = (function () { C.prototype.f = function () { }; C.prototype.f2 = function (a, b) { return null; }; return C; -})(); +}()); var m = { a: function f() { }, b: function f2(a, b) { return null; } diff --git a/tests/baselines/reference/genericsWithoutTypeParameters1.js b/tests/baselines/reference/genericsWithoutTypeParameters1.js index 41abffcb854..443dd72da23 100644 --- a/tests/baselines/reference/genericsWithoutTypeParameters1.js +++ b/tests/baselines/reference/genericsWithoutTypeParameters1.js @@ -39,7 +39,7 @@ var C = (function () { } C.prototype.foo = function () { return null; }; return C; -})(); +}()); var c1; var i1; var c2; @@ -52,12 +52,12 @@ var D = (function () { function D() { } return D; -})(); +}()); var A = (function () { function A() { } return A; -})(); +}()); function f(x) { return null; } diff --git a/tests/baselines/reference/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.js b/tests/baselines/reference/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.js index 0211ce55119..8b41cafa5b1 100644 --- a/tests/baselines/reference/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.js +++ b/tests/baselines/reference/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.js @@ -42,6 +42,6 @@ var MyModule; configurable: true }); return MyClass; - })(); + }()); MyModule.MyClass = MyClass; })(MyModule || (MyModule = {})); diff --git a/tests/baselines/reference/getAndSetAsMemberNames.js b/tests/baselines/reference/getAndSetAsMemberNames.js index 8b036cd0f73..0b0d8ff7e01 100644 --- a/tests/baselines/reference/getAndSetAsMemberNames.js +++ b/tests/baselines/reference/getAndSetAsMemberNames.js @@ -27,12 +27,12 @@ var C1 = (function () { this.get = 1; } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } @@ -40,13 +40,13 @@ var C3 = (function () { return x + 1; }; return C3; -})(); +}()); var C4 = (function () { function C4() { this.get = true; } return C4; -})(); +}()); var C5 = (function () { function C5() { this.set = function () { return true; }; @@ -58,4 +58,4 @@ var C5 = (function () { configurable: true }); return C5; -})(); +}()); diff --git a/tests/baselines/reference/getAndSetNotIdenticalType.js b/tests/baselines/reference/getAndSetNotIdenticalType.js index e6eb7fecc86..cf2cd75828b 100644 --- a/tests/baselines/reference/getAndSetNotIdenticalType.js +++ b/tests/baselines/reference/getAndSetNotIdenticalType.js @@ -19,4 +19,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/getAndSetNotIdenticalType2.js b/tests/baselines/reference/getAndSetNotIdenticalType2.js index d73f07ec388..82f4c553329 100644 --- a/tests/baselines/reference/getAndSetNotIdenticalType2.js +++ b/tests/baselines/reference/getAndSetNotIdenticalType2.js @@ -20,7 +20,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function () { function C() { } @@ -35,7 +35,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var x = new C(); var r = x.x; x.x = r; diff --git a/tests/baselines/reference/getAndSetNotIdenticalType3.js b/tests/baselines/reference/getAndSetNotIdenticalType3.js index 2f37a7cbfae..2841c4d6d8a 100644 --- a/tests/baselines/reference/getAndSetNotIdenticalType3.js +++ b/tests/baselines/reference/getAndSetNotIdenticalType3.js @@ -20,7 +20,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function () { function C() { } @@ -35,7 +35,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var x = new C(); var r = x.x; x.x = r; diff --git a/tests/baselines/reference/getEmitOutput-pp.baseline b/tests/baselines/reference/getEmitOutput-pp.baseline index d5487a14d95..d6952e4537d 100644 --- a/tests/baselines/reference/getEmitOutput-pp.baseline +++ b/tests/baselines/reference/getEmitOutput-pp.baseline @@ -5,7 +5,7 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); FileName : tests/cases/fourslash/shims-pp/inputFile1.d.ts declare var x: number; declare class Bar { @@ -20,7 +20,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); FileName : tests/cases/fourslash/shims-pp/inputFile2.d.ts declare var x1: string; declare class Foo { diff --git a/tests/baselines/reference/getEmitOutput.baseline b/tests/baselines/reference/getEmitOutput.baseline index fbc3296c7c4..52c7d8a7aae 100644 --- a/tests/baselines/reference/getEmitOutput.baseline +++ b/tests/baselines/reference/getEmitOutput.baseline @@ -5,7 +5,7 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); FileName : tests/cases/fourslash/shims/inputFile1.d.ts declare var x: number; declare class Bar { @@ -20,7 +20,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); FileName : tests/cases/fourslash/shims/inputFile2.d.ts declare var x1: string; declare class Foo { diff --git a/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline b/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline index 5552851dec4..5a6fb434b1f 100644 --- a/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline +++ b/tests/baselines/reference/getEmitOutputDeclarationMultiFiles.baseline @@ -5,7 +5,7 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); FileName : tests/cases/fourslash/inputFile1.d.ts declare var x: number; declare class Bar { @@ -20,7 +20,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); FileName : tests/cases/fourslash/inputFile2.d.ts declare var x1: string; declare class Foo { diff --git a/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline b/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline index 4abc99b05c2..a756897fffb 100644 --- a/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline +++ b/tests/baselines/reference/getEmitOutputDeclarationSingleFile.baseline @@ -5,13 +5,13 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var x1 = "hello world"; var Foo = (function () { function Foo() { } return Foo; -})(); +}()); FileName : declSingleFile.d.ts declare var x: number; declare class Bar { diff --git a/tests/baselines/reference/getEmitOutputExternalModule.baseline b/tests/baselines/reference/getEmitOutputExternalModule.baseline index ac2f7cb3dac..1b18ace6ab6 100644 --- a/tests/baselines/reference/getEmitOutputExternalModule.baseline +++ b/tests/baselines/reference/getEmitOutputExternalModule.baseline @@ -5,5 +5,5 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); diff --git a/tests/baselines/reference/getEmitOutputExternalModule2.baseline b/tests/baselines/reference/getEmitOutputExternalModule2.baseline index c32472d318f..0b6c4a9b1ff 100644 --- a/tests/baselines/reference/getEmitOutputExternalModule2.baseline +++ b/tests/baselines/reference/getEmitOutputExternalModule2.baseline @@ -5,11 +5,11 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var x = "world"; var Bar2 = (function () { function Bar2() { } return Bar2; -})(); +}()); diff --git a/tests/baselines/reference/getEmitOutputMapRoots.baseline b/tests/baselines/reference/getEmitOutputMapRoots.baseline index 66130347d2d..3b8792e3777 100644 --- a/tests/baselines/reference/getEmitOutputMapRoots.baseline +++ b/tests/baselines/reference/getEmitOutputMapRoots.baseline @@ -1,11 +1,11 @@ EmitSkipped: false FileName : declSingleFile.js.map -{"version":3,"file":"declSingleFile.js","sourceRoot":"","sources":["../inputFile.ts"],"names":["M","M.constructor"],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : declSingleFile.js +{"version":3,"file":"declSingleFile.js","sourceRoot":"","sources":["../inputFile.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAA;IAGA,CAAC;IAAD,QAAC;AAAD,CAAC,AAHD,IAGC"}FileName : declSingleFile.js var x = 109; var foo = "hello world"; var M = (function () { function M() { } return M; -})(); +}()); //# sourceMappingURL=tests/cases/fourslash/mapRootDir/declSingleFile.js.map diff --git a/tests/baselines/reference/getEmitOutputNoErrors.baseline b/tests/baselines/reference/getEmitOutputNoErrors.baseline index a1efeecd321..461cba4ea05 100644 --- a/tests/baselines/reference/getEmitOutputNoErrors.baseline +++ b/tests/baselines/reference/getEmitOutputNoErrors.baseline @@ -5,5 +5,5 @@ var M = (function () { function M() { } return M; -})(); +}()); diff --git a/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline b/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline index 981b4710e41..4d1c88e45b4 100644 --- a/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline +++ b/tests/baselines/reference/getEmitOutputOnlyOneFile.baseline @@ -5,5 +5,5 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/getEmitOutputOutFile.baseline b/tests/baselines/reference/getEmitOutputOutFile.baseline index 702097a7c03..0b5e93271e4 100644 --- a/tests/baselines/reference/getEmitOutputOutFile.baseline +++ b/tests/baselines/reference/getEmitOutputOutFile.baseline @@ -5,13 +5,13 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var x1 = "hello world"; var Foo = (function () { function Foo() { } return Foo; -})(); +}()); FileName : outFile.d.ts declare var x: number; declare class Bar { diff --git a/tests/baselines/reference/getEmitOutputSingleFile.baseline b/tests/baselines/reference/getEmitOutputSingleFile.baseline index 4a71299dcc0..922f3ab8790 100644 --- a/tests/baselines/reference/getEmitOutputSingleFile.baseline +++ b/tests/baselines/reference/getEmitOutputSingleFile.baseline @@ -5,11 +5,11 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var x; var Foo = (function () { function Foo() { } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/getEmitOutputSingleFile2.baseline b/tests/baselines/reference/getEmitOutputSingleFile2.baseline index 21e28eb7feb..2a7b4ac367e 100644 --- a/tests/baselines/reference/getEmitOutputSingleFile2.baseline +++ b/tests/baselines/reference/getEmitOutputSingleFile2.baseline @@ -5,13 +5,13 @@ var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var x1 = "hello world"; var Foo = (function () { function Foo() { } return Foo; -})(); +}()); FileName : declSingleFile.d.ts declare var x: number; declare class Bar { diff --git a/tests/baselines/reference/getEmitOutputSourceMap.baseline b/tests/baselines/reference/getEmitOutputSourceMap.baseline index 1f7056989e9..65257d63607 100644 --- a/tests/baselines/reference/getEmitOutputSourceMap.baseline +++ b/tests/baselines/reference/getEmitOutputSourceMap.baseline @@ -1,11 +1,11 @@ EmitSkipped: false FileName : tests/cases/fourslash/inputFile.js.map -{"version":3,"file":"inputFile.js","sourceRoot":"","sources":["inputFile.ts"],"names":["M","M.constructor"],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile.js +{"version":3,"file":"inputFile.js","sourceRoot":"","sources":["inputFile.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAA;IAGA,CAAC;IAAD,QAAC;AAAD,CAAC,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile.js var x = 109; var foo = "hello world"; var M = (function () { function M() { } return M; -})(); +}()); //# sourceMappingURL=inputFile.js.map diff --git a/tests/baselines/reference/getEmitOutputSourceMap2.baseline b/tests/baselines/reference/getEmitOutputSourceMap2.baseline index df59ca00162..33c23a7ee48 100644 --- a/tests/baselines/reference/getEmitOutputSourceMap2.baseline +++ b/tests/baselines/reference/getEmitOutputSourceMap2.baseline @@ -1,13 +1,13 @@ EmitSkipped: false FileName : sample/outDir/inputFile1.js.map -{"version":3,"file":"inputFile1.js","sourceRoot":"","sources":["../../tests/cases/fourslash/inputFile1.ts"],"names":["M","M.constructor"],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : sample/outDir/inputFile1.js +{"version":3,"file":"inputFile1.js","sourceRoot":"","sources":["../../tests/cases/fourslash/inputFile1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAA;IAGA,CAAC;IAAD,QAAC;AAAD,CAAC,AAHD,IAGC"}FileName : sample/outDir/inputFile1.js var x = 109; var foo = "hello world"; var M = (function () { function M() { } return M; -})(); +}()); //# sourceMappingURL=inputFile1.js.map EmitSkipped: false FileName : sample/outDir/inputFile2.js.map diff --git a/tests/baselines/reference/getEmitOutputSourceRoot.baseline b/tests/baselines/reference/getEmitOutputSourceRoot.baseline index 7b56ee5a4d8..d38078a08e3 100644 --- a/tests/baselines/reference/getEmitOutputSourceRoot.baseline +++ b/tests/baselines/reference/getEmitOutputSourceRoot.baseline @@ -1,11 +1,11 @@ EmitSkipped: false FileName : tests/cases/fourslash/inputFile.js.map -{"version":3,"file":"inputFile.js","sourceRoot":"sourceRootDir/","sources":["inputFile.ts"],"names":["M","M.constructor"],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile.js +{"version":3,"file":"inputFile.js","sourceRoot":"sourceRootDir/","sources":["inputFile.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAA;IAGA,CAAC;IAAD,QAAC;AAAD,CAAC,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile.js var x = 109; var foo = "hello world"; var M = (function () { function M() { } return M; -})(); +}()); //# sourceMappingURL=inputFile.js.map diff --git a/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline b/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline index 9df4711b3e1..50a6ad68605 100644 --- a/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline +++ b/tests/baselines/reference/getEmitOutputSourceRootMultiFiles.baseline @@ -1,21 +1,21 @@ EmitSkipped: false FileName : tests/cases/fourslash/inputFile1.js.map -{"version":3,"file":"inputFile1.js","sourceRoot":"sourceRootDir/","sources":["inputFile1.ts"],"names":["M","M.constructor"],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile1.js +{"version":3,"file":"inputFile1.js","sourceRoot":"sourceRootDir/","sources":["inputFile1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAA;IAGA,CAAC;IAAD,QAAC;AAAD,CAAC,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile1.js var x = 109; var foo = "hello world"; var M = (function () { function M() { } return M; -})(); +}()); //# sourceMappingURL=inputFile1.js.map EmitSkipped: false FileName : tests/cases/fourslash/inputFile2.js.map -{"version":3,"file":"inputFile2.js","sourceRoot":"sourceRootDir/","sources":["inputFile2.ts"],"names":["C","C.constructor"],"mappings":"AAAA,IAAI,GAAG,GAAG,wBAAwB,CAAC;AACnC;IAAAA;IAGAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile2.js +{"version":3,"file":"inputFile2.js","sourceRoot":"sourceRootDir/","sources":["inputFile2.ts"],"names":[],"mappings":"AAAA,IAAI,GAAG,GAAG,wBAAwB,CAAC;AACnC;IAAA;IAGA,CAAC;IAAD,QAAC;AAAD,CAAC,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile2.js var bar = "hello world Typescript"; var C = (function () { function C() { } return C; -})(); +}()); //# sourceMappingURL=inputFile2.js.map diff --git a/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline b/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline index 2ae820dd538..bebd1ff1dd1 100644 --- a/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline +++ b/tests/baselines/reference/getEmitOutputTsxFile_Preserve.baseline @@ -1,13 +1,13 @@ EmitSkipped: false FileName : tests/cases/fourslash/inputFile1.js.map -{"version":3,"file":"inputFile1.js","sourceRoot":"","sources":["inputFile1.ts"],"names":["Bar","Bar.constructor"],"mappings":"AAAA,kBAAkB;AACjB,IAAI,CAAC,GAAW,CAAC,CAAC;AAClB;IAAAA;IAGAC,CAACA;IAADD,UAACA;AAADA,CAACA,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile1.js +{"version":3,"file":"inputFile1.js","sourceRoot":"","sources":["inputFile1.ts"],"names":[],"mappings":"AAAA,kBAAkB;AACjB,IAAI,CAAC,GAAW,CAAC,CAAC;AAClB;IAAA;IAGA,CAAC;IAAD,UAAC;AAAD,CAAC,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile1.js // regular ts file var t = 5; var Bar = (function () { function Bar() { } return Bar; -})(); +}()); //# sourceMappingURL=inputFile1.js.mapFileName : tests/cases/fourslash/inputFile1.d.ts declare var t: number; declare class Bar { diff --git a/tests/baselines/reference/getEmitOutputTsxFile_React.baseline b/tests/baselines/reference/getEmitOutputTsxFile_React.baseline index 98a30c97318..5b668fd65e8 100644 --- a/tests/baselines/reference/getEmitOutputTsxFile_React.baseline +++ b/tests/baselines/reference/getEmitOutputTsxFile_React.baseline @@ -1,13 +1,13 @@ EmitSkipped: false FileName : tests/cases/fourslash/inputFile1.js.map -{"version":3,"file":"inputFile1.js","sourceRoot":"","sources":["inputFile1.ts"],"names":["Bar","Bar.constructor"],"mappings":"AAAA,kBAAkB;AACjB,IAAI,CAAC,GAAW,CAAC,CAAC;AAClB;IAAAA;IAGAC,CAACA;IAADD,UAACA;AAADA,CAACA,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile1.js +{"version":3,"file":"inputFile1.js","sourceRoot":"","sources":["inputFile1.ts"],"names":[],"mappings":"AAAA,kBAAkB;AACjB,IAAI,CAAC,GAAW,CAAC,CAAC;AAClB;IAAA;IAGA,CAAC;IAAD,UAAC;AAAD,CAAC,AAHD,IAGC"}FileName : tests/cases/fourslash/inputFile1.js // regular ts file var t = 5; var Bar = (function () { function Bar() { } return Bar; -})(); +}()); //# sourceMappingURL=inputFile1.js.mapFileName : tests/cases/fourslash/inputFile1.d.ts declare var t: number; declare class Bar { diff --git a/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline b/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline index 4fda32ad7c4..af4ccd10580 100644 --- a/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline +++ b/tests/baselines/reference/getEmitOutputWithDeclarationFile.baseline @@ -7,5 +7,5 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline b/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline index 3f2e0064fc7..8e43219e005 100644 --- a/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline +++ b/tests/baselines/reference/getEmitOutputWithDeclarationFile2.baseline @@ -7,7 +7,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); exports.Foo = Foo; EmitSkipped: false diff --git a/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline b/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline index 2f27152892b..8ba493e04b7 100644 --- a/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline +++ b/tests/baselines/reference/getEmitOutputWithEmitterErrors.baseline @@ -8,7 +8,7 @@ var M; function C() { } return C; - })(); + }()); M.foo = new C(); })(M || (M = {})); diff --git a/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline b/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline index 915eb121f5f..bf12bd35548 100644 --- a/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline +++ b/tests/baselines/reference/getEmitOutputWithEmitterErrors2.baseline @@ -8,7 +8,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); var M; (function (M) { M.foo = new C(); diff --git a/tests/baselines/reference/getSetAccessorContextualTyping.js b/tests/baselines/reference/getSetAccessorContextualTyping.js index d1415e1d4e7..c717fb7d5e3 100644 --- a/tests/baselines/reference/getSetAccessorContextualTyping.js +++ b/tests/baselines/reference/getSetAccessorContextualTyping.js @@ -65,4 +65,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/getterMissingReturnError.js b/tests/baselines/reference/getterMissingReturnError.js index 76566d9346e..63fd3f57db1 100644 --- a/tests/baselines/reference/getterMissingReturnError.js +++ b/tests/baselines/reference/getterMissingReturnError.js @@ -17,4 +17,4 @@ var test = (function () { configurable: true }); return test; -})(); +}()); diff --git a/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js b/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js index c48e5c9c6bc..e38058fbebf 100644 --- a/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js +++ b/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js @@ -24,4 +24,4 @@ var Greeter = (function () { throw ''; // should not raise an error }; return Greeter; -})(); +}()); diff --git a/tests/baselines/reference/gettersAndSetters.js b/tests/baselines/reference/gettersAndSetters.js index 92f959e5988..16d66c7dc71 100644 --- a/tests/baselines/reference/gettersAndSetters.js +++ b/tests/baselines/reference/gettersAndSetters.js @@ -67,7 +67,7 @@ var C = (function () { }); C.barBack = ""; return C; -})(); +}()); var c = new C(); var foo = c.Foo; c.Foo = "foov"; diff --git a/tests/baselines/reference/gettersAndSettersAccessibility.js b/tests/baselines/reference/gettersAndSettersAccessibility.js index e0cfa3d17c5..b3b8d008d1e 100644 --- a/tests/baselines/reference/gettersAndSettersAccessibility.js +++ b/tests/baselines/reference/gettersAndSettersAccessibility.js @@ -17,4 +17,4 @@ var C99 = (function () { configurable: true }); return C99; -})(); +}()); diff --git a/tests/baselines/reference/gettersAndSettersErrors.js b/tests/baselines/reference/gettersAndSettersErrors.js index d92f0d833f5..5c9c56b67cf 100644 --- a/tests/baselines/reference/gettersAndSettersErrors.js +++ b/tests/baselines/reference/gettersAndSettersErrors.js @@ -38,7 +38,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var E = (function () { function E() { } @@ -50,4 +50,4 @@ var E = (function () { configurable: true }); return E; -})(); +}()); diff --git a/tests/baselines/reference/gettersAndSettersTypesAgree.js b/tests/baselines/reference/gettersAndSettersTypesAgree.js index 91d3d844981..86802a30431 100644 --- a/tests/baselines/reference/gettersAndSettersTypesAgree.js +++ b/tests/baselines/reference/gettersAndSettersTypesAgree.js @@ -31,6 +31,6 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var o1 = { get Foo() { return 0; }, set Foo(val) { } }; // ok - types agree (inference) var o2 = { get Foo() { return 0; }, set Foo(val) { } }; // ok - types agree diff --git a/tests/baselines/reference/giant.js b/tests/baselines/reference/giant.js index 75387f6f2c2..2a04541ef28 100644 --- a/tests/baselines/reference/giant.js +++ b/tests/baselines/reference/giant.js @@ -743,7 +743,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C; - })(); + }()); var M; (function (M_1) { var V; @@ -792,7 +792,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C; - })(); + }()); var M; (function (M) { var V; @@ -802,7 +802,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); ; ; ; @@ -813,7 +813,7 @@ define(["require", "exports"], function (require, exports) { function eC() { } return eC; - })(); + }()); M.eC = eC; ; ; @@ -868,7 +868,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return eC; - })(); + }()); M_1.eC = eC; var eM; (function (eM) { @@ -879,7 +879,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); ; ; ; @@ -890,7 +890,7 @@ define(["require", "exports"], function (require, exports) { function eC() { } return eC; - })(); + }()); eM.eC = eC; ; ; @@ -947,7 +947,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return eC; - })(); + }()); exports.eC = eC; var eM; (function (eM_1) { @@ -997,7 +997,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C; - })(); + }()); var M; (function (M) { var V; @@ -1007,7 +1007,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); ; ; ; @@ -1018,7 +1018,7 @@ define(["require", "exports"], function (require, exports) { function eC() { } return eC; - })(); + }()); M.eC = eC; ; ; @@ -1073,7 +1073,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return eC; - })(); + }()); eM_1.eC = eC; var eM; (function (eM) { @@ -1084,7 +1084,7 @@ define(["require", "exports"], function (require, exports) { function C() { } return C; - })(); + }()); ; ; ; @@ -1095,7 +1095,7 @@ define(["require", "exports"], function (require, exports) { function eC() { } return eC; - })(); + }()); eM.eC = eC; ; ; diff --git a/tests/baselines/reference/grammarAmbiguities1.js b/tests/baselines/reference/grammarAmbiguities1.js index 1917acb7128..f650030fd44 100644 --- a/tests/baselines/reference/grammarAmbiguities1.js +++ b/tests/baselines/reference/grammarAmbiguities1.js @@ -16,13 +16,13 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.bar = function () { }; return B; -})(); +}()); function f(x) { return x; } function g(x) { return f(x); } g(7); diff --git a/tests/baselines/reference/heterogeneousArrayAndOverloads.js b/tests/baselines/reference/heterogeneousArrayAndOverloads.js index b816b87e3d1..b9ef4bc4b6e 100644 --- a/tests/baselines/reference/heterogeneousArrayAndOverloads.js +++ b/tests/baselines/reference/heterogeneousArrayAndOverloads.js @@ -23,4 +23,4 @@ var arrTest = (function () { this.test([1, 2, "hi", 5]); // Error }; return arrTest; -})(); +}()); diff --git a/tests/baselines/reference/heterogeneousArrayLiterals.js b/tests/baselines/reference/heterogeneousArrayLiterals.js index 45ea6429979..e482f0d33d3 100644 --- a/tests/baselines/reference/heterogeneousArrayLiterals.js +++ b/tests/baselines/reference/heterogeneousArrayLiterals.js @@ -156,21 +156,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var base; var derived; var derived2; diff --git a/tests/baselines/reference/ifDoWhileStatements.js b/tests/baselines/reference/ifDoWhileStatements.js index a2553c674b0..75762ffbb54 100644 --- a/tests/baselines/reference/ifDoWhileStatements.js +++ b/tests/baselines/reference/ifDoWhileStatements.js @@ -173,19 +173,19 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(C); +}(C)); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } function F2(x) { return x < 42; } var M; @@ -194,7 +194,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; @@ -205,7 +205,7 @@ var N; function A() { } return A; - })(); + }()); N.A = A; function F2(x) { return x.toString(); } N.F2 = F2; diff --git a/tests/baselines/reference/illegalModifiersOnClassElements.js b/tests/baselines/reference/illegalModifiersOnClassElements.js index b9a40fa6aa0..dc1b3682603 100644 --- a/tests/baselines/reference/illegalModifiersOnClassElements.js +++ b/tests/baselines/reference/illegalModifiersOnClassElements.js @@ -11,4 +11,4 @@ var C = (function () { this.bar = 1; } return C; -})(); +}()); diff --git a/tests/baselines/reference/illegalSuperCallsInConstructor.js b/tests/baselines/reference/illegalSuperCallsInConstructor.js index c3a52473744..88671ce1cee 100644 --- a/tests/baselines/reference/illegalSuperCallsInConstructor.js +++ b/tests/baselines/reference/illegalSuperCallsInConstructor.js @@ -30,7 +30,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -48,4 +48,4 @@ var Derived = (function (_super) { }; } return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/implementClausePrecedingExtends.js b/tests/baselines/reference/implementClausePrecedingExtends.js index a929c2fb966..ba3583c3051 100644 --- a/tests/baselines/reference/implementClausePrecedingExtends.js +++ b/tests/baselines/reference/implementClausePrecedingExtends.js @@ -12,11 +12,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/implementGenericWithMismatchedTypes.js b/tests/baselines/reference/implementGenericWithMismatchedTypes.js index a030ebc3c1d..e9c3a0e0ffd 100644 --- a/tests/baselines/reference/implementGenericWithMismatchedTypes.js +++ b/tests/baselines/reference/implementGenericWithMismatchedTypes.js @@ -30,7 +30,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var C2 = (function () { function C2() { } @@ -38,4 +38,4 @@ var C2 = (function () { return null; }; return C2; -})(); +}()); diff --git a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js index 16e904c3497..ec2406f65fd 100644 --- a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js +++ b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js @@ -16,4 +16,4 @@ var Bug = (function () { Bug.prototype.foo = function (value) { }; return Bug; -})(); +}()); diff --git a/tests/baselines/reference/implementPublicPropertyAsPrivate.js b/tests/baselines/reference/implementPublicPropertyAsPrivate.js index 4a946801da3..8980fba52f3 100644 --- a/tests/baselines/reference/implementPublicPropertyAsPrivate.js +++ b/tests/baselines/reference/implementPublicPropertyAsPrivate.js @@ -12,4 +12,4 @@ var C = (function () { this.x = 0; // should raise error at class decl } return C; -})(); +}()); diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates.js index adb0271e7a5..835f37a2eed 100644 --- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates.js +++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates.js @@ -29,24 +29,24 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var Bar2 = (function () { function Bar2() { } return Bar2; -})(); +}()); var Bar3 = (function () { function Bar3() { } return Bar3; -})(); +}()); var Bar4 = (function () { function Bar4() { } return Bar4; -})(); +}()); diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js index cfa5ccf4150..8fec5dc27da 100644 --- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js +++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js @@ -95,28 +95,28 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { _super.apply(this, arguments); } return Bar; -})(Foo); +}(Foo)); var Bar2 = (function (_super) { __extends(Bar2, _super); function Bar2() { _super.apply(this, arguments); } return Bar2; -})(Foo); +}(Foo)); var Bar3 = (function (_super) { __extends(Bar3, _super); function Bar3() { _super.apply(this, arguments); } return Bar3; -})(Foo); +}(Foo)); // another level of indirection var M; (function (M) { @@ -124,35 +124,35 @@ var M; function Foo() { } return Foo; - })(); + }()); var Baz = (function (_super) { __extends(Baz, _super); function Baz() { _super.apply(this, arguments); } return Baz; - })(Foo); + }(Foo)); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { _super.apply(this, arguments); } return Bar; - })(Foo); + }(Foo)); var Bar2 = (function (_super) { __extends(Bar2, _super); function Bar2() { _super.apply(this, arguments); } return Bar2; - })(Foo); + }(Foo)); var Bar3 = (function (_super) { __extends(Bar3, _super); function Bar3() { _super.apply(this, arguments); } return Bar3; - })(Foo); + }(Foo)); })(M || (M = {})); // two levels of privates var M2; @@ -161,21 +161,21 @@ var M2; function Foo() { } return Foo; - })(); + }()); var Baz = (function (_super) { __extends(Baz, _super); function Baz() { _super.apply(this, arguments); } return Baz; - })(Foo); + }(Foo)); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { _super.apply(this, arguments); } return Bar; - })(Foo); + }(Foo)); var b; var r1 = b.z; var r2 = b.x; // error @@ -186,12 +186,12 @@ var M2; _super.apply(this, arguments); } return Bar2; - })(Foo); + }(Foo)); var Bar3 = (function (_super) { __extends(Bar3, _super); function Bar3() { _super.apply(this, arguments); } return Bar3; - })(Foo); + }(Foo)); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js index 39f30424321..915e652056c 100644 --- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js +++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js @@ -51,52 +51,52 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var Bar2 = (function () { function Bar2() { } return Bar2; -})(); +}()); var Bar3 = (function () { function Bar3() { } return Bar3; -})(); +}()); var Bar4 = (function () { function Bar4() { } return Bar4; -})(); +}()); var Bar5 = (function (_super) { __extends(Bar5, _super); function Bar5() { _super.apply(this, arguments); } return Bar5; -})(Foo); +}(Foo)); var Bar6 = (function (_super) { __extends(Bar6, _super); function Bar6() { _super.apply(this, arguments); } return Bar6; -})(Foo); +}(Foo)); var Bar7 = (function (_super) { __extends(Bar7, _super); function Bar7() { _super.apply(this, arguments); } return Bar7; -})(Foo); +}(Foo)); var Bar8 = (function (_super) { __extends(Bar8, _super); function Bar8() { _super.apply(this, arguments); } return Bar8; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/implementsClauseAlreadySeen.js b/tests/baselines/reference/implementsClauseAlreadySeen.js index abb28886615..0aa3afe4b3e 100644 --- a/tests/baselines/reference/implementsClauseAlreadySeen.js +++ b/tests/baselines/reference/implementsClauseAlreadySeen.js @@ -11,10 +11,10 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } D.prototype.baz = function () { }; return D; -})(); +}()); diff --git a/tests/baselines/reference/implementsInClassExpression.js b/tests/baselines/reference/implementsInClassExpression.js index 9ac092289f5..eefd058ec2e 100644 --- a/tests/baselines/reference/implementsInClassExpression.js +++ b/tests/baselines/reference/implementsInClassExpression.js @@ -13,4 +13,4 @@ var cls = (function () { } class_1.prototype.doThing = function () { }; return class_1; -})(); +}()); diff --git a/tests/baselines/reference/implicitAnyAmbients.errors.txt b/tests/baselines/reference/implicitAnyAmbients.errors.txt index e71fd6f72ea..d425edbfefd 100644 --- a/tests/baselines/reference/implicitAnyAmbients.errors.txt +++ b/tests/baselines/reference/implicitAnyAmbients.errors.txt @@ -39,10 +39,10 @@ tests/cases/compiler/implicitAnyAmbients.ts(23,13): error TS7005: Variable 'y' i class C { foo(); // error - ~~~~~~ + ~~~ !!! error TS7010: 'foo', which lacks return-type annotation, implicitly has an 'any' return type. foo2(x: any); // error - ~~~~~~~~~~~~~ + ~~~~ !!! error TS7010: 'foo2', which lacks return-type annotation, implicitly has an 'any' return type. foo3(x: any): any; } diff --git a/tests/baselines/reference/implicitAnyAnyReturningFunction.js b/tests/baselines/reference/implicitAnyAnyReturningFunction.js index 2ba13835f28..13fe799a852 100644 --- a/tests/baselines/reference/implicitAnyAnyReturningFunction.js +++ b/tests/baselines/reference/implicitAnyAnyReturningFunction.js @@ -39,7 +39,7 @@ var C = (function () { return someLocal; }; return C; -})(); +}()); //// [implicitAnyAnyReturningFunction.d.ts] diff --git a/tests/baselines/reference/implicitAnyCastedValue.js b/tests/baselines/reference/implicitAnyCastedValue.js index be6bd1bfef3..372f14647a1 100644 --- a/tests/baselines/reference/implicitAnyCastedValue.js +++ b/tests/baselines/reference/implicitAnyCastedValue.js @@ -104,7 +104,7 @@ var C = (function () { return this.foo; // this should not be an error }; return C; -})(); +}()); var C1 = (function () { function C1() { this.getValue = null; // this should be an error @@ -124,7 +124,7 @@ var C1 = (function () { configurable: true }); return C1; -})(); +}()); function castedNull() { return null; // this should not be an error } diff --git a/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js b/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js index 59d625fff4a..a3a2e3d4b31 100644 --- a/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js +++ b/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js @@ -17,4 +17,4 @@ var C = (function () { } // error at "c1, c2" C.prototype.funcOfC = function (f1, f2, f3) { }; // error at "f1,f2" return C; -})(); +}()); diff --git a/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js b/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js index 63f90a1aaa7..70c90f4c484 100644 --- a/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js +++ b/tests/baselines/reference/implicitAnyDeclareTypePropertyWithoutType.js @@ -22,7 +22,7 @@ var C = (function () { function C() { } return C; -})(); +}()); // this should be an error var x; // error at "y,z" var x1; // error at "z1" diff --git a/tests/baselines/reference/implicitAnyFromCircularInference.js b/tests/baselines/reference/implicitAnyFromCircularInference.js index d818ea17105..9fa4f3ff225 100644 --- a/tests/baselines/reference/implicitAnyFromCircularInference.js +++ b/tests/baselines/reference/implicitAnyFromCircularInference.js @@ -81,7 +81,7 @@ var C = (function () { this.s = foo(this); } return C; -})(); +}()); var D = (function () { function D() { } @@ -94,4 +94,4 @@ var D = (function () { configurable: true }); return D; -})(); +}()); diff --git a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js index bc5b9453665..ce25562841c 100644 --- a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js +++ b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.js @@ -65,7 +65,7 @@ var C = (function () { function C(emtpyArray, variable) { } return C; -})(); +}()); var newC = new C([], undefined); var newC1 = new C([], arg0); var newC2 = new C([], null); diff --git a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.errors.txt b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.errors.txt index 9ad1c550d72..40803016ae8 100644 --- a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.errors.txt +++ b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.errors.txt @@ -15,20 +15,16 @@ tests/cases/compiler/implicitAnyFunctionReturnNullOrUndefined.ts(10,5): error TS class C { nullWidenFuncOfC() { // error at "nullWidenFuncOfC" - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - return null; - ~~~~~~~~~~~~~~~~~~~~ - } - ~~~~~ + ~~~~~~~~~~~~~~~~ !!! error TS7010: 'nullWidenFuncOfC', which lacks return-type annotation, implicitly has an 'any' return type. + return null; + } underfinedWidenFuncOfC() { // error at "underfinedWidenFuncOfC" - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - return undefined; - ~~~~~~~~~~~~~~~~~~~~~~~~~ - } - ~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~ !!! error TS7010: 'underfinedWidenFuncOfC', which lacks return-type annotation, implicitly has an 'any' return type. + return undefined; + } } // this should not be an error diff --git a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js index 82eb56fbde6..69740a0ad31 100644 --- a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js +++ b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js @@ -38,7 +38,7 @@ var C = (function () { return undefined; }; return C; -})(); +}()); // this should not be an error function foo1() { return null; } function bar1() { return undefined; } diff --git a/tests/baselines/reference/implicitAnyGenerics.js b/tests/baselines/reference/implicitAnyGenerics.js index daea0dfe54c..07478cf0011 100644 --- a/tests/baselines/reference/implicitAnyGenerics.js +++ b/tests/baselines/reference/implicitAnyGenerics.js @@ -31,7 +31,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); var c2 = new C(); var c3 = new C(); @@ -40,7 +40,7 @@ var D = (function () { function D(x) { } return D; -})(); +}()); var d = new D(null); var d2 = new D(1); var d3 = new D(1); diff --git a/tests/baselines/reference/implicitAnyGetAndSetAccessorWithAnyReturnType.js b/tests/baselines/reference/implicitAnyGetAndSetAccessorWithAnyReturnType.js index ac3b5e66493..3997a56db0d 100644 --- a/tests/baselines/reference/implicitAnyGetAndSetAccessorWithAnyReturnType.js +++ b/tests/baselines/reference/implicitAnyGetAndSetAccessorWithAnyReturnType.js @@ -41,7 +41,7 @@ var GetAndSet = (function () { configurable: true }); return GetAndSet; -})(); +}()); var SetterOnly = (function () { function SetterOnly() { } @@ -52,7 +52,7 @@ var SetterOnly = (function () { configurable: true }); return SetterOnly; -})(); +}()); var GetterOnly = (function () { function GetterOnly() { } @@ -64,4 +64,4 @@ var GetterOnly = (function () { configurable: true }); return GetterOnly; -})(); +}()); diff --git a/tests/baselines/reference/implicitAnyInAmbientDeclaration.errors.txt b/tests/baselines/reference/implicitAnyInAmbientDeclaration.errors.txt index 4775ec0511b..1e66f26d0d2 100644 --- a/tests/baselines/reference/implicitAnyInAmbientDeclaration.errors.txt +++ b/tests/baselines/reference/implicitAnyInAmbientDeclaration.errors.txt @@ -1,5 +1,5 @@ tests/cases/compiler/implicitAnyInAmbientDeclaration.ts(3,9): error TS7008: Member 'publicMember' implicitly has an 'any' type. -tests/cases/compiler/implicitAnyInAmbientDeclaration.ts(6,9): error TS7010: 'publicFunction', which lacks return-type annotation, implicitly has an 'any' return type. +tests/cases/compiler/implicitAnyInAmbientDeclaration.ts(6,16): error TS7010: 'publicFunction', which lacks return-type annotation, implicitly has an 'any' return type. tests/cases/compiler/implicitAnyInAmbientDeclaration.ts(6,31): error TS7006: Parameter 'x' implicitly has an 'any' type. tests/cases/compiler/implicitAnyInAmbientDeclaration.ts(8,9): error TS1089: 'private' modifier cannot appear on a constructor declaration. @@ -13,7 +13,7 @@ tests/cases/compiler/implicitAnyInAmbientDeclaration.ts(8,9): error TS1089: 'pri private privateMember; // this should not be an error public publicFunction(x); // this should be an error - ~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~ !!! error TS7010: 'publicFunction', which lacks return-type annotation, implicitly has an 'any' return type. ~ !!! error TS7006: Parameter 'x' implicitly has an 'any' type. diff --git a/tests/baselines/reference/implicitAnyInAmbientDeclaration2.d.errors.txt b/tests/baselines/reference/implicitAnyInAmbientDeclaration2.d.errors.txt index 11f2ae90d35..54fe39e2efe 100644 --- a/tests/baselines/reference/implicitAnyInAmbientDeclaration2.d.errors.txt +++ b/tests/baselines/reference/implicitAnyInAmbientDeclaration2.d.errors.txt @@ -2,7 +2,7 @@ tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(1,18): error TS7010: tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(1,22): error TS7006: Parameter 'x' implicitly has an 'any' type. tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(2,13): error TS7005: Variable 'bar' implicitly has an 'any' type. tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(4,5): error TS7008: Member 'publicMember' implicitly has an 'any' type. -tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(7,5): error TS7010: 'publicFunction', which lacks return-type annotation, implicitly has an 'any' return type. +tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(7,12): error TS7010: 'publicFunction', which lacks return-type annotation, implicitly has an 'any' return type. tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(7,27): error TS7006: Parameter 'x' implicitly has an 'any' type. tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(9,5): error TS1089: 'private' modifier cannot appear on a constructor declaration. tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(13,24): error TS7006: Parameter 'publicConsParam' implicitly has an 'any' type. @@ -24,7 +24,7 @@ tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts(13,24): error TS7006: private privateMember; // this should not be an error public publicFunction(x); // this should be an error - ~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~ !!! error TS7010: 'publicFunction', which lacks return-type annotation, implicitly has an 'any' return type. ~ !!! error TS7006: Parameter 'x' implicitly has an 'any' type. diff --git a/tests/baselines/reference/implicitAnyInCatch.js b/tests/baselines/reference/implicitAnyInCatch.js index c35e92372e3..f833135f00d 100644 --- a/tests/baselines/reference/implicitAnyInCatch.js +++ b/tests/baselines/reference/implicitAnyInCatch.js @@ -29,4 +29,4 @@ var C = (function () { } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/implicitAnyWidenToAny.js b/tests/baselines/reference/implicitAnyWidenToAny.js index 838593a88ef..0779a166744 100644 --- a/tests/baselines/reference/implicitAnyWidenToAny.js +++ b/tests/baselines/reference/implicitAnyWidenToAny.js @@ -38,7 +38,7 @@ var AnimalObj = (function () { function AnimalObj() { } return AnimalObj; -})(); +}()); var foo = 5; var bar = "Hello World"; var foo1 = null; diff --git a/tests/baselines/reference/importAliasAnExternalModuleInsideAnInternalModule.errors.txt b/tests/baselines/reference/importAliasAnExternalModuleInsideAnInternalModule.errors.txt index d12854648e5..56d1549f853 100644 --- a/tests/baselines/reference/importAliasAnExternalModuleInsideAnInternalModule.errors.txt +++ b/tests/baselines/reference/importAliasAnExternalModuleInsideAnInternalModule.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file0.ts(1,15): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file0.ts(1,15): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file1.ts (0 errors) ==== @@ -12,7 +12,7 @@ tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file0.ts( ==== tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file0.ts (1 errors) ==== export module m { ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export function foo() { } } \ No newline at end of file diff --git a/tests/baselines/reference/importAliasIdentifiers.js b/tests/baselines/reference/importAliasIdentifiers.js index 7bd15b28c66..084b6694e9c 100644 --- a/tests/baselines/reference/importAliasIdentifiers.js +++ b/tests/baselines/reference/importAliasIdentifiers.js @@ -55,7 +55,7 @@ var moduleA; this.y = y; } return Point; - })(); + }()); moduleA.Point = Point; })(moduleA || (moduleA = {})); var alias = moduleA; @@ -66,7 +66,7 @@ var clodule = (function () { function clodule() { } return clodule; -})(); +}()); var clodule; (function (clodule) { var Point = { x: 0, y: 0 }; diff --git a/tests/baselines/reference/importAndVariableDeclarationConflict2.js b/tests/baselines/reference/importAndVariableDeclarationConflict2.js index 6d188b373b7..221fd20e7ec 100644 --- a/tests/baselines/reference/importAndVariableDeclarationConflict2.js +++ b/tests/baselines/reference/importAndVariableDeclarationConflict2.js @@ -24,4 +24,4 @@ var C = (function () { var x = ''; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/importAsBaseClass.js b/tests/baselines/reference/importAsBaseClass.js index 5340c3049a2..60e142dd5f7 100644 --- a/tests/baselines/reference/importAsBaseClass.js +++ b/tests/baselines/reference/importAsBaseClass.js @@ -17,7 +17,7 @@ var Greeter = (function () { } Greeter.prototype.greet = function () { return 'greet'; }; return Greeter; -})(); +}()); exports.Greeter = Greeter; //// [importAsBaseClass_1.js] "use strict"; @@ -33,4 +33,4 @@ var Hello = (function (_super) { _super.apply(this, arguments); } return Hello; -})(Greeter); +}(Greeter)); diff --git a/tests/baselines/reference/importDecl.js b/tests/baselines/reference/importDecl.js index c7cc4fe8332..47bf5a1b2a1 100644 --- a/tests/baselines/reference/importDecl.js +++ b/tests/baselines/reference/importDecl.js @@ -87,7 +87,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; function foo() { return null; } exports.foo = foo; @@ -97,7 +97,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; var x; function foo() { return null; } @@ -108,7 +108,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; function foo() { return null; } exports.foo = foo; @@ -118,7 +118,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; function foo() { return null; } exports.foo = foo; diff --git a/tests/baselines/reference/importDeclRefereingExternalModuleWithNoResolve.errors.txt b/tests/baselines/reference/importDeclRefereingExternalModuleWithNoResolve.errors.txt index 74f532d0c1e..34cfe02305f 100644 --- a/tests/baselines/reference/importDeclRefereingExternalModuleWithNoResolve.errors.txt +++ b/tests/baselines/reference/importDeclRefereingExternalModuleWithNoResolve.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(1,20): error TS2307: Cannot find module 'externalModule'. tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(2,16): error TS2435: Ambient modules cannot be nested in other modules or namespaces. tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(3,26): error TS2307: Cannot find module 'externalModule'. @@ -7,7 +7,7 @@ tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts(3,26): er ==== tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts (4 errors) ==== import b = require("externalModule"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~~~~~~~~~~ !!! error TS2307: Cannot find module 'externalModule'. declare module "m1" { diff --git a/tests/baselines/reference/importDeclWithDeclareModifier.errors.txt b/tests/baselines/reference/importDeclWithDeclareModifier.errors.txt index 13991aea7f7..9e3d012aeb6 100644 --- a/tests/baselines/reference/importDeclWithDeclareModifier.errors.txt +++ b/tests/baselines/reference/importDeclWithDeclareModifier.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/importDeclWithDeclareModifier.ts(5,9): error TS1029: 'export' modifier must precede 'declare' modifier. tests/cases/compiler/importDeclWithDeclareModifier.ts(5,29): error TS2305: Module 'x' has no exported member 'c'. @@ -10,7 +10,7 @@ tests/cases/compiler/importDeclWithDeclareModifier.ts(5,29): error TS2305: Modul } declare export import a = x.c; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~ !!! error TS1029: 'export' modifier must precede 'declare' modifier. ~ diff --git a/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js b/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js index 958b154cd28..c2cc0b8ea7a 100644 --- a/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js +++ b/tests/baselines/reference/importDeclarationUsedAsTypeQuery.js @@ -17,7 +17,7 @@ var B = (function () { function B() { } return B; -})(); +}()); exports.B = B; //// [importDeclarationUsedAsTypeQuery_1.js] "use strict"; diff --git a/tests/baselines/reference/importImportOnlyModule.js b/tests/baselines/reference/importImportOnlyModule.js index 31932455784..7b41e4400c5 100644 --- a/tests/baselines/reference/importImportOnlyModule.js +++ b/tests/baselines/reference/importImportOnlyModule.js @@ -24,7 +24,7 @@ define(["require", "exports"], function (require, exports) { } C1.s1 = true; return C1; - })(); + }()); exports.C1 = C1; }); //// [foo_1.js] diff --git a/tests/baselines/reference/importInTypePosition.js b/tests/baselines/reference/importInTypePosition.js index c0d64a4ef7b..542c6f34a48 100644 --- a/tests/baselines/reference/importInTypePosition.js +++ b/tests/baselines/reference/importInTypePosition.js @@ -30,7 +30,7 @@ var A; this.y = y; } return Point; - })(); + }()); A.Point = Point; A.Origin = new Point(0, 0); })(A || (A = {})); diff --git a/tests/baselines/reference/importShadowsGlobalName.js b/tests/baselines/reference/importShadowsGlobalName.js index cd0cd1791eb..dbbf1710632 100644 --- a/tests/baselines/reference/importShadowsGlobalName.js +++ b/tests/baselines/reference/importShadowsGlobalName.js @@ -17,7 +17,7 @@ define(["require", "exports"], function (require, exports) { function Foo() { } return Foo; - })(); + }()); return Foo; }); //// [Bar.js] @@ -34,6 +34,6 @@ define(["require", "exports", 'Foo'], function (require, exports, Error) { _super.apply(this, arguments); } return Bar; - })(Error); + }(Error)); return Bar; }); diff --git a/tests/baselines/reference/importStatements.js b/tests/baselines/reference/importStatements.js index b8d06a3546e..a91b54f3a6d 100644 --- a/tests/baselines/reference/importStatements.js +++ b/tests/baselines/reference/importStatements.js @@ -43,7 +43,7 @@ var A; this.y = y; } return Point; - })(); + }()); A.Point = Point; A.Origin = new Point(0, 0); })(A || (A = {})); diff --git a/tests/baselines/reference/importUsedInExtendsList1.js b/tests/baselines/reference/importUsedInExtendsList1.js index 7fa341cd28a..1d242a53023 100644 --- a/tests/baselines/reference/importUsedInExtendsList1.js +++ b/tests/baselines/reference/importUsedInExtendsList1.js @@ -17,7 +17,7 @@ var Super = (function () { function Super() { } return Super; -})(); +}()); exports.Super = Super; //// [importUsedInExtendsList1_1.js] "use strict"; @@ -34,6 +34,6 @@ var Sub = (function (_super) { _super.apply(this, arguments); } return Sub; -})(foo.Super); +}(foo.Super)); var s; var r = s.foo; diff --git a/tests/baselines/reference/import_reference-exported-alias.js b/tests/baselines/reference/import_reference-exported-alias.js index 68d2ee34671..ffc4491e50a 100644 --- a/tests/baselines/reference/import_reference-exported-alias.js +++ b/tests/baselines/reference/import_reference-exported-alias.js @@ -35,7 +35,7 @@ define(["require", "exports"], function (require, exports) { return "Bill Gates"; }; return UserServices; - })(); + }()); Services.UserServices = UserServices; })(Services = App.Services || (App.Services = {})); })(App || (App = {})); diff --git a/tests/baselines/reference/import_reference-to-type-alias.js b/tests/baselines/reference/import_reference-to-type-alias.js index 6f329afbf54..1d91f10f672 100644 --- a/tests/baselines/reference/import_reference-to-type-alias.js +++ b/tests/baselines/reference/import_reference-to-type-alias.js @@ -31,7 +31,7 @@ define(["require", "exports"], function (require, exports) { return "Bill Gates"; }; return UserServices; - })(); + }()); Services.UserServices = UserServices; })(Services = App.Services || (App.Services = {})); })(App = exports.App || (exports.App = {})); diff --git a/tests/baselines/reference/import_var-referencing-an-imported-module-alias.js b/tests/baselines/reference/import_var-referencing-an-imported-module-alias.js index ed6470751ed..d67c53c6349 100644 --- a/tests/baselines/reference/import_var-referencing-an-imported-module-alias.js +++ b/tests/baselines/reference/import_var-referencing-an-imported-module-alias.js @@ -17,7 +17,7 @@ define(["require", "exports"], function (require, exports) { function Host() { } return Host; - })(); + }()); exports.Host = Host; }); //// [consumer.js] diff --git a/tests/baselines/reference/importedAliasesInTypePositions.js b/tests/baselines/reference/importedAliasesInTypePositions.js index d342deedef2..754bac96c2c 100644 --- a/tests/baselines/reference/importedAliasesInTypePositions.js +++ b/tests/baselines/reference/importedAliasesInTypePositions.js @@ -35,7 +35,7 @@ define(["require", "exports"], function (require, exports) { ReferredTo.prototype.doSomething = function () { }; return ReferredTo; - })(); + }()); name.ReferredTo = ReferredTo; })(name = mod.name || (mod.name = {})); })(mod = nested.mod || (nested.mod = {})); @@ -52,6 +52,6 @@ define(["require", "exports"], function (require, exports) { this.referred = referred; } return UsesReferredType; - })(); + }()); })(ImportingModule = exports.ImportingModule || (exports.ImportingModule = {})); }); diff --git a/tests/baselines/reference/importedModuleAddToGlobal.js b/tests/baselines/reference/importedModuleAddToGlobal.js index 015631dc965..b74b96f2eb6 100644 --- a/tests/baselines/reference/importedModuleAddToGlobal.js +++ b/tests/baselines/reference/importedModuleAddToGlobal.js @@ -23,7 +23,7 @@ var B; function B() { } return B; - })(); + }()); B_1.B = B; })(B || (B = {})); var C; diff --git a/tests/baselines/reference/importedModuleClassNameClash.js b/tests/baselines/reference/importedModuleClassNameClash.js index a12ab331c48..8f9649c6768 100644 --- a/tests/baselines/reference/importedModuleClassNameClash.js +++ b/tests/baselines/reference/importedModuleClassNameClash.js @@ -13,5 +13,5 @@ define(["require", "exports"], function (require, exports) { function foo() { } return foo; - })(); + }()); }); diff --git a/tests/baselines/reference/inOperatorWithGeneric.js b/tests/baselines/reference/inOperatorWithGeneric.js index b34d510f5a3..eb2df95bbde 100644 --- a/tests/baselines/reference/inOperatorWithGeneric.js +++ b/tests/baselines/reference/inOperatorWithGeneric.js @@ -15,4 +15,4 @@ var C = (function () { } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/incompatibleTypes.js b/tests/baselines/reference/incompatibleTypes.js index 7e24afecf5f..6f786aee354 100644 --- a/tests/baselines/reference/incompatibleTypes.js +++ b/tests/baselines/reference/incompatibleTypes.js @@ -83,7 +83,7 @@ var C1 = (function () { return "s"; }; return C1; -})(); +}()); var C2 = (function () { function C2() { } @@ -91,17 +91,17 @@ var C2 = (function () { return 0; }; return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { } return C4; -})(); +}()); function if1(a) { } var c1; var c2; diff --git a/tests/baselines/reference/incorrectClassOverloadChain.js b/tests/baselines/reference/incorrectClassOverloadChain.js index bf02a09014c..8ebbc11d90e 100644 --- a/tests/baselines/reference/incorrectClassOverloadChain.js +++ b/tests/baselines/reference/incorrectClassOverloadChain.js @@ -11,4 +11,4 @@ var C = (function () { this.x = 1; } return C; -})(); +}()); diff --git a/tests/baselines/reference/incrementOnTypeParameter.js b/tests/baselines/reference/incrementOnTypeParameter.js index bec2bcd9d05..2f3de20c419 100644 --- a/tests/baselines/reference/incrementOnTypeParameter.js +++ b/tests/baselines/reference/incrementOnTypeParameter.js @@ -19,4 +19,4 @@ var C = (function () { } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js index 6cd7afc5a60..e99340a53e2 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherType.js @@ -58,7 +58,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js index 73ec64dfc55..636ca74ba08 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js @@ -87,7 +87,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/incrementOperatorWithNumberType.js b/tests/baselines/reference/incrementOperatorWithNumberType.js index cf7ce435cb0..16a56b45a20 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberType.js +++ b/tests/baselines/reference/incrementOperatorWithNumberType.js @@ -47,7 +47,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js index 17820b7bd86..0bdb75eb0fa 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js +++ b/tests/baselines/reference/incrementOperatorWithNumberTypeInvalidOperations.js @@ -56,7 +56,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js index 5bdba8dfee5..4e936e33514 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedBooleanType.js @@ -63,7 +63,7 @@ var A = (function () { } A.foo = function () { return true; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js index baeaf9555fb..781251d56b9 100644 --- a/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js +++ b/tests/baselines/reference/incrementOperatorWithUnsupportedStringType.js @@ -75,7 +75,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/indexClassByNumber.js b/tests/baselines/reference/indexClassByNumber.js index 1725e5bf6a1..8d5ecda30f5 100644 --- a/tests/baselines/reference/indexClassByNumber.js +++ b/tests/baselines/reference/indexClassByNumber.js @@ -13,6 +13,6 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); var f = new foo(); f[0] = 4; // Shouldn't be allowed diff --git a/tests/baselines/reference/indexSignatureMustHaveTypeAnnotation.js b/tests/baselines/reference/indexSignatureMustHaveTypeAnnotation.js index f586a19bf0e..2aec01d1ff7 100644 --- a/tests/baselines/reference/indexSignatureMustHaveTypeAnnotation.js +++ b/tests/baselines/reference/indexSignatureMustHaveTypeAnnotation.js @@ -20,9 +20,9 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/indexSignatureTypeCheck2.js b/tests/baselines/reference/indexSignatureTypeCheck2.js index 6dcc0f392a5..edc608d77e0 100644 --- a/tests/baselines/reference/indexSignatureTypeCheck2.js +++ b/tests/baselines/reference/indexSignatureTypeCheck2.js @@ -19,7 +19,7 @@ var IPropertySet = (function () { function IPropertySet() { } return IPropertySet; -})(); +}()); var ps = null; var index = "hello"; ps[index] = 12; diff --git a/tests/baselines/reference/indexSignatureWithAccessibilityModifier.js b/tests/baselines/reference/indexSignatureWithAccessibilityModifier.js index 798fef924b9..6055849062c 100644 --- a/tests/baselines/reference/indexSignatureWithAccessibilityModifier.js +++ b/tests/baselines/reference/indexSignatureWithAccessibilityModifier.js @@ -12,4 +12,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/indexSignatureWithInitializer.js b/tests/baselines/reference/indexSignatureWithInitializer.js index 490033dde0f..48b91c01d03 100644 --- a/tests/baselines/reference/indexSignatureWithInitializer.js +++ b/tests/baselines/reference/indexSignatureWithInitializer.js @@ -13,4 +13,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/indexSignatureWithInitializer1.js b/tests/baselines/reference/indexSignatureWithInitializer1.js index 16852fd4174..78a94d931ab 100644 --- a/tests/baselines/reference/indexSignatureWithInitializer1.js +++ b/tests/baselines/reference/indexSignatureWithInitializer1.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/indexSignatureWithoutTypeAnnotation1.js b/tests/baselines/reference/indexSignatureWithoutTypeAnnotation1.js index bef6af37931..8871299c102 100644 --- a/tests/baselines/reference/indexSignatureWithoutTypeAnnotation1.js +++ b/tests/baselines/reference/indexSignatureWithoutTypeAnnotation1.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/indexTypeCheck.js b/tests/baselines/reference/indexTypeCheck.js index 6e74111a357..bed15a58ae2 100644 --- a/tests/baselines/reference/indexTypeCheck.js +++ b/tests/baselines/reference/indexTypeCheck.js @@ -84,4 +84,4 @@ var Benchmark = (function () { this.results[name] = this.results[name]; }; return Benchmark; -})(); +}()); diff --git a/tests/baselines/reference/indexWithoutParamType2.js b/tests/baselines/reference/indexWithoutParamType2.js index 4197b0596ec..c84a5a8855b 100644 --- a/tests/baselines/reference/indexWithoutParamType2.js +++ b/tests/baselines/reference/indexWithoutParamType2.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/indexer2A.js b/tests/baselines/reference/indexer2A.js index 867c30205ae..5d5ef6e0aea 100644 --- a/tests/baselines/reference/indexer2A.js +++ b/tests/baselines/reference/indexer2A.js @@ -12,10 +12,10 @@ var IHeapObjectProperty = (function () { function IHeapObjectProperty() { } return IHeapObjectProperty; -})(); +}()); var IDirectChildrenMap = (function () { function IDirectChildrenMap() { } return IDirectChildrenMap; -})(); +}()); var directChildrenMap = {}; diff --git a/tests/baselines/reference/indexerA.js b/tests/baselines/reference/indexerA.js index 5216026f714..dc8e92f22cf 100644 --- a/tests/baselines/reference/indexerA.js +++ b/tests/baselines/reference/indexerA.js @@ -15,11 +15,11 @@ var JQueryElement = (function () { function JQueryElement() { } return JQueryElement; -})(); +}()); var JQuery = (function () { function JQuery() { } return JQuery; -})(); +}()); var jq = { 0: { id: "a" }, 1: { id: "b" } }; jq[0].id; diff --git a/tests/baselines/reference/indexerAsOptional.js b/tests/baselines/reference/indexerAsOptional.js index 509e3890ec8..afe713a1102 100644 --- a/tests/baselines/reference/indexerAsOptional.js +++ b/tests/baselines/reference/indexerAsOptional.js @@ -14,4 +14,4 @@ var indexSig2 = (function () { function indexSig2() { } return indexSig2; -})(); +}()); diff --git a/tests/baselines/reference/indexerConstraints2.js b/tests/baselines/reference/indexerConstraints2.js index 7e662bc66cc..dd143da97e6 100644 --- a/tests/baselines/reference/indexerConstraints2.js +++ b/tests/baselines/reference/indexerConstraints2.js @@ -38,50 +38,50 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); // Inheritance var F = (function () { function F() { } return F; -})(); +}()); var G = (function (_super) { __extends(G, _super); function G() { _super.apply(this, arguments); } return G; -})(F); +}(F)); // Other way var H = (function () { function H() { } return H; -})(); +}()); var I = (function (_super) { __extends(I, _super); function I() { _super.apply(this, arguments); } return I; -})(H); +}(H)); // With hidden indexer var J = (function () { function J() { } return J; -})(); +}()); var K = (function (_super) { __extends(K, _super); function K() { _super.apply(this, arguments); } return K; -})(J); +}(J)); diff --git a/tests/baselines/reference/indexerReturningTypeParameter1.js b/tests/baselines/reference/indexerReturningTypeParameter1.js index a4a385ff056..cdc1bdf19d1 100644 --- a/tests/baselines/reference/indexerReturningTypeParameter1.js +++ b/tests/baselines/reference/indexerReturningTypeParameter1.js @@ -23,6 +23,6 @@ var c = (function () { return null; }; return c; -})(); +}()); var a2; var r2 = a2.groupBy(); diff --git a/tests/baselines/reference/indexerSignatureWithRestParam.js b/tests/baselines/reference/indexerSignatureWithRestParam.js index 8a7defb049c..3f6f149bd7f 100644 --- a/tests/baselines/reference/indexerSignatureWithRestParam.js +++ b/tests/baselines/reference/indexerSignatureWithRestParam.js @@ -12,4 +12,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/indexersInClassType.js b/tests/baselines/reference/indexersInClassType.js index d8f33653953..9b085aa8fe2 100644 --- a/tests/baselines/reference/indexersInClassType.js +++ b/tests/baselines/reference/indexersInClassType.js @@ -25,7 +25,7 @@ var C = (function () { return this; }; return C; -})(); +}()); var c = new C(); var r = c.fn(); var r2 = r[1]; diff --git a/tests/baselines/reference/indirectSelfReference.js b/tests/baselines/reference/indirectSelfReference.js index bd838ed8810..66d23a45b72 100644 --- a/tests/baselines/reference/indirectSelfReference.js +++ b/tests/baselines/reference/indirectSelfReference.js @@ -14,11 +14,11 @@ var a = (function (_super) { _super.apply(this, arguments); } return a; -})(b); +}(b)); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/indirectSelfReferenceGeneric.js b/tests/baselines/reference/indirectSelfReferenceGeneric.js index c9b4478ec13..99ab918e631 100644 --- a/tests/baselines/reference/indirectSelfReferenceGeneric.js +++ b/tests/baselines/reference/indirectSelfReferenceGeneric.js @@ -14,11 +14,11 @@ var a = (function (_super) { _super.apply(this, arguments); } return a; -})(b); +}(b)); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inferSetterParamType.js b/tests/baselines/reference/inferSetterParamType.js index c0be3a5c394..33f785aab62 100644 --- a/tests/baselines/reference/inferSetterParamType.js +++ b/tests/baselines/reference/inferSetterParamType.js @@ -32,7 +32,7 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); var Foo2 = (function () { function Foo2() { } @@ -46,4 +46,4 @@ var Foo2 = (function () { configurable: true }); return Foo2; -})(); +}()); diff --git a/tests/baselines/reference/inferentialTypingUsingApparentType3.js b/tests/baselines/reference/inferentialTypingUsingApparentType3.js index 819ca05098d..f6375375366 100644 --- a/tests/baselines/reference/inferentialTypingUsingApparentType3.js +++ b/tests/baselines/reference/inferentialTypingUsingApparentType3.js @@ -34,7 +34,7 @@ var CharField = (function () { return "Yup"; }; return CharField; -})(); +}()); var NumberField = (function () { function NumberField() { } @@ -42,13 +42,13 @@ var NumberField = (function () { return 123; }; return NumberField; -})(); +}()); var ObjectField = (function () { function ObjectField(fields) { this.fields = fields; } return ObjectField; -})(); +}()); var person = new ObjectField({ id: new NumberField(), name: new CharField() diff --git a/tests/baselines/reference/infiniteExpansionThroughInstantiation2.errors.txt b/tests/baselines/reference/infiniteExpansionThroughInstantiation2.errors.txt deleted file mode 100644 index 1778e092715..00000000000 --- a/tests/baselines/reference/infiniteExpansionThroughInstantiation2.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -tests/cases/conformance/types/typeRelationships/recursiveTypes/infiniteExpansionThroughInstantiation2.ts(4,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/recursiveTypes/infiniteExpansionThroughInstantiation2.ts (1 errors) ==== - // instantiating a derived type can cause an infinitely expanding type reference to be generated - // which could be used in an assignment check for constraint satisfaction - - interface AA> // now an error due to referencing type parameter in constraint - ~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - { - x: T - } - - interface BB extends AA> - { - } \ No newline at end of file diff --git a/tests/baselines/reference/infiniteExpansionThroughInstantiation2.symbols b/tests/baselines/reference/infiniteExpansionThroughInstantiation2.symbols new file mode 100644 index 00000000000..0c5b0cf5a65 --- /dev/null +++ b/tests/baselines/reference/infiniteExpansionThroughInstantiation2.symbols @@ -0,0 +1,22 @@ +=== tests/cases/conformance/types/typeRelationships/recursiveTypes/infiniteExpansionThroughInstantiation2.ts === +// instantiating a derived type can cause an infinitely expanding type reference to be generated +// which could be used in an assignment check for constraint satisfaction + +interface AA> // now an error due to referencing type parameter in constraint +>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0)) +>T : Symbol(T, Decl(infiniteExpansionThroughInstantiation2.ts, 3, 13)) +>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0)) +>T : Symbol(T, Decl(infiniteExpansionThroughInstantiation2.ts, 3, 13)) +{ + x: T +>x : Symbol(x, Decl(infiniteExpansionThroughInstantiation2.ts, 4, 1)) +>T : Symbol(T, Decl(infiniteExpansionThroughInstantiation2.ts, 3, 13)) +} + +interface BB extends AA> +>BB : Symbol(BB, Decl(infiniteExpansionThroughInstantiation2.ts, 6, 1)) +>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0)) +>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0)) +>BB : Symbol(BB, Decl(infiniteExpansionThroughInstantiation2.ts, 6, 1)) +{ +} diff --git a/tests/baselines/reference/infiniteExpansionThroughInstantiation2.types b/tests/baselines/reference/infiniteExpansionThroughInstantiation2.types new file mode 100644 index 00000000000..c9249b90010 --- /dev/null +++ b/tests/baselines/reference/infiniteExpansionThroughInstantiation2.types @@ -0,0 +1,22 @@ +=== tests/cases/conformance/types/typeRelationships/recursiveTypes/infiniteExpansionThroughInstantiation2.ts === +// instantiating a derived type can cause an infinitely expanding type reference to be generated +// which could be used in an assignment check for constraint satisfaction + +interface AA> // now an error due to referencing type parameter in constraint +>AA : AA +>T : T +>AA : AA +>T : T +{ + x: T +>x : T +>T : T +} + +interface BB extends AA> +>BB : BB +>AA : AA +>AA : AA +>BB : BB +{ +} diff --git a/tests/baselines/reference/infinitelyExpandingOverloads.js b/tests/baselines/reference/infinitelyExpandingOverloads.js index 1e84eba27cf..a16baaa6d6c 100644 --- a/tests/baselines/reference/infinitelyExpandingOverloads.js +++ b/tests/baselines/reference/infinitelyExpandingOverloads.js @@ -31,13 +31,13 @@ var Validator2 = (function () { function Validator2() { } return Validator2; -})(); +}()); var ViewModel = (function () { function ViewModel() { this.validationPlacements = new Array(); } return ViewModel; -})(); +}()); var Widget = (function () { function Widget(viewModelType) { } @@ -49,4 +49,4 @@ var Widget = (function () { configurable: true }); return Widget; -})(); +}()); diff --git a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js index f057b649cb6..6321f77d31f 100644 --- a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js +++ b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js @@ -34,19 +34,19 @@ var Functionality = (function () { function Functionality() { } return Functionality; -})(); +}()); var Base = (function () { function Base() { } return Base; -})(); +}()); var A = (function (_super) { __extends(A, _super); function A() { _super.apply(this, arguments); } return A; -})(Base); +}(Base)); function o(type) { } o(A); diff --git a/tests/baselines/reference/inheritFromGenericTypeParameter.js b/tests/baselines/reference/inheritFromGenericTypeParameter.js index ec6be00785f..f5bc099cb8d 100644 --- a/tests/baselines/reference/inheritFromGenericTypeParameter.js +++ b/tests/baselines/reference/inheritFromGenericTypeParameter.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(T); +}(T)); diff --git a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromDifferentOrigins.js b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromDifferentOrigins.js index 49bf2c8ac97..dec161d95ac 100644 --- a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromDifferentOrigins.js +++ b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromDifferentOrigins.js @@ -16,9 +16,9 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js index 93494c7256e..9462df7a3c3 100644 --- a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js +++ b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js @@ -20,18 +20,18 @@ var B = (function () { function B() { } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(B); +}(B)); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(B); +}(B)); diff --git a/tests/baselines/reference/inheritSameNamePropertiesWithDifferentVisibility.js b/tests/baselines/reference/inheritSameNamePropertiesWithDifferentVisibility.js index 3c6181117a3..fff751e4cd7 100644 --- a/tests/baselines/reference/inheritSameNamePropertiesWithDifferentVisibility.js +++ b/tests/baselines/reference/inheritSameNamePropertiesWithDifferentVisibility.js @@ -16,9 +16,9 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/inheritance.js b/tests/baselines/reference/inheritance.js index b581ae894ae..52fbfaffdde 100644 --- a/tests/baselines/reference/inheritance.js +++ b/tests/baselines/reference/inheritance.js @@ -44,45 +44,45 @@ var B1 = (function () { function B1() { } return B1; -})(); +}()); var B2 = (function () { function B2() { } return B2; -})(); +}()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(B1); +}(B1)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(B2); +}(B2)); var N = (function () { function N() { } return N; -})(); +}()); var ND = (function (_super) { __extends(ND, _super); function ND() { _super.apply(this, arguments); } return ND; -})(N); +}(N)); var Good = (function () { function Good() { this.f = function () { return 0; }; } Good.prototype.g = function () { return 0; }; return Good; -})(); +}()); var Baad = (function (_super) { __extends(Baad, _super); function Baad() { @@ -91,4 +91,4 @@ var Baad = (function (_super) { Baad.prototype.f = function () { return 0; }; Baad.prototype.g = function (n) { return 0; }; return Baad; -})(Good); +}(Good)); diff --git a/tests/baselines/reference/inheritance1.js b/tests/baselines/reference/inheritance1.js index aa7775b9904..c65155ee55c 100644 --- a/tests/baselines/reference/inheritance1.js +++ b/tests/baselines/reference/inheritance1.js @@ -71,7 +71,7 @@ var Control = (function () { function Control() { } return Control; -})(); +}()); var Button = (function (_super) { __extends(Button, _super); function Button() { @@ -79,7 +79,7 @@ var Button = (function (_super) { } Button.prototype.select = function () { }; return Button; -})(Control); +}(Control)); var TextBox = (function (_super) { __extends(TextBox, _super); function TextBox() { @@ -87,33 +87,33 @@ var TextBox = (function (_super) { } TextBox.prototype.select = function () { }; return TextBox; -})(Control); +}(Control)); var ImageBase = (function (_super) { __extends(ImageBase, _super); function ImageBase() { _super.apply(this, arguments); } return ImageBase; -})(Control); +}(Control)); var Image1 = (function (_super) { __extends(Image1, _super); function Image1() { _super.apply(this, arguments); } return Image1; -})(Control); +}(Control)); var Locations = (function () { function Locations() { } Locations.prototype.select = function () { }; return Locations; -})(); +}()); var Locations1 = (function () { function Locations1() { } Locations1.prototype.select = function () { }; return Locations1; -})(); +}()); var sc; var c; var b; diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js index 927ae969049..b416cf3fb93 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js @@ -21,14 +21,14 @@ var A = (function () { } A.prototype.myMethod = function () { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -36,4 +36,4 @@ var C = (function (_super) { } C.prototype.myMethod = function () { }; return C; -})(B); +}(B)); diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js index 05d8dc2a541..25a977531ca 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js @@ -21,14 +21,14 @@ var A = (function () { } A.prototype.myMethod = function () { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -36,4 +36,4 @@ var C = (function (_super) { } C.prototype.myMethod = function () { }; return C; -})(B); +}(B)); diff --git a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js index ddd87251f9f..dfd05556925 100644 --- a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js @@ -21,14 +21,14 @@ var A = (function () { } A.prototype.myMethod = function () { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -36,4 +36,4 @@ var C = (function (_super) { } C.prototype.myMethod = function () { }; return C; -})(B); +}(B)); diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js index eaf34df921b..b4efaa89621 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js @@ -36,7 +36,7 @@ var a = (function () { configurable: true }); return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -52,4 +52,4 @@ var b = (function (_super) { configurable: true }); return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js index cd79d8c6964..5044a8e03ac 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js @@ -27,7 +27,7 @@ var a = (function () { return "20"; }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -43,4 +43,4 @@ var b = (function (_super) { configurable: true }); return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js index 18c1ab33952..6ebdc336a64 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js @@ -22,7 +22,7 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -38,4 +38,4 @@ var b = (function (_super) { configurable: true }); return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js index 5c254251718..3ddff027c1a 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js @@ -33,7 +33,7 @@ var a = (function () { configurable: true }); return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -43,4 +43,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js index e2d3d9551c2..a6c3beea4ef 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js @@ -24,7 +24,7 @@ var a = (function () { return "10"; }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -34,4 +34,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js index b1d64aeb2c8..94b602d29d9 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js @@ -19,7 +19,7 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -29,4 +29,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js index bfa5d3fb801..a8fc4d5a3dd 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js @@ -33,11 +33,11 @@ var a = (function () { configurable: true }); return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js index d84f4879632..7d5cdb43e96 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js @@ -22,11 +22,11 @@ var a = (function () { return "20"; }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js index 8677d502273..648f1d1622e 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js @@ -17,11 +17,11 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js index 73d3b4aa6cb..59675c56e5f 100644 --- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js +++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js @@ -17,14 +17,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var a = new A(); var b1 = new B(); // no error var b2 = new B(); // no error diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js index e7e6228392c..97464233027 100644 --- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js +++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js @@ -26,13 +26,13 @@ var M; function C1() { } return C1; - })(); + }()); M.C1 = C1; var C2 = (function () { function C2() { } return C2; - })(); + }()); M.C2 = C2; })(M || (M = {})); var N; @@ -43,7 +43,7 @@ var N; _super.apply(this, arguments); } return D1; - })(M.C1); + }(M.C1)); N.D1 = D1; var D2 = (function (_super) { __extends(D2, _super); @@ -51,7 +51,7 @@ var N; _super.apply(this, arguments); } return D2; - })(M.C2); + }(M.C2)); N.D2 = D2; })(N || (N = {})); var c = new M.C2(); // no error diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js index 32f1d20eda1..49145b010d4 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js @@ -36,7 +36,7 @@ var a = (function () { configurable: true }); return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -52,4 +52,4 @@ var b = (function (_super) { configurable: true }); return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js index 7a1a86ced18..4a202b76497 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js @@ -27,7 +27,7 @@ var a = (function () { return "20"; }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -43,4 +43,4 @@ var b = (function (_super) { configurable: true }); return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js index 8a142d41c57..a0dd1177cfb 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js @@ -22,7 +22,7 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -38,4 +38,4 @@ var b = (function (_super) { configurable: true }); return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js index 7c08ec7649e..06f907371ea 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js @@ -33,7 +33,7 @@ var a = (function () { configurable: true }); return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -43,4 +43,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js index acde620c100..ea36c40480f 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js @@ -28,7 +28,7 @@ var a = (function () { configurable: true }); return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -38,4 +38,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js index abd4d7c1498..ae523d53d9b 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js @@ -24,7 +24,7 @@ var a = (function () { return "10"; }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -34,4 +34,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js index c2d095e5527..93890bd8294 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js @@ -19,7 +19,7 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -29,4 +29,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js index 979f0c36359..4d0f2438459 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js @@ -19,7 +19,7 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -29,4 +29,4 @@ var b = (function (_super) { return "20"; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js index 5c6c0e06a6f..f2dfda4e48f 100644 --- a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js +++ b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js @@ -19,7 +19,7 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { @@ -29,4 +29,4 @@ var b = (function (_super) { return new b().x; }; return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticMembersCompatible.js b/tests/baselines/reference/inheritanceStaticMembersCompatible.js index 014d3276189..0dc736a375d 100644 --- a/tests/baselines/reference/inheritanceStaticMembersCompatible.js +++ b/tests/baselines/reference/inheritanceStaticMembersCompatible.js @@ -17,11 +17,11 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js index a1728dc6dcb..51c474430ad 100644 --- a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js +++ b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js @@ -17,11 +17,11 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js index fa9c6e2a8b5..d138ac3eba8 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js @@ -32,11 +32,11 @@ var a = (function () { configurable: true }); return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js index 9afa969af65..3d3f550713e 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js @@ -22,11 +22,11 @@ var a = (function () { return "20"; }; return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js index fcecca62774..e23917e40a4 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js @@ -17,11 +17,11 @@ var a = (function () { function a() { } return a; -})(); +}()); var b = (function (_super) { __extends(b, _super); function b() { _super.apply(this, arguments); } return b; -})(a); +}(a)); diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams.js b/tests/baselines/reference/inheritedConstructorWithRestParams.js index a0bb2ed8dc1..2d312d9859d 100644 --- a/tests/baselines/reference/inheritedConstructorWithRestParams.js +++ b/tests/baselines/reference/inheritedConstructorWithRestParams.js @@ -28,14 +28,14 @@ var Base = (function () { } } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); // Ok new Derived("", ""); new Derived(""); diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams2.js b/tests/baselines/reference/inheritedConstructorWithRestParams2.js index 9b87465233c..0ad25b302f0 100644 --- a/tests/baselines/reference/inheritedConstructorWithRestParams2.js +++ b/tests/baselines/reference/inheritedConstructorWithRestParams2.js @@ -44,26 +44,26 @@ var IBaseBase = (function () { function IBaseBase(x) { } return IBaseBase; -})(); +}()); var BaseBase2 = (function () { function BaseBase2(x) { } return BaseBase2; -})(); +}()); var Base = (function (_super) { __extends(Base, _super); function Base() { _super.apply(this, arguments); } return Base; -})(BaseBase); +}(BaseBase)); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); // Ok new Derived("", ""); new Derived("", 3); diff --git a/tests/baselines/reference/inheritedModuleMembersForClodule.js b/tests/baselines/reference/inheritedModuleMembersForClodule.js index 50f41af2c09..95b71069584 100644 --- a/tests/baselines/reference/inheritedModuleMembersForClodule.js +++ b/tests/baselines/reference/inheritedModuleMembersForClodule.js @@ -34,14 +34,14 @@ var C = (function () { return "123"; }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var D; (function (D) { function foo() { @@ -59,4 +59,4 @@ var E = (function (_super) { return this.foo(); }; return E; -})(D); +}(D)); diff --git a/tests/baselines/reference/initializerReferencingConstructorLocals.js b/tests/baselines/reference/initializerReferencingConstructorLocals.js index f382b5b7010..a4922e954d7 100644 --- a/tests/baselines/reference/initializerReferencingConstructorLocals.js +++ b/tests/baselines/reference/initializerReferencingConstructorLocals.js @@ -31,7 +31,7 @@ var C = (function () { z = 1; } return C; -})(); +}()); var D = (function () { function D(x) { this.a = z; // error @@ -40,4 +40,4 @@ var D = (function () { z = 1; } return D; -})(); +}()); diff --git a/tests/baselines/reference/initializerReferencingConstructorParameters.js b/tests/baselines/reference/initializerReferencingConstructorParameters.js index 8314d5b7155..881913d5b5f 100644 --- a/tests/baselines/reference/initializerReferencingConstructorParameters.js +++ b/tests/baselines/reference/initializerReferencingConstructorParameters.js @@ -32,14 +32,14 @@ var C = (function () { this.a = x; // error } return C; -})(); +}()); var D = (function () { function D(x) { this.x = x; this.a = x; // error } return D; -})(); +}()); var E = (function () { function E(x) { this.x = x; @@ -47,7 +47,7 @@ var E = (function () { this.b = this.x; // error } return E; -})(); +}()); var F = (function () { function F(x) { this.x = x; @@ -55,4 +55,4 @@ var F = (function () { this.b = x; // error } return F; -})(); +}()); diff --git a/tests/baselines/reference/innerAliases.js b/tests/baselines/reference/innerAliases.js index 95a3712ca85..cda2be1c5a9 100644 --- a/tests/baselines/reference/innerAliases.js +++ b/tests/baselines/reference/innerAliases.js @@ -34,7 +34,7 @@ var A; function Class1() { } return Class1; - })(); + }()); C.Class1 = Class1; })(C = B.C || (B.C = {})); })(B = A.B || (A.B = {})); @@ -49,7 +49,7 @@ var D; function Class2() { } return Class2; - })(); + }()); E.Class2 = Class2; })(E = D.E || (D.E = {})); })(D || (D = {})); diff --git a/tests/baselines/reference/innerAliases2.js b/tests/baselines/reference/innerAliases2.js index 846e85504f2..6ac0a57a484 100644 --- a/tests/baselines/reference/innerAliases2.js +++ b/tests/baselines/reference/innerAliases2.js @@ -28,7 +28,7 @@ var _provider; UsefulClass.prototype.foo = function () { }; return UsefulClass; - })(); + }()); _provider.UsefulClass = UsefulClass; })(_provider || (_provider = {})); var consumer; diff --git a/tests/baselines/reference/innerBoundLambdaEmit.js b/tests/baselines/reference/innerBoundLambdaEmit.js index c09cc8e5a66..fe3981cd335 100644 --- a/tests/baselines/reference/innerBoundLambdaEmit.js +++ b/tests/baselines/reference/innerBoundLambdaEmit.js @@ -16,7 +16,7 @@ var M; function Foo() { } return Foo; - })(); + }()); M.Foo = Foo; var bar = function () { }; })(M || (M = {})); diff --git a/tests/baselines/reference/innerExtern.js b/tests/baselines/reference/innerExtern.js index 5b933f980f4..11f526c8310 100644 --- a/tests/baselines/reference/innerExtern.js +++ b/tests/baselines/reference/innerExtern.js @@ -23,7 +23,7 @@ var A; this.x = BB.Elephant.X; } return C; - })(); + }()); B.C = C; })(B = A.B || (A.B = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js index 36a250d365d..02b0ccfb382 100644 --- a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js +++ b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js @@ -52,7 +52,7 @@ var C = (function () { x.getDate(); }; return C; -})(); +}()); var C2 = (function () { function C2() { } @@ -65,7 +65,7 @@ var C2 = (function () { x.getDate(); }; return C2; -})(); +}()); //class C2 { // g() { // var x: U; diff --git a/tests/baselines/reference/instanceAndStaticDeclarations1.js b/tests/baselines/reference/instanceAndStaticDeclarations1.js index 7dbd6dcbe7d..093e9c15cc8 100644 --- a/tests/baselines/reference/instanceAndStaticDeclarations1.js +++ b/tests/baselines/reference/instanceAndStaticDeclarations1.js @@ -27,4 +27,4 @@ var Point = (function () { Point.distance = function (p1, p2) { return p1.distance(p2); }; Point.origin = new Point(0, 0); return Point; -})(); +}()); diff --git a/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js b/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js index 51c38282a72..d6dc08f3850 100644 --- a/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js +++ b/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js @@ -26,4 +26,4 @@ var C = (function () { return 1; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/instanceMemberInitialization.js b/tests/baselines/reference/instanceMemberInitialization.js index b62ac68bf52..dd9a0fc3b6f 100644 --- a/tests/baselines/reference/instanceMemberInitialization.js +++ b/tests/baselines/reference/instanceMemberInitialization.js @@ -14,7 +14,7 @@ var C = (function () { this.x = 1; } return C; -})(); +}()); var c = new C(); c.x = 3; var c2 = new C(); diff --git a/tests/baselines/reference/instanceOfAssignability.js b/tests/baselines/reference/instanceOfAssignability.js index 4a1e8b9e9de..775afe86946 100644 --- a/tests/baselines/reference/instanceOfAssignability.js +++ b/tests/baselines/reference/instanceOfAssignability.js @@ -100,32 +100,32 @@ var Derived1 = (function () { function Derived1() { } return Derived1; -})(); +}()); // Derived2 is a subtype of Base that is not assignable to Derived1 var Derived2 = (function () { function Derived2() { } return Derived2; -})(); +}()); var Animal = (function () { function Animal() { } return Animal; -})(); +}()); var Mammal = (function (_super) { __extends(Mammal, _super); function Mammal() { _super.apply(this, arguments); } return Mammal; -})(Animal); +}(Animal)); var Giraffe = (function (_super) { __extends(Giraffe, _super); function Giraffe() { _super.apply(this, arguments); } return Giraffe; -})(Mammal); +}(Mammal)); function fn1(x) { if (x instanceof Array) { // 1.5: y: Array|Array @@ -179,7 +179,7 @@ var ABC = (function () { function ABC() { } return ABC; -})(); +}()); function fn8(x) { if (x instanceof ABC) { var y = x; diff --git a/tests/baselines/reference/instanceOfInExternalModules.js b/tests/baselines/reference/instanceOfInExternalModules.js index 02c0eb0eea4..540549aef52 100644 --- a/tests/baselines/reference/instanceOfInExternalModules.js +++ b/tests/baselines/reference/instanceOfInExternalModules.js @@ -18,7 +18,7 @@ define(["require", "exports"], function (require, exports) { function Foo() { } return Foo; - })(); + }()); exports.Foo = Foo; }); //// [instanceOfInExternalModules_1.js] diff --git a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js index 548cb77b878..a507a19a456 100644 --- a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js +++ b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js @@ -65,14 +65,14 @@ var NonGeneric; }); C.prototype.fn = function () { return this; }; return C; - })(); + }()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; - })(C); + }(C)); var d = new D(1, 2); var r = d.fn(); var r2 = r.x; @@ -97,14 +97,14 @@ var Generic; }); C.prototype.fn = function () { return this; }; return C; - })(); + }()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; - })(C); + }(C)); var d = new D(1, ''); var r = d.fn(); var r2 = r.x; diff --git a/tests/baselines/reference/instancePropertyInClassType.js b/tests/baselines/reference/instancePropertyInClassType.js index 863f18de323..ee447aa5233 100644 --- a/tests/baselines/reference/instancePropertyInClassType.js +++ b/tests/baselines/reference/instancePropertyInClassType.js @@ -56,7 +56,7 @@ var NonGeneric; }); C.prototype.fn = function () { return this; }; return C; - })(); + }()); var c = new C(1, 2); var r = c.fn(); var r2 = r.x; @@ -81,7 +81,7 @@ var Generic; }); C.prototype.fn = function () { return this; }; return C; - })(); + }()); var c = new C(1, ''); var r = c.fn(); var r2 = r.x; diff --git a/tests/baselines/reference/instanceSubtypeCheck2.js b/tests/baselines/reference/instanceSubtypeCheck2.js index 59043b29b4e..d72f29e93bf 100644 --- a/tests/baselines/reference/instanceSubtypeCheck2.js +++ b/tests/baselines/reference/instanceSubtypeCheck2.js @@ -17,11 +17,11 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(C1); +}(C1)); diff --git a/tests/baselines/reference/instanceofOperator.js b/tests/baselines/reference/instanceofOperator.js index 3c6970b66a4..55e3d448b3b 100644 --- a/tests/baselines/reference/instanceofOperator.js +++ b/tests/baselines/reference/instanceofOperator.js @@ -35,7 +35,7 @@ var test; function Object() { } return Object; - })(); + }()); var obj; 4 instanceof null; // Error and should be error diff --git a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js index 9f83181a146..90badcf8e92 100644 --- a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js @@ -52,7 +52,7 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); var x; // invalid left operand // the left operand is required to be of type Any, an object type, or a type parameter type diff --git a/tests/baselines/reference/instanceofOperatorWithLHSIsObject.js b/tests/baselines/reference/instanceofOperatorWithLHSIsObject.js index c687027ae9b..e7f35c8da4c 100644 --- a/tests/baselines/reference/instanceofOperatorWithLHSIsObject.js +++ b/tests/baselines/reference/instanceofOperatorWithLHSIsObject.js @@ -20,7 +20,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var x1; var x2; var a; diff --git a/tests/baselines/reference/instantiateConstraintsToTypeArguments2.errors.txt b/tests/baselines/reference/instantiateConstraintsToTypeArguments2.errors.txt deleted file mode 100644 index f5d53c582f6..00000000000 --- a/tests/baselines/reference/instantiateConstraintsToTypeArguments2.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts(1,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts(1,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts(2,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts(2,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts (4 errors) ==== - interface A, S extends A> { } - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface B, S extends B> extends A, B> { } - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. \ No newline at end of file diff --git a/tests/baselines/reference/instantiateConstraintsToTypeArguments2.symbols b/tests/baselines/reference/instantiateConstraintsToTypeArguments2.symbols new file mode 100644 index 00000000000..40c886e1b47 --- /dev/null +++ b/tests/baselines/reference/instantiateConstraintsToTypeArguments2.symbols @@ -0,0 +1,30 @@ +=== tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts === +interface A, S extends A> { } +>A : Symbol(A, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 0)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 12)) +>A : Symbol(A, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 0)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 12)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 30)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 30)) +>A : Symbol(A, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 0)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 12)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 30)) + +interface B, S extends B> extends A, B> { } +>B : Symbol(B, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 53)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 12)) +>B : Symbol(B, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 53)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 12)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 30)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 30)) +>B : Symbol(B, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 53)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 12)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 30)) +>A : Symbol(A, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 0)) +>B : Symbol(B, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 53)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 12)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 30)) +>B : Symbol(B, Decl(instantiateConstraintsToTypeArguments2.ts, 0, 53)) +>T : Symbol(T, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 12)) +>S : Symbol(S, Decl(instantiateConstraintsToTypeArguments2.ts, 1, 30)) + diff --git a/tests/baselines/reference/instantiateConstraintsToTypeArguments2.types b/tests/baselines/reference/instantiateConstraintsToTypeArguments2.types new file mode 100644 index 00000000000..1952a661c16 --- /dev/null +++ b/tests/baselines/reference/instantiateConstraintsToTypeArguments2.types @@ -0,0 +1,30 @@ +=== tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts === +interface A, S extends A> { } +>A : A +>T : T +>A : A +>T : T +>S : S +>S : S +>A : A +>T : T +>S : S + +interface B, S extends B> extends A, B> { } +>B : B +>T : T +>B : B +>T : T +>S : S +>S : S +>B : B +>T : T +>S : S +>A : A +>B : B +>T : T +>S : S +>B : B +>T : T +>S : S + diff --git a/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js b/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js index 0602aec2dc1..f8b4f680f0f 100644 --- a/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js +++ b/tests/baselines/reference/instantiateGenericClassWithWrongNumberOfTypeArguments.js @@ -23,12 +23,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); var D = (function () { function D() { } return D; -})(); +}()); // BUG 794238 var d = new D(); diff --git a/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.js b/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.js index 4ded030922a..2e7e3f87d1b 100644 --- a/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.js +++ b/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.js @@ -21,11 +21,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); var D = (function () { function D() { } return D; -})(); +}()); var d = new D(); diff --git a/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js b/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js index 3d7d2a7d017..4c750024e43 100644 --- a/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js +++ b/tests/baselines/reference/instantiateNonGenericTypeWithTypeArguments.js @@ -25,7 +25,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); function Foo() { } var r = new Foo(); diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints.errors.txt b/tests/baselines/reference/instantiatedBaseTypeConstraints.errors.txt deleted file mode 100644 index db62abe5688..00000000000 --- a/tests/baselines/reference/instantiatedBaseTypeConstraints.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -tests/cases/compiler/instantiatedBaseTypeConstraints.ts(1,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/instantiatedBaseTypeConstraints.ts (1 errors) ==== - interface Foo, C> { - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(bar: C): void; - } - - class Bar implements Foo { - foo(bar: string): void { - } - } - - - \ No newline at end of file diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints.js b/tests/baselines/reference/instantiatedBaseTypeConstraints.js index 24e8e66310c..c333ed36e1f 100644 --- a/tests/baselines/reference/instantiatedBaseTypeConstraints.js +++ b/tests/baselines/reference/instantiatedBaseTypeConstraints.js @@ -18,4 +18,4 @@ var Bar = (function () { Bar.prototype.foo = function (bar) { }; return Bar; -})(); +}()); diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints.symbols b/tests/baselines/reference/instantiatedBaseTypeConstraints.symbols new file mode 100644 index 00000000000..e92097c309c --- /dev/null +++ b/tests/baselines/reference/instantiatedBaseTypeConstraints.symbols @@ -0,0 +1,28 @@ +=== tests/cases/compiler/instantiatedBaseTypeConstraints.ts === +interface Foo, C> { +>Foo : Symbol(Foo, Decl(instantiatedBaseTypeConstraints.ts, 0, 0)) +>T : Symbol(T, Decl(instantiatedBaseTypeConstraints.ts, 0, 14)) +>Foo : Symbol(Foo, Decl(instantiatedBaseTypeConstraints.ts, 0, 0)) +>T : Symbol(T, Decl(instantiatedBaseTypeConstraints.ts, 0, 14)) +>C : Symbol(C, Decl(instantiatedBaseTypeConstraints.ts, 0, 34)) +>C : Symbol(C, Decl(instantiatedBaseTypeConstraints.ts, 0, 34)) + + foo(bar: C): void; +>foo : Symbol(foo, Decl(instantiatedBaseTypeConstraints.ts, 0, 39)) +>bar : Symbol(bar, Decl(instantiatedBaseTypeConstraints.ts, 1, 6)) +>C : Symbol(C, Decl(instantiatedBaseTypeConstraints.ts, 0, 34)) +} + +class Bar implements Foo { +>Bar : Symbol(Bar, Decl(instantiatedBaseTypeConstraints.ts, 2, 1)) +>Foo : Symbol(Foo, Decl(instantiatedBaseTypeConstraints.ts, 0, 0)) +>Bar : Symbol(Bar, Decl(instantiatedBaseTypeConstraints.ts, 2, 1)) + + foo(bar: string): void { +>foo : Symbol(foo, Decl(instantiatedBaseTypeConstraints.ts, 4, 39)) +>bar : Symbol(bar, Decl(instantiatedBaseTypeConstraints.ts, 5, 6)) + } +} + + + diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints.types b/tests/baselines/reference/instantiatedBaseTypeConstraints.types new file mode 100644 index 00000000000..e83d8250158 --- /dev/null +++ b/tests/baselines/reference/instantiatedBaseTypeConstraints.types @@ -0,0 +1,28 @@ +=== tests/cases/compiler/instantiatedBaseTypeConstraints.ts === +interface Foo, C> { +>Foo : Foo +>T : T +>Foo : Foo +>T : T +>C : C +>C : C + + foo(bar: C): void; +>foo : (bar: C) => void +>bar : C +>C : C +} + +class Bar implements Foo { +>Bar : Bar +>Foo : Foo +>Bar : Bar + + foo(bar: string): void { +>foo : (bar: string) => void +>bar : string + } +} + + + diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints2.errors.txt b/tests/baselines/reference/instantiatedBaseTypeConstraints2.errors.txt deleted file mode 100644 index d5c6d838a84..00000000000 --- a/tests/baselines/reference/instantiatedBaseTypeConstraints2.errors.txt +++ /dev/null @@ -1,11 +0,0 @@ -tests/cases/compiler/instantiatedBaseTypeConstraints2.ts(1,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/instantiatedBaseTypeConstraints2.ts(1,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/instantiatedBaseTypeConstraints2.ts (2 errors) ==== - interface A, S extends A> { } - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface B extends A, B> { } \ No newline at end of file diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints2.symbols b/tests/baselines/reference/instantiatedBaseTypeConstraints2.symbols new file mode 100644 index 00000000000..9122bbed975 --- /dev/null +++ b/tests/baselines/reference/instantiatedBaseTypeConstraints2.symbols @@ -0,0 +1,21 @@ +=== tests/cases/compiler/instantiatedBaseTypeConstraints2.ts === +interface A, S extends A> { } +>A : Symbol(A, Decl(instantiatedBaseTypeConstraints2.ts, 0, 0)) +>T : Symbol(T, Decl(instantiatedBaseTypeConstraints2.ts, 0, 12)) +>A : Symbol(A, Decl(instantiatedBaseTypeConstraints2.ts, 0, 0)) +>T : Symbol(T, Decl(instantiatedBaseTypeConstraints2.ts, 0, 12)) +>S : Symbol(S, Decl(instantiatedBaseTypeConstraints2.ts, 0, 30)) +>S : Symbol(S, Decl(instantiatedBaseTypeConstraints2.ts, 0, 30)) +>A : Symbol(A, Decl(instantiatedBaseTypeConstraints2.ts, 0, 0)) +>T : Symbol(T, Decl(instantiatedBaseTypeConstraints2.ts, 0, 12)) +>S : Symbol(S, Decl(instantiatedBaseTypeConstraints2.ts, 0, 30)) + +interface B extends A, B> { } +>B : Symbol(B, Decl(instantiatedBaseTypeConstraints2.ts, 0, 53)) +>U : Symbol(U, Decl(instantiatedBaseTypeConstraints2.ts, 1, 12)) +>A : Symbol(A, Decl(instantiatedBaseTypeConstraints2.ts, 0, 0)) +>B : Symbol(B, Decl(instantiatedBaseTypeConstraints2.ts, 0, 53)) +>U : Symbol(U, Decl(instantiatedBaseTypeConstraints2.ts, 1, 12)) +>B : Symbol(B, Decl(instantiatedBaseTypeConstraints2.ts, 0, 53)) +>U : Symbol(U, Decl(instantiatedBaseTypeConstraints2.ts, 1, 12)) + diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints2.types b/tests/baselines/reference/instantiatedBaseTypeConstraints2.types new file mode 100644 index 00000000000..3b6ca2ea75b --- /dev/null +++ b/tests/baselines/reference/instantiatedBaseTypeConstraints2.types @@ -0,0 +1,21 @@ +=== tests/cases/compiler/instantiatedBaseTypeConstraints2.ts === +interface A, S extends A> { } +>A : A +>T : T +>A : A +>T : T +>S : S +>S : S +>A : A +>T : T +>S : S + +interface B extends A, B> { } +>B : B +>U : U +>A : A +>B : B +>U : U +>B : B +>U : U + diff --git a/tests/baselines/reference/instantiatedModule.js b/tests/baselines/reference/instantiatedModule.js index 8cabdeabe49..d8ef427619a 100644 --- a/tests/baselines/reference/instantiatedModule.js +++ b/tests/baselines/reference/instantiatedModule.js @@ -85,7 +85,7 @@ var M2; return { x: 0, y: 0 }; }; return Point; - })(); + }()); M2.Point = Point; })(M2 || (M2 = {})); var m2; diff --git a/tests/baselines/reference/instantiatedReturnTypeContravariance.js b/tests/baselines/reference/instantiatedReturnTypeContravariance.js index 2484816fe33..4d5e4376308 100644 --- a/tests/baselines/reference/instantiatedReturnTypeContravariance.js +++ b/tests/baselines/reference/instantiatedReturnTypeContravariance.js @@ -43,7 +43,7 @@ var c = (function () { return null; }; return c; -})(); +}()); var d = (function (_super) { __extends(d, _super); function d() { @@ -53,4 +53,4 @@ var d = (function (_super) { return null; }; return d; -})(c); +}(c)); diff --git a/tests/baselines/reference/intTypeCheck.errors.txt b/tests/baselines/reference/intTypeCheck.errors.txt index e48d1b1dc73..3d805a65822 100644 --- a/tests/baselines/reference/intTypeCheck.errors.txt +++ b/tests/baselines/reference/intTypeCheck.errors.txt @@ -14,17 +14,24 @@ tests/cases/compiler/intTypeCheck.ts(106,20): error TS1109: Expression expected. tests/cases/compiler/intTypeCheck.ts(106,21): error TS2304: Cannot find name 'i1'. tests/cases/compiler/intTypeCheck.ts(107,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature. tests/cases/compiler/intTypeCheck.ts(112,5): error TS2322: Type '{}' is not assignable to type 'i2'. + Type '{}' provides no match for the signature '(): any' tests/cases/compiler/intTypeCheck.ts(113,5): error TS2322: Type 'Object' is not assignable to type 'i2'. + Type 'Object' provides no match for the signature '(): any' tests/cases/compiler/intTypeCheck.ts(114,17): error TS2350: Only a void function can be called with the 'new' keyword. tests/cases/compiler/intTypeCheck.ts(115,5): error TS2322: Type 'Base' is not assignable to type 'i2'. + Type 'Base' provides no match for the signature '(): any' tests/cases/compiler/intTypeCheck.ts(120,5): error TS2322: Type 'boolean' is not assignable to type 'i2'. tests/cases/compiler/intTypeCheck.ts(120,21): error TS1109: Expression expected. tests/cases/compiler/intTypeCheck.ts(120,22): error TS2304: Cannot find name 'i2'. tests/cases/compiler/intTypeCheck.ts(121,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature. tests/cases/compiler/intTypeCheck.ts(126,5): error TS2322: Type '{}' is not assignable to type 'i3'. + Type '{}' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(127,5): error TS2322: Type 'Object' is not assignable to type 'i3'. + Type 'Object' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(129,5): error TS2322: Type 'Base' is not assignable to type 'i3'. + Type 'Base' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(131,5): error TS2322: Type '() => void' is not assignable to type 'i3'. + Type '() => void' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(134,5): error TS2322: Type 'boolean' is not assignable to type 'i3'. tests/cases/compiler/intTypeCheck.ts(134,21): error TS1109: Expression expected. tests/cases/compiler/intTypeCheck.ts(134,22): error TS2304: Cannot find name 'i3'. @@ -50,9 +57,12 @@ tests/cases/compiler/intTypeCheck.ts(162,21): error TS1109: Expression expected. tests/cases/compiler/intTypeCheck.ts(162,22): error TS2304: Cannot find name 'i5'. tests/cases/compiler/intTypeCheck.ts(163,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature. tests/cases/compiler/intTypeCheck.ts(168,5): error TS2322: Type '{}' is not assignable to type 'i6'. + Type '{}' provides no match for the signature '(): any' tests/cases/compiler/intTypeCheck.ts(169,5): error TS2322: Type 'Object' is not assignable to type 'i6'. + Type 'Object' provides no match for the signature '(): any' tests/cases/compiler/intTypeCheck.ts(170,17): error TS2350: Only a void function can be called with the 'new' keyword. tests/cases/compiler/intTypeCheck.ts(171,5): error TS2322: Type 'Base' is not assignable to type 'i6'. + Type 'Base' provides no match for the signature '(): any' tests/cases/compiler/intTypeCheck.ts(173,5): error TS2322: Type '() => void' is not assignable to type 'i6'. Type 'void' is not assignable to type 'number'. tests/cases/compiler/intTypeCheck.ts(176,5): error TS2322: Type 'boolean' is not assignable to type 'i6'. @@ -60,9 +70,13 @@ tests/cases/compiler/intTypeCheck.ts(176,21): error TS1109: Expression expected. tests/cases/compiler/intTypeCheck.ts(176,22): error TS2304: Cannot find name 'i6'. tests/cases/compiler/intTypeCheck.ts(177,17): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature. tests/cases/compiler/intTypeCheck.ts(182,5): error TS2322: Type '{}' is not assignable to type 'i7'. + Type '{}' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(183,5): error TS2322: Type 'Object' is not assignable to type 'i7'. + Type 'Object' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(185,17): error TS2352: Neither type 'Base' nor type 'i7' is assignable to the other. + Type 'Base' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(187,5): error TS2322: Type '() => void' is not assignable to type 'i7'. + Type '() => void' provides no match for the signature 'new (): any' tests/cases/compiler/intTypeCheck.ts(190,5): error TS2322: Type 'boolean' is not assignable to type 'i7'. tests/cases/compiler/intTypeCheck.ts(190,21): error TS1109: Expression expected. tests/cases/compiler/intTypeCheck.ts(190,22): error TS2304: Cannot find name 'i7'. @@ -216,15 +230,18 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit var obj12: i2 = {}; ~~~~~ !!! error TS2322: Type '{}' is not assignable to type 'i2'. +!!! error TS2322: Type '{}' provides no match for the signature '(): any' var obj13: i2 = new Object(); ~~~~~ !!! error TS2322: Type 'Object' is not assignable to type 'i2'. +!!! error TS2322: Type 'Object' provides no match for the signature '(): any' var obj14: i2 = new obj11; ~~~~~~~~~ !!! error TS2350: Only a void function can be called with the 'new' keyword. var obj15: i2 = new Base; ~~~~~ !!! error TS2322: Type 'Base' is not assignable to type 'i2'. +!!! error TS2322: Type 'Base' provides no match for the signature '(): any' var obj16: i2 = null; var obj17: i2 = function ():any { return 0; }; //var obj18: i2 = function foo() { }; @@ -246,17 +263,21 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit var obj23: i3 = {}; ~~~~~ !!! error TS2322: Type '{}' is not assignable to type 'i3'. +!!! error TS2322: Type '{}' provides no match for the signature 'new (): any' var obj24: i3 = new Object(); ~~~~~ !!! error TS2322: Type 'Object' is not assignable to type 'i3'. +!!! error TS2322: Type 'Object' provides no match for the signature 'new (): any' var obj25: i3 = new obj22; var obj26: i3 = new Base; ~~~~~ !!! error TS2322: Type 'Base' is not assignable to type 'i3'. +!!! error TS2322: Type 'Base' provides no match for the signature 'new (): any' var obj27: i3 = null; var obj28: i3 = function () { }; ~~~~~ !!! error TS2322: Type '() => void' is not assignable to type 'i3'. +!!! error TS2322: Type '() => void' provides no match for the signature 'new (): any' //var obj29: i3 = function foo() { }; var obj30: i3 = anyVar; var obj31: i3 = new anyVar; @@ -338,15 +359,18 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit var obj56: i6 = {}; ~~~~~ !!! error TS2322: Type '{}' is not assignable to type 'i6'. +!!! error TS2322: Type '{}' provides no match for the signature '(): any' var obj57: i6 = new Object(); ~~~~~ !!! error TS2322: Type 'Object' is not assignable to type 'i6'. +!!! error TS2322: Type 'Object' provides no match for the signature '(): any' var obj58: i6 = new obj55; ~~~~~~~~~ !!! error TS2350: Only a void function can be called with the 'new' keyword. var obj59: i6 = new Base; ~~~~~ !!! error TS2322: Type 'Base' is not assignable to type 'i6'. +!!! error TS2322: Type 'Base' provides no match for the signature '(): any' var obj60: i6 = null; var obj61: i6 = function () { }; ~~~~~ @@ -371,17 +395,21 @@ tests/cases/compiler/intTypeCheck.ts(205,17): error TS2351: Cannot use 'new' wit var obj67: i7 = {}; ~~~~~ !!! error TS2322: Type '{}' is not assignable to type 'i7'. +!!! error TS2322: Type '{}' provides no match for the signature 'new (): any' var obj68: i7 = new Object(); ~~~~~ !!! error TS2322: Type 'Object' is not assignable to type 'i7'. +!!! error TS2322: Type 'Object' provides no match for the signature 'new (): any' var obj69: i7 = new obj66; var obj70: i7 = new Base; ~~~~~~~~~~~~ !!! error TS2352: Neither type 'Base' nor type 'i7' is assignable to the other. +!!! error TS2352: Type 'Base' provides no match for the signature 'new (): any' var obj71: i7 = null; var obj72: i7 = function () { }; ~~~~~ !!! error TS2322: Type '() => void' is not assignable to type 'i7'. +!!! error TS2322: Type '() => void' provides no match for the signature 'new (): any' //var obj73: i7 = function foo() { }; var obj74: i7 = anyVar; var obj75: i7 = new anyVar; diff --git a/tests/baselines/reference/intTypeCheck.js b/tests/baselines/reference/intTypeCheck.js index fbbe1bb5d03..84eb19ac27d 100644 --- a/tests/baselines/reference/intTypeCheck.js +++ b/tests/baselines/reference/intTypeCheck.js @@ -211,7 +211,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); var anyVar; // // Property signatures diff --git a/tests/baselines/reference/interfaceClassMerging.js b/tests/baselines/reference/interfaceClassMerging.js index 565884e95ef..8138e7888b3 100644 --- a/tests/baselines/reference/interfaceClassMerging.js +++ b/tests/baselines/reference/interfaceClassMerging.js @@ -53,7 +53,7 @@ var Foo = (function () { return this.method(0); }; return Foo; -})(); +}()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { @@ -63,7 +63,7 @@ var Bar = (function (_super) { return this.optionalProperty; }; return Bar; -})(Foo); +}(Foo)); var bar = new Bar(); bar.method(0); bar.optionalMethod(1); diff --git a/tests/baselines/reference/interfaceClassMerging2.js b/tests/baselines/reference/interfaceClassMerging2.js index 0b40067640c..99f5b07696d 100644 --- a/tests/baselines/reference/interfaceClassMerging2.js +++ b/tests/baselines/reference/interfaceClassMerging2.js @@ -49,7 +49,7 @@ var Foo = (function () { return this; }; return Foo; -})(); +}()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { @@ -59,7 +59,7 @@ var Bar = (function (_super) { return this; }; return Bar; -})(Foo); +}(Foo)); var bar = new Bar(); bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod(); var foo = new Foo(); diff --git a/tests/baselines/reference/interfaceContextualType.js b/tests/baselines/reference/interfaceContextualType.js index a0012121c0d..653579c81eb 100644 --- a/tests/baselines/reference/interfaceContextualType.js +++ b/tests/baselines/reference/interfaceContextualType.js @@ -36,4 +36,4 @@ var Bug = (function () { }; }; return Bug; -})(); +}()); diff --git a/tests/baselines/reference/interfaceDeclaration1.js b/tests/baselines/reference/interfaceDeclaration1.js index a7ec1249a25..91c84fbbc81 100644 --- a/tests/baselines/reference/interfaceDeclaration1.js +++ b/tests/baselines/reference/interfaceDeclaration1.js @@ -61,4 +61,4 @@ var C1 = (function () { var prototype = 3; } return C1; -})(); +}()); diff --git a/tests/baselines/reference/interfaceDeclaration2.js b/tests/baselines/reference/interfaceDeclaration2.js index 30f9df0fac7..bdd061448be 100644 --- a/tests/baselines/reference/interfaceDeclaration2.js +++ b/tests/baselines/reference/interfaceDeclaration2.js @@ -18,6 +18,6 @@ var I2 = (function () { function I2() { } return I2; -})(); +}()); function I3() { } var I4; diff --git a/tests/baselines/reference/interfaceDeclaration3.js b/tests/baselines/reference/interfaceDeclaration3.js index c3cbf47771d..a4df8926fba 100644 --- a/tests/baselines/reference/interfaceDeclaration3.js +++ b/tests/baselines/reference/interfaceDeclaration3.js @@ -64,27 +64,27 @@ define(["require", "exports"], function (require, exports) { function C1() { } return C1; - })(); + }()); var C2 = (function () { function C2() { } return C2; - })(); + }()); var C3 = (function () { function C3() { } return C3; - })(); + }()); var C4 = (function () { function C4() { } return C4; - })(); + }()); var C5 = (function () { function C5() { } return C5; - })(); + }()); })(M1 || (M1 = {})); var M2; (function (M2) { @@ -92,31 +92,31 @@ define(["require", "exports"], function (require, exports) { function C1() { } return C1; - })(); + }()); var C2 = (function () { function C2() { } return C2; - })(); + }()); var C3 = (function () { function C3() { } return C3; - })(); + }()); })(M2 = exports.M2 || (exports.M2 = {})); var C1 = (function () { function C1() { } return C1; - })(); + }()); var C2 = (function () { function C2() { } return C2; - })(); + }()); var C3 = (function () { function C3() { } return C3; - })(); + }()); }); diff --git a/tests/baselines/reference/interfaceDeclaration4.js b/tests/baselines/reference/interfaceDeclaration4.js index 728ef7156e9..cf97cf66972 100644 --- a/tests/baselines/reference/interfaceDeclaration4.js +++ b/tests/baselines/reference/interfaceDeclaration4.js @@ -49,24 +49,24 @@ var Foo; function C1() { } return C1; - })(); + }()); Foo.C1 = C1; })(Foo || (Foo = {})); var C1 = (function () { function C1() { } return C1; -})(); +}()); // Err - not implemented item var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); I1; { } diff --git a/tests/baselines/reference/interfaceDeclaration5.js b/tests/baselines/reference/interfaceDeclaration5.js index 6a643e4b066..6726971d208 100644 --- a/tests/baselines/reference/interfaceDeclaration5.js +++ b/tests/baselines/reference/interfaceDeclaration5.js @@ -10,6 +10,6 @@ define(["require", "exports"], function (require, exports) { function C1() { } return C1; - })(); + }()); exports.C1 = C1; }); diff --git a/tests/baselines/reference/interfaceExtendingClass.js b/tests/baselines/reference/interfaceExtendingClass.js index f1232d78245..e2ca3f89791 100644 --- a/tests/baselines/reference/interfaceExtendingClass.js +++ b/tests/baselines/reference/interfaceExtendingClass.js @@ -32,7 +32,7 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); var i; var r1 = i.x; var r2 = i.y(); diff --git a/tests/baselines/reference/interfaceExtendingClass2.js b/tests/baselines/reference/interfaceExtendingClass2.js index c4143659125..c04ecf1d1bb 100644 --- a/tests/baselines/reference/interfaceExtendingClass2.js +++ b/tests/baselines/reference/interfaceExtendingClass2.js @@ -29,6 +29,6 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); return 1; ; diff --git a/tests/baselines/reference/interfaceExtendingClassWithPrivates.js b/tests/baselines/reference/interfaceExtendingClassWithPrivates.js index 3634d088a98..576f1a10128 100644 --- a/tests/baselines/reference/interfaceExtendingClassWithPrivates.js +++ b/tests/baselines/reference/interfaceExtendingClassWithPrivates.js @@ -20,7 +20,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var i; var r = i.y; var r2 = i.x; // error diff --git a/tests/baselines/reference/interfaceExtendingClassWithPrivates2.js b/tests/baselines/reference/interfaceExtendingClassWithPrivates2.js index 6726d560a8c..a6f966a8fac 100644 --- a/tests/baselines/reference/interfaceExtendingClassWithPrivates2.js +++ b/tests/baselines/reference/interfaceExtendingClassWithPrivates2.js @@ -32,17 +32,17 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var Baz = (function () { function Baz() { } return Baz; -})(); +}()); var i; var r = i.z; var r2 = i.x; // error diff --git a/tests/baselines/reference/interfaceExtendingClassWithProtecteds.js b/tests/baselines/reference/interfaceExtendingClassWithProtecteds.js index f2d95812fd2..18c145ab72e 100644 --- a/tests/baselines/reference/interfaceExtendingClassWithProtecteds.js +++ b/tests/baselines/reference/interfaceExtendingClassWithProtecteds.js @@ -20,7 +20,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var i; var r = i.y; var r2 = i.x; // error diff --git a/tests/baselines/reference/interfaceExtendingClassWithProtecteds2.js b/tests/baselines/reference/interfaceExtendingClassWithProtecteds2.js index 277c32a10c1..6bf6b22120b 100644 --- a/tests/baselines/reference/interfaceExtendingClassWithProtecteds2.js +++ b/tests/baselines/reference/interfaceExtendingClassWithProtecteds2.js @@ -32,17 +32,17 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); var Baz = (function () { function Baz() { } return Baz; -})(); +}()); var i; var r = i.z; var r2 = i.x; // error diff --git a/tests/baselines/reference/interfaceExtendsClass1.js b/tests/baselines/reference/interfaceExtendsClass1.js index 2fbe01bdf67..43c7c6f6fa4 100644 --- a/tests/baselines/reference/interfaceExtendsClass1.js +++ b/tests/baselines/reference/interfaceExtendsClass1.js @@ -28,7 +28,7 @@ var Control = (function () { function Control() { } return Control; -})(); +}()); var Button = (function (_super) { __extends(Button, _super); function Button() { @@ -36,7 +36,7 @@ var Button = (function (_super) { } Button.prototype.select = function () { }; return Button; -})(Control); +}(Control)); var TextBox = (function (_super) { __extends(TextBox, _super); function TextBox() { @@ -44,17 +44,17 @@ var TextBox = (function (_super) { } TextBox.prototype.select = function () { }; return TextBox; -})(Control); +}(Control)); var Image = (function (_super) { __extends(Image, _super); function Image() { _super.apply(this, arguments); } return Image; -})(Control); +}(Control)); var Location = (function () { function Location() { } Location.prototype.select = function () { }; return Location; -})(); +}()); diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js index 9a6e92c3e2b..e1bdbff85dd 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js @@ -39,7 +39,7 @@ var C = (function () { } C.prototype.foo = function (x) { return x; }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -49,7 +49,7 @@ var D = (function (_super) { D.prototype.other = function (x) { return x; }; D.prototype.bar = function () { }; return D; -})(C); +}(C)); var c; var i; var d; diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js index 44738036f96..1592b1a723b 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js @@ -35,7 +35,7 @@ var C = (function () { } C.prototype.foo = function (x) { return x; }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -47,7 +47,7 @@ var D = (function (_super) { D.prototype.other = function (x) { return x; }; D.prototype.bar = function () { }; return D; -})(C); +}(C)); var D2 = (function (_super) { __extends(D2, _super); function D2() { @@ -58,4 +58,4 @@ var D2 = (function (_super) { D2.prototype.other = function (x) { return x; }; D2.prototype.bar = function () { }; return D2; -})(C); +}(C)); diff --git a/tests/baselines/reference/interfaceImplementation1.errors.txt b/tests/baselines/reference/interfaceImplementation1.errors.txt index 45b011c6929..e5e1a212a06 100644 --- a/tests/baselines/reference/interfaceImplementation1.errors.txt +++ b/tests/baselines/reference/interfaceImplementation1.errors.txt @@ -3,6 +3,7 @@ tests/cases/compiler/interfaceImplementation1.ts(12,7): error TS2420: Class 'C1' tests/cases/compiler/interfaceImplementation1.ts(12,7): error TS2420: Class 'C1' incorrectly implements interface 'I2'. Property 'iFn' is private in type 'C1' but not in type 'I2'. tests/cases/compiler/interfaceImplementation1.ts(34,5): error TS2322: Type '() => C2' is not assignable to type 'I4'. + Type '() => C2' provides no match for the signature 'new (): I3' ==== tests/cases/compiler/interfaceImplementation1.ts (3 errors) ==== @@ -48,6 +49,7 @@ tests/cases/compiler/interfaceImplementation1.ts(34,5): error TS2322: Type '() = var a:I4 = function(){ ~ !!! error TS2322: Type '() => C2' is not assignable to type 'I4'. +!!! error TS2322: Type '() => C2' provides no match for the signature 'new (): I3' return new C2(); } new a(); diff --git a/tests/baselines/reference/interfaceImplementation1.js b/tests/baselines/reference/interfaceImplementation1.js index 8f02596682d..6a8d1b2d782 100644 --- a/tests/baselines/reference/interfaceImplementation1.js +++ b/tests/baselines/reference/interfaceImplementation1.js @@ -52,13 +52,13 @@ var C1 = (function () { } C1.prototype.iFn = function (n, s) { }; return C1; -})(); +}()); var C2 = (function () { function C2() { this.x = 1; } return C2; -})(); +}()); var a = function () { return new C2(); }; diff --git a/tests/baselines/reference/interfaceImplementation2.js b/tests/baselines/reference/interfaceImplementation2.js index ac571a364b5..747fb0a6da3 100644 --- a/tests/baselines/reference/interfaceImplementation2.js +++ b/tests/baselines/reference/interfaceImplementation2.js @@ -18,4 +18,4 @@ var C3 = (function () { function C3() { } return C3; -})(); +}()); diff --git a/tests/baselines/reference/interfaceImplementation3.js b/tests/baselines/reference/interfaceImplementation3.js index da85de545cd..ef713d517b7 100644 --- a/tests/baselines/reference/interfaceImplementation3.js +++ b/tests/baselines/reference/interfaceImplementation3.js @@ -21,4 +21,4 @@ var C4 = (function () { } C4.prototype.iFn = function () { }; return C4; -})(); +}()); diff --git a/tests/baselines/reference/interfaceImplementation4.js b/tests/baselines/reference/interfaceImplementation4.js index 4a093381b5d..07d2f85e311 100644 --- a/tests/baselines/reference/interfaceImplementation4.js +++ b/tests/baselines/reference/interfaceImplementation4.js @@ -19,4 +19,4 @@ var C5 = (function () { } C5.prototype.iFn = function () { }; return C5; -})(); +}()); diff --git a/tests/baselines/reference/interfaceImplementation5.js b/tests/baselines/reference/interfaceImplementation5.js index c710eda84f5..e2b1ad345a9 100644 --- a/tests/baselines/reference/interfaceImplementation5.js +++ b/tests/baselines/reference/interfaceImplementation5.js @@ -41,7 +41,7 @@ var C1 = (function () { configurable: true }); return C1; -})(); +}()); var C2 = (function () { function C2() { } @@ -51,7 +51,7 @@ var C2 = (function () { configurable: true }); return C2; -})(); +}()); var C3 = (function () { function C3() { } @@ -62,7 +62,7 @@ var C3 = (function () { configurable: true }); return C3; -})(); +}()); var C4 = (function () { function C4() { } @@ -72,7 +72,7 @@ var C4 = (function () { configurable: true }); return C4; -})(); +}()); var C5 = (function () { function C5() { } @@ -82,7 +82,7 @@ var C5 = (function () { configurable: true }); return C5; -})(); +}()); var C6 = (function () { function C6() { } @@ -93,4 +93,4 @@ var C6 = (function () { configurable: true }); return C6; -})(); +}()); diff --git a/tests/baselines/reference/interfaceImplementation6.js b/tests/baselines/reference/interfaceImplementation6.js index e21499a20f4..642300d9160 100644 --- a/tests/baselines/reference/interfaceImplementation6.js +++ b/tests/baselines/reference/interfaceImplementation6.js @@ -31,23 +31,23 @@ define(["require", "exports"], function (require, exports) { function C1() { } return C1; - })(); + }()); var C2 = (function () { function C2() { } return C2; - })(); + }()); var C3 = (function () { function C3() { var item; } return C3; - })(); + }()); var Test = (function () { function Test() { this.pt = { item: 1 }; } return Test; - })(); + }()); exports.Test = Test; }); diff --git a/tests/baselines/reference/interfaceImplementation7.js b/tests/baselines/reference/interfaceImplementation7.js index 2813d7ee0fe..7a1a29c65bf 100644 --- a/tests/baselines/reference/interfaceImplementation7.js +++ b/tests/baselines/reference/interfaceImplementation7.js @@ -16,4 +16,4 @@ var C1 = (function () { } C1.prototype.name = function () { return ""; }; return C1; -})(); +}()); diff --git a/tests/baselines/reference/interfaceImplementation8.js b/tests/baselines/reference/interfaceImplementation8.js index cb6eaa12450..edfb33bfe1b 100644 --- a/tests/baselines/reference/interfaceImplementation8.js +++ b/tests/baselines/reference/interfaceImplementation8.js @@ -50,47 +50,47 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function (_super) { __extends(C4, _super); function C4() { _super.apply(this, arguments); } return C4; -})(C1); +}(C1)); var C5 = (function (_super) { __extends(C5, _super); function C5() { _super.apply(this, arguments); } return C5; -})(C2); +}(C2)); var C6 = (function (_super) { __extends(C6, _super); function C6() { _super.apply(this, arguments); } return C6; -})(C3); +}(C3)); var C7 = (function () { function C7() { } return C7; -})(); +}()); var C8 = (function (_super) { __extends(C8, _super); function C8() { _super.apply(this, arguments); } return C8; -})(C7); +}(C7)); diff --git a/tests/baselines/reference/interfaceInReopenedModule.js b/tests/baselines/reference/interfaceInReopenedModule.js index 1f9d0981590..1196cd4df29 100644 --- a/tests/baselines/reference/interfaceInReopenedModule.js +++ b/tests/baselines/reference/interfaceInReopenedModule.js @@ -19,6 +19,6 @@ var m; function n() { } return n; - })(); + }()); m.n = n; })(m || (m = {})); diff --git a/tests/baselines/reference/interfaceInheritance.js b/tests/baselines/reference/interfaceInheritance.js index beec0f35d86..85ae7287f4a 100644 --- a/tests/baselines/reference/interfaceInheritance.js +++ b/tests/baselines/reference/interfaceInheritance.js @@ -45,7 +45,7 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var i2; var i1; var i3; diff --git a/tests/baselines/reference/interfacePropertiesWithSameName3.js b/tests/baselines/reference/interfacePropertiesWithSameName3.js index 2711eb46847..bf4b9edefc1 100644 --- a/tests/baselines/reference/interfacePropertiesWithSameName3.js +++ b/tests/baselines/reference/interfacePropertiesWithSameName3.js @@ -13,9 +13,9 @@ var D2 = (function () { function D2() { } return D2; -})(); +}()); var E2 = (function () { function E2() { } return E2; -})(); +}()); diff --git a/tests/baselines/reference/interfaceSubtyping.js b/tests/baselines/reference/interfaceSubtyping.js index 43004985782..e0552a964e9 100644 --- a/tests/baselines/reference/interfaceSubtyping.js +++ b/tests/baselines/reference/interfaceSubtyping.js @@ -16,4 +16,4 @@ var Camera = (function () { } Camera.prototype.foo = function () { return "s"; }; return Camera; -})(); +}()); diff --git a/tests/baselines/reference/interfaceWithMultipleDeclarations.errors.txt b/tests/baselines/reference/interfaceWithMultipleDeclarations.errors.txt index 9afd0d37733..e4b37db8a7a 100644 --- a/tests/baselines/reference/interfaceWithMultipleDeclarations.errors.txt +++ b/tests/baselines/reference/interfaceWithMultipleDeclarations.errors.txt @@ -1,9 +1,7 @@ tests/cases/compiler/interfaceWithMultipleDeclarations.ts(3,11): error TS2428: All declarations of an interface must have identical type parameters. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(5,11): error TS2428: All declarations of an interface must have identical type parameters. -tests/cases/compiler/interfaceWithMultipleDeclarations.ts(5,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(7,11): error TS2428: All declarations of an interface must have identical type parameters. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(9,11): error TS2428: All declarations of an interface must have identical type parameters. -tests/cases/compiler/interfaceWithMultipleDeclarations.ts(9,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(11,11): error TS2428: All declarations of an interface must have identical type parameters. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(16,11): error TS2428: All declarations of an interface must have identical type parameters. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(18,11): error TS2428: All declarations of an interface must have identical type parameters. @@ -11,11 +9,9 @@ tests/cases/compiler/interfaceWithMultipleDeclarations.ts(20,11): error TS2428: tests/cases/compiler/interfaceWithMultipleDeclarations.ts(22,11): error TS2428: All declarations of an interface must have identical type parameters. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(24,11): error TS2428: All declarations of an interface must have identical type parameters. tests/cases/compiler/interfaceWithMultipleDeclarations.ts(29,11): error TS2428: All declarations of an interface must have identical type parameters. -tests/cases/compiler/interfaceWithMultipleDeclarations.ts(34,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/interfaceWithMultipleDeclarations.ts(36,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -==== tests/cases/compiler/interfaceWithMultipleDeclarations.ts (15 errors) ==== +==== tests/cases/compiler/interfaceWithMultipleDeclarations.ts (11 errors) ==== interface I1 { } interface I1 { // Name mismatch @@ -25,8 +21,6 @@ tests/cases/compiler/interfaceWithMultipleDeclarations.ts(36,14): error TS2313: interface I1 { // Length mismatch ~~ !!! error TS2428: All declarations of an interface must have identical type parameters. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. } interface I1 { // constraint present ~~ @@ -35,8 +29,6 @@ tests/cases/compiler/interfaceWithMultipleDeclarations.ts(36,14): error TS2313: interface I1 { // Length mismatch ~~ !!! error TS2428: All declarations of an interface must have identical type parameters. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. } interface I1 { // Length mismatch ~~ @@ -76,10 +68,6 @@ tests/cases/compiler/interfaceWithMultipleDeclarations.ts(36,14): error TS2313: class Foo { } interface I4> { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. } interface I4> { // Should not be error - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. } \ No newline at end of file diff --git a/tests/baselines/reference/interfaceWithMultipleDeclarations.js b/tests/baselines/reference/interfaceWithMultipleDeclarations.js index f4b4e733161..e2ba78877e6 100644 --- a/tests/baselines/reference/interfaceWithMultipleDeclarations.js +++ b/tests/baselines/reference/interfaceWithMultipleDeclarations.js @@ -42,4 +42,4 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/interfaceWithPropertyOfEveryType.js b/tests/baselines/reference/interfaceWithPropertyOfEveryType.js index 90c0d257d61..fef3d2457d8 100644 --- a/tests/baselines/reference/interfaceWithPropertyOfEveryType.js +++ b/tests/baselines/reference/interfaceWithPropertyOfEveryType.js @@ -47,7 +47,7 @@ var C = (function () { function C() { } return C; -})(); +}()); function f1() { } var M; (function (M) { diff --git a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType.js b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType.js index 5209c0e97b9..fb5c0bd147a 100644 --- a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType.js +++ b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType.js @@ -20,9 +20,9 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); diff --git a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js index d53ec04c183..783a1fe4c8b 100644 --- a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js +++ b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js @@ -21,10 +21,10 @@ var Base = (function () { } Base.prototype.x = function () { }; return Base; -})(); +}()); var Base2 = (function () { function Base2() { } Base2.prototype.x = function () { }; return Base2; -})(); +}()); diff --git a/tests/baselines/reference/interfacedecl.js b/tests/baselines/reference/interfacedecl.js index fc1468b2c72..24d9df256ca 100644 --- a/tests/baselines/reference/interfacedecl.js +++ b/tests/baselines/reference/interfacedecl.js @@ -51,7 +51,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance2 = new c1(); diff --git a/tests/baselines/reference/interfacedeclWithIndexerErrors.js b/tests/baselines/reference/interfacedeclWithIndexerErrors.js index 177b392fd2d..0e979a09d63 100644 --- a/tests/baselines/reference/interfacedeclWithIndexerErrors.js +++ b/tests/baselines/reference/interfacedeclWithIndexerErrors.js @@ -51,5 +51,5 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance2 = new c1(); diff --git a/tests/baselines/reference/internalAliasClass.js b/tests/baselines/reference/internalAliasClass.js index 6361d7fdf99..7f3c7b69581 100644 --- a/tests/baselines/reference/internalAliasClass.js +++ b/tests/baselines/reference/internalAliasClass.js @@ -16,7 +16,7 @@ var a; function c() { } return c; - })(); + }()); a.c = c; })(a || (a = {})); var c; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js index 6714c10411e..aa274838529 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js @@ -28,7 +28,7 @@ var x; return a; }; return c; - })(); + }()); x.c = c; })(x = exports.x || (exports.x = {})); var m2; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js index 64bfe61fa6a..03b3542eca4 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js @@ -26,7 +26,7 @@ var x; return a; }; return c; - })(); + }()); x.c = c; })(x = exports.x || (exports.x = {})); var m2; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js index 49b784a9e99..c15ca69e13f 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js @@ -28,7 +28,7 @@ var x; return a; }; return c; - })(); + }()); x.c = c; })(x = exports.x || (exports.x = {})); var m2; diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js index 1fa90e62b82..f881032fa1e 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js @@ -22,7 +22,7 @@ var x; return a; }; return c; - })(); + }()); x.c = c; })(x = exports.x || (exports.x = {})); exports.xc = x.c; diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js index d4e1f3fc8e3..ac5004a7606 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js @@ -22,7 +22,7 @@ var x; return a; }; return c; - })(); + }()); x.c = c; })(x = exports.x || (exports.x = {})); var xc = x.c; diff --git a/tests/baselines/reference/internalAliasInitializedModule.js b/tests/baselines/reference/internalAliasInitializedModule.js index d7f741b7228..1d5e773994e 100644 --- a/tests/baselines/reference/internalAliasInitializedModule.js +++ b/tests/baselines/reference/internalAliasInitializedModule.js @@ -20,7 +20,7 @@ var a; function c() { } return c; - })(); + }()); b.c = c; })(b = a.b || (a.b = {})); })(a || (a = {})); diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.js b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.js index 0906321df88..3bd4c7c2fbc 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.js +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.js @@ -22,7 +22,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); b.c = c; })(b = a.b || (a.b = {})); })(a = exports.a || (exports.a = {})); diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.js b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.js index 212f4f841eb..910319be5e8 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.js @@ -21,7 +21,7 @@ var a; function c() { } return c; - })(); + }()); b.c = c; })(b = a.b || (a.b = {})); })(a = exports.a || (exports.a = {})); diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExportAccessError.js index e6a3cd9f938..02181f04f8d 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExportAccessError.js @@ -23,7 +23,7 @@ var a; function c() { } return c; - })(); + }()); b.c = c; })(b = a.b || (a.b = {})); })(a = exports.a || (exports.a = {})); diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.js b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.js index ea7681a2a50..26915043496 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.js +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.js @@ -19,7 +19,7 @@ var a; function c() { } return c; - })(); + }()); b.c = c; })(b = a.b || (a.b = {})); })(a = exports.a || (exports.a = {})); diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.js b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.js index 90fd7212794..a8a1d9ee047 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.js @@ -20,7 +20,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); b.c = c; })(b = a.b || (a.b = {})); })(a = exports.a || (exports.a = {})); diff --git a/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstance.js b/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstance.js index 28cc2c2b6b4..8feecb53f98 100644 --- a/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstance.js +++ b/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstance.js @@ -18,7 +18,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var A; (function (A) { A.a = 10; diff --git a/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js b/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js index 23c4aed97d1..27101bba5f9 100644 --- a/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js +++ b/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js @@ -17,7 +17,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var A; (function (A) { A.a = 10; diff --git a/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstance.js b/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstance.js index 883819975ef..1df5c768f97 100644 --- a/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstance.js +++ b/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstance.js @@ -17,7 +17,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var B; (function (B) { var A = 1; diff --git a/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js b/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js index a5357edc78f..4706390148f 100644 --- a/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js +++ b/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.js @@ -16,4 +16,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/intrinsics.js b/tests/baselines/reference/intrinsics.js index 736ffa020fa..548c72b1b40 100644 --- a/tests/baselines/reference/intrinsics.js +++ b/tests/baselines/reference/intrinsics.js @@ -23,7 +23,7 @@ var m1; function C() { } return C; - })(); + }()); })(m1 || (m1 = {})); __proto__ = 0; // Error, __proto__ not defined m1.__proto__ = 0; @@ -31,5 +31,5 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var foo; diff --git a/tests/baselines/reference/invalidAssignmentsToVoid.js b/tests/baselines/reference/invalidAssignmentsToVoid.js index 218126d4108..5f3a8ddabfc 100644 --- a/tests/baselines/reference/invalidAssignmentsToVoid.js +++ b/tests/baselines/reference/invalidAssignmentsToVoid.js @@ -32,7 +32,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; x = C; x = c; diff --git a/tests/baselines/reference/invalidBooleanAssignments.js b/tests/baselines/reference/invalidBooleanAssignments.js index d47787b4bf4..48951c77fb1 100644 --- a/tests/baselines/reference/invalidBooleanAssignments.js +++ b/tests/baselines/reference/invalidBooleanAssignments.js @@ -41,7 +41,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var f = x; var g = x; var h = x; diff --git a/tests/baselines/reference/invalidConstraint1.errors.txt b/tests/baselines/reference/invalidConstraint1.errors.txt index bac8f805c0f..e8a4ec43c09 100644 --- a/tests/baselines/reference/invalidConstraint1.errors.txt +++ b/tests/baselines/reference/invalidConstraint1.errors.txt @@ -1,12 +1,16 @@ -tests/cases/compiler/invalidConstraint1.ts(1,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/compiler/invalidConstraint1.ts(4,11): error TS2344: Type '{ a: number; }' does not satisfy the constraint '{ a: string; }'. + Types of property 'a' are incompatible. + Type 'number' is not assignable to type 'string'. ==== tests/cases/compiler/invalidConstraint1.ts (1 errors) ==== function f() { - ~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. return undefined; } f(); // should error + ~~~~~~~~~~~~~ +!!! error TS2344: Type '{ a: number; }' does not satisfy the constraint '{ a: string; }'. +!!! error TS2344: Types of property 'a' are incompatible. +!!! error TS2344: Type 'number' is not assignable to type 'string'. \ No newline at end of file diff --git a/tests/baselines/reference/invalidImportAliasIdentifiers.js b/tests/baselines/reference/invalidImportAliasIdentifiers.js index 2b31f5abebd..312ce2ba3c2 100644 --- a/tests/baselines/reference/invalidImportAliasIdentifiers.js +++ b/tests/baselines/reference/invalidImportAliasIdentifiers.js @@ -31,7 +31,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var E; (function (E) { E[E["Red"] = 0] = "Red"; diff --git a/tests/baselines/reference/invalidInstantiatedModule.js b/tests/baselines/reference/invalidInstantiatedModule.js index 13e46c800ca..65328dc15b5 100644 --- a/tests/baselines/reference/invalidInstantiatedModule.js +++ b/tests/baselines/reference/invalidInstantiatedModule.js @@ -22,7 +22,7 @@ var M; function Point() { } return Point; - })(); + }()); M.Point = Point; M.Point = 1; // Error })(M || (M = {})); diff --git a/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.errors.txt b/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.errors.txt new file mode 100644 index 00000000000..c31b03bae4c --- /dev/null +++ b/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.errors.txt @@ -0,0 +1,22 @@ +tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts(5,13): error TS1005: '=' expected. +tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts(5,20): error TS1005: ',' expected. +tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts(7,1): error TS1005: ';' expected. + + +==== tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts (3 errors) ==== + // This should be an error + // More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements + + var let = 10; + for (let of [1,2,3]) {} + ~ +!!! error TS1005: '=' expected. + ~ +!!! error TS1005: ',' expected. + + for (let in [1,2,3]) {} + ~~~ +!!! error TS1005: ';' expected. + + + \ No newline at end of file diff --git a/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.js b/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.js new file mode 100644 index 00000000000..729cb246a85 --- /dev/null +++ b/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.js @@ -0,0 +1,18 @@ +//// [invalidLetInForOfAndForIn_ES5.ts] +// This should be an error +// More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements + +var let = 10; +for (let of [1,2,3]) {} + +for (let in [1,2,3]) {} + + + + +//// [invalidLetInForOfAndForIn_ES5.js] +// This should be an error +// More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements +var let = 10; +for (let of = [1, 2, 3], { }; ; ) + for ( in [1, 2, 3]) { } diff --git a/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.errors.txt b/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.errors.txt new file mode 100644 index 00000000000..c126e8b7443 --- /dev/null +++ b/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.errors.txt @@ -0,0 +1,22 @@ +tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts(5,13): error TS1005: '=' expected. +tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts(5,20): error TS1005: ',' expected. +tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts(7,1): error TS1005: ';' expected. + + +==== tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts (3 errors) ==== + // This should be an error + // More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements + + var let = 10; + for (let of [1,2,3]) {} + ~ +!!! error TS1005: '=' expected. + ~ +!!! error TS1005: ',' expected. + + for (let in [1,2,3]) {} + ~~~ +!!! error TS1005: ';' expected. + + + \ No newline at end of file diff --git a/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.js b/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.js new file mode 100644 index 00000000000..93258d6b225 --- /dev/null +++ b/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.js @@ -0,0 +1,18 @@ +//// [invalidLetInForOfAndForIn_ES6.ts] +// This should be an error +// More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements + +var let = 10; +for (let of [1,2,3]) {} + +for (let in [1,2,3]) {} + + + + +//// [invalidLetInForOfAndForIn_ES6.js] +// This should be an error +// More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements +var let = 10; +for (let of = [1, 2, 3], { }; ; ) + for ( in [1, 2, 3]) { } diff --git a/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js b/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js index 0b662b56f06..cb3c22b52eb 100644 --- a/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js +++ b/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js @@ -91,14 +91,14 @@ var Y; function A() { } return A; - })(); + }()); var BB = (function (_super) { __extends(BB, _super); function BB() { _super.apply(this, arguments); } return BB; - })(A); + }(A)); })(Y || (Y = {})); var Y2; (function (Y2) { @@ -106,14 +106,14 @@ var Y2; function AA() { } return AA; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(AA); + }(AA)); })(Y2 || (Y2 = {})); var Y3; (function (Y3) { @@ -123,7 +123,7 @@ var Y3; function A() { } return A; - })(); + }()); })(Module || (Module = {})); })(Y3 || (Y3 = {})); var Y4; @@ -140,14 +140,14 @@ var YY; function A() { } return A; - })(); + }()); var BB = (function (_super) { __extends(BB, _super); function BB() { _super.apply(this, arguments); } return BB; - })(A); + }(A)); })(YY || (YY = {})); var YY2; (function (YY2) { @@ -155,14 +155,14 @@ var YY2; function AA() { } return AA; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(AA); + }(AA)); })(YY2 || (YY2 = {})); var YY3; (function (YY3) { @@ -172,7 +172,7 @@ var YY3; function A() { } return A; - })(); + }()); })(Module || (Module = {})); })(YY3 || (YY3 = {})); var YY4; @@ -189,14 +189,14 @@ var YYY; function A() { } return A; - })(); + }()); var BB = (function (_super) { __extends(BB, _super); function BB() { _super.apply(this, arguments); } return BB; - })(A); + }(A)); })(YYY || (YYY = {})); var YYY2; (function (YYY2) { @@ -204,14 +204,14 @@ var YYY2; function AA() { } return AA; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(AA); + }(AA)); })(YYY2 || (YYY2 = {})); var YYY3; (function (YYY3) { @@ -221,7 +221,7 @@ var YYY3; function A() { } return A; - })(); + }()); })(Module || (Module = {})); })(YYY3 || (YYY3 = {})); var YYY4; diff --git a/tests/baselines/reference/invalidMultipleVariableDeclarations.js b/tests/baselines/reference/invalidMultipleVariableDeclarations.js index b239a3dc1dd..0c90c6d0025 100644 --- a/tests/baselines/reference/invalidMultipleVariableDeclarations.js +++ b/tests/baselines/reference/invalidMultipleVariableDeclarations.js @@ -63,19 +63,19 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(C); +}(C)); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } var M; (function (M) { @@ -83,7 +83,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; diff --git a/tests/baselines/reference/invalidNestedModules.js b/tests/baselines/reference/invalidNestedModules.js index bec6491a636..8b532ddd757 100644 --- a/tests/baselines/reference/invalidNestedModules.js +++ b/tests/baselines/reference/invalidNestedModules.js @@ -40,7 +40,7 @@ var A; function Point() { } return Point; - })(); + }()); C.Point = Point; })(C = B.C || (B.C = {})); })(B = A.B || (A.B = {})); @@ -53,7 +53,7 @@ var A; function C() { } return C; - })(); + }()); B.C = C; })(B = A.B || (A.B = {})); })(A || (A = {})); @@ -65,7 +65,7 @@ var M2; function Point() { } return Point; - })(); + }()); X.Point = Point; })(X = M2.X || (M2.X = {})); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/invalidNumberAssignments.js b/tests/baselines/reference/invalidNumberAssignments.js index b381f5b0502..674421b3791 100644 --- a/tests/baselines/reference/invalidNumberAssignments.js +++ b/tests/baselines/reference/invalidNumberAssignments.js @@ -33,7 +33,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var e = x; var f = x; var g = 1; diff --git a/tests/baselines/reference/invalidReferenceSyntax1.js b/tests/baselines/reference/invalidReferenceSyntax1.js index 39ecf8e6ab4..e220c41dd6f 100644 --- a/tests/baselines/reference/invalidReferenceSyntax1.js +++ b/tests/baselines/reference/invalidReferenceSyntax1.js @@ -10,4 +10,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/invalidReturnStatements.js b/tests/baselines/reference/invalidReturnStatements.js index 5fbe8c4dc37..0f5b0d3e08d 100644 --- a/tests/baselines/reference/invalidReturnStatements.js +++ b/tests/baselines/reference/invalidReturnStatements.js @@ -37,13 +37,13 @@ var C = (function () { } C.prototype.dispose = function () { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); function fn10() { return { id: 12 }; } function fn11() { return new C(); } diff --git a/tests/baselines/reference/invalidStaticField.js b/tests/baselines/reference/invalidStaticField.js index 620c019fc18..dc582e830c7 100644 --- a/tests/baselines/reference/invalidStaticField.js +++ b/tests/baselines/reference/invalidStaticField.js @@ -8,10 +8,10 @@ var A = (function () { } A.prototype.foo = function () { return B.NULL; }; return A; -})(); +}()); var B = (function () { function B() { } B.NOT_NULL = new B(); return B; -})(); +}()); diff --git a/tests/baselines/reference/invalidStringAssignments.js b/tests/baselines/reference/invalidStringAssignments.js index 1f746f53e00..ec0d228ed04 100644 --- a/tests/baselines/reference/invalidStringAssignments.js +++ b/tests/baselines/reference/invalidStringAssignments.js @@ -36,7 +36,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var e = x; var f = x; var g = 1; diff --git a/tests/baselines/reference/invalidTypeNames.js b/tests/baselines/reference/invalidTypeNames.js index ddae3e4eeb9..bdb755ac6cb 100644 --- a/tests/baselines/reference/invalidTypeNames.js +++ b/tests/baselines/reference/invalidTypeNames.js @@ -10,4 +10,4 @@ var illegal_name_here = (function () { function illegal_name_here() { } return illegal_name_here; -})(); +}()); diff --git a/tests/baselines/reference/invalidUndefinedAssignments.js b/tests/baselines/reference/invalidUndefinedAssignments.js index dc846900ebb..004c641466c 100644 --- a/tests/baselines/reference/invalidUndefinedAssignments.js +++ b/tests/baselines/reference/invalidUndefinedAssignments.js @@ -33,7 +33,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var f; C = x; var g; diff --git a/tests/baselines/reference/invalidUndefinedValues.js b/tests/baselines/reference/invalidUndefinedValues.js index a0ed1b4f98a..04a8eed6655 100644 --- a/tests/baselines/reference/invalidUndefinedValues.js +++ b/tests/baselines/reference/invalidUndefinedValues.js @@ -43,7 +43,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var b; x = C; x = b; diff --git a/tests/baselines/reference/invalidVoidAssignments.js b/tests/baselines/reference/invalidVoidAssignments.js index 1ce03d1382a..79fd7fe5eac 100644 --- a/tests/baselines/reference/invalidVoidAssignments.js +++ b/tests/baselines/reference/invalidVoidAssignments.js @@ -39,7 +39,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var e = x; var f = x; var g = 1; diff --git a/tests/baselines/reference/invalidVoidValues.js b/tests/baselines/reference/invalidVoidValues.js index 409df03ef37..7844c54f7b6 100644 --- a/tests/baselines/reference/invalidVoidValues.js +++ b/tests/baselines/reference/invalidVoidValues.js @@ -41,7 +41,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; x = a; var b; diff --git a/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments1.js b/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments1.js index 5ac4976398c..01884ae2b08 100644 --- a/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments1.js +++ b/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments1.js @@ -12,4 +12,4 @@ var Foo = (function () { this.foo(); } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments2.js b/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments2.js index 26719b80c81..96a9ec98d66 100644 --- a/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments2.js +++ b/tests/baselines/reference/invokingNonGenericMethodWithTypeArguments2.js @@ -14,4 +14,4 @@ var Foo = (function () { this.foo(); } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/isArray.types b/tests/baselines/reference/isArray.types index bc452b12bef..de54e9d064c 100644 --- a/tests/baselines/reference/isArray.types +++ b/tests/baselines/reference/isArray.types @@ -4,7 +4,7 @@ var maybeArray: number | number[]; if (Array.isArray(maybeArray)) { ->Array.isArray(maybeArray) : boolean +>Array.isArray(maybeArray) : arg is any[] >Array.isArray : (arg: any) => arg is any[] >Array : ArrayConstructor >isArray : (arg: any) => arg is any[] diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds.js b/tests/baselines/reference/isDeclarationVisibleNodeKinds.js index 8604ec493a2..99e1ac72acd 100644 --- a/tests/baselines/reference/isDeclarationVisibleNodeKinds.js +++ b/tests/baselines/reference/isDeclarationVisibleNodeKinds.js @@ -153,7 +153,7 @@ var schema; configurable: true }); return T; - })(); + }()); schema.T = T; })(schema || (schema = {})); diff --git a/tests/baselines/reference/isolatedModulesImportExportElision.js b/tests/baselines/reference/isolatedModulesImportExportElision.js index f5dcb65bc9a..2d391a64fe7 100644 --- a/tests/baselines/reference/isolatedModulesImportExportElision.js +++ b/tests/baselines/reference/isolatedModulesImportExportElision.js @@ -29,7 +29,7 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(module_2.c2.C); +}(module_2.c2.C)); var x = new module_1.c(); var y = ns.value; var module_3 = require("module"); diff --git a/tests/baselines/reference/jsFileCompilationBindDuplicateIdentifier.errors.txt b/tests/baselines/reference/jsFileCompilationBindDuplicateIdentifier.errors.txt new file mode 100644 index 00000000000..2816eaee8b4 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationBindDuplicateIdentifier.errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/a.js(1,5): error TS2300: Duplicate identifier 'a'. +tests/cases/compiler/a.js(2,7): error TS2300: Duplicate identifier 'a'. + + +==== tests/cases/compiler/a.js (2 errors) ==== + var a = 10; + ~ +!!! error TS2300: Duplicate identifier 'a'. + class a { + ~ +!!! error TS2300: Duplicate identifier 'a'. + } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationBindErrors.errors.txt b/tests/baselines/reference/jsFileCompilationBindErrors.errors.txt new file mode 100644 index 00000000000..eeae7053333 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationBindErrors.errors.txt @@ -0,0 +1,27 @@ +tests/cases/compiler/a.js(1,5): error TS2451: Cannot redeclare block-scoped variable 'C'. +tests/cases/compiler/a.js(2,5): error TS2451: Cannot redeclare block-scoped variable 'C'. +tests/cases/compiler/a.js(6,5): error TS7027: Unreachable code detected. +tests/cases/compiler/a.js(11,9): error TS1100: Invalid use of 'arguments' in strict mode. + + +==== tests/cases/compiler/a.js (4 errors) ==== + let C = "sss"; + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'C'. + let C = 0; // Error: Cannot redeclare block-scoped variable 'C'. + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'C'. + + function f() { + return; + return; // Error: Unreachable code detected. + ~~~~~~ +!!! error TS7027: Unreachable code detected. + } + + function b() { + "use strict"; + var arguments = 0; // Error: Invalid use of 'arguments' in strict mode. + ~~~~~~~~~ +!!! error TS1100: Invalid use of 'arguments' in strict mode. + } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationBindErrors.js b/tests/baselines/reference/jsFileCompilationBindErrors.js deleted file mode 100644 index e4b515e2b69..00000000000 --- a/tests/baselines/reference/jsFileCompilationBindErrors.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [a.js] -let C = "sss"; -let C = 0; // Error: Cannot redeclare block-scoped variable 'C'. - -function f() { - return; - return; // Error: Unreachable code detected. -} - -function b() { - "use strict"; - var arguments = 0; // Error: Invalid use of 'arguments' in strict mode. -} - -//// [a.js] -var C = "sss"; -var C = 0; // Error: Cannot redeclare block-scoped variable 'C'. -function f() { - return; - return; // Error: Unreachable code detected. -} -function b() { - "use strict"; - var arguments = 0; // Error: Invalid use of 'arguments' in strict mode. -} diff --git a/tests/baselines/reference/jsFileCompilationBindErrors.symbols b/tests/baselines/reference/jsFileCompilationBindErrors.symbols deleted file mode 100644 index 6ad06da1df6..00000000000 --- a/tests/baselines/reference/jsFileCompilationBindErrors.symbols +++ /dev/null @@ -1,21 +0,0 @@ -=== tests/cases/compiler/a.js === -let C = "sss"; ->C : Symbol(C, Decl(a.js, 0, 3)) - -let C = 0; // Error: Cannot redeclare block-scoped variable 'C'. ->C : Symbol(C, Decl(a.js, 1, 3)) - -function f() { ->f : Symbol(f, Decl(a.js, 1, 10)) - - return; - return; // Error: Unreachable code detected. -} - -function b() { ->b : Symbol(b, Decl(a.js, 6, 1)) - - "use strict"; - var arguments = 0; // Error: Invalid use of 'arguments' in strict mode. ->arguments : Symbol(arguments, Decl(a.js, 10, 7)) -} diff --git a/tests/baselines/reference/jsFileCompilationBindErrors.types b/tests/baselines/reference/jsFileCompilationBindErrors.types deleted file mode 100644 index 113bcd08bc9..00000000000 --- a/tests/baselines/reference/jsFileCompilationBindErrors.types +++ /dev/null @@ -1,26 +0,0 @@ -=== tests/cases/compiler/a.js === -let C = "sss"; ->C : string ->"sss" : string - -let C = 0; // Error: Cannot redeclare block-scoped variable 'C'. ->C : number ->0 : number - -function f() { ->f : () => void - - return; - return; // Error: Unreachable code detected. -} - -function b() { ->b : () => void - - "use strict"; ->"use strict" : string - - var arguments = 0; // Error: Invalid use of 'arguments' in strict mode. ->arguments : number ->0 : number -} diff --git a/tests/baselines/reference/jsFileCompilationBindMultipleDefaultExports.errors.txt b/tests/baselines/reference/jsFileCompilationBindMultipleDefaultExports.errors.txt new file mode 100644 index 00000000000..733f66922ab --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationBindMultipleDefaultExports.errors.txt @@ -0,0 +1,18 @@ +tests/cases/compiler/a.js(1,22): error TS2528: A module cannot have multiple default exports. +tests/cases/compiler/a.js(3,1): error TS2528: A module cannot have multiple default exports. +tests/cases/compiler/a.js(3,1): error TS8003: 'export=' can only be used in a .ts file. +tests/cases/compiler/a.js(3,16): error TS1109: Expression expected. + + +==== tests/cases/compiler/a.js (4 errors) ==== + export default class a { + ~ +!!! error TS2528: A module cannot have multiple default exports. + } + export default var a = 10; + ~~~~~~~~~~~~~~ +!!! error TS2528: A module cannot have multiple default exports. + ~~~~~~~~~~~~~~ +!!! error TS8003: 'export=' can only be used in a .ts file. + ~~~ +!!! error TS1109: Expression expected. \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationBindReachabilityErrors.errors.txt b/tests/baselines/reference/jsFileCompilationBindReachabilityErrors.errors.txt new file mode 100644 index 00000000000..a883e66e607 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationBindReachabilityErrors.errors.txt @@ -0,0 +1,31 @@ +tests/cases/compiler/a.js(3,9): error TS7029: Fallthrough case in switch. +tests/cases/compiler/a.js(16,5): error TS7027: Unreachable code detected. +tests/cases/compiler/a.js(19,1): error TS7028: Unused label. + + +==== tests/cases/compiler/a.js (3 errors) ==== + function foo(a, b) { + switch (a) { + case 10: + ~~~~ +!!! error TS7029: Fallthrough case in switch. + if (b) { + return b; + } + case 20: + return a; + } + } + + function bar() { + return x; + function bar2() { + } + var x = 10; // error + ~~~ +!!! error TS7027: Unreachable code detected. + } + + label1: var x2 = 10; + ~~~~~~ +!!! error TS7028: Unused label. \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationBindStrictModeErrors.errors.txt b/tests/baselines/reference/jsFileCompilationBindStrictModeErrors.errors.txt new file mode 100644 index 00000000000..65dffb5a08e --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationBindStrictModeErrors.errors.txt @@ -0,0 +1,81 @@ +tests/cases/compiler/a.js(3,5): error TS2300: Duplicate identifier 'a'. +tests/cases/compiler/a.js(5,5): error TS1117: An object literal cannot have multiple properties with the same name in strict mode. +tests/cases/compiler/a.js(5,5): error TS2300: Duplicate identifier 'a'. +tests/cases/compiler/a.js(7,5): error TS1212: Identifier expected. 'let' is a reserved word in strict mode +tests/cases/compiler/a.js(8,8): error TS1102: 'delete' cannot be called on an identifier in strict mode. +tests/cases/compiler/a.js(10,10): error TS1100: Invalid use of 'eval' in strict mode. +tests/cases/compiler/a.js(12,10): error TS1100: Invalid use of 'arguments' in strict mode. +tests/cases/compiler/a.js(15,1): error TS1101: 'with' statements are not allowed in strict mode. +tests/cases/compiler/b.js(3,7): error TS1210: Invalid use of 'eval'. Class definitions are automatically in strict mode. +tests/cases/compiler/b.js(6,13): error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/c.js(1,12): error TS1214: Identifier expected. 'let' is a reserved word in strict mode. Modules are automatically in strict mode. +tests/cases/compiler/c.js(2,5): error TS1215: Invalid use of 'eval'. Modules are automatically in strict mode. +tests/cases/compiler/d.js(2,9): error TS1121: Octal literals are not allowed in strict mode. +tests/cases/compiler/d.js(2,11): error TS1005: ',' expected. + + +==== tests/cases/compiler/a.js (8 errors) ==== + "use strict"; + var a = { + a: "hello", // error + ~ +!!! error TS2300: Duplicate identifier 'a'. + b: 10, + a: 10 // error + ~ +!!! error TS1117: An object literal cannot have multiple properties with the same name in strict mode. + ~ +!!! error TS2300: Duplicate identifier 'a'. + }; + var let = 10; // error + ~~~ +!!! error TS1212: Identifier expected. 'let' is a reserved word in strict mode + delete a; // error + ~ +!!! error TS1102: 'delete' cannot be called on an identifier in strict mode. + try { + } catch (eval) { // error + ~~~~ +!!! error TS1100: Invalid use of 'eval' in strict mode. + } + function arguments() { // error + ~~~~~~~~~ +!!! error TS1100: Invalid use of 'arguments' in strict mode. + } + + with (a) { + ~~~~ +!!! error TS1101: 'with' statements are not allowed in strict mode. + b = 10; + } + +==== tests/cases/compiler/b.js (2 errors) ==== + // this is not in strict mode but class definitions are always in strict mode + class c { + a(eval) { //error + ~~~~ +!!! error TS1210: Invalid use of 'eval'. Class definitions are automatically in strict mode. + } + method() { + var let = 10; // error + ~~~ +!!! error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. + } + } + +==== tests/cases/compiler/c.js (2 errors) ==== + export var let = 10; // external modules are automatically in strict mode + ~~~ +!!! error TS1214: Identifier expected. 'let' is a reserved word in strict mode. Modules are automatically in strict mode. + var eval = function () { + ~~~~ +!!! error TS1215: Invalid use of 'eval'. Modules are automatically in strict mode. + }; + +==== tests/cases/compiler/d.js (2 errors) ==== + "use strict"; + var x = 009; // error + ~~ +!!! error TS1121: Octal literals are not allowed in strict mode. + ~ +!!! error TS1005: ',' expected. \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js index 836b39380ea..32b10dafad3 100644 --- a/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js +++ b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js @@ -15,4 +15,4 @@ var c = (function () { var x = function (a) { return _this.method(a); }; }; return c; -})(); +}()); diff --git a/tests/baselines/reference/jsFileCompilationEmitBlockedCorrectly.js b/tests/baselines/reference/jsFileCompilationEmitBlockedCorrectly.js index ea9c9f62b8d..e1052c14bbc 100644 --- a/tests/baselines/reference/jsFileCompilationEmitBlockedCorrectly.js +++ b/tests/baselines/reference/jsFileCompilationEmitBlockedCorrectly.js @@ -20,4 +20,4 @@ var d = (function () { function d() { } return d; -})(); +}()); diff --git a/tests/baselines/reference/jsFileCompilationEmitDeclarations.js b/tests/baselines/reference/jsFileCompilationEmitDeclarations.js index d45ae325b0a..5ed349ded42 100644 --- a/tests/baselines/reference/jsFileCompilationEmitDeclarations.js +++ b/tests/baselines/reference/jsFileCompilationEmitDeclarations.js @@ -14,7 +14,7 @@ var c = (function () { function c() { } return c; -})(); +}()); function foo() { } diff --git a/tests/baselines/reference/jsFileCompilationEmitTrippleSlashReference.js b/tests/baselines/reference/jsFileCompilationEmitTrippleSlashReference.js index 2d7d2743805..73fd2aab6e1 100644 --- a/tests/baselines/reference/jsFileCompilationEmitTrippleSlashReference.js +++ b/tests/baselines/reference/jsFileCompilationEmitTrippleSlashReference.js @@ -18,7 +18,7 @@ var c = (function () { function c() { } return c; -})(); +}()); function bar() { } /// diff --git a/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithNoOut.js b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithNoOut.js index cf2caab3600..22ca88de330 100644 --- a/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithNoOut.js +++ b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithNoOut.js @@ -19,7 +19,7 @@ var c = (function () { function c() { } return c; -})(); +}()); //// [b.js] /// // b.d.ts should have c.js as the reference path since we dont emit declarations for js files diff --git a/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.js b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.js index 67989f3e3e7..ba7eacd905b 100644 --- a/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.js +++ b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOut.js @@ -19,7 +19,7 @@ var c = (function () { function c() { } return c; -})(); +}()); function bar() { } /// diff --git a/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOutDir.js b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOutDir.js index afed8cd42e3..5856e124148 100644 --- a/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOutDir.js +++ b/tests/baselines/reference/jsFileCompilationErrorOnDeclarationsWithJsFileReferenceWithOutDir.js @@ -19,7 +19,7 @@ var c = (function () { function c() { } return c; -})(); +}()); //// [c.js] function bar() { } diff --git a/tests/baselines/reference/jsFileCompilationExportAssignmentSyntax.errors.txt b/tests/baselines/reference/jsFileCompilationExportAssignmentSyntax.errors.txt index f537941c55c..7e67c6325e0 100644 --- a/tests/baselines/reference/jsFileCompilationExportAssignmentSyntax.errors.txt +++ b/tests/baselines/reference/jsFileCompilationExportAssignmentSyntax.errors.txt @@ -1,9 +1,12 @@ error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. +tests/cases/compiler/a.js(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/a.js(1,1): error TS8003: 'export=' can only be used in a .ts file. !!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. -==== tests/cases/compiler/a.js (1 errors) ==== +==== tests/cases/compiler/a.js (2 errors) ==== export = b; ~~~~~~~~~~~ +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. + ~~~~~~~~~~~ !!! error TS8003: 'export=' can only be used in a .ts file. \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationExternalPackageError.errors.txt b/tests/baselines/reference/jsFileCompilationExternalPackageError.errors.txt new file mode 100644 index 00000000000..58111c777f1 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationExternalPackageError.errors.txt @@ -0,0 +1,19 @@ +tests/cases/compiler/moduleA/a.js(2,17): error TS2656: Exported external package typings file 'tests/cases/compiler/node_modules/b.ts' is not a module. Please contact the package author to update the package definition. + + +==== tests/cases/compiler/moduleA/a.js (1 errors) ==== + + import {a} from "b"; + ~~~ +!!! error TS2656: Exported external package typings file 'b.ts' is not a module. Please contact the package author to update the package definition. + a++; + import {c} from "c"; + c++; + +==== tests/cases/compiler/node_modules/b.ts (0 errors) ==== + var a = 10; + +==== tests/cases/compiler/node_modules/c.js (0 errors) ==== + exports.a = 10; + c = 10; + \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithNoOut.js b/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithNoOut.js index 2d844207986..43831985e2a 100644 --- a/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithNoOut.js +++ b/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithNoOut.js @@ -19,7 +19,7 @@ var c = (function () { function c() { } return c; -})(); +}()); //// [b.js] /// // no error on above reference path since not emitting declarations diff --git a/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.js b/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.js index fae4936b6c9..f60aefd9ae4 100644 --- a/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.js +++ b/tests/baselines/reference/jsFileCompilationNoErrorWithoutDeclarationsWithJsFileReferenceWithOut.js @@ -19,7 +19,7 @@ var c = (function () { function c() { } return c; -})(); +}()); function bar() { } /// diff --git a/tests/baselines/reference/jsFileCompilationWithDeclarationEmitPathSameAsInput.js b/tests/baselines/reference/jsFileCompilationWithDeclarationEmitPathSameAsInput.js index a7ba8b49985..cc41c5b4140 100644 --- a/tests/baselines/reference/jsFileCompilationWithDeclarationEmitPathSameAsInput.js +++ b/tests/baselines/reference/jsFileCompilationWithDeclarationEmitPathSameAsInput.js @@ -12,4 +12,4 @@ var c = (function () { function c() { } return c; -})(); +}()); diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js b/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js index a5351de087c..8e70b464c2f 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js @@ -18,5 +18,5 @@ var c = (function () { function c() { } return c; -})(); +}()); //# sourceMappingURL=a.js.map \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js.map b/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js.map index 8692bc0bab3..d56cd75b1c2 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js.map +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.js.map @@ -1,2 +1,2 @@ //// [a.js.map] -{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":["c","c.constructor"],"mappings":"AACA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AACA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.sourcemap.txt b/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.sourcemap.txt index bba59e2b178..d8c66a888b3 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.sourcemap.txt +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJs.sourcemap.txt @@ -19,7 +19,7 @@ sourceFile:a.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) name (c) +1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -28,18 +28,18 @@ sourceFile:a.ts 1->class c { > 2 > } -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c.constructor) -2 >Emitted(3, 6) Source(3, 2) + SourceIndex(0) name (c.constructor) +1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(3, 2) + SourceIndex(0) --- >>> return c; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c) -2 >Emitted(4, 13) Source(3, 2) + SourceIndex(0) name (c) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(3, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -50,8 +50,8 @@ sourceFile:a.ts 3 > 4 > class c { > } -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(0) name (c) -2 >Emitted(5, 2) Source(3, 2) + SourceIndex(0) name (c) +1 >Emitted(5, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(3, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(3, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.js b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.js index e89e5d61e42..c23d44b9cb8 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.js +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.js @@ -18,5 +18,5 @@ var c = (function () { function c() { } return c; -})(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOlsiYyIsImMuY29uc3RydWN0b3IiXSwibWFwcGluZ3MiOiJBQUNBO0lBQUFBO0lBQ0FDLENBQUNBO0lBQURELFFBQUNBO0FBQURBLENBQUNBLEFBREQsSUFDQyJ9 \ No newline at end of file +}()); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7SUFBQTtJQUNBLENBQUM7SUFBRCxRQUFDO0FBQUQsQ0FBQyxBQURELElBQ0MifQ== \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.sourcemap.txt b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.sourcemap.txt index ed64295bcb8..c7cb8afe696 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.sourcemap.txt +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithInlineSourceMap.sourcemap.txt @@ -1,6 +1,6 @@ =================================================================== JsFile: a.js -mapUrl: data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOlsiYyIsImMuY29uc3RydWN0b3IiXSwibWFwcGluZ3MiOiJBQUNBO0lBQUFBO0lBQ0FDLENBQUNBO0lBQURELFFBQUNBO0FBQURBLENBQUNBLEFBREQsSUFDQyJ9 +mapUrl: data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7SUFBQTtJQUNBLENBQUM7SUFBRCxRQUFDO0FBQUQsQ0FBQyxBQURELElBQ0MifQ== sourceRoot: sources: a.ts =================================================================== @@ -19,7 +19,7 @@ sourceFile:a.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) name (c) +1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -28,31 +28,31 @@ sourceFile:a.ts 1->class c { > 2 > } -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c.constructor) -2 >Emitted(3, 6) Source(3, 2) + SourceIndex(0) name (c.constructor) +1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(3, 2) + SourceIndex(0) --- >>> return c; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c) -2 >Emitted(4, 13) Source(3, 2) + SourceIndex(0) name (c) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(3, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > 4 > class c { > } -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(0) name (c) -2 >Emitted(5, 2) Source(3, 2) + SourceIndex(0) name (c) +1 >Emitted(5, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(3, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(3, 2) + SourceIndex(0) --- ->>>//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOlsiYyIsImMuY29uc3RydWN0b3IiXSwibWFwcGluZ3MiOiJBQUNBO0lBQUFBO0lBQ0FDLENBQUNBO0lBQURELFFBQUNBO0FBQURBLENBQUNBLEFBREQsSUFDQyJ9 \ No newline at end of file +>>>//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7SUFBQTtJQUNBLENBQUM7SUFBRCxRQUFDO0FBQUQsQ0FBQyxBQURELElBQ0MifQ== \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js index 742e7af2799..b6c7efa9478 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js @@ -18,5 +18,5 @@ var c = (function () { function c() { } return c; -})(); +}()); //# sourceMappingURL=a.js.map \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js.map b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js.map index 9a3b0f30f85..4b90f5d778c 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js.map +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.js.map @@ -1,2 +1,2 @@ //// [a.js.map] -{"version":3,"file":"a.js","sourceRoot":"","sources":["../tests/cases/compiler/a.ts"],"names":["c","c.constructor"],"mappings":"AACA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"a.js","sourceRoot":"","sources":["../tests/cases/compiler/a.ts"],"names":[],"mappings":"AACA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.sourcemap.txt b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.sourcemap.txt index 32a123d434d..5c37dd75409 100644 --- a/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.sourcemap.txt +++ b/tests/baselines/reference/jsFileCompilationWithMapFileAsJsWithOutDir.sourcemap.txt @@ -19,7 +19,7 @@ sourceFile:../tests/cases/compiler/a.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) name (c) +1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -28,18 +28,18 @@ sourceFile:../tests/cases/compiler/a.ts 1->class c { > 2 > } -1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) name (c.constructor) -2 >Emitted(3, 6) Source(3, 2) + SourceIndex(0) name (c.constructor) +1->Emitted(3, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(3, 2) + SourceIndex(0) --- >>> return c; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c) -2 >Emitted(4, 13) Source(3, 2) + SourceIndex(0) name (c) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(3, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -50,8 +50,8 @@ sourceFile:../tests/cases/compiler/a.ts 3 > 4 > class c { > } -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(0) name (c) -2 >Emitted(5, 2) Source(3, 2) + SourceIndex(0) name (c) +1 >Emitted(5, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(3, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(3, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/jsFileCompilationWithOut.js b/tests/baselines/reference/jsFileCompilationWithOut.js index 32d0261061f..0ee9f08ebd4 100644 --- a/tests/baselines/reference/jsFileCompilationWithOut.js +++ b/tests/baselines/reference/jsFileCompilationWithOut.js @@ -14,6 +14,6 @@ var c = (function () { function c() { } return c; -})(); +}()); function foo() { } diff --git a/tests/baselines/reference/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.js b/tests/baselines/reference/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.js index d3b2f788d66..f87ce797d66 100644 --- a/tests/baselines/reference/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.js +++ b/tests/baselines/reference/jsFileCompilationWithOutDeclarationFileNameSameAsInputJsFile.js @@ -12,4 +12,4 @@ var c = (function () { function c() { } return c; -})(); +}()); diff --git a/tests/baselines/reference/jsFileCompilationWithoutOut.js b/tests/baselines/reference/jsFileCompilationWithoutOut.js index 4a60c54c3ab..5bed8b3a8bb 100644 --- a/tests/baselines/reference/jsFileCompilationWithoutOut.js +++ b/tests/baselines/reference/jsFileCompilationWithoutOut.js @@ -14,4 +14,4 @@ var c = (function () { function c() { } return c; -})(); +}()); diff --git a/tests/baselines/reference/jsxAndTypeAssertion.js b/tests/baselines/reference/jsxAndTypeAssertion.js index 0a493006dc6..f3a1b5ecbff 100644 --- a/tests/baselines/reference/jsxAndTypeAssertion.js +++ b/tests/baselines/reference/jsxAndTypeAssertion.js @@ -27,7 +27,7 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); var x; x = {test} }; diff --git a/tests/baselines/reference/jsxParsingError1.errors.txt b/tests/baselines/reference/jsxParsingError1.errors.txt new file mode 100644 index 00000000000..e769947dfa6 --- /dev/null +++ b/tests/baselines/reference/jsxParsingError1.errors.txt @@ -0,0 +1,25 @@ +tests/cases/conformance/jsx/file.tsx(12,36): error TS1005: '}' expected. +tests/cases/conformance/jsx/file.tsx(12,44): error TS1003: Identifier expected. +tests/cases/conformance/jsx/file.tsx(12,46): error TS1161: Unterminated regular expression literal. + + +==== tests/cases/conformance/jsx/file.tsx (3 errors) ==== + + declare module JSX { + interface Element { } + interface IntrinsicElements { + [s: string]: any; + } + } + + // This should be a parse error + const class1 = "foo"; + const class2 = "bar"; + const elem =

; + ~ +!!! error TS1005: '}' expected. + ~ +!!! error TS1003: Identifier expected. + +!!! error TS1161: Unterminated regular expression literal. + \ No newline at end of file diff --git a/tests/baselines/reference/jsxParsingError1.js b/tests/baselines/reference/jsxParsingError1.js new file mode 100644 index 00000000000..14b60afdde8 --- /dev/null +++ b/tests/baselines/reference/jsxParsingError1.js @@ -0,0 +1,21 @@ +//// [file.tsx] + +declare module JSX { + interface Element { } + interface IntrinsicElements { + [s: string]: any; + } +} + +// This should be a parse error +const class1 = "foo"; +const class2 = "bar"; +const elem =
; + + +//// [file.jsx] +// This should be a parse error +var class1 = "foo"; +var class2 = "bar"; +var elem =
; +/>;; diff --git a/tests/baselines/reference/jsxViaImport.js b/tests/baselines/reference/jsxViaImport.js index c980dc256c6..ba8efc9e7ab 100644 --- a/tests/baselines/reference/jsxViaImport.js +++ b/tests/baselines/reference/jsxViaImport.js @@ -41,4 +41,4 @@ var TestComponent = (function (_super) { return ; }; return TestComponent; -})(React.Component); +}(React.Component)); diff --git a/tests/baselines/reference/lambdaArgCrash.js b/tests/baselines/reference/lambdaArgCrash.js index 5616b5d525f..822aa71efd0 100644 --- a/tests/baselines/reference/lambdaArgCrash.js +++ b/tests/baselines/reference/lambdaArgCrash.js @@ -52,7 +52,7 @@ var Event = (function () { this._listeners.push(listener); }; return Event; -})(); +}()); var ItemSetEvent = (function (_super) { __extends(ItemSetEvent, _super); function ItemSetEvent() { @@ -62,4 +62,4 @@ var ItemSetEvent = (function (_super) { _super.prototype.add.call(this, listener); }; return ItemSetEvent; -})(Event); +}(Event)); diff --git a/tests/baselines/reference/lambdaPropSelf.js b/tests/baselines/reference/lambdaPropSelf.js index 8d1b16e1431..5e19726f794 100644 --- a/tests/baselines/reference/lambdaPropSelf.js +++ b/tests/baselines/reference/lambdaPropSelf.js @@ -32,7 +32,7 @@ var Person = (function () { this.children = ko.observableArray(children); } return Person; -})(); +}()); var T = (function () { function T() { } @@ -40,7 +40,7 @@ var T = (function () { var x = this; }; return T; -})(); +}()); var M; (function (M) { var x = this; diff --git a/tests/baselines/reference/letAsIdentifier2.js b/tests/baselines/reference/letAsIdentifier2.js new file mode 100644 index 00000000000..62c8461bfc8 --- /dev/null +++ b/tests/baselines/reference/letAsIdentifier2.js @@ -0,0 +1,6 @@ +//// [letAsIdentifier2.ts] + +function let() {} + +//// [letAsIdentifier2.js] +function let() { } diff --git a/tests/baselines/reference/letAsIdentifier2.symbols b/tests/baselines/reference/letAsIdentifier2.symbols new file mode 100644 index 00000000000..211aae05316 --- /dev/null +++ b/tests/baselines/reference/letAsIdentifier2.symbols @@ -0,0 +1,5 @@ +=== tests/cases/compiler/letAsIdentifier2.ts === + +function let() {} +>let : Symbol(let, Decl(letAsIdentifier2.ts, 0, 0)) + diff --git a/tests/baselines/reference/letAsIdentifier2.types b/tests/baselines/reference/letAsIdentifier2.types new file mode 100644 index 00000000000..dc1416fdae9 --- /dev/null +++ b/tests/baselines/reference/letAsIdentifier2.types @@ -0,0 +1,5 @@ +=== tests/cases/compiler/letAsIdentifier2.ts === + +function let() {} +>let : () => void + diff --git a/tests/baselines/reference/letInConstDeclarations_ES5.errors.txt b/tests/baselines/reference/letInConstDeclarations_ES5.errors.txt new file mode 100644 index 00000000000..8b694c35dbb --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES5.errors.txt @@ -0,0 +1,16 @@ +tests/cases/compiler/letInConstDeclarations_ES5.ts(3,15): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInConstDeclarations_ES5.ts(6,19): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== tests/cases/compiler/letInConstDeclarations_ES5.ts (2 errors) ==== + + // All use of let in const declaration should be an error + const x = 50, let = 5; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + const x = 10, let = 20; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/letInConstDeclarations_ES5.js b/tests/baselines/reference/letInConstDeclarations_ES5.js new file mode 100644 index 00000000000..f76d49765f0 --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES5.js @@ -0,0 +1,15 @@ +//// [letInConstDeclarations_ES5.ts] + +// All use of let in const declaration should be an error +const x = 50, let = 5; + +{ + const x = 10, let = 20; +} + +//// [letInConstDeclarations_ES5.js] +// All use of let in const declaration should be an error +var x = 50, let = 5; +{ + var x_1 = 10, let_1 = 20; +} diff --git a/tests/baselines/reference/letInConstDeclarations_ES6.errors.txt b/tests/baselines/reference/letInConstDeclarations_ES6.errors.txt new file mode 100644 index 00000000000..d29f78be014 --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES6.errors.txt @@ -0,0 +1,16 @@ +tests/cases/compiler/letInConstDeclarations_ES6.ts(3,15): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInConstDeclarations_ES6.ts(6,19): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== tests/cases/compiler/letInConstDeclarations_ES6.ts (2 errors) ==== + + // All use of let in const declaration should be an error + const x = 50, let = 5; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + const x = 10, let = 20; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/letInConstDeclarations_ES6.js b/tests/baselines/reference/letInConstDeclarations_ES6.js new file mode 100644 index 00000000000..f209ef1dede --- /dev/null +++ b/tests/baselines/reference/letInConstDeclarations_ES6.js @@ -0,0 +1,15 @@ +//// [letInConstDeclarations_ES6.ts] + +// All use of let in const declaration should be an error +const x = 50, let = 5; + +{ + const x = 10, let = 20; +} + +//// [letInConstDeclarations_ES6.js] +// All use of let in const declaration should be an error +const x = 50, let = 5; +{ + const x = 10, let = 20; +} diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.errors.txt b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.errors.txt new file mode 100644 index 00000000000..e335a9652f4 --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.errors.txt @@ -0,0 +1,48 @@ +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(3,10): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(5,12): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(7,10): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(9,12): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(12,11): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(14,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(16,11): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts(18,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts (8 errors) ==== + + // Should be an error + for (let let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (let let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + for (let let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (let let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } + + \ No newline at end of file diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.js b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.js new file mode 100644 index 00000000000..4c467176492 --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES5.js @@ -0,0 +1,43 @@ +//// [letInLetConstDeclOfForOfAndForIn_ES5.ts] + +// Should be an error +for (let let of [1,2,3]) {} + +for (const let of [1,2,3]) {} + +for (let let in [1,2,3]) {} + +for (const let in [1,2,3]) {} + +{ + for (let let of [1,2,3]) {} + + for (const let of [1,2,3]) {} + + for (let let in [1,2,3]) {} + + for (const let in [1,2,3]) {} +} + + + +//// [letInLetConstDeclOfForOfAndForIn_ES5.js] +// Should be an error +for (var _i = 0, _a = [1, 2, 3]; _i < _a.length; _i++) { + var let = _a[_i]; +} +for (var _b = 0, _c = [1, 2, 3]; _b < _c.length; _b++) { + var let = _c[_b]; +} +for (var let in [1, 2, 3]) { } +for (var let in [1, 2, 3]) { } +{ + for (var _d = 0, _e = [1, 2, 3]; _d < _e.length; _d++) { + var let = _e[_d]; + } + for (var _f = 0, _g = [1, 2, 3]; _f < _g.length; _f++) { + var let = _g[_f]; + } + for (var let in [1, 2, 3]) { } + for (var let in [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES6.errors.txt b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES6.errors.txt new file mode 100644 index 00000000000..1a5af892b74 --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES6.errors.txt @@ -0,0 +1,48 @@ +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(3,10): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(5,12): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(7,10): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(9,12): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(12,11): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(14,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(16,11): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts(18,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts (8 errors) ==== + + // Should be an error + for (let let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (let let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + for (let let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let of [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (let let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + for (const let in [1,2,3]) {} + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } + + \ No newline at end of file diff --git a/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES6.js b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES6.js new file mode 100644 index 00000000000..583dc936871 --- /dev/null +++ b/tests/baselines/reference/letInLetConstDeclOfForOfAndForIn_ES6.js @@ -0,0 +1,35 @@ +//// [letInLetConstDeclOfForOfAndForIn_ES6.ts] + +// Should be an error +for (let let of [1,2,3]) {} + +for (const let of [1,2,3]) {} + +for (let let in [1,2,3]) {} + +for (const let in [1,2,3]) {} + +{ + for (let let of [1,2,3]) {} + + for (const let of [1,2,3]) {} + + for (let let in [1,2,3]) {} + + for (const let in [1,2,3]) {} +} + + + +//// [letInLetConstDeclOfForOfAndForIn_ES6.js] +// Should be an error +for (let let of [1, 2, 3]) { } +for (const let of [1, 2, 3]) { } +for (let let in [1, 2, 3]) { } +for (const let in [1, 2, 3]) { } +{ + for (let let of [1, 2, 3]) { } + for (const let of [1, 2, 3]) { } + for (let let in [1, 2, 3]) { } + for (const let in [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInLetDeclarations_ES5.errors.txt b/tests/baselines/reference/letInLetDeclarations_ES5.errors.txt new file mode 100644 index 00000000000..73f824dd7de --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES5.errors.txt @@ -0,0 +1,16 @@ +tests/cases/compiler/letInLetDeclarations_ES5.ts(3,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetDeclarations_ES5.ts(6,17): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== tests/cases/compiler/letInLetDeclarations_ES5.ts (2 errors) ==== + + // All use of let in const declaration should be an error + let x = 50, let = 5; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + let x = 10, let = 20; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/letInLetDeclarations_ES5.js b/tests/baselines/reference/letInLetDeclarations_ES5.js new file mode 100644 index 00000000000..0b7f02150a4 --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES5.js @@ -0,0 +1,15 @@ +//// [letInLetDeclarations_ES5.ts] + +// All use of let in const declaration should be an error +let x = 50, let = 5; + +{ + let x = 10, let = 20; +} + +//// [letInLetDeclarations_ES5.js] +// All use of let in const declaration should be an error +var x = 50, let = 5; +{ + var x_1 = 10, let_1 = 20; +} diff --git a/tests/baselines/reference/letInLetDeclarations_ES6.errors.txt b/tests/baselines/reference/letInLetDeclarations_ES6.errors.txt new file mode 100644 index 00000000000..0fe1aa882e9 --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES6.errors.txt @@ -0,0 +1,16 @@ +tests/cases/compiler/letInLetDeclarations_ES6.ts(3,13): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. +tests/cases/compiler/letInLetDeclarations_ES6.ts(6,17): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + +==== tests/cases/compiler/letInLetDeclarations_ES6.ts (2 errors) ==== + + // All use of let in const declaration should be an error + let x = 50, let = 5; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + + { + let x = 10, let = 20; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. + } \ No newline at end of file diff --git a/tests/baselines/reference/letInLetDeclarations_ES6.js b/tests/baselines/reference/letInLetDeclarations_ES6.js new file mode 100644 index 00000000000..7c4385cd4d9 --- /dev/null +++ b/tests/baselines/reference/letInLetDeclarations_ES6.js @@ -0,0 +1,15 @@ +//// [letInLetDeclarations_ES6.ts] + +// All use of let in const declaration should be an error +let x = 50, let = 5; + +{ + let x = 10, let = 20; +} + +//// [letInLetDeclarations_ES6.js] +// All use of let in const declaration should be an error +let x = 50, let = 5; +{ + let x = 10, let = 20; +} diff --git a/tests/baselines/reference/letInLetOrConstDeclarations.errors.txt b/tests/baselines/reference/letInLetOrConstDeclarations.errors.txt deleted file mode 100644 index fbcee276583..00000000000 --- a/tests/baselines/reference/letInLetOrConstDeclarations.errors.txt +++ /dev/null @@ -1,23 +0,0 @@ -tests/cases/compiler/letInLetOrConstDeclarations.ts(2,9): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. -tests/cases/compiler/letInLetOrConstDeclarations.ts(3,14): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. -tests/cases/compiler/letInLetOrConstDeclarations.ts(6,11): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. - - -==== tests/cases/compiler/letInLetOrConstDeclarations.ts (3 errors) ==== - { - let let = 1; // should error - ~~~ -!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. - for (let let in []) { } // should error - ~~~ -!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. - } - { - const let = 1; // should error - ~~~ -!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. - } - { - function let() { // should be ok - } - } \ No newline at end of file diff --git a/tests/baselines/reference/letInLetOrConstDeclarations.js b/tests/baselines/reference/letInLetOrConstDeclarations.js deleted file mode 100644 index ee23abc4e4f..00000000000 --- a/tests/baselines/reference/letInLetOrConstDeclarations.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [letInLetOrConstDeclarations.ts] -{ - let let = 1; // should error - for (let let in []) { } // should error -} -{ - const let = 1; // should error -} -{ - function let() { // should be ok - } -} - -//// [letInLetOrConstDeclarations.js] -{ - let let = 1; // should error - for (let let in []) { } // should error -} -{ - const let = 1; // should error -} -{ - function let() { - } -} diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5.js b/tests/baselines/reference/letInVarDeclOfForIn_ES5.js new file mode 100644 index 00000000000..2cef7610199 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES5.js @@ -0,0 +1,16 @@ +//// [letInVarDeclOfForIn_ES5.ts] + +// should not be an error +for (var let in [1,2,3]) {} + +{ + for (var let in [1,2,3]) {} +} + + +//// [letInVarDeclOfForIn_ES5.js] +// should not be an error +for (var let in [1, 2, 3]) { } +{ + for (var let in [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5.symbols b/tests/baselines/reference/letInVarDeclOfForIn_ES5.symbols new file mode 100644 index 00000000000..cbfd0f58086 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES5.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/letInVarDeclOfForIn_ES5.ts === + +// should not be an error +for (var let in [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForIn_ES5.ts, 2, 8), Decl(letInVarDeclOfForIn_ES5.ts, 5, 9)) + +{ + for (var let in [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForIn_ES5.ts, 2, 8), Decl(letInVarDeclOfForIn_ES5.ts, 5, 9)) +} + diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES5.types b/tests/baselines/reference/letInVarDeclOfForIn_ES5.types new file mode 100644 index 00000000000..ac1ca3f27c9 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES5.types @@ -0,0 +1,19 @@ +=== tests/cases/compiler/letInVarDeclOfForIn_ES5.ts === + +// should not be an error +for (var let in [1,2,3]) {} +>let : any +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number + +{ + for (var let in [1,2,3]) {} +>let : any +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number +} + diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES6.js b/tests/baselines/reference/letInVarDeclOfForIn_ES6.js new file mode 100644 index 00000000000..1cf6850f588 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES6.js @@ -0,0 +1,16 @@ +//// [letInVarDeclOfForIn_ES6.ts] + +// should not be an error +for (var let in [1,2,3]) {} + +{ + for (var let in [1,2,3]) {} +} + + +//// [letInVarDeclOfForIn_ES6.js] +// should not be an error +for (var let in [1, 2, 3]) { } +{ + for (var let in [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES6.symbols b/tests/baselines/reference/letInVarDeclOfForIn_ES6.symbols new file mode 100644 index 00000000000..3b3e68e3040 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES6.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/letInVarDeclOfForIn_ES6.ts === + +// should not be an error +for (var let in [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForIn_ES6.ts, 2, 8), Decl(letInVarDeclOfForIn_ES6.ts, 5, 9)) + +{ + for (var let in [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForIn_ES6.ts, 2, 8), Decl(letInVarDeclOfForIn_ES6.ts, 5, 9)) +} + diff --git a/tests/baselines/reference/letInVarDeclOfForIn_ES6.types b/tests/baselines/reference/letInVarDeclOfForIn_ES6.types new file mode 100644 index 00000000000..3c508bd8e2b --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForIn_ES6.types @@ -0,0 +1,19 @@ +=== tests/cases/compiler/letInVarDeclOfForIn_ES6.ts === + +// should not be an error +for (var let in [1,2,3]) {} +>let : any +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number + +{ + for (var let in [1,2,3]) {} +>let : any +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number +} + diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5.js b/tests/baselines/reference/letInVarDeclOfForOf_ES5.js new file mode 100644 index 00000000000..cdc374fbea0 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES5.js @@ -0,0 +1,20 @@ +//// [letInVarDeclOfForOf_ES5.ts] + +// should not be an error +for (var let of [1,2,3]) {} + +{ + for (var let of [1,2,3]) {} +} + + +//// [letInVarDeclOfForOf_ES5.js] +// should not be an error +for (var _i = 0, _a = [1, 2, 3]; _i < _a.length; _i++) { + var let = _a[_i]; +} +{ + for (var _b = 0, _c = [1, 2, 3]; _b < _c.length; _b++) { + var let = _c[_b]; + } +} diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5.symbols b/tests/baselines/reference/letInVarDeclOfForOf_ES5.symbols new file mode 100644 index 00000000000..f5411cfca2d --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES5.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/letInVarDeclOfForOf_ES5.ts === + +// should not be an error +for (var let of [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForOf_ES5.ts, 2, 8), Decl(letInVarDeclOfForOf_ES5.ts, 5, 9)) + +{ + for (var let of [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForOf_ES5.ts, 2, 8), Decl(letInVarDeclOfForOf_ES5.ts, 5, 9)) +} + diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES5.types b/tests/baselines/reference/letInVarDeclOfForOf_ES5.types new file mode 100644 index 00000000000..a1000df8bed --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES5.types @@ -0,0 +1,19 @@ +=== tests/cases/compiler/letInVarDeclOfForOf_ES5.ts === + +// should not be an error +for (var let of [1,2,3]) {} +>let : number +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number + +{ + for (var let of [1,2,3]) {} +>let : number +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number +} + diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES6.js b/tests/baselines/reference/letInVarDeclOfForOf_ES6.js new file mode 100644 index 00000000000..fca365c4b0d --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES6.js @@ -0,0 +1,16 @@ +//// [letInVarDeclOfForOf_ES6.ts] + +// should not be an error +for (var let of [1,2,3]) {} + +{ + for (var let of [1,2,3]) {} +} + + +//// [letInVarDeclOfForOf_ES6.js] +// should not be an error +for (var let of [1, 2, 3]) { } +{ + for (var let of [1, 2, 3]) { } +} diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES6.symbols b/tests/baselines/reference/letInVarDeclOfForOf_ES6.symbols new file mode 100644 index 00000000000..d4c14eff0b0 --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES6.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/letInVarDeclOfForOf_ES6.ts === + +// should not be an error +for (var let of [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForOf_ES6.ts, 2, 8), Decl(letInVarDeclOfForOf_ES6.ts, 5, 9)) + +{ + for (var let of [1,2,3]) {} +>let : Symbol(let, Decl(letInVarDeclOfForOf_ES6.ts, 2, 8), Decl(letInVarDeclOfForOf_ES6.ts, 5, 9)) +} + diff --git a/tests/baselines/reference/letInVarDeclOfForOf_ES6.types b/tests/baselines/reference/letInVarDeclOfForOf_ES6.types new file mode 100644 index 00000000000..1515895feda --- /dev/null +++ b/tests/baselines/reference/letInVarDeclOfForOf_ES6.types @@ -0,0 +1,19 @@ +=== tests/cases/compiler/letInVarDeclOfForOf_ES6.ts === + +// should not be an error +for (var let of [1,2,3]) {} +>let : number +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number + +{ + for (var let of [1,2,3]) {} +>let : number +>[1,2,3] : number[] +>1 : number +>2 : number +>3 : number +} + diff --git a/tests/baselines/reference/libMembers.js b/tests/baselines/reference/libMembers.js index 38d1356ccc3..46ef17bb651 100644 --- a/tests/baselines/reference/libMembers.js +++ b/tests/baselines/reference/libMembers.js @@ -27,7 +27,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; var a = new C[]; a.length; diff --git a/tests/baselines/reference/lift.js b/tests/baselines/reference/lift.js index a832b34641d..568379948bc 100644 --- a/tests/baselines/reference/lift.js +++ b/tests/baselines/reference/lift.js @@ -28,7 +28,7 @@ var B = (function () { this.y = y; } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C(y, z, w) { @@ -39,4 +39,4 @@ var C = (function (_super) { C.prototype.liftxyz = function () { return x + z + this.y; }; C.prototype.liftxylocllz = function () { return x + z + this.y + this.ll; }; return C; -})(B); +}(B)); diff --git a/tests/baselines/reference/listFailure.js b/tests/baselines/reference/listFailure.js index fa2fc9b3453..ab0e9ca5bff 100644 --- a/tests/baselines/reference/listFailure.js +++ b/tests/baselines/reference/listFailure.js @@ -54,7 +54,7 @@ var Editor; return lineEntry; }; return Buffer; - })(); + }()); Editor.Buffer = Buffer; function ListRemoveEntry(entry) { return entry; @@ -79,11 +79,11 @@ var Editor; return (ListRemoveEntry(this.next)); }; return List; - })(); + }()); var Line = (function () { function Line() { } return Line; - })(); + }()); Editor.Line = Line; })(Editor || (Editor = {})); diff --git a/tests/baselines/reference/literalsInComputedProperties1.js b/tests/baselines/reference/literalsInComputedProperties1.js index ef11dbff6ea..82a6367e5d2 100644 --- a/tests/baselines/reference/literalsInComputedProperties1.js +++ b/tests/baselines/reference/literalsInComputedProperties1.js @@ -73,7 +73,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var z; z[1].toExponential(); z[2].toExponential(); diff --git a/tests/baselines/reference/localClassesInLoop.js b/tests/baselines/reference/localClassesInLoop.js index 7912b2ef0d6..0090ada863d 100644 --- a/tests/baselines/reference/localClassesInLoop.js +++ b/tests/baselines/reference/localClassesInLoop.js @@ -18,7 +18,7 @@ var _loop_1 = function(x) { function C() { } return C; - })(); + }()); data.push(function () { return C; }); }; for (var x = 0; x < 2; ++x) { diff --git a/tests/baselines/reference/localTypes1.js b/tests/baselines/reference/localTypes1.js index 00c65db2c96..a4f835c8669 100644 --- a/tests/baselines/reference/localTypes1.js +++ b/tests/baselines/reference/localTypes1.js @@ -158,7 +158,7 @@ function f1() { function C() { } return C; - })(); + }()); var a = [new C()]; a[0].x = E.B; return a; @@ -175,7 +175,7 @@ function f2() { function C() { } return C; - })(); + }()); var a = [new C()]; a[0].x = E.B; return a; @@ -195,7 +195,7 @@ function f3(b) { function C() { } return C; - })(); + }()); var a = [new C()]; a[0].x = E.B; return a; @@ -205,7 +205,7 @@ function f3(b) { function A_1() { } return A_1; - })(); + }()); var c = [new A_1()]; c[0].x = E.B; return c; @@ -224,7 +224,7 @@ function f5() { function C() { } return C; - })(); + }()); return new C(); }; var z2 = function () { @@ -238,7 +238,7 @@ function f5() { function C() { } return C; - })(); + }()); return new C(); }; } @@ -254,7 +254,7 @@ var A = (function () { function C() { } return C; - })(); + }()); } A.prototype.m = function () { var E; @@ -267,7 +267,7 @@ var A = (function () { function C() { } return C; - })(); + }()); return new C(); }; Object.defineProperty(A.prototype, "p", { @@ -282,20 +282,20 @@ var A = (function () { function C() { } return C; - })(); + }()); return new C(); }, enumerable: true, configurable: true }); return A; -})(); +}()); function f6() { var A = (function () { function A() { } return A; - })(); + }()); function g() { var B = (function (_super) { __extends(B, _super); @@ -303,7 +303,7 @@ function f6() { _super.apply(this, arguments); } return B; - })(A); + }(A)); function h() { var C = (function (_super) { __extends(C, _super); @@ -311,7 +311,7 @@ function f6() { _super.apply(this, arguments); } return C; - })(B); + }(B)); var x = new C(); x.a = "a"; x.b = "b"; diff --git a/tests/baselines/reference/localTypes2.js b/tests/baselines/reference/localTypes2.js index a95844f0794..e8713f75241 100644 --- a/tests/baselines/reference/localTypes2.js +++ b/tests/baselines/reference/localTypes2.js @@ -50,7 +50,7 @@ function f1() { this.y = y; } return C; - })(); + }()); return C; } var C = f(); @@ -66,7 +66,7 @@ function f2() { this.x = x; } return C; - })(); + }()); return C; } var C = f(10); @@ -82,7 +82,7 @@ function f3() { this.y = y; } return C; - })(); + }()); return C; } var C = f(10, 20); diff --git a/tests/baselines/reference/localTypes3.js b/tests/baselines/reference/localTypes3.js index 2d40bc922b9..462959e68d1 100644 --- a/tests/baselines/reference/localTypes3.js +++ b/tests/baselines/reference/localTypes3.js @@ -50,7 +50,7 @@ function f1() { this.y = y; } return C; - })(); + }()); return C; } var C = f(); @@ -66,7 +66,7 @@ function f2() { this.x = x; } return C; - })(); + }()); return C; } var C = f(10); @@ -82,7 +82,7 @@ function f3() { this.y = y; } return C; - })(); + }()); return C; } var C = f(10, "hello"); diff --git a/tests/baselines/reference/localTypes5.js b/tests/baselines/reference/localTypes5.js index 872629276d2..c7f0f722741 100644 --- a/tests/baselines/reference/localTypes5.js +++ b/tests/baselines/reference/localTypes5.js @@ -26,12 +26,12 @@ function foo() { function Y() { } return Y; - })(); + }()); return new Y(); })(); }; return X; - })(); + }()); var x = new X(); return x.m(); } diff --git a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js index 61a1d4c01d1..6f51a3cdda0 100644 --- a/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/logicalNotOperatorWithAnyOtherType.js @@ -78,7 +78,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js index 6af1f67f7cf..bd273fffc36 100644 --- a/tests/baselines/reference/logicalNotOperatorWithBooleanType.js +++ b/tests/baselines/reference/logicalNotOperatorWithBooleanType.js @@ -47,7 +47,7 @@ var A = (function () { } A.foo = function () { return false; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/logicalNotOperatorWithNumberType.js b/tests/baselines/reference/logicalNotOperatorWithNumberType.js index b291d31f5b0..f643b5452bb 100644 --- a/tests/baselines/reference/logicalNotOperatorWithNumberType.js +++ b/tests/baselines/reference/logicalNotOperatorWithNumberType.js @@ -55,7 +55,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/logicalNotOperatorWithStringType.js b/tests/baselines/reference/logicalNotOperatorWithStringType.js index caf31b78057..8a80ed8761a 100644 --- a/tests/baselines/reference/logicalNotOperatorWithStringType.js +++ b/tests/baselines/reference/logicalNotOperatorWithStringType.js @@ -54,7 +54,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/m7Bugs.js b/tests/baselines/reference/m7Bugs.js index 86b5aa96c77..6292356faf5 100644 --- a/tests/baselines/reference/m7Bugs.js +++ b/tests/baselines/reference/m7Bugs.js @@ -38,14 +38,14 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(C1); +}(C1)); var y1 = new C2(); var y2 = new C2(); var y3 = {}; diff --git a/tests/baselines/reference/matchReturnTypeInAllBranches.js b/tests/baselines/reference/matchReturnTypeInAllBranches.js index 5e9b88f61ac..4ac2c63eb4f 100644 --- a/tests/baselines/reference/matchReturnTypeInAllBranches.js +++ b/tests/baselines/reference/matchReturnTypeInAllBranches.js @@ -62,6 +62,6 @@ var IceCreamMonster = (function () { } }; return IceCreamMonster; -})(); +}()); var cookieMonster; cookieMonster = new IceCreamMonster("Chocolate Chip", false, "COOOOOKIE", "Cookie Monster"); diff --git a/tests/baselines/reference/matchingOfObjectLiteralConstraints.errors.txt b/tests/baselines/reference/matchingOfObjectLiteralConstraints.errors.txt deleted file mode 100644 index edd917a4602..00000000000 --- a/tests/baselines/reference/matchingOfObjectLiteralConstraints.errors.txt +++ /dev/null @@ -1,10 +0,0 @@ -tests/cases/compiler/matchingOfObjectLiteralConstraints.ts(1,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/matchingOfObjectLiteralConstraints.ts (1 errors) ==== - function foo2(x: U, z: T) { } - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo2({ y: "foo" }, "foo"); - - \ No newline at end of file diff --git a/tests/baselines/reference/matchingOfObjectLiteralConstraints.symbols b/tests/baselines/reference/matchingOfObjectLiteralConstraints.symbols new file mode 100644 index 00000000000..8a7fb7b47fc --- /dev/null +++ b/tests/baselines/reference/matchingOfObjectLiteralConstraints.symbols @@ -0,0 +1,17 @@ +=== tests/cases/compiler/matchingOfObjectLiteralConstraints.ts === +function foo2(x: U, z: T) { } +>foo2 : Symbol(foo2, Decl(matchingOfObjectLiteralConstraints.ts, 0, 0)) +>T : Symbol(T, Decl(matchingOfObjectLiteralConstraints.ts, 0, 14)) +>U : Symbol(U, Decl(matchingOfObjectLiteralConstraints.ts, 0, 16)) +>y : Symbol(y, Decl(matchingOfObjectLiteralConstraints.ts, 0, 28)) +>T : Symbol(T, Decl(matchingOfObjectLiteralConstraints.ts, 0, 14)) +>x : Symbol(x, Decl(matchingOfObjectLiteralConstraints.ts, 0, 38)) +>U : Symbol(U, Decl(matchingOfObjectLiteralConstraints.ts, 0, 16)) +>z : Symbol(z, Decl(matchingOfObjectLiteralConstraints.ts, 0, 43)) +>T : Symbol(T, Decl(matchingOfObjectLiteralConstraints.ts, 0, 14)) + +foo2({ y: "foo" }, "foo"); +>foo2 : Symbol(foo2, Decl(matchingOfObjectLiteralConstraints.ts, 0, 0)) +>y : Symbol(y, Decl(matchingOfObjectLiteralConstraints.ts, 1, 6)) + + diff --git a/tests/baselines/reference/matchingOfObjectLiteralConstraints.types b/tests/baselines/reference/matchingOfObjectLiteralConstraints.types new file mode 100644 index 00000000000..f694571c727 --- /dev/null +++ b/tests/baselines/reference/matchingOfObjectLiteralConstraints.types @@ -0,0 +1,21 @@ +=== tests/cases/compiler/matchingOfObjectLiteralConstraints.ts === +function foo2(x: U, z: T) { } +>foo2 : (x: U, z: T) => void +>T : T +>U : U +>y : T +>T : T +>x : U +>U : U +>z : T +>T : T + +foo2({ y: "foo" }, "foo"); +>foo2({ y: "foo" }, "foo") : void +>foo2 : (x: U, z: T) => void +>{ y: "foo" } : { y: string; } +>y : string +>"foo" : string +>"foo" : string + + diff --git a/tests/baselines/reference/maxConstraints.errors.txt b/tests/baselines/reference/maxConstraints.errors.txt index 16ae5bd2063..03e7158f725 100644 --- a/tests/baselines/reference/maxConstraints.errors.txt +++ b/tests/baselines/reference/maxConstraints.errors.txt @@ -1,19 +1,16 @@ -tests/cases/compiler/maxConstraints.ts(5,6): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/maxConstraints.ts(8,22): error TS2345: Argument of type 'number' is not assignable to parameter of type 'Comparable'. +tests/cases/compiler/maxConstraints.ts(8,22): error TS2345: Argument of type 'number' is not assignable to parameter of type 'Comparable'. Property 'compareTo' is missing in type 'Number'. -==== tests/cases/compiler/maxConstraints.ts (2 errors) ==== +==== tests/cases/compiler/maxConstraints.ts (1 errors) ==== interface Comparable { compareTo(other: T): number; } interface Comparer { >(x: T, y: T): T; - ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. } var max2: Comparer = (x, y) => { return (x.compareTo(y) > 0) ? x : y }; var maxResult = max2(1, 2); ~ -!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'Comparable'. +!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'Comparable'. !!! error TS2345: Property 'compareTo' is missing in type 'Number'. \ No newline at end of file diff --git a/tests/baselines/reference/memberAccessMustUseModuleInstances.js b/tests/baselines/reference/memberAccessMustUseModuleInstances.js index bbeafeab346..0071d0dfef0 100644 --- a/tests/baselines/reference/memberAccessMustUseModuleInstances.js +++ b/tests/baselines/reference/memberAccessMustUseModuleInstances.js @@ -24,7 +24,7 @@ define(["require", "exports"], function (require, exports) { return null; }; return Promise; - })(); + }()); exports.Promise = Promise; }); //// [memberAccessMustUseModuleInstances_1.js] diff --git a/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.js b/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.js index 80c7043552c..6555151ccd7 100644 --- a/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.js +++ b/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.js @@ -24,19 +24,19 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var E = (function () { function E() { } return E; -})(); +}()); var F = (function () { function F() { } return F; -})(); +}()); diff --git a/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js b/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js index 584bafad6f6..ecf9a14033b 100644 --- a/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js @@ -58,7 +58,7 @@ var C = (function () { C.foo = function (x, y) { }; C.bar = function (x, y) { }; return C; -})(); +}()); var D = (function () { function D() { } @@ -67,7 +67,7 @@ var D = (function () { D.foo = function (x, y) { }; D.bar = function (x, y) { }; return D; -})(); +}()); var c; var r = c.foo(1); // error var d; diff --git a/tests/baselines/reference/memberFunctionsWithPublicOverloads.js b/tests/baselines/reference/memberFunctionsWithPublicOverloads.js index efdd6efaffa..91b9e829673 100644 --- a/tests/baselines/reference/memberFunctionsWithPublicOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPublicOverloads.js @@ -49,7 +49,7 @@ var C = (function () { C.foo = function (x, y) { }; C.bar = function (x, y) { }; return C; -})(); +}()); var D = (function () { function D() { } @@ -58,4 +58,4 @@ var D = (function () { D.foo = function (x, y) { }; D.bar = function (x, y) { }; return D; -})(); +}()); diff --git a/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js b/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js index 7738bf4fe4e..1d8d40533c6 100644 --- a/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js @@ -73,7 +73,7 @@ var C = (function () { C.bar = function (x, y) { }; C.baz = function (x, y) { }; return C; -})(); +}()); var D = (function () { function D() { } @@ -84,7 +84,7 @@ var D = (function () { D.bar = function (x, y) { }; D.baz = function (x, y) { }; return D; -})(); +}()); var c; var r = c.foo(1); // error var d; diff --git a/tests/baselines/reference/memberScope.js b/tests/baselines/reference/memberScope.js index 05123460f97..f8600053b1e 100644 --- a/tests/baselines/reference/memberScope.js +++ b/tests/baselines/reference/memberScope.js @@ -14,7 +14,7 @@ var Salt; function Pepper() { } return Pepper; - })(); + }()); Salt.Pepper = Pepper; var z = Basil.Pepper; })(Salt || (Salt = {})); diff --git a/tests/baselines/reference/memberVariableDeclarations1.js b/tests/baselines/reference/memberVariableDeclarations1.js index 7fceee20d2d..f72633a7c83 100644 --- a/tests/baselines/reference/memberVariableDeclarations1.js +++ b/tests/baselines/reference/memberVariableDeclarations1.js @@ -36,7 +36,7 @@ var Employee = (function () { this.reports = []; } return Employee; -})(); +}()); var Employee2 = (function () { function Employee2() { this.retired = false; @@ -44,7 +44,7 @@ var Employee2 = (function () { this.reports = []; } return Employee2; -})(); +}()); var e1; var e2; e1 = e2; diff --git a/tests/baselines/reference/mergedClassInterface.js b/tests/baselines/reference/mergedClassInterface.js index 64b52c23713..913c0472cbd 100644 --- a/tests/baselines/reference/mergedClassInterface.js +++ b/tests/baselines/reference/mergedClassInterface.js @@ -59,12 +59,12 @@ var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { } return C4; -})(); +}()); // checks if properties actually were merged var c5; c5.x1; diff --git a/tests/baselines/reference/mergedInheritedClassInterface.js b/tests/baselines/reference/mergedInheritedClassInterface.js index 2cc88ac9431..72ac1c8a928 100644 --- a/tests/baselines/reference/mergedInheritedClassInterface.js +++ b/tests/baselines/reference/mergedInheritedClassInterface.js @@ -57,7 +57,7 @@ var BaseClass = (function () { } BaseClass.prototype.baseMethod = function () { }; return BaseClass; -})(); +}()); var Child = (function (_super) { __extends(Child, _super); function Child() { @@ -65,20 +65,20 @@ var Child = (function (_super) { } Child.prototype.method = function () { }; return Child; -})(BaseClass); +}(BaseClass)); var ChildNoBaseClass = (function () { function ChildNoBaseClass() { } ChildNoBaseClass.prototype.method2 = function () { }; return ChildNoBaseClass; -})(); +}()); var Grandchild = (function (_super) { __extends(Grandchild, _super); function Grandchild() { _super.apply(this, arguments); } return Grandchild; -})(ChildNoBaseClass); +}(ChildNoBaseClass)); // checks if properties actually were merged var child; child.required; diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates.js index 2502b46b06b..2c9e7fc2da4 100644 --- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates.js +++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates.js @@ -31,16 +31,16 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var E = (function () { function E() { } return E; -})(); +}()); var a; var r = a.x; // error diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js index 26cd3c8bf7c..a7e341c31ce 100644 --- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js +++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js @@ -41,26 +41,26 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var E = (function (_super) { __extends(E, _super); function E() { _super.apply(this, arguments); } return E; -})(C2); +}(C2)); var a; var r = a.x; // error var r2 = a.w; // error diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js index 530595d54f6..3d9c4e1175e 100644 --- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js +++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js @@ -48,29 +48,29 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var M; (function (M) { var C = (function () { function C() { } return C; - })(); + }()); var C2 = (function () { function C2() { } return C2; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/mergedInterfacesWithMultipleBases.js b/tests/baselines/reference/mergedInterfacesWithMultipleBases.js index 56a0b2dd90f..2bc5d1e0e36 100644 --- a/tests/baselines/reference/mergedInterfacesWithMultipleBases.js +++ b/tests/baselines/reference/mergedInterfacesWithMultipleBases.js @@ -61,17 +61,17 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var a; var r = a.a; // generic interfaces in a module @@ -81,15 +81,15 @@ var M; function C() { } return C; - })(); + }()); var C2 = (function () { function C2() { } return C2; - })(); + }()); var D = (function () { function D() { } return D; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/mergedInterfacesWithMultipleBases2.js b/tests/baselines/reference/mergedInterfacesWithMultipleBases2.js index 47438374333..3253a8fc077 100644 --- a/tests/baselines/reference/mergedInterfacesWithMultipleBases2.js +++ b/tests/baselines/reference/mergedInterfacesWithMultipleBases2.js @@ -82,27 +82,27 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { } return C4; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var a; var r = a.a; // generic interfaces in a module @@ -112,25 +112,25 @@ var M; function C() { } return C; - })(); + }()); var C2 = (function () { function C2() { } return C2; - })(); + }()); var C3 = (function () { function C3() { } return C3; - })(); + }()); var C4 = (function () { function C4() { } return C4; - })(); + }()); var D = (function () { function D() { } return D; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/mergedInterfacesWithMultipleBases3.js b/tests/baselines/reference/mergedInterfacesWithMultipleBases3.js index 23260e13c45..1fb5455f82a 100644 --- a/tests/baselines/reference/mergedInterfacesWithMultipleBases3.js +++ b/tests/baselines/reference/mergedInterfacesWithMultipleBases3.js @@ -42,24 +42,24 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { } return C4; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/mergedInterfacesWithMultipleBases4.js b/tests/baselines/reference/mergedInterfacesWithMultipleBases4.js index 2ee7ba892c2..40292d1a72f 100644 --- a/tests/baselines/reference/mergedInterfacesWithMultipleBases4.js +++ b/tests/baselines/reference/mergedInterfacesWithMultipleBases4.js @@ -40,24 +40,24 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { } return C4; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen.errors.txt b/tests/baselines/reference/mergedModuleDeclarationCodeGen.errors.txt index d9b7fa55d71..a39c1c4d91a 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen.errors.txt +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/mergedModuleDeclarationCodeGen.ts(1,15): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/mergedModuleDeclarationCodeGen.ts(1,15): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/compiler/mergedModuleDeclarationCodeGen.ts (1 errors) ==== export module X { ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export module Y { class A { constructor(Y: any) { diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen.js b/tests/baselines/reference/mergedModuleDeclarationCodeGen.js index 64a4b9d00bd..f71702386ec 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen.js +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen.js @@ -26,7 +26,7 @@ var X; new Y_1.B(); } return A; - })(); + }()); })(Y = X.Y || (X.Y = {})); })(X = exports.X || (exports.X = {})); var X; @@ -37,7 +37,7 @@ var X; function B() { } return B; - })(); + }()); Y.B = B; })(Y = X.Y || (X.Y = {})); })(X = exports.X || (exports.X = {})); diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js index 44ab49d24e0..a5bc2e8e56e 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.js @@ -44,7 +44,7 @@ var M; function fudge() { } return fudge; - })(); + }()); plop_1.fudge = fudge; (function (plop) { })(plop_1.plop || (plop_1.plop = {})); diff --git a/tests/baselines/reference/methodContainingLocalFunction.js b/tests/baselines/reference/methodContainingLocalFunction.js index f2f336d38b7..d051d46bb1c 100644 --- a/tests/baselines/reference/methodContainingLocalFunction.js +++ b/tests/baselines/reference/methodContainingLocalFunction.js @@ -61,7 +61,7 @@ var BugExhibition = (function () { x = localFunction; }; return BugExhibition; -})(); +}()); var BugExhibition2 = (function () { function BugExhibition2() { } @@ -76,7 +76,7 @@ var BugExhibition2 = (function () { configurable: true }); return BugExhibition2; -})(); +}()); var BugExhibition3 = (function () { function BugExhibition3() { } @@ -86,7 +86,7 @@ var BugExhibition3 = (function () { x = localGenericFunction; }; return BugExhibition3; -})(); +}()); var C = (function () { function C() { } @@ -96,7 +96,7 @@ var C = (function () { x = funcExpr; }; return C; -})(); +}()); var M; (function (M) { function exhibitBug() { diff --git a/tests/baselines/reference/methodSignatureDeclarationEmit1.js b/tests/baselines/reference/methodSignatureDeclarationEmit1.js index df6e8d0afe1..d8697481c68 100644 --- a/tests/baselines/reference/methodSignatureDeclarationEmit1.js +++ b/tests/baselines/reference/methodSignatureDeclarationEmit1.js @@ -13,7 +13,7 @@ var C = (function () { C.prototype.foo = function (a) { }; return C; -})(); +}()); //// [methodSignatureDeclarationEmit1.d.ts] diff --git a/tests/baselines/reference/mismatchedClassConstructorVariable.js b/tests/baselines/reference/mismatchedClassConstructorVariable.js index ea3f95559c9..e0b4767f547 100644 --- a/tests/baselines/reference/mismatchedClassConstructorVariable.js +++ b/tests/baselines/reference/mismatchedClassConstructorVariable.js @@ -9,9 +9,9 @@ var baz = (function () { function baz() { } return baz; -})(); +}()); var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/mismatchedGenericArguments1.js b/tests/baselines/reference/mismatchedGenericArguments1.js index a702e369e95..8a1f67db190 100644 --- a/tests/baselines/reference/mismatchedGenericArguments1.js +++ b/tests/baselines/reference/mismatchedGenericArguments1.js @@ -23,7 +23,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var C2 = (function () { function C2() { } @@ -31,4 +31,4 @@ var C2 = (function () { return null; }; return C2; -})(); +}()); diff --git a/tests/baselines/reference/missingDecoratorType.js b/tests/baselines/reference/missingDecoratorType.js index 04af1be9d7b..7356be39798 100644 --- a/tests/baselines/reference/missingDecoratorType.js +++ b/tests/baselines/reference/missingDecoratorType.js @@ -37,4 +37,4 @@ var C = (function () { dec ], C.prototype, "method", null); return C; -})(); +}()); diff --git a/tests/baselines/reference/missingImportAfterModuleImport.js b/tests/baselines/reference/missingImportAfterModuleImport.js index 5312f8b0cf6..2739ced1cdd 100644 --- a/tests/baselines/reference/missingImportAfterModuleImport.js +++ b/tests/baselines/reference/missingImportAfterModuleImport.js @@ -30,7 +30,7 @@ var MainModule = (function () { function MainModule() { } return MainModule; -})(); +}()); module.exports = MainModule; diff --git a/tests/baselines/reference/missingPropertiesOfClassExpression.js b/tests/baselines/reference/missingPropertiesOfClassExpression.js index f427da20f0c..54834397b64 100644 --- a/tests/baselines/reference/missingPropertiesOfClassExpression.js +++ b/tests/baselines/reference/missingPropertiesOfClassExpression.js @@ -18,9 +18,9 @@ var George = (function (_super) { _super.call(this); } return George; -})((function () { +}((function () { function class_1() { } class_1.prototype.reset = function () { return this.y; }; return class_1; -})()); +}()))); diff --git a/tests/baselines/reference/missingReturnStatement.js b/tests/baselines/reference/missingReturnStatement.js index 91c461e4715..f09ccb4e26e 100644 --- a/tests/baselines/reference/missingReturnStatement.js +++ b/tests/baselines/reference/missingReturnStatement.js @@ -16,6 +16,6 @@ var Test; Bug.prototype.foo = function () { }; return Bug; - })(); + }()); Test.Bug = Bug; })(Test || (Test = {})); diff --git a/tests/baselines/reference/missingReturnStatement1.js b/tests/baselines/reference/missingReturnStatement1.js index 665194cd5fe..9e24623fa6c 100644 --- a/tests/baselines/reference/missingReturnStatement1.js +++ b/tests/baselines/reference/missingReturnStatement1.js @@ -14,4 +14,4 @@ var Foo = (function () { //return 4; }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/missingSelf.js b/tests/baselines/reference/missingSelf.js index 56dcc4f9fa0..e1020ea635b 100644 --- a/tests/baselines/reference/missingSelf.js +++ b/tests/baselines/reference/missingSelf.js @@ -25,7 +25,7 @@ var CalcButton = (function () { CalcButton.prototype.a = function () { this.onClick(); }; CalcButton.prototype.onClick = function () { }; return CalcButton; -})(); +}()); var CalcButton2 = (function () { function CalcButton2() { } @@ -35,7 +35,7 @@ var CalcButton2 = (function () { }; CalcButton2.prototype.onClick = function () { }; return CalcButton2; -})(); +}()); var c = new CalcButton(); c.a(); var c2 = new CalcButton2(); diff --git a/tests/baselines/reference/missingSemicolonInModuleSpecifier.js b/tests/baselines/reference/missingSemicolonInModuleSpecifier.js new file mode 100644 index 00000000000..069849ffb83 --- /dev/null +++ b/tests/baselines/reference/missingSemicolonInModuleSpecifier.js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/missingSemicolonInModuleSpecifier.ts] //// + +//// [a.ts] + +export const x = 1; + +//// [b.ts] +import {x} from "./a" +(function() { return 1; }()) + +//// [a.js] +"use strict"; +exports.x = 1; +//// [b.js] +"use strict"; +(function () { return 1; }()); diff --git a/tests/baselines/reference/missingSemicolonInModuleSpecifier.symbols b/tests/baselines/reference/missingSemicolonInModuleSpecifier.symbols new file mode 100644 index 00000000000..695779002ac --- /dev/null +++ b/tests/baselines/reference/missingSemicolonInModuleSpecifier.symbols @@ -0,0 +1,10 @@ +=== tests/cases/compiler/a.ts === + +export const x = 1; +>x : Symbol(x, Decl(a.ts, 1, 12)) + +=== tests/cases/compiler/b.ts === +import {x} from "./a" +>x : Symbol(x, Decl(b.ts, 0, 8)) + +(function() { return 1; }()) diff --git a/tests/baselines/reference/missingSemicolonInModuleSpecifier.types b/tests/baselines/reference/missingSemicolonInModuleSpecifier.types new file mode 100644 index 00000000000..b68c68b62e0 --- /dev/null +++ b/tests/baselines/reference/missingSemicolonInModuleSpecifier.types @@ -0,0 +1,16 @@ +=== tests/cases/compiler/a.ts === + +export const x = 1; +>x : number +>1 : number + +=== tests/cases/compiler/b.ts === +import {x} from "./a" +>x : number + +(function() { return 1; }()) +>(function() { return 1; }()) : number +>function() { return 1; }() : number +>function() { return 1; } : () => number +>1 : number + diff --git a/tests/baselines/reference/missingTypeArguments1.js b/tests/baselines/reference/missingTypeArguments1.js index 42847531421..3e22e6ce16b 100644 --- a/tests/baselines/reference/missingTypeArguments1.js +++ b/tests/baselines/reference/missingTypeArguments1.js @@ -59,64 +59,64 @@ var Y = (function () { function Y() { } return Y; -})(); +}()); var X = (function () { function X() { } return X; -})(); +}()); var a; var X2 = (function () { function X2() { } return X2; -})(); +}()); var a2; var X3 = (function () { function X3() { } return X3; -})(); +}()); var a3; var X4 = (function () { function X4() { } return X4; -})(); +}()); var a4; var X5 = (function () { function X5() { } return X5; -})(); +}()); var a5; var X6 = (function () { function X6() { } return X6; -})(); +}()); var a6; var X7 = (function () { function X7() { } return X7; -})(); +}()); var a7; var X8 = (function () { function X8() { } return X8; -})(); +}()); var a8; var X9 = (function () { function X9() { } return X9; -})(); +}()); var a9; var X10 = (function () { function X10() { } return X10; -})(); +}()); var a10; diff --git a/tests/baselines/reference/missingTypeArguments2.js b/tests/baselines/reference/missingTypeArguments2.js index bc5c1d88f46..6ede66f5598 100644 --- a/tests/baselines/reference/missingTypeArguments2.js +++ b/tests/baselines/reference/missingTypeArguments2.js @@ -11,7 +11,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var x; (function (a) { }); var y; diff --git a/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js b/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js index 427bbf65aa1..eac3729abcd 100644 --- a/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js +++ b/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js @@ -23,7 +23,7 @@ var A = (function () { A.prototype.m1 = function (a) { }; return A; -})(); +}()); var B = (function () { function B() { } @@ -31,4 +31,4 @@ var B = (function () { B.prototype.m1 = function (a) { }; return B; -})(); +}()); diff --git a/tests/baselines/reference/mixingStaticAndInstanceOverloads.js b/tests/baselines/reference/mixingStaticAndInstanceOverloads.js index 22367461c2c..ee405be1f43 100644 --- a/tests/baselines/reference/mixingStaticAndInstanceOverloads.js +++ b/tests/baselines/reference/mixingStaticAndInstanceOverloads.js @@ -41,29 +41,29 @@ var C1 = (function () { } C1.foo1 = function (a) { }; return C1; -})(); +}()); var C2 = (function () { function C2() { } C2.prototype.foo2 = function (a) { }; return C2; -})(); +}()); var C3 = (function () { function C3() { } C3.prototype.foo3 = function (a) { }; return C3; -})(); +}()); var C4 = (function () { function C4() { } C4.foo4 = function (a) { }; return C4; -})(); +}()); var C5 = (function () { function C5() { } C5.prototype.foo5 = function (a) { }; C5.foo5 = function (a) { }; return C5; -})(); +}()); diff --git a/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js b/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js index d571a4143ee..f7c4db2ff2a 100644 --- a/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js +++ b/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js @@ -17,7 +17,7 @@ function f() { C.foo = function () { }; C.prototype.bar = function () { }; return C; - })(); + }()); } diff --git a/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js b/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js index e43e8dd8203..70eea5b2c5c 100644 --- a/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js +++ b/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js @@ -17,7 +17,7 @@ function g() { C.prototype.foo = function () { }; C.prop2 = 43; return C; - })(); + }()); } diff --git a/tests/baselines/reference/modifierOnParameter1.js b/tests/baselines/reference/modifierOnParameter1.js index 69b54a09384..7b76a805c99 100644 --- a/tests/baselines/reference/modifierOnParameter1.js +++ b/tests/baselines/reference/modifierOnParameter1.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/modifiersInObjectLiterals.errors.txt b/tests/baselines/reference/modifiersInObjectLiterals.errors.txt new file mode 100644 index 00000000000..25382123390 --- /dev/null +++ b/tests/baselines/reference/modifiersInObjectLiterals.errors.txt @@ -0,0 +1,24 @@ +tests/cases/compiler/modifiersInObjectLiterals.ts(2,2): error TS1042: 'public' modifier cannot be used here. +tests/cases/compiler/modifiersInObjectLiterals.ts(3,2): error TS1042: 'private' modifier cannot be used here. +tests/cases/compiler/modifiersInObjectLiterals.ts(4,2): error TS1042: 'protected' modifier cannot be used here. +tests/cases/compiler/modifiersInObjectLiterals.ts(5,2): error TS1042: 'abstract' modifier cannot be used here. + + +==== tests/cases/compiler/modifiersInObjectLiterals.ts (4 errors) ==== + let data = { + public foo: 'hey', + ~~~~~~ +!!! error TS1042: 'public' modifier cannot be used here. + private bar: 'nay', + ~~~~~~~ +!!! error TS1042: 'private' modifier cannot be used here. + protected baz: 'oh my', + ~~~~~~~~~ +!!! error TS1042: 'protected' modifier cannot be used here. + abstract noWay: 'yes' + ~~~~~~~~ +!!! error TS1042: 'abstract' modifier cannot be used here. + }; + + data.foo + data.bar + data.baz + data.noWay + \ No newline at end of file diff --git a/tests/baselines/reference/modifiersInObjectLiterals.js b/tests/baselines/reference/modifiersInObjectLiterals.js new file mode 100644 index 00000000000..0a59b13c21e --- /dev/null +++ b/tests/baselines/reference/modifiersInObjectLiterals.js @@ -0,0 +1,19 @@ +//// [modifiersInObjectLiterals.ts] +let data = { + public foo: 'hey', + private bar: 'nay', + protected baz: 'oh my', + abstract noWay: 'yes' +}; + +data.foo + data.bar + data.baz + data.noWay + + +//// [modifiersInObjectLiterals.js] +var data = { + foo: 'hey', + bar: 'nay', + baz: 'oh my', + noWay: 'yes' +}; +data.foo + data.bar + data.baz + data.noWay; diff --git a/tests/baselines/reference/moduleAliasInterface.js b/tests/baselines/reference/moduleAliasInterface.js index 0678656bb02..2dee62dcca0 100644 --- a/tests/baselines/reference/moduleAliasInterface.js +++ b/tests/baselines/reference/moduleAliasInterface.js @@ -62,7 +62,7 @@ var _modes; function Mode() { } return Mode; - })(); + }()); _modes.Mode = Mode; })(_modes || (_modes = {})); // _modes. // produces an internal error - please implement in derived class @@ -76,7 +76,7 @@ var editor; Bug.prototype.foo = function (p1) { }; return Bug; - })(); + }()); })(editor || (editor = {})); var modesOuter = _modes; var editor2; @@ -86,21 +86,21 @@ var editor2; function Bug(p1, p2) { } // no error here, since modesOuter is declared externally return Bug; - })(); + }()); var Foo; (function (Foo) { var Bar = (function () { function Bar() { } return Bar; - })(); + }()); Foo.Bar = Bar; })(Foo || (Foo = {})); var Bug2 = (function () { function Bug2(p1, p2) { } return Bug2; - })(); + }()); })(editor2 || (editor2 = {})); var A1; (function (A1) { @@ -108,7 +108,7 @@ var A1; function A1C1() { } return A1C1; - })(); + }()); A1.A1C1 = A1C1; })(A1 || (A1 = {})); var B1; diff --git a/tests/baselines/reference/moduleAsBaseType.js b/tests/baselines/reference/moduleAsBaseType.js index 7e2af06480d..71f16846363 100644 --- a/tests/baselines/reference/moduleAsBaseType.js +++ b/tests/baselines/reference/moduleAsBaseType.js @@ -16,9 +16,9 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(M); +}(M)); var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/moduleAssignmentCompat1.js b/tests/baselines/reference/moduleAssignmentCompat1.js index 9df11af7270..ba545e96b33 100644 --- a/tests/baselines/reference/moduleAssignmentCompat1.js +++ b/tests/baselines/reference/moduleAssignmentCompat1.js @@ -23,7 +23,7 @@ var A; function C() { } return C; - })(); + }()); A.C = C; })(A || (A = {})); var B; @@ -32,13 +32,13 @@ var B; function C() { } return C; - })(); + }()); B.C = C; var D = (function () { function D() { } return D; - })(); + }()); })(B || (B = {})); var a; var b; diff --git a/tests/baselines/reference/moduleAssignmentCompat2.js b/tests/baselines/reference/moduleAssignmentCompat2.js index 2e54ba565ee..cce4f6addf1 100644 --- a/tests/baselines/reference/moduleAssignmentCompat2.js +++ b/tests/baselines/reference/moduleAssignmentCompat2.js @@ -20,7 +20,7 @@ var A; function C() { } return C; - })(); + }()); A.C = C; })(A || (A = {})); var B; @@ -29,13 +29,13 @@ var B; function C() { } return C; - })(); + }()); B.C = C; var D = (function () { function D() { } return D; - })(); + }()); B.D = D; })(B || (B = {})); var a; diff --git a/tests/baselines/reference/moduleAssignmentCompat4.js b/tests/baselines/reference/moduleAssignmentCompat4.js index 49e49a2e9fb..20f7979e43e 100644 --- a/tests/baselines/reference/moduleAssignmentCompat4.js +++ b/tests/baselines/reference/moduleAssignmentCompat4.js @@ -25,7 +25,7 @@ var A; function C() { } return C; - })(); + }()); })(M = A.M || (A.M = {})); })(A || (A = {})); var B; @@ -36,7 +36,7 @@ var B; function D() { } return D; - })(); + }()); M.D = D; })(M = B.M || (B.M = {})); })(B || (B = {})); diff --git a/tests/baselines/reference/moduleClassArrayCodeGenTest.js b/tests/baselines/reference/moduleClassArrayCodeGenTest.js index 569adcf672a..79945f681aa 100644 --- a/tests/baselines/reference/moduleClassArrayCodeGenTest.js +++ b/tests/baselines/reference/moduleClassArrayCodeGenTest.js @@ -18,13 +18,13 @@ var M; function A() { } return A; - })(); + }()); M.A = A; var B = (function () { function B() { } return B; - })(); + }()); })(M || (M = {})); var t = []; var t2 = []; diff --git a/tests/baselines/reference/moduleCodeGenTest5.js b/tests/baselines/reference/moduleCodeGenTest5.js index bfb1d0e56c3..fa09b432ab7 100644 --- a/tests/baselines/reference/moduleCodeGenTest5.js +++ b/tests/baselines/reference/moduleCodeGenTest5.js @@ -34,7 +34,7 @@ var C1 = (function () { } C1.prototype.p2 = function () { }; return C1; -})(); +}()); exports.C1 = C1; var C2 = (function () { function C2() { @@ -42,7 +42,7 @@ var C2 = (function () { } C2.prototype.p2 = function () { }; return C2; -})(); +}()); (function (E1) { E1[E1["A"] = 0] = "A"; })(exports.E1 || (exports.E1 = {})); diff --git a/tests/baselines/reference/moduleCrashBug1.js b/tests/baselines/reference/moduleCrashBug1.js index 1d8757f2396..2a01fa94b48 100644 --- a/tests/baselines/reference/moduleCrashBug1.js +++ b/tests/baselines/reference/moduleCrashBug1.js @@ -28,6 +28,6 @@ var _modes; function Mode() { } return Mode; - })(); + }()); })(_modes || (_modes = {})); var m; diff --git a/tests/baselines/reference/moduleDuplicateIdentifiers.errors.txt b/tests/baselines/reference/moduleDuplicateIdentifiers.errors.txt new file mode 100644 index 00000000000..22bd6641a83 --- /dev/null +++ b/tests/baselines/reference/moduleDuplicateIdentifiers.errors.txt @@ -0,0 +1,55 @@ +tests/cases/compiler/moduleDuplicateIdentifiers.ts(1,12): error TS2323: Cannot redeclare exported variable 'Foo'. +tests/cases/compiler/moduleDuplicateIdentifiers.ts(2,12): error TS2323: Cannot redeclare exported variable 'Foo'. +tests/cases/compiler/moduleDuplicateIdentifiers.ts(20,14): error TS2300: Duplicate identifier 'Kettle'. +tests/cases/compiler/moduleDuplicateIdentifiers.ts(24,14): error TS2300: Duplicate identifier 'Kettle'. + + +==== tests/cases/compiler/moduleDuplicateIdentifiers.ts (4 errors) ==== + export var Foo = 2; + ~~~ +!!! error TS2323: Cannot redeclare exported variable 'Foo'. + export var Foo = 42; // Should error + ~~~ +!!! error TS2323: Cannot redeclare exported variable 'Foo'. + + export interface Bar { + _brand1: any; + } + + export interface Bar { // Shouldn't error + _brand2: any; + } + + export namespace FooBar { + export var member1 = 2; + } + + export namespace FooBar { // Shouldn't error + export var member2 = 42; + } + + export class Kettle { + ~~~~~~ +!!! error TS2300: Duplicate identifier 'Kettle'. + member1 = 2; + } + + export class Kettle { // Should error + ~~~~~~ +!!! error TS2300: Duplicate identifier 'Kettle'. + member2 = 42; + } + + export var Pot = 2; + Pot = 42; // Shouldn't error + + export enum Utensils { + Spoon, + Fork, + Knife + } + + export enum Utensils { // Shouldn't error + Spork = 3 + } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleDuplicateIdentifiers.js b/tests/baselines/reference/moduleDuplicateIdentifiers.js new file mode 100644 index 00000000000..1d64c0490c5 --- /dev/null +++ b/tests/baselines/reference/moduleDuplicateIdentifiers.js @@ -0,0 +1,80 @@ +//// [moduleDuplicateIdentifiers.ts] +export var Foo = 2; +export var Foo = 42; // Should error + +export interface Bar { + _brand1: any; +} + +export interface Bar { // Shouldn't error + _brand2: any; +} + +export namespace FooBar { + export var member1 = 2; +} + +export namespace FooBar { // Shouldn't error + export var member2 = 42; +} + +export class Kettle { + member1 = 2; +} + +export class Kettle { // Should error + member2 = 42; +} + +export var Pot = 2; +Pot = 42; // Shouldn't error + +export enum Utensils { + Spoon, + Fork, + Knife +} + +export enum Utensils { // Shouldn't error + Spork = 3 +} + + +//// [moduleDuplicateIdentifiers.js] +"use strict"; +exports.Foo = 2; +exports.Foo = 42; // Should error +var FooBar; +(function (FooBar) { + FooBar.member1 = 2; +})(FooBar = exports.FooBar || (exports.FooBar = {})); +var FooBar; +(function (FooBar) { + FooBar.member2 = 42; +})(FooBar = exports.FooBar || (exports.FooBar = {})); +var Kettle = (function () { + function Kettle() { + this.member1 = 2; + } + return Kettle; +}()); +exports.Kettle = Kettle; +var Kettle = (function () { + function Kettle() { + this.member2 = 42; + } + return Kettle; +}()); +exports.Kettle = Kettle; +exports.Pot = 2; +exports.Pot = 42; // Shouldn't error +(function (Utensils) { + Utensils[Utensils["Spoon"] = 0] = "Spoon"; + Utensils[Utensils["Fork"] = 1] = "Fork"; + Utensils[Utensils["Knife"] = 2] = "Knife"; +})(exports.Utensils || (exports.Utensils = {})); +var Utensils = exports.Utensils; +(function (Utensils) { + Utensils[Utensils["Spork"] = 3] = "Spork"; +})(exports.Utensils || (exports.Utensils = {})); +var Utensils = exports.Utensils; diff --git a/tests/baselines/reference/moduleElementsInWrongContext.js b/tests/baselines/reference/moduleElementsInWrongContext.js index 635da02bdf2..26fd511a955 100644 --- a/tests/baselines/reference/moduleElementsInWrongContext.js +++ b/tests/baselines/reference/moduleElementsInWrongContext.js @@ -34,13 +34,12 @@ { var v; function foo() { } - __export(require("ambient")); exports["default"] = v; var C = (function () { function C() { } return C; - })(); + }()); exports["default"] = C; function bee() { } exports.bee = bee; diff --git a/tests/baselines/reference/moduleElementsInWrongContext2.js b/tests/baselines/reference/moduleElementsInWrongContext2.js index fdf1222e549..24fccc02dc5 100644 --- a/tests/baselines/reference/moduleElementsInWrongContext2.js +++ b/tests/baselines/reference/moduleElementsInWrongContext2.js @@ -34,13 +34,12 @@ function blah () { function blah() { var v; function foo() { } - __export(require("ambient")); exports["default"] = v; var C = (function () { function C() { } return C; - })(); + }()); exports["default"] = C; function bee() { } exports.bee = bee; diff --git a/tests/baselines/reference/moduleElementsInWrongContext3.js b/tests/baselines/reference/moduleElementsInWrongContext3.js index d464d9d31b1..c5c0d491cd3 100644 --- a/tests/baselines/reference/moduleElementsInWrongContext3.js +++ b/tests/baselines/reference/moduleElementsInWrongContext3.js @@ -37,13 +37,12 @@ var P; { var v; function foo() { } - __export(require("ambient")); P["default"] = v; var C = (function () { function C() { } return C; - })(); + }()); exports["default"] = C; function bee() { } P.bee = bee; diff --git a/tests/baselines/reference/moduleExports1.js b/tests/baselines/reference/moduleExports1.js index 724237c35cf..130091cd61c 100644 --- a/tests/baselines/reference/moduleExports1.js +++ b/tests/baselines/reference/moduleExports1.js @@ -26,7 +26,7 @@ define(["require", "exports"], function (require, exports) { function Rue() { } return Rue; - })(); + }()); Street.Rue = Rue; })(Street = Strasse.Street || (Strasse.Street = {})); })(Strasse = TypeScript.Strasse || (TypeScript.Strasse = {})); diff --git a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js index 81be08f21c2..cd2df2633ae 100644 --- a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js +++ b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js @@ -27,12 +27,12 @@ define(["require", "exports"], function (require, exports) { function C1() { } return C1; - })(); + }()); var Test1 = (function (_super) { __extends(Test1, _super); function Test1() { _super.apply(this, arguments); } return Test1; - })(C1); + }(C1)); }); diff --git a/tests/baselines/reference/moduleInTypePosition1.js b/tests/baselines/reference/moduleInTypePosition1.js index 970cc300b17..a590e23f71e 100644 --- a/tests/baselines/reference/moduleInTypePosition1.js +++ b/tests/baselines/reference/moduleInTypePosition1.js @@ -17,7 +17,7 @@ var Promise = (function () { function Promise() { } return Promise; -})(); +}()); exports.Promise = Promise; //// [moduleInTypePosition1_1.js] "use strict"; diff --git a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js index 1467ec18b91..090d6502d5b 100644 --- a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js +++ b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js @@ -58,7 +58,7 @@ var TypeScript; return null; }; return SyntaxCursor; - })(); + }()); })(Parser = TypeScript.Parser || (TypeScript.Parser = {})); })(TypeScript || (TypeScript = {})); var TypeScript; @@ -72,13 +72,13 @@ var TypeScript; return TypeScript.Syntax.childIndex(); }; return PositionedElement; - })(); + }()); TypeScript.PositionedElement = PositionedElement; var PositionedToken = (function () { function PositionedToken(parent, token, fullStart) { } return PositionedToken; - })(); + }()); TypeScript.PositionedToken = PositionedToken; })(TypeScript || (TypeScript = {})); var TypeScript; @@ -95,7 +95,7 @@ var TypeScript; return null; }; return SyntaxNode; - })(); + }()); TypeScript.SyntaxNode = SyntaxNode; })(TypeScript || (TypeScript = {})); var TypeScript; @@ -111,7 +111,7 @@ var TypeScript; return new TypeScript.PositionedToken(parent, this, fullStart); }; return VariableWidthTokenWithTrailingTrivia; - })(); + }()); Syntax.VariableWidthTokenWithTrailingTrivia = VariableWidthTokenWithTrailingTrivia; })(Syntax = TypeScript.Syntax || (TypeScript.Syntax = {})); })(TypeScript || (TypeScript = {})); diff --git a/tests/baselines/reference/moduleMerge.js b/tests/baselines/reference/moduleMerge.js index aa06bae1597..04f2f511b8d 100644 --- a/tests/baselines/reference/moduleMerge.js +++ b/tests/baselines/reference/moduleMerge.js @@ -34,7 +34,7 @@ var A; return "from private B"; }; return B; - })(); + }()); })(A || (A = {})); var A; (function (A) { @@ -45,6 +45,6 @@ var A; return "from export B"; }; return B; - })(); + }()); A.B = B; })(A || (A = {})); diff --git a/tests/baselines/reference/moduleMergeConstructor.js b/tests/baselines/reference/moduleMergeConstructor.js index 70e43e25bbb..5ab4ab381e0 100644 --- a/tests/baselines/reference/moduleMergeConstructor.js +++ b/tests/baselines/reference/moduleMergeConstructor.js @@ -35,5 +35,5 @@ define(["require", "exports", "foo"], function (require, exports, foo) { this.bar = new foo.Foo(); } return Test; - })(); + }()); }); diff --git a/tests/baselines/reference/moduleNewExportBug.js b/tests/baselines/reference/moduleNewExportBug.js index ce40915b2f6..b48f6dd73b0 100644 --- a/tests/baselines/reference/moduleNewExportBug.js +++ b/tests/baselines/reference/moduleNewExportBug.js @@ -21,6 +21,6 @@ var mod1; } C.prototype.moo = function () { }; return C; - })(); + }()); })(mod1 || (mod1 = {})); var c; // ERROR: C should not be visible diff --git a/tests/baselines/reference/modulePrologueAMD.js b/tests/baselines/reference/modulePrologueAMD.js index 904808b9f6b..c3512734f94 100644 --- a/tests/baselines/reference/modulePrologueAMD.js +++ b/tests/baselines/reference/modulePrologueAMD.js @@ -10,6 +10,6 @@ define(["require", "exports"], function (require, exports) { function Foo() { } return Foo; - })(); + }()); exports.Foo = Foo; }); diff --git a/tests/baselines/reference/modulePrologueCommonjs.js b/tests/baselines/reference/modulePrologueCommonjs.js index 67b704a3650..4a9594d254b 100644 --- a/tests/baselines/reference/modulePrologueCommonjs.js +++ b/tests/baselines/reference/modulePrologueCommonjs.js @@ -9,5 +9,5 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); exports.Foo = Foo; diff --git a/tests/baselines/reference/modulePrologueSystem.js b/tests/baselines/reference/modulePrologueSystem.js index 91703d1c7fb..80a46fb27fc 100644 --- a/tests/baselines/reference/modulePrologueSystem.js +++ b/tests/baselines/reference/modulePrologueSystem.js @@ -14,7 +14,7 @@ System.register([], function(exports_1) { function Foo() { } return Foo; - })(); + }()); exports_1("Foo", Foo); } } diff --git a/tests/baselines/reference/modulePrologueUmd.js b/tests/baselines/reference/modulePrologueUmd.js index 65803af6cad..a573559b7e9 100644 --- a/tests/baselines/reference/modulePrologueUmd.js +++ b/tests/baselines/reference/modulePrologueUmd.js @@ -17,6 +17,6 @@ export class Foo {} function Foo() { } return Foo; - })(); + }()); exports.Foo = Foo; }); diff --git a/tests/baselines/reference/moduleRedifinitionErrors.js b/tests/baselines/reference/moduleRedifinitionErrors.js index 12714632146..830ea03e1d3 100644 --- a/tests/baselines/reference/moduleRedifinitionErrors.js +++ b/tests/baselines/reference/moduleRedifinitionErrors.js @@ -10,4 +10,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/moduleReopenedTypeOtherBlock.js b/tests/baselines/reference/moduleReopenedTypeOtherBlock.js index 951c558ddfd..3380cd0ec7d 100644 --- a/tests/baselines/reference/moduleReopenedTypeOtherBlock.js +++ b/tests/baselines/reference/moduleReopenedTypeOtherBlock.js @@ -15,7 +15,7 @@ var M; function C1() { } return C1; - })(); + }()); M.C1 = C1; })(M || (M = {})); var M; @@ -25,6 +25,6 @@ var M; } C2.prototype.f = function () { return null; }; return C2; - })(); + }()); M.C2 = C2; })(M || (M = {})); diff --git a/tests/baselines/reference/moduleReopenedTypeSameBlock.js b/tests/baselines/reference/moduleReopenedTypeSameBlock.js index 92e7e9e5228..b9624e75b75 100644 --- a/tests/baselines/reference/moduleReopenedTypeSameBlock.js +++ b/tests/baselines/reference/moduleReopenedTypeSameBlock.js @@ -13,7 +13,7 @@ var M; function C1() { } return C1; - })(); + }()); M.C1 = C1; })(M || (M = {})); var M; @@ -23,6 +23,6 @@ var M; } C2.prototype.f = function () { return null; }; return C2; - })(); + }()); M.C2 = C2; })(M || (M = {})); diff --git a/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.js b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.js new file mode 100644 index 00000000000..4061a32b49f --- /dev/null +++ b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/moduleSameValueDuplicateExportedBindings1.ts] //// + +//// [a.ts] +export * from "./b"; +export * from "./c"; + +//// [b.ts] +export * from "./c"; + +//// [c.ts] +export var foo = 42; + +//// [c.js] +"use strict"; +exports.foo = 42; +//// [b.js] +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +__export(require("./c")); +//// [a.js] +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +__export(require("./b")); +__export(require("./c")); diff --git a/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.symbols b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.symbols new file mode 100644 index 00000000000..2f8bba9b6ab --- /dev/null +++ b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.symbols @@ -0,0 +1,11 @@ +=== tests/cases/compiler/a.ts === +export * from "./b"; +No type information for this code.export * from "./c"; +No type information for this code. +No type information for this code.=== tests/cases/compiler/b.ts === +export * from "./c"; +No type information for this code. +No type information for this code.=== tests/cases/compiler/c.ts === +export var foo = 42; +>foo : Symbol(foo, Decl(c.ts, 0, 10)) + diff --git a/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.types b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.types new file mode 100644 index 00000000000..57be71c802b --- /dev/null +++ b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings1.types @@ -0,0 +1,12 @@ +=== tests/cases/compiler/a.ts === +export * from "./b"; +No type information for this code.export * from "./c"; +No type information for this code. +No type information for this code.=== tests/cases/compiler/b.ts === +export * from "./c"; +No type information for this code. +No type information for this code.=== tests/cases/compiler/c.ts === +export var foo = 42; +>foo : number +>42 : number + diff --git a/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.js b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.js new file mode 100644 index 00000000000..99a09af149a --- /dev/null +++ b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.js @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/moduleSameValueDuplicateExportedBindings2.ts] //// + +//// [a.ts] +export * from "./b"; +export * from "./c"; + +//// [b.ts] +export {Animals} from "./c"; + +//// [c.ts] +export enum Animals { + Cat, + Dog +}; + +//// [c.js] +"use strict"; +(function (Animals) { + Animals[Animals["Cat"] = 0] = "Cat"; + Animals[Animals["Dog"] = 1] = "Dog"; +})(exports.Animals || (exports.Animals = {})); +var Animals = exports.Animals; +; +//// [b.js] +"use strict"; +var c_1 = require("./c"); +exports.Animals = c_1.Animals; +//// [a.js] +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +__export(require("./b")); +__export(require("./c")); diff --git a/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.symbols b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.symbols new file mode 100644 index 00000000000..390fd1b0bed --- /dev/null +++ b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.symbols @@ -0,0 +1,19 @@ +=== tests/cases/compiler/a.ts === +export * from "./b"; +No type information for this code.export * from "./c"; +No type information for this code. +No type information for this code.=== tests/cases/compiler/b.ts === +export {Animals} from "./c"; +>Animals : Symbol(Animals, Decl(b.ts, 0, 8)) + +=== tests/cases/compiler/c.ts === +export enum Animals { +>Animals : Symbol(Animals, Decl(c.ts, 0, 0)) + + Cat, +>Cat : Symbol(Animals.Cat, Decl(c.ts, 0, 21)) + + Dog +>Dog : Symbol(Animals.Dog, Decl(c.ts, 1, 5)) + +}; diff --git a/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.types b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.types new file mode 100644 index 00000000000..600b0d946c6 --- /dev/null +++ b/tests/baselines/reference/moduleSameValueDuplicateExportedBindings2.types @@ -0,0 +1,19 @@ +=== tests/cases/compiler/a.ts === +export * from "./b"; +No type information for this code.export * from "./c"; +No type information for this code. +No type information for this code.=== tests/cases/compiler/b.ts === +export {Animals} from "./c"; +>Animals : typeof Animals + +=== tests/cases/compiler/c.ts === +export enum Animals { +>Animals : Animals + + Cat, +>Cat : Animals + + Dog +>Dog : Animals + +}; diff --git a/tests/baselines/reference/moduleScoping.errors.txt b/tests/baselines/reference/moduleScoping.errors.txt index 21471bc93a5..961715f2e71 100644 --- a/tests/baselines/reference/moduleScoping.errors.txt +++ b/tests/baselines/reference/moduleScoping.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/file3.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/file3.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/file1.ts (0 errors) ==== @@ -11,7 +11,7 @@ tests/cases/conformance/externalModules/file3.ts(1,1): error TS1148: Cannot comp ==== tests/cases/conformance/externalModules/file3.ts (1 errors) ==== export var v3 = true; ~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. var v2 = [1,2,3]; // Module scope. Should not appear in global scope ==== tests/cases/conformance/externalModules/file4.ts (0 errors) ==== diff --git a/tests/baselines/reference/moduleScopingBug.js b/tests/baselines/reference/moduleScopingBug.js index d9ac55e2b88..5d18b2de676 100644 --- a/tests/baselines/reference/moduleScopingBug.js +++ b/tests/baselines/reference/moduleScopingBug.js @@ -41,7 +41,7 @@ var M; var inner = outer; // Ok } return C; - })(); + }()); var X; (function (X) { var inner = outer; // Error: outer not visible diff --git a/tests/baselines/reference/moduleVisibilityTest1.js b/tests/baselines/reference/moduleVisibilityTest1.js index f4655513bec..3278613409d 100644 --- a/tests/baselines/reference/moduleVisibilityTest1.js +++ b/tests/baselines/reference/moduleVisibilityTest1.js @@ -99,7 +99,7 @@ var M; this.b = 0; } return B; - })(); + }()); var C = (function () { function C() { this.someProp = 1; @@ -111,7 +111,7 @@ var M; C.prototype.someMethodThatCallsAnOuterInnerMethod = function () { return OuterMod.someExportedOuterFunc(); }; C.prototype.someMethod = function () { return 0; }; return C; - })(); + }()); M.C = C; var someModuleVar = 4; function someModuleFunction() { return 5; } diff --git a/tests/baselines/reference/moduleVisibilityTest2.js b/tests/baselines/reference/moduleVisibilityTest2.js index 9102bd17ae2..51f3b00255b 100644 --- a/tests/baselines/reference/moduleVisibilityTest2.js +++ b/tests/baselines/reference/moduleVisibilityTest2.js @@ -100,7 +100,7 @@ var M; this.b = 0; } return B; - })(); + }()); var C = (function () { function C() { this.someProp = 1; @@ -112,7 +112,7 @@ var M; C.prototype.someMethodThatCallsAnOuterInnerMethod = function () { return OuterMod.someExportedOuterFunc(); }; C.prototype.someMethod = function () { return 0; }; return C; - })(); + }()); M.C = C; var someModuleVar = 4; function someModuleFunction() { return 5; } diff --git a/tests/baselines/reference/moduleVisibilityTest3.js b/tests/baselines/reference/moduleVisibilityTest3.js index 7032c8dc3d7..deeec304d98 100644 --- a/tests/baselines/reference/moduleVisibilityTest3.js +++ b/tests/baselines/reference/moduleVisibilityTest3.js @@ -33,7 +33,7 @@ var _modes; function Mode() { } return Mode; - })(); + }()); })(_modes || (_modes = {})); //_modes. // produces an internal error - please implement in derived class var editor; @@ -45,5 +45,5 @@ var editor; var x; } return Bug; - })(); + }()); })(editor || (editor = {})); diff --git a/tests/baselines/reference/moduleWithStatementsOfEveryKind.js b/tests/baselines/reference/moduleWithStatementsOfEveryKind.js index aeffc8d6e5b..ec434286f43 100644 --- a/tests/baselines/reference/moduleWithStatementsOfEveryKind.js +++ b/tests/baselines/reference/moduleWithStatementsOfEveryKind.js @@ -70,33 +70,33 @@ var A; function A() { } return A; - })(); + }()); var AA = (function () { function AA() { } return AA; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(AA); + }(AA)); var BB = (function (_super) { __extends(BB, _super); function BB() { _super.apply(this, arguments); } return BB; - })(A); + }(A)); var Module; (function (Module) { var A = (function () { function A() { } return A; - })(); + }()); })(Module || (Module = {})); var Color; (function (Color) { @@ -119,13 +119,13 @@ var Y; function A() { } return A; - })(); + }()); Y.A = A; var AA = (function () { function AA() { } return AA; - })(); + }()); Y.AA = AA; var B = (function (_super) { __extends(B, _super); @@ -133,7 +133,7 @@ var Y; _super.apply(this, arguments); } return B; - })(AA); + }(AA)); Y.B = B; var BB = (function (_super) { __extends(BB, _super); @@ -141,7 +141,7 @@ var Y; _super.apply(this, arguments); } return BB; - })(A); + }(A)); Y.BB = BB; var Module; (function (Module) { @@ -149,7 +149,7 @@ var Y; function A() { } return A; - })(); + }()); })(Module = Y.Module || (Y.Module = {})); (function (Color) { Color[Color["Blue"] = 0] = "Blue"; diff --git a/tests/baselines/reference/moduledecl.js b/tests/baselines/reference/moduledecl.js index f835729dc4d..2e765e512d8 100644 --- a/tests/baselines/reference/moduledecl.js +++ b/tests/baselines/reference/moduledecl.js @@ -244,7 +244,7 @@ var m0; function c1() { } return c1; - })(); + }()); })(m0 || (m0 = {})); var m1; (function (m1) { @@ -265,7 +265,7 @@ var m1; return "Hello"; }; return c1; - })(); + }()); m1.c1 = c1; })(m1 || (m1 = {})); var m; @@ -315,7 +315,7 @@ var exportTests; return "string"; }; return C1_public; - })(); + }()); exportTests.C1_public = C1_public; var C2_private = (function () { function C2_private() { @@ -327,7 +327,7 @@ var exportTests; return "string"; }; return C2_private; - })(); + }()); var C3_public = (function () { function C3_public() { } @@ -356,7 +356,7 @@ var exportTests; configurable: true }); return C3_public; - })(); + }()); exportTests.C3_public = C3_public; })(exportTests || (exportTests = {})); function foo() { diff --git a/tests/baselines/reference/multiImportExport.js b/tests/baselines/reference/multiImportExport.js index 28ebecdd0f0..34832c93966 100644 --- a/tests/baselines/reference/multiImportExport.js +++ b/tests/baselines/reference/multiImportExport.js @@ -33,7 +33,7 @@ var Adder = (function () { Adder.prototype.add = function (a, b) { }; return Adder; -})(); +}()); module.exports = Adder; //// [Math.js] "use strict"; diff --git a/tests/baselines/reference/multiModuleClodule1.js b/tests/baselines/reference/multiModuleClodule1.js index 9f6d7b5014c..b5b11058368 100644 --- a/tests/baselines/reference/multiModuleClodule1.js +++ b/tests/baselines/reference/multiModuleClodule1.js @@ -26,7 +26,7 @@ var C = (function () { C.prototype.bar = function () { }; C.boo = function () { }; return C; -})(); +}()); var C; (function (C) { C.x = 1; diff --git a/tests/baselines/reference/multipleClassPropertyModifiers.js b/tests/baselines/reference/multipleClassPropertyModifiers.js index 7dec786c447..294e303e254 100644 --- a/tests/baselines/reference/multipleClassPropertyModifiers.js +++ b/tests/baselines/reference/multipleClassPropertyModifiers.js @@ -11,4 +11,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/multipleClassPropertyModifiersErrors.js b/tests/baselines/reference/multipleClassPropertyModifiersErrors.js index 191476e9a62..5bfa6979ef2 100644 --- a/tests/baselines/reference/multipleClassPropertyModifiersErrors.js +++ b/tests/baselines/reference/multipleClassPropertyModifiersErrors.js @@ -14,4 +14,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/multipleDefaultExports01.js b/tests/baselines/reference/multipleDefaultExports01.js index 2a9dc18ca77..e15f8fc879c 100644 --- a/tests/baselines/reference/multipleDefaultExports01.js +++ b/tests/baselines/reference/multipleDefaultExports01.js @@ -24,7 +24,7 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = foo; function bar() { diff --git a/tests/baselines/reference/multipleDefaultExports02.errors.txt b/tests/baselines/reference/multipleDefaultExports02.errors.txt index 235f8f7c3e3..3f27db47c94 100644 --- a/tests/baselines/reference/multipleDefaultExports02.errors.txt +++ b/tests/baselines/reference/multipleDefaultExports02.errors.txt @@ -1,17 +1,23 @@ +tests/cases/conformance/es6/modules/m1.ts(2,25): error TS2323: Cannot redeclare exported variable 'default'. tests/cases/conformance/es6/modules/m1.ts(2,25): error TS2393: Duplicate function implementation. +tests/cases/conformance/es6/modules/m1.ts(6,25): error TS2323: Cannot redeclare exported variable 'default'. tests/cases/conformance/es6/modules/m1.ts(6,25): error TS2393: Duplicate function implementation. -==== tests/cases/conformance/es6/modules/m1.ts (2 errors) ==== +==== tests/cases/conformance/es6/modules/m1.ts (4 errors) ==== export default function foo() { ~~~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~~~ !!! error TS2393: Duplicate function implementation. } export default function bar() { ~~~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~~~ !!! error TS2393: Duplicate function implementation. } diff --git a/tests/baselines/reference/multipleDefaultExports03.js b/tests/baselines/reference/multipleDefaultExports03.js index d5699d850c0..748837baceb 100644 --- a/tests/baselines/reference/multipleDefaultExports03.js +++ b/tests/baselines/reference/multipleDefaultExports03.js @@ -12,13 +12,13 @@ var C = (function () { function C() { } return C; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = C; var C = (function () { function C() { } return C; -})(); +}()); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = C; diff --git a/tests/baselines/reference/multipleDefaultExports04.errors.txt b/tests/baselines/reference/multipleDefaultExports04.errors.txt index e67659f6b9f..bf137e3cc17 100644 --- a/tests/baselines/reference/multipleDefaultExports04.errors.txt +++ b/tests/baselines/reference/multipleDefaultExports04.errors.txt @@ -1,15 +1,21 @@ +tests/cases/conformance/es6/modules/multipleDefaultExports04.ts(2,25): error TS2323: Cannot redeclare exported variable 'default'. tests/cases/conformance/es6/modules/multipleDefaultExports04.ts(2,25): error TS2393: Duplicate function implementation. +tests/cases/conformance/es6/modules/multipleDefaultExports04.ts(5,25): error TS2323: Cannot redeclare exported variable 'default'. tests/cases/conformance/es6/modules/multipleDefaultExports04.ts(5,25): error TS2393: Duplicate function implementation. -==== tests/cases/conformance/es6/modules/multipleDefaultExports04.ts (2 errors) ==== +==== tests/cases/conformance/es6/modules/multipleDefaultExports04.ts (4 errors) ==== export default function f() { ~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~ !!! error TS2393: Duplicate function implementation. } export default function f() { ~ +!!! error TS2323: Cannot redeclare exported variable 'default'. + ~ !!! error TS2393: Duplicate function implementation. } \ No newline at end of file diff --git a/tests/baselines/reference/multipleInheritance.js b/tests/baselines/reference/multipleInheritance.js index 901838b584b..26372bfb718 100644 --- a/tests/baselines/reference/multipleInheritance.js +++ b/tests/baselines/reference/multipleInheritance.js @@ -48,59 +48,59 @@ var B1 = (function () { function B1() { } return B1; -})(); +}()); var B2 = (function () { function B2() { } return B2; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(B1); +}(B1)); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(B1); +}(B1)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(B2); +}(B2)); var E = (function (_super) { __extends(E, _super); function E() { _super.apply(this, arguments); } return E; -})(D1); +}(D1)); var N = (function () { function N() { } return N; -})(); +}()); var ND = (function (_super) { __extends(ND, _super); function ND() { _super.apply(this, arguments); } return ND; -})(N); +}(N)); var Good = (function () { function Good() { this.f = function () { return 0; }; } Good.prototype.g = function () { return 0; }; return Good; -})(); +}()); var Baad = (function (_super) { __extends(Baad, _super); function Baad() { @@ -109,4 +109,4 @@ var Baad = (function (_super) { Baad.prototype.f = function () { return 0; }; Baad.prototype.g = function (n) { return 0; }; return Baad; -})(Good); +}(Good)); diff --git a/tests/baselines/reference/multipleNumericIndexers.js b/tests/baselines/reference/multipleNumericIndexers.js index 638cf01569a..7b5207d2303 100644 --- a/tests/baselines/reference/multipleNumericIndexers.js +++ b/tests/baselines/reference/multipleNumericIndexers.js @@ -38,11 +38,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { 1: '', "2": '' }; var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/multipleStringIndexers.js b/tests/baselines/reference/multipleStringIndexers.js index 55dd816e42b..98db93c7055 100644 --- a/tests/baselines/reference/multipleStringIndexers.js +++ b/tests/baselines/reference/multipleStringIndexers.js @@ -37,11 +37,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { y: '' }; var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/multivar.js b/tests/baselines/reference/multivar.js index 3f9796d2944..f24728fef92 100644 --- a/tests/baselines/reference/multivar.js +++ b/tests/baselines/reference/multivar.js @@ -60,13 +60,13 @@ var m2; this.b = b; } return C; - })(); + }()); var C2 = (function () { function C2(b) { this.b = b; } return C2; - })(); + }()); m2.C2 = C2; var m; var b2; diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js index 09f4be0c4e9..c8cca671327 100644 --- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js +++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js @@ -21,12 +21,12 @@ var foo = (function () { } foo.prototype.bar = function () { return null; }; return foo; -})(); +}()); var foo2 = (function (_super) { __extends(foo2, _super); function foo2() { _super.apply(this, arguments); } return foo2; -})(foo); +}(foo)); var test = new foo(); diff --git a/tests/baselines/reference/nameCollision.js b/tests/baselines/reference/nameCollision.js index 0e559b7091c..4f41bf4a086 100644 --- a/tests/baselines/reference/nameCollision.js +++ b/tests/baselines/reference/nameCollision.js @@ -66,7 +66,7 @@ var B; function B() { } return B; - })(); + }()); })(B || (B = {})); var X; (function (X_1) { diff --git a/tests/baselines/reference/nameCollisions.js b/tests/baselines/reference/nameCollisions.js index 96ae2e9838b..a36f66e8dc9 100644 --- a/tests/baselines/reference/nameCollisions.js +++ b/tests/baselines/reference/nameCollisions.js @@ -57,7 +57,7 @@ var T; function Bar() { } return Bar; - })(); + }()); x.Bar = Bar; })(x || (x = {})); var z; @@ -73,7 +73,7 @@ var T; function y() { } return y; - })(); // error + }()); // error var w; var f; function f() { } //error @@ -84,23 +84,23 @@ var T; function C() { } return C; - })(); + }()); function C() { } // error function C2() { } var C2 = (function () { function C2() { } return C2; - })(); // error + }()); // error function fi() { } var cli = (function () { function cli() { } return cli; - })(); + }()); var cli2 = (function () { function cli2() { } return cli2; - })(); + }()); })(T || (T = {})); diff --git a/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.js b/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.js index 0ce927b78c7..a0aaa82e895 100644 --- a/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.js +++ b/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.js @@ -21,4 +21,4 @@ var Foo = (function () { }; // this shouldn't crash the compiler... } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/namespaces2.js b/tests/baselines/reference/namespaces2.js index 980d6ea9243..b7b1c38f08d 100644 --- a/tests/baselines/reference/namespaces2.js +++ b/tests/baselines/reference/namespaces2.js @@ -16,7 +16,7 @@ var A; function C() { } return C; - })(); + }()); B.C = C; })(B = A.B || (A.B = {})); })(A || (A = {})); diff --git a/tests/baselines/reference/narrowTypeByInstanceof.js b/tests/baselines/reference/narrowTypeByInstanceof.js index 11f55089bda..0415c72b9fd 100644 --- a/tests/baselines/reference/narrowTypeByInstanceof.js +++ b/tests/baselines/reference/narrowTypeByInstanceof.js @@ -33,7 +33,7 @@ var Match = (function () { return undefined; }; return Match; -})(); +}()); var FileMatch = (function () { function FileMatch() { } @@ -41,7 +41,7 @@ var FileMatch = (function () { return undefined; }; return FileMatch; -})(); +}()); var elementA, elementB; if (elementA instanceof FileMatch && elementB instanceof FileMatch) { var a = elementA.resource().path; diff --git a/tests/baselines/reference/negateOperatorWithAnyOtherType.js b/tests/baselines/reference/negateOperatorWithAnyOtherType.js index e0dd9b184c3..6a2fe74c7ba 100644 --- a/tests/baselines/reference/negateOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/negateOperatorWithAnyOtherType.js @@ -72,7 +72,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/negateOperatorWithBooleanType.js b/tests/baselines/reference/negateOperatorWithBooleanType.js index c357849d8a5..07d404b0c6c 100644 --- a/tests/baselines/reference/negateOperatorWithBooleanType.js +++ b/tests/baselines/reference/negateOperatorWithBooleanType.js @@ -44,7 +44,7 @@ var A = (function () { } A.foo = function () { return false; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/negateOperatorWithNumberType.js b/tests/baselines/reference/negateOperatorWithNumberType.js index 8a29830e3e4..42b78dc0a2b 100644 --- a/tests/baselines/reference/negateOperatorWithNumberType.js +++ b/tests/baselines/reference/negateOperatorWithNumberType.js @@ -51,7 +51,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/negateOperatorWithStringType.js b/tests/baselines/reference/negateOperatorWithStringType.js index 2b79819894c..8a70f5e2805 100644 --- a/tests/baselines/reference/negateOperatorWithStringType.js +++ b/tests/baselines/reference/negateOperatorWithStringType.js @@ -50,7 +50,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/nestedClassDeclaration.js b/tests/baselines/reference/nestedClassDeclaration.js index 2fee6f08ab9..f9e3d08144d 100644 --- a/tests/baselines/reference/nestedClassDeclaration.js +++ b/tests/baselines/reference/nestedClassDeclaration.js @@ -24,18 +24,18 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); function foo() { var C3 = (function () { function C3() { } return C3; - })(); + }()); } var x = { class: C4 }, _a = void 0; diff --git a/tests/baselines/reference/nestedSelf.js b/tests/baselines/reference/nestedSelf.js index 9c0feaa887f..ea6abc8e1e8 100644 --- a/tests/baselines/reference/nestedSelf.js +++ b/tests/baselines/reference/nestedSelf.js @@ -20,6 +20,6 @@ var M; [1, 2, 3].map(function (x) { return _this.n * x; }); }; return C; - })(); + }()); M.C = C; })(M || (M = {})); diff --git a/tests/baselines/reference/newArrays.js b/tests/baselines/reference/newArrays.js index adc51eb843a..d156ee24f1c 100644 --- a/tests/baselines/reference/newArrays.js +++ b/tests/baselines/reference/newArrays.js @@ -19,7 +19,7 @@ var M; function Foo() { } return Foo; - })(); + }()); var Gar = (function () { function Gar() { this.x = 10; @@ -29,5 +29,5 @@ var M; this.fa = new Array(this.x * this.y); }; return Gar; - })(); + }()); })(M || (M = {})); diff --git a/tests/baselines/reference/newOnInstanceSymbol.js b/tests/baselines/reference/newOnInstanceSymbol.js index a66e4d74255..755cc35e19e 100644 --- a/tests/baselines/reference/newOnInstanceSymbol.js +++ b/tests/baselines/reference/newOnInstanceSymbol.js @@ -8,6 +8,6 @@ var C = (function () { function C() { } return C; -})(); +}()); var x = new C(); // should be ok new x(); // should error diff --git a/tests/baselines/reference/newOperator.js b/tests/baselines/reference/newOperator.js index 95dc410142e..75ad42de8c3 100644 --- a/tests/baselines/reference/newOperator.js +++ b/tests/baselines/reference/newOperator.js @@ -75,7 +75,7 @@ var M; function T() { } return T; - })(); + }()); M.T = T; })(M || (M = {})); var S = (function () { @@ -89,4 +89,4 @@ var S = (function () { configurable: true }); return S; -})(); +}()); diff --git a/tests/baselines/reference/newOperatorConformance.js b/tests/baselines/reference/newOperatorConformance.js index a04b10dc8fe..3b84cbd6698 100644 --- a/tests/baselines/reference/newOperatorConformance.js +++ b/tests/baselines/reference/newOperatorConformance.js @@ -68,17 +68,17 @@ var C0 = (function () { function C0() { } return C0; -})(); +}()); var C1 = (function () { function C1(n, s) { } return C1; -})(); +}()); var T = (function () { function T(n) { } return T; -})(); +}()); var anyCtor; var anyCtor1; var nestedCtor; diff --git a/tests/baselines/reference/newOperatorErrorCases.js b/tests/baselines/reference/newOperatorErrorCases.js index b893beba02a..6d57f9a090e 100644 --- a/tests/baselines/reference/newOperatorErrorCases.js +++ b/tests/baselines/reference/newOperatorErrorCases.js @@ -43,17 +43,17 @@ var C0 = (function () { function C0() { } return C0; -})(); +}()); var C1 = (function () { function C1(n, s) { } return C1; -})(); +}()); var T = (function () { function T(n) { } return T; -})(); +}()); var anyCtor; var anyCtor1; var nestedCtor; diff --git a/tests/baselines/reference/newWithSpread.js b/tests/baselines/reference/newWithSpread.js index 3161eb9f67e..3b4a726b4d4 100644 --- a/tests/baselines/reference/newWithSpread.js +++ b/tests/baselines/reference/newWithSpread.js @@ -118,7 +118,7 @@ var B = (function () { } } return B; -})(); +}()); var a; var b; var c; diff --git a/tests/baselines/reference/newWithSpreadES5.js b/tests/baselines/reference/newWithSpreadES5.js index f7470266273..fffa53d7c90 100644 --- a/tests/baselines/reference/newWithSpreadES5.js +++ b/tests/baselines/reference/newWithSpreadES5.js @@ -117,7 +117,7 @@ var B = (function () { } } return B; -})(); +}()); var a; var b; var c; diff --git a/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.js b/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.js index 8a485a2ebe2..b31eccee9b5 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.js +++ b/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.js @@ -8,5 +8,5 @@ var _this = (function () { function _this() { } return _this; -})(); +}()); var f = function () { return _this; }; diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInAccessors.js b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInAccessors.js index 727b1b6087a..43218ef9697 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInAccessors.js +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInAccessors.js @@ -69,7 +69,7 @@ var class1 = (function () { configurable: true }); return class1; -})(); +}()); var class2 = (function () { function class2() { } @@ -95,4 +95,4 @@ var class2 = (function () { configurable: true }); return class2; -})(); +}()); diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.js b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.js index a01996848b1..79d0fd5549c 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.js +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.js @@ -32,7 +32,7 @@ var class1 = (function () { }; } return class1; -})(); +}()); var class2 = (function () { function class2() { var _this = 2; @@ -43,4 +43,4 @@ var class2 = (function () { }; } return class2; -})(); +}()); diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js index b7e9cc7561f..b7fdfc5a49d 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js @@ -41,4 +41,4 @@ var a = (function () { }; }; return a; -})(); +}()); diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.js b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.js index da989bed263..3265da26d14 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.js +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.js @@ -30,7 +30,7 @@ var class1 = (function () { }; } return class1; -})(); +}()); var class2 = (function () { function class2() { this.prop1 = { @@ -41,4 +41,4 @@ var class2 = (function () { var _this = 2; } return class2; -})(); +}()); diff --git a/tests/baselines/reference/noConstraintInReturnType1.js b/tests/baselines/reference/noConstraintInReturnType1.js index 0402f9d83cb..03ce629c446 100644 --- a/tests/baselines/reference/noConstraintInReturnType1.js +++ b/tests/baselines/reference/noConstraintInReturnType1.js @@ -10,7 +10,7 @@ var List = (function () { } List.empty = function () { return null; }; return List; -})(); +}()); //// [noConstraintInReturnType1.d.ts] diff --git a/tests/baselines/reference/noEmitHelpers.js b/tests/baselines/reference/noEmitHelpers.js index bfe5a4f4445..b2c26c6af75 100644 --- a/tests/baselines/reference/noEmitHelpers.js +++ b/tests/baselines/reference/noEmitHelpers.js @@ -9,11 +9,11 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/noEmitHelpers2.js b/tests/baselines/reference/noEmitHelpers2.js index 66e2ff78b64..f3bbfe54896 100644 --- a/tests/baselines/reference/noEmitHelpers2.js +++ b/tests/baselines/reference/noEmitHelpers2.js @@ -18,4 +18,4 @@ var A = (function () { __metadata('design:paramtypes', [Number, String]) ], A); return A; -})(); +}()); diff --git a/tests/baselines/reference/noErrorsInCallback.js b/tests/baselines/reference/noErrorsInCallback.js index cb6c4e41f8c..6a08cee12cf 100644 --- a/tests/baselines/reference/noErrorsInCallback.js +++ b/tests/baselines/reference/noErrorsInCallback.js @@ -14,7 +14,7 @@ var Bar = (function () { this.foo = foo; } return Bar; -})(); +}()); var one = new Bar({}); // Error [].forEach(function () { var two = new Bar({}); // No error? diff --git a/tests/baselines/reference/noImplicitAnyForMethodParameters.errors.txt b/tests/baselines/reference/noImplicitAnyForMethodParameters.errors.txt index 176f40f16f3..07782d86e9e 100644 --- a/tests/baselines/reference/noImplicitAnyForMethodParameters.errors.txt +++ b/tests/baselines/reference/noImplicitAnyForMethodParameters.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/noImplicitAnyForMethodParameters.ts(6,5): error TS7010: 'foo', which lacks return-type annotation, implicitly has an 'any' return type. +tests/cases/compiler/noImplicitAnyForMethodParameters.ts(6,12): error TS7010: 'foo', which lacks return-type annotation, implicitly has an 'any' return type. tests/cases/compiler/noImplicitAnyForMethodParameters.ts(6,16): error TS7006: Parameter 'a' implicitly has an 'any' type. tests/cases/compiler/noImplicitAnyForMethodParameters.ts(10,17): error TS7006: Parameter 'a' implicitly has an 'any' type. tests/cases/compiler/noImplicitAnyForMethodParameters.ts(13,16): error TS7006: Parameter 'a' implicitly has an 'any' type. @@ -11,7 +11,7 @@ tests/cases/compiler/noImplicitAnyForMethodParameters.ts(13,16): error TS7006: P declare class B { public foo(a); // OK - ambient class and public method - error - ~~~~~~~~~~~~~~ + ~~~ !!! error TS7010: 'foo', which lacks return-type annotation, implicitly has an 'any' return type. ~ !!! error TS7006: Parameter 'a' implicitly has an 'any' type. diff --git a/tests/baselines/reference/noImplicitAnyForMethodParameters.js b/tests/baselines/reference/noImplicitAnyForMethodParameters.js index fc5b94d4768..ea868ee7503 100644 --- a/tests/baselines/reference/noImplicitAnyForMethodParameters.js +++ b/tests/baselines/reference/noImplicitAnyForMethodParameters.js @@ -20,10 +20,10 @@ var C = (function () { } C.prototype.foo = function (a) { }; // OK - non-ambient class and private method - error return C; -})(); +}()); var D = (function () { function D() { } D.prototype.foo = function (a) { }; // OK - non-ambient class and public method - error return D; -})(); +}()); diff --git a/tests/baselines/reference/noImplicitAnyModule.errors.txt b/tests/baselines/reference/noImplicitAnyModule.errors.txt index cb2dfbe5793..35c0993df3e 100644 --- a/tests/baselines/reference/noImplicitAnyModule.errors.txt +++ b/tests/baselines/reference/noImplicitAnyModule.errors.txt @@ -1,6 +1,6 @@ tests/cases/compiler/noImplicitAnyModule.ts(5,9): error TS7013: Construct signature, which lacks return-type annotation, implicitly has an 'any' return type. tests/cases/compiler/noImplicitAnyModule.ts(10,18): error TS7006: Parameter 'x' implicitly has an 'any' type. -tests/cases/compiler/noImplicitAnyModule.ts(11,9): error TS7010: 'g', which lacks return-type annotation, implicitly has an 'any' return type. +tests/cases/compiler/noImplicitAnyModule.ts(11,16): error TS7010: 'g', which lacks return-type annotation, implicitly has an 'any' return type. tests/cases/compiler/noImplicitAnyModule.ts(18,14): error TS7010: 'f', which lacks return-type annotation, implicitly has an 'any' return type. @@ -20,7 +20,7 @@ tests/cases/compiler/noImplicitAnyModule.ts(18,14): error TS7010: 'f', which lac ~ !!! error TS7006: Parameter 'x' implicitly has an 'any' type. public g(x: any); - ~~~~~~~~~~~~~~~~~ + ~ !!! error TS7010: 'g', which lacks return-type annotation, implicitly has an 'any' return type. // Should not return error at all. diff --git a/tests/baselines/reference/noImplicitAnyParametersInClass.js b/tests/baselines/reference/noImplicitAnyParametersInClass.js index 0873935b600..0e247936529 100644 --- a/tests/baselines/reference/noImplicitAnyParametersInClass.js +++ b/tests/baselines/reference/noImplicitAnyParametersInClass.js @@ -196,4 +196,4 @@ var C = (function () { }; C.prototype.priv_f8 = function (x3, y3) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/noTypeArgumentOnReturnType1.js b/tests/baselines/reference/noTypeArgumentOnReturnType1.js index ca13067c15e..7ede1e57c3e 100644 --- a/tests/baselines/reference/noTypeArgumentOnReturnType1.js +++ b/tests/baselines/reference/noTypeArgumentOnReturnType1.js @@ -14,4 +14,4 @@ var A = (function () { return null; }; return A; -})(); +}()); diff --git a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js index 7cdb702d6ff..b9927ebf193 100644 --- a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js +++ b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js @@ -15,11 +15,11 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { _super.apply(this, arguments); } return Bar; -})(Foo); // Valid +}(Foo)); // Valid diff --git a/tests/baselines/reference/nonGenericTypeReferenceWithTypeArguments.js b/tests/baselines/reference/nonGenericTypeReferenceWithTypeArguments.js index 5558cb2fc8b..a1fa710d893 100644 --- a/tests/baselines/reference/nonGenericTypeReferenceWithTypeArguments.js +++ b/tests/baselines/reference/nonGenericTypeReferenceWithTypeArguments.js @@ -29,7 +29,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var E; (function (E) { })(E || (E = {})); @@ -42,7 +42,7 @@ function f() { function C() { } return C; - })(); + }()); var E; (function (E) { })(E || (E = {})); diff --git a/tests/baselines/reference/nonInstantiatedModule.js b/tests/baselines/reference/nonInstantiatedModule.js index fc3ad19546f..f8063dd7b14 100644 --- a/tests/baselines/reference/nonInstantiatedModule.js +++ b/tests/baselines/reference/nonInstantiatedModule.js @@ -77,6 +77,6 @@ var M3; function Utils() { } return Utils; - })(); + }()); M3.Utils = Utils; })(M3 || (M3 = {})); diff --git a/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js b/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js index 3ca6a963515..d4ac9685f61 100644 --- a/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js +++ b/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js @@ -16,4 +16,4 @@ var A = (function () { A.prototype.m1 = function (a) { }; return A; -})(); +}()); diff --git a/tests/baselines/reference/nonMergedOverloads.errors.txt b/tests/baselines/reference/nonMergedOverloads.errors.txt index 9a38ebdc3b3..f5fb58247da 100644 --- a/tests/baselines/reference/nonMergedOverloads.errors.txt +++ b/tests/baselines/reference/nonMergedOverloads.errors.txt @@ -1,5 +1,5 @@ tests/cases/compiler/nonMergedOverloads.ts(1,5): error TS2300: Duplicate identifier 'f'. -tests/cases/compiler/nonMergedOverloads.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/nonMergedOverloads.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/nonMergedOverloads.ts(3,17): error TS2300: Duplicate identifier 'f'. tests/cases/compiler/nonMergedOverloads.ts(4,17): error TS2300: Duplicate identifier 'f'. @@ -11,7 +11,7 @@ tests/cases/compiler/nonMergedOverloads.ts(4,17): error TS2300: Duplicate identi export function f(); ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~ !!! error TS2300: Duplicate identifier 'f'. export function f() { diff --git a/tests/baselines/reference/null.js b/tests/baselines/reference/null.js index ee897643fb1..a58c5f7ed16 100644 --- a/tests/baselines/reference/null.js +++ b/tests/baselines/reference/null.js @@ -30,7 +30,7 @@ var C = (function () { function C() { } return C; -})(); +}()); function f() { return null; return new C(); diff --git a/tests/baselines/reference/nullAssignableToEveryType.js b/tests/baselines/reference/nullAssignableToEveryType.js index 9917ebeac9e..7d8ddd7fd74 100644 --- a/tests/baselines/reference/nullAssignableToEveryType.js +++ b/tests/baselines/reference/nullAssignableToEveryType.js @@ -48,7 +48,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var ac; var ai; var E; diff --git a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js index 646a3474536..d285818aaa9 100644 --- a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js +++ b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.js @@ -121,7 +121,7 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var c1; var r10 = true ? c1 : null; var r10 = true ? null : c1; @@ -129,7 +129,7 @@ var C2 = (function () { function C2() { } return C2; -})(); +}()); var c2; var r12 = true ? c2 : null; var r12 = true ? null : c2; @@ -153,7 +153,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/numericClassMembers1.js b/tests/baselines/reference/numericClassMembers1.js index 4b17677b8a4..24434307125 100644 --- a/tests/baselines/reference/numericClassMembers1.js +++ b/tests/baselines/reference/numericClassMembers1.js @@ -22,18 +22,18 @@ var C234 = (function () { this[0.0] = 2; } return C234; -})(); +}()); var C235 = (function () { function C235() { this[0.0] = 1; this['0'] = 2; } return C235; -})(); +}()); var C236 = (function () { function C236() { this['0.0'] = 1; this['0'] = 2; } return C236; -})(); +}()); diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js index cf08bb98217..33a03705965 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js @@ -123,7 +123,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var a; // error var b = { diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js index ade000d50ba..cef2759e1d5 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js @@ -57,7 +57,7 @@ var A = (function () { } A.prototype.foo = function () { return ''; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -65,12 +65,12 @@ var B = (function (_super) { } B.prototype.bar = function () { return ''; }; return B; -})(A); +}(A)); var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var a; // error var b = { diff --git a/tests/baselines/reference/numericIndexerConstraint.js b/tests/baselines/reference/numericIndexerConstraint.js index 38fe6b58d66..1b1851428e0 100644 --- a/tests/baselines/reference/numericIndexerConstraint.js +++ b/tests/baselines/reference/numericIndexerConstraint.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/numericIndexerConstraint1.js b/tests/baselines/reference/numericIndexerConstraint1.js index ed51e3af066..1065f7d9dc8 100644 --- a/tests/baselines/reference/numericIndexerConstraint1.js +++ b/tests/baselines/reference/numericIndexerConstraint1.js @@ -10,6 +10,6 @@ var Foo = (function () { } Foo.prototype.foo = function () { }; return Foo; -})(); +}()); var x; var result = x["one"]; // error diff --git a/tests/baselines/reference/numericIndexerConstraint2.js b/tests/baselines/reference/numericIndexerConstraint2.js index 4d8ce742e73..a8063a2548d 100644 --- a/tests/baselines/reference/numericIndexerConstraint2.js +++ b/tests/baselines/reference/numericIndexerConstraint2.js @@ -10,7 +10,7 @@ var Foo = (function () { } Foo.prototype.foo = function () { }; return Foo; -})(); +}()); var x; var a; x = a; diff --git a/tests/baselines/reference/numericIndexerConstraint3.js b/tests/baselines/reference/numericIndexerConstraint3.js index dc3b6024eee..9f7a61fe30d 100644 --- a/tests/baselines/reference/numericIndexerConstraint3.js +++ b/tests/baselines/reference/numericIndexerConstraint3.js @@ -22,16 +22,16 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/numericIndexerConstraint4.js b/tests/baselines/reference/numericIndexerConstraint4.js index 7509c64eac8..245569cb62e 100644 --- a/tests/baselines/reference/numericIndexerConstraint4.js +++ b/tests/baselines/reference/numericIndexerConstraint4.js @@ -21,12 +21,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var x = { data: new B() }; diff --git a/tests/baselines/reference/numericIndexerTyping2.js b/tests/baselines/reference/numericIndexerTyping2.js index 2e3ba2ce74c..47fb46794f0 100644 --- a/tests/baselines/reference/numericIndexerTyping2.js +++ b/tests/baselines/reference/numericIndexerTyping2.js @@ -22,14 +22,14 @@ var I = (function () { function I() { } return I; -})(); +}()); var I2 = (function (_super) { __extends(I2, _super); function I2() { _super.apply(this, arguments); } return I2; -})(I); +}(I)); var i; var r = i[1]; // error: numeric indexer returns the type of the string indexer var i2; diff --git a/tests/baselines/reference/numericIndexingResults.js b/tests/baselines/reference/numericIndexingResults.js index 70c6e15d15a..780bba3d498 100644 --- a/tests/baselines/reference/numericIndexingResults.js +++ b/tests/baselines/reference/numericIndexingResults.js @@ -63,7 +63,7 @@ var C = (function () { this["2"] = ''; } return C; -})(); +}()); var c; var r1 = c['1']; var r2 = c['2']; diff --git a/tests/baselines/reference/numericMethodName1.js b/tests/baselines/reference/numericMethodName1.js index 294e5a1491b..8f68d10cd37 100644 --- a/tests/baselines/reference/numericMethodName1.js +++ b/tests/baselines/reference/numericMethodName1.js @@ -10,4 +10,4 @@ var C = (function () { this[1] = 2; } return C; -})(); +}()); diff --git a/tests/baselines/reference/numericNamedPropertyDuplicates.js b/tests/baselines/reference/numericNamedPropertyDuplicates.js index e4340d629ea..6c8af329318 100644 --- a/tests/baselines/reference/numericNamedPropertyDuplicates.js +++ b/tests/baselines/reference/numericNamedPropertyDuplicates.js @@ -26,7 +26,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { 2: 1, diff --git a/tests/baselines/reference/numericStringNamedPropertyEquivalence.js b/tests/baselines/reference/numericStringNamedPropertyEquivalence.js index 9f141f6dd1c..a0f2268b98b 100644 --- a/tests/baselines/reference/numericStringNamedPropertyEquivalence.js +++ b/tests/baselines/reference/numericStringNamedPropertyEquivalence.js @@ -30,7 +30,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { "0": '', diff --git a/tests/baselines/reference/objectCreationExpressionInFunctionParameter.js b/tests/baselines/reference/objectCreationExpressionInFunctionParameter.js index 55ac0c530e6..76e36420aca 100644 --- a/tests/baselines/reference/objectCreationExpressionInFunctionParameter.js +++ b/tests/baselines/reference/objectCreationExpressionInFunctionParameter.js @@ -12,7 +12,7 @@ var A = (function () { this.a1 = a1; } return A; -})(); +}()); function foo(x) { if (x === void 0) { x = new A(123); } } diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js index 05457a559e9..dce09972c83 100644 --- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js +++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js @@ -77,7 +77,7 @@ var Food = (function () { } }; return Food; -})(); +}()); var MonsterFood = (function (_super) { __extends(MonsterFood, _super); function MonsterFood(name, flavor) { @@ -85,7 +85,7 @@ var MonsterFood = (function (_super) { this.flavor = flavor; } return MonsterFood; -})(Food); +}(Food)); var IceCream = (function (_super) { __extends(IceCream, _super); function IceCream(flavor) { @@ -93,7 +93,7 @@ var IceCream = (function (_super) { this.flavor = flavor; } return IceCream; -})(MonsterFood); +}(MonsterFood)); var Cookie = (function (_super) { __extends(Cookie, _super); function Cookie(flavor, isGlutenFree) { @@ -102,7 +102,7 @@ var Cookie = (function (_super) { this.isGlutenFree = isGlutenFree; } return Cookie; -})(MonsterFood); +}(MonsterFood)); var PetFood = (function (_super) { __extends(PetFood, _super); function PetFood(name, whereToBuy) { @@ -110,7 +110,7 @@ var PetFood = (function (_super) { this.whereToBuy = whereToBuy; } return PetFood; -})(Food); +}(Food)); var ExpensiveOrganicDogFood = (function (_super) { __extends(ExpensiveOrganicDogFood, _super); function ExpensiveOrganicDogFood(whereToBuy) { @@ -118,7 +118,7 @@ var ExpensiveOrganicDogFood = (function (_super) { this.whereToBuy = whereToBuy; } return ExpensiveOrganicDogFood; -})(PetFood); +}(PetFood)); var ExpensiveOrganicCatFood = (function (_super) { __extends(ExpensiveOrganicCatFood, _super); function ExpensiveOrganicCatFood(whereToBuy, containsFish) { @@ -127,12 +127,12 @@ var ExpensiveOrganicCatFood = (function (_super) { this.containsFish = containsFish; } return ExpensiveOrganicCatFood; -})(PetFood); +}(PetFood)); var Slug = (function () { function Slug() { } return Slug; -})(); +}()); // ElementAccessExpressions can only contain one expression. There should be a parse error here. var foods = new PetFood[new IceCream('Mint chocolate chip'), Cookie('Chocolate chip', false), new Cookie('Peanut butter', true)]; var foods2 = new PetFood[new IceCream('Mint chocolate chip'), Cookie('Chocolate chip', false), new Cookie('Peanut butter', true)]; diff --git a/tests/baselines/reference/objectIndexer.js b/tests/baselines/reference/objectIndexer.js index 1e58f89501f..f5bf47e3475 100644 --- a/tests/baselines/reference/objectIndexer.js +++ b/tests/baselines/reference/objectIndexer.js @@ -23,5 +23,5 @@ define(["require", "exports"], function (require, exports) { this.listeners = {}; } return Emitter; - })(); + }()); }); diff --git a/tests/baselines/reference/objectLitArrayDeclNoNew.js b/tests/baselines/reference/objectLitArrayDeclNoNew.js index a52ff55fc4d..f4642a1d2f6 100644 --- a/tests/baselines/reference/objectLitArrayDeclNoNew.js +++ b/tests/baselines/reference/objectLitArrayDeclNoNew.js @@ -36,7 +36,7 @@ var Test; this.moo = 0; } return Gar; - })(); + }()); Test.Gar = Gar; function bug() { var state = null; diff --git a/tests/baselines/reference/objectLiteralDeclarationGeneration1.js b/tests/baselines/reference/objectLiteralDeclarationGeneration1.js index 39ea91daf81..eacf9463abc 100644 --- a/tests/baselines/reference/objectLiteralDeclarationGeneration1.js +++ b/tests/baselines/reference/objectLiteralDeclarationGeneration1.js @@ -6,7 +6,7 @@ var y = (function () { function y() { } return y; -})(); +}()); //// [objectLiteralDeclarationGeneration1.d.ts] diff --git a/tests/baselines/reference/objectLiteralMemberWithModifiers1.errors.txt b/tests/baselines/reference/objectLiteralMemberWithModifiers1.errors.txt index 9e739194f54..182eab1b4cf 100644 --- a/tests/baselines/reference/objectLiteralMemberWithModifiers1.errors.txt +++ b/tests/baselines/reference/objectLiteralMemberWithModifiers1.errors.txt @@ -1,7 +1,10 @@ +tests/cases/compiler/objectLiteralMemberWithModifiers1.ts(1,11): error TS1042: 'public' modifier cannot be used here. tests/cases/compiler/objectLiteralMemberWithModifiers1.ts(1,11): error TS1184: Modifiers cannot appear here. -==== tests/cases/compiler/objectLiteralMemberWithModifiers1.ts (1 errors) ==== +==== tests/cases/compiler/objectLiteralMemberWithModifiers1.ts (2 errors) ==== var v = { public foo() { } } ~~~~~~ +!!! error TS1042: 'public' modifier cannot be used here. + ~~~~~~ !!! error TS1184: Modifiers cannot appear here. \ No newline at end of file diff --git a/tests/baselines/reference/objectLiteralMemberWithModifiers2.errors.txt b/tests/baselines/reference/objectLiteralMemberWithModifiers2.errors.txt index be2bea5e241..0d1822339b6 100644 --- a/tests/baselines/reference/objectLiteralMemberWithModifiers2.errors.txt +++ b/tests/baselines/reference/objectLiteralMemberWithModifiers2.errors.txt @@ -1,9 +1,12 @@ +tests/cases/compiler/objectLiteralMemberWithModifiers2.ts(1,11): error TS1042: 'public' modifier cannot be used here. tests/cases/compiler/objectLiteralMemberWithModifiers2.ts(1,22): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. tests/cases/compiler/objectLiteralMemberWithModifiers2.ts(1,22): error TS2378: A 'get' accessor must return a value. -==== tests/cases/compiler/objectLiteralMemberWithModifiers2.ts (2 errors) ==== +==== tests/cases/compiler/objectLiteralMemberWithModifiers2.ts (3 errors) ==== var v = { public get foo() { } } + ~~~~~~ +!!! error TS1042: 'public' modifier cannot be used here. ~~~ !!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. ~~~ diff --git a/tests/baselines/reference/objectMembersOnTypes.js b/tests/baselines/reference/objectMembersOnTypes.js index f0c33e8d897..88a97feb0f7 100644 --- a/tests/baselines/reference/objectMembersOnTypes.js +++ b/tests/baselines/reference/objectMembersOnTypes.js @@ -14,7 +14,7 @@ var AAA = (function () { function AAA() { } return AAA; -})(); +}()); var x; x.toString(); var i; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js index 5d30e0faecf..9c5bcfb8e2d 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js @@ -64,20 +64,20 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function () { function C() { } C.prototype.valueOf = function () { }; return C; -})(); +}()); var c; var r1 = c.valueOf(); var r1b = c.data; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObject.js b/tests/baselines/reference/objectTypeHidingMembersOfObject.js index 291cc1858fd..bae6b56ff38 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObject.js @@ -34,7 +34,7 @@ var C = (function () { } C.prototype.valueOf = function () { }; return C; -})(); +}()); var c; var r1 = c.valueOf(); var i; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js index 5ae0c2fb1bb..65fc548ed6e 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js @@ -31,7 +31,7 @@ var C = (function () { } C.prototype.toString = function () { }; return C; -})(); +}()); var c; o = c; // error c = o; // ok diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js index 7a2b5e2ec2f..6898e69cedc 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js @@ -31,7 +31,7 @@ var C = (function () { } C.prototype.toString = function () { return 1; }; return C; -})(); +}()); var c; o = c; // error c = o; // error diff --git a/tests/baselines/reference/objectTypePropertyAccess.js b/tests/baselines/reference/objectTypePropertyAccess.js index 143439aaa04..d7856f2a978 100644 --- a/tests/baselines/reference/objectTypePropertyAccess.js +++ b/tests/baselines/reference/objectTypePropertyAccess.js @@ -35,7 +35,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r1 = c.toString(); var r2 = c['toString'](); diff --git a/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt b/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt index 30b40f431a7..e296f2113fb 100644 --- a/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt +++ b/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt @@ -1,5 +1,7 @@ tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.ts(8,1): error TS2322: Type 'Object' is not assignable to type 'I'. + Type 'Object' provides no match for the signature '(): void' tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.ts(14,1): error TS2322: Type 'Object' is not assignable to type '() => void'. + Type 'Object' provides no match for the signature '(): void' ==== tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.ts (2 errors) ==== @@ -13,6 +15,7 @@ tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOf i = f; ~ !!! error TS2322: Type 'Object' is not assignable to type 'I'. +!!! error TS2322: Type 'Object' provides no match for the signature '(): void' var a: { (): void @@ -20,4 +23,5 @@ tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOf f = a; a = f; ~ -!!! error TS2322: Type 'Object' is not assignable to type '() => void'. \ No newline at end of file +!!! error TS2322: Type 'Object' is not assignable to type '() => void'. +!!! error TS2322: Type 'Object' provides no match for the signature '(): void' \ No newline at end of file diff --git a/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt b/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt index 0faba936715..227ccc99603 100644 --- a/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt +++ b/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.errors.txt @@ -1,5 +1,7 @@ tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts(8,1): error TS2322: Type 'Object' is not assignable to type 'I'. + Type 'Object' provides no match for the signature 'new (): any' tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts(14,1): error TS2322: Type 'Object' is not assignable to type 'new () => any'. + Type 'Object' provides no match for the signature 'new (): any' ==== tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts (2 errors) ==== @@ -13,6 +15,7 @@ tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMemb i = f; ~ !!! error TS2322: Type 'Object' is not assignable to type 'I'. +!!! error TS2322: Type 'Object' provides no match for the signature 'new (): any' var a: { new(): any @@ -20,4 +23,5 @@ tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMemb f = a; a = f; ~ -!!! error TS2322: Type 'Object' is not assignable to type 'new () => any'. \ No newline at end of file +!!! error TS2322: Type 'Object' is not assignable to type 'new () => any'. +!!! error TS2322: Type 'Object' provides no match for the signature 'new (): any' \ No newline at end of file diff --git a/tests/baselines/reference/objectTypeWithDuplicateNumericProperty.js b/tests/baselines/reference/objectTypeWithDuplicateNumericProperty.js index 4772fedf17b..f3bc471f973 100644 --- a/tests/baselines/reference/objectTypeWithDuplicateNumericProperty.js +++ b/tests/baselines/reference/objectTypeWithDuplicateNumericProperty.js @@ -39,7 +39,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { 1: 1, diff --git a/tests/baselines/reference/objectTypeWithNumericProperty.js b/tests/baselines/reference/objectTypeWithNumericProperty.js index e6a9f3ac666..0001bc40f2f 100644 --- a/tests/baselines/reference/objectTypeWithNumericProperty.js +++ b/tests/baselines/reference/objectTypeWithNumericProperty.js @@ -49,7 +49,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r1 = c[1]; var r2 = c[1.1]; diff --git a/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty.js b/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty.js index 8c4a89aab68..09dbc24b5b5 100644 --- a/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty.js +++ b/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty.js @@ -19,7 +19,7 @@ var List = (function () { function List() { } return List; -})(); +}()); var list1 = new List(); var list2 = new List(); var list3 = new List(); diff --git a/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty2.js b/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty2.js index cbb3032f00f..0f4451f28cf 100644 --- a/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty2.js +++ b/tests/baselines/reference/objectTypeWithRecursiveWrappedProperty2.js @@ -19,7 +19,7 @@ var List = (function () { function List() { } return List; -})(); +}()); var list1 = new List(); var list2 = new List(); var list3 = new List(); diff --git a/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.errors.txt b/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.errors.txt index 1f2f432c9da..f112a590071 100644 --- a/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.errors.txt +++ b/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.errors.txt @@ -8,15 +8,11 @@ tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRec Type 'MyList' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts(31,5): error TS2322: Type 'T' is not assignable to type 'U'. Type 'List' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts(41,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts(42,5): error TS2322: Type 'U' is not assignable to type 'T'. Type 'MyList' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts(43,5): error TS2322: Type 'T' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts(48,5): error TS2322: Type 'T' is not assignable to type 'List'. -tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts(50,5): error TS2322: Type 'T' is not assignable to type 'MyList'. -==== tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts (9 errors) ==== +==== tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts (5 errors) ==== // Types with infinitely expanding recursive types are type checked nominally class List { @@ -72,25 +68,17 @@ tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRec } function foo2>(t: T, u: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. t = u; // error ~ !!! error TS2322: Type 'U' is not assignable to type 'T'. !!! error TS2322: Type 'MyList' is not assignable to type 'T'. u = t; // was error, ok after constraint made illegal, doesn't matter - ~ -!!! error TS2322: Type 'T' is not assignable to type 'U'. var a: List; var b: MyList; a = t; // error - ~ -!!! error TS2322: Type 'T' is not assignable to type 'List'. a = u; // error b = t; // ok - ~ -!!! error TS2322: Type 'T' is not assignable to type 'MyList'. b = u; // ok } \ No newline at end of file diff --git a/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.js b/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.js index 388c4009a74..5aec3feb442 100644 --- a/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.js +++ b/tests/baselines/reference/objectTypeWithRecursiveWrappedPropertyCheckedNominally.js @@ -58,12 +58,12 @@ var List = (function () { function List() { } return List; -})(); +}()); var MyList = (function () { function MyList() { } return MyList; -})(); +}()); var list1 = new List(); var list2 = new List(); var myList1 = new MyList(); diff --git a/tests/baselines/reference/objectTypeWithStringIndexerHidingObjectIndexer.js b/tests/baselines/reference/objectTypeWithStringIndexerHidingObjectIndexer.js index 088a5b7f637..7aa60382c6e 100644 --- a/tests/baselines/reference/objectTypeWithStringIndexerHidingObjectIndexer.js +++ b/tests/baselines/reference/objectTypeWithStringIndexerHidingObjectIndexer.js @@ -40,7 +40,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r2 = c['']; var i; diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js index a52d74b9f2d..3ff5817692b 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.js @@ -135,7 +135,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r1 = c['0.1']; var r2 = c['.1']; diff --git a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js index 5d7073db876..7188c12a9ee 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js +++ b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.js @@ -58,7 +58,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r = c[" "]; var r2 = c[" "]; diff --git a/tests/baselines/reference/objectTypesIdentity.js b/tests/baselines/reference/objectTypesIdentity.js index 7eccee23651..c357986fd89 100644 --- a/tests/baselines/reference/objectTypesIdentity.js +++ b/tests/baselines/reference/objectTypesIdentity.js @@ -94,17 +94,17 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { foo: '' }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentity2.js b/tests/baselines/reference/objectTypesIdentity2.js index 87057754cab..b33485564ee 100644 --- a/tests/baselines/reference/objectTypesIdentity2.js +++ b/tests/baselines/reference/objectTypesIdentity2.js @@ -71,17 +71,17 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var a; var E; (function (E) { diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js index 0c6952291f9..a3e1e4fa444 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js @@ -107,19 +107,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return ''; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js index 43473d88e0a..3b6956435f9 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js @@ -107,19 +107,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return ''; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js index 498867f0a02..a9909c7283f 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js @@ -107,19 +107,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return ''; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js index 54400ad81d1..3f72347a00f 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js @@ -123,19 +123,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return ''; } diff --git a/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.errors.txt b/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.errors.txt deleted file mode 100644 index dce23ed96e5..00000000000 --- a/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts(2,8): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts (1 errors) ==== - interface A { - (x: T, y: S): void - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - }>(x: T, y: T): void - ~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - interface B { - (x: U, y: U): void - } - - // ok, not considered identical because the steps of contextual signature instantiation create fresh type parameters - function foo(x: A); - function foo(x: B); // error after constraints above made illegal - function foo(x: any) { } \ No newline at end of file diff --git a/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.symbols b/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.symbols new file mode 100644 index 00000000000..66314d9c5db --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.symbols @@ -0,0 +1,49 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts === +interface A { +>A : Symbol(A, Decl(objectTypesIdentityWithComplexConstraints.ts, 0, 0)) + + T : Symbol(T, Decl(objectTypesIdentityWithComplexConstraints.ts, 1, 7)) + + (x: T, y: S): void +>S : Symbol(S, Decl(objectTypesIdentityWithComplexConstraints.ts, 2, 13)) +>A : Symbol(A, Decl(objectTypesIdentityWithComplexConstraints.ts, 0, 0)) +>x : Symbol(x, Decl(objectTypesIdentityWithComplexConstraints.ts, 2, 26)) +>T : Symbol(T, Decl(objectTypesIdentityWithComplexConstraints.ts, 1, 7)) +>y : Symbol(y, Decl(objectTypesIdentityWithComplexConstraints.ts, 2, 31)) +>S : Symbol(S, Decl(objectTypesIdentityWithComplexConstraints.ts, 2, 13)) + + }>(x: T, y: T): void +>x : Symbol(x, Decl(objectTypesIdentityWithComplexConstraints.ts, 3, 9)) +>T : Symbol(T, Decl(objectTypesIdentityWithComplexConstraints.ts, 1, 7)) +>y : Symbol(y, Decl(objectTypesIdentityWithComplexConstraints.ts, 3, 14)) +>T : Symbol(T, Decl(objectTypesIdentityWithComplexConstraints.ts, 1, 7)) +} + +interface B { +>B : Symbol(B, Decl(objectTypesIdentityWithComplexConstraints.ts, 4, 1)) + + (x: U, y: U): void +>U : Symbol(U, Decl(objectTypesIdentityWithComplexConstraints.ts, 7, 7)) +>B : Symbol(B, Decl(objectTypesIdentityWithComplexConstraints.ts, 4, 1)) +>x : Symbol(x, Decl(objectTypesIdentityWithComplexConstraints.ts, 7, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithComplexConstraints.ts, 7, 7)) +>y : Symbol(y, Decl(objectTypesIdentityWithComplexConstraints.ts, 7, 25)) +>U : Symbol(U, Decl(objectTypesIdentityWithComplexConstraints.ts, 7, 7)) +} + +// ok, not considered identical because the steps of contextual signature instantiation create fresh type parameters +function foo(x: A); +>foo : Symbol(foo, Decl(objectTypesIdentityWithComplexConstraints.ts, 8, 1), Decl(objectTypesIdentityWithComplexConstraints.ts, 11, 19), Decl(objectTypesIdentityWithComplexConstraints.ts, 12, 19)) +>x : Symbol(x, Decl(objectTypesIdentityWithComplexConstraints.ts, 11, 13)) +>A : Symbol(A, Decl(objectTypesIdentityWithComplexConstraints.ts, 0, 0)) + +function foo(x: B); // error after constraints above made illegal +>foo : Symbol(foo, Decl(objectTypesIdentityWithComplexConstraints.ts, 8, 1), Decl(objectTypesIdentityWithComplexConstraints.ts, 11, 19), Decl(objectTypesIdentityWithComplexConstraints.ts, 12, 19)) +>x : Symbol(x, Decl(objectTypesIdentityWithComplexConstraints.ts, 12, 13)) +>B : Symbol(B, Decl(objectTypesIdentityWithComplexConstraints.ts, 4, 1)) + +function foo(x: any) { } +>foo : Symbol(foo, Decl(objectTypesIdentityWithComplexConstraints.ts, 8, 1), Decl(objectTypesIdentityWithComplexConstraints.ts, 11, 19), Decl(objectTypesIdentityWithComplexConstraints.ts, 12, 19)) +>x : Symbol(x, Decl(objectTypesIdentityWithComplexConstraints.ts, 13, 13)) + diff --git a/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.types b/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.types new file mode 100644 index 00000000000..aeb1c467dce --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithComplexConstraints.types @@ -0,0 +1,49 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts === +interface A { +>A : A + + T : T + + (x: T, y: S): void +>S : S +>A : A +>x : T +>T : T +>y : S +>S : S + + }>(x: T, y: T): void +>x : T +>T : T +>y : T +>T : T +} + +interface B { +>B : B + + (x: U, y: U): void +>U : U +>B : B +>x : U +>U : U +>y : U +>U : U +} + +// ok, not considered identical because the steps of contextual signature instantiation create fresh type parameters +function foo(x: A); +>foo : { (x: A): any; (x: B): any; } +>x : A +>A : A + +function foo(x: B); // error after constraints above made illegal +>foo : { (x: A): any; (x: B): any; } +>x : B +>B : B + +function foo(x: any) { } +>foo : { (x: A): any; (x: B): any; } +>x : any + diff --git a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.js b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.js index 91208da5b90..9acf62da71c 100644 --- a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.js +++ b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.js @@ -93,17 +93,17 @@ var A = (function () { function A(x) { } return A; -})(); +}()); var B = (function () { function B(x) { } return B; -})(); +}()); var C = (function () { function C(x) { } return C; -})(); +}()); var a; function foo1(x) { } function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.js b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.js index 87067b6be28..315e079d429 100644 --- a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.js +++ b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.js @@ -83,13 +83,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x) { return null; } return C; -})(); +}()); var a; var b = { new: function (x) { return ''; } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.js b/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.js index c95159ed997..a61bedfd52f 100644 --- a/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.js @@ -83,13 +83,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x, y) { return null; } return C; -})(); +}()); var a; var b = { new: function (x) { return ''; } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js index c8bed1a47ab..2289665621c 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js @@ -107,19 +107,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return x; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js index 6ef5d15fd98..d6a61b8d304 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js @@ -107,19 +107,19 @@ var A = (function () { } A.prototype.foo = function (x, y) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x, y) { return x; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js index 2b83064afed..a1b383a70e3 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js @@ -111,19 +111,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return ''; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.errors.txt b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.errors.txt deleted file mode 100644 index b1221bb21aa..00000000000 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.errors.txt +++ /dev/null @@ -1,141 +0,0 @@ -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(6,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(9,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(13,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(17,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(21,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(26,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(29,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts(30,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts (8 errors) ==== - // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those - // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, - // optional or rest) and types, and identical return types. - - class A { - foo(x: T, y: U): string { return null; } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - class B> { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string { return null; } - } - - class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string { return null; } - } - - class D { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string { return null; } - } - - interface I { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string; - } - - interface I2 { - foo(x: T, y: U): string; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - var a: { foo>(x: T, y: U): string } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var b = { foo(x: T, y: U) { return ''; } }; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - function foo1(x: A); - function foo1(x: A); // error - function foo1(x: any) { } - - function foo1b(x: B, Array>); - function foo1b(x: B, Array>); // error - function foo1b(x: any) { } - - function foo1c(x: C); - function foo1c(x: C); // error - function foo1c(x: any) { } - - function foo2(x: I); - function foo2(x: I); // error - function foo2(x: any) { } - - function foo3(x: typeof a); - function foo3(x: typeof a); // error - function foo3(x: any) { } - - function foo4(x: typeof b); - function foo4(x: typeof b); // error - function foo4(x: any) { } - - function foo5(x: A); - function foo5(x: B, Array>); // ok - function foo5(x: any) { } - - function foo5b(x: A); - function foo5b(x: C); // ok - function foo5b(x: any) { } - - function foo5c(x: C); - function foo5c(x: D); // ok - function foo5c(x: any) { } - - function foo6c(x: C); - function foo6c(x: D); // error, "any" does not satisfy the constraint - function foo6c(x: any) { } - - function foo6(x: A); - function foo6(x: I); // ok - function foo6(x: any) { } - - function foo7(x: A); - function foo7(x: typeof a); // ok - function foo7(x: any) { } - - function foo8(x: B, Array>); - function foo8(x: I); // ok - function foo8(x: any) { } - - function foo9(x: B, Array>); - function foo9(x: C); // ok - function foo9(x: any) { } - - function foo10(x: B, Array>); - function foo10(x: typeof a); // ok - function foo10(x: any) { } - - function foo11(x: B, Array>); - function foo11(x: typeof b); // ok - function foo11(x: any) { } - - function foo12(x: I); - function foo12(x: C); // ok - function foo12(x: any) { } - - function foo12b(x: I2); - function foo12b(x: C); // ok - function foo12b(x: any) { } - - function foo13(x: I); - function foo13(x: typeof a); // ok - function foo13(x: any) { } - - function foo14(x: I); - function foo14(x: typeof b); // ok - function foo14(x: any) { } - - function foo15(x: I2); - function foo15(x: C); // ok - function foo15(x: any) { } \ No newline at end of file diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js index 1f9c5fa5256..fbcba9d121e 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js @@ -123,25 +123,25 @@ var A = (function () { } A.prototype.foo = function (x, y) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; return C; -})(); +}()); var D = (function () { function D() { } D.prototype.foo = function (x, y) { return null; }; return D; -})(); +}()); var a; var b = { foo: function (x, y) { return ''; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.symbols b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.symbols new file mode 100644 index 00000000000..e8c34a1bf99 --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.symbols @@ -0,0 +1,462 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class A { +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 0, 0)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 4, 9)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 5, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 5, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 5, 20)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 5, 37)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 5, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 5, 42)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 5, 20)) +} + +class B> { +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 8, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 8, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 8, 20)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 8, 47)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 9, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 8, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 9, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 8, 20)) +} + +class C { +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 12, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 12, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 12, 20)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 12, 40)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 13, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 12, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 13, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 12, 20)) +} + +class D { +>D : Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 14, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 16, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 16, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 16, 20)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 16, 40)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 17, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 16, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 17, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 16, 20)) +} + +interface I { +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 20, 12)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 20, 24)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 20, 24)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + foo(x: T, y: U): string; +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 20, 44)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 21, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 20, 12)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 21, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 20, 24)) +} + +interface I2 { +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 22, 1)) + + foo(x: T, y: U): string; +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 24, 14)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 25, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 25, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 25, 20)) +>Boolean : Symbol(Boolean, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 25, 40)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 25, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 25, 45)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 25, 20)) +} + +var a: { foo>(x: T, y: U): string } +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 3)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 25)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 25)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 51)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 13)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 56)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 25)) + +var b = { foo(x: T, y: U) { return ''; } }; +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 3)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 9)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 14)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 26)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 26)) +>RegExp : Symbol(RegExp, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 45)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 14)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 50)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 26)) + +function foo1(x: A); +>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 74), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 31, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 32, 20)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 31, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 0, 0)) + +function foo1(x: A); // error +>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 74), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 31, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 32, 20)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 32, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 0, 0)) + +function foo1(x: any) { } +>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 74), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 31, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 32, 20)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 33, 14)) + +function foo1b(x: B, Array>); +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 33, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 35, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 36, 51)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 35, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1b(x: B, Array>); // error +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 33, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 35, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 36, 51)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 36, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1b(x: any) { } +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 33, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 35, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 36, 51)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 37, 15)) + +function foo1c(x: C); +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 39, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 40, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 39, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1c(x: C); // error +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 39, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 40, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 40, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1c(x: any) { } +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 39, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 40, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 41, 15)) + +function foo2(x: I); +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 41, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 43, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 44, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 43, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo2(x: I); // error +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 41, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 43, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 44, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 44, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo2(x: any) { } +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 41, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 43, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 44, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 45, 14)) + +function foo3(x: typeof a); +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 48, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 47, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 3)) + +function foo3(x: typeof a); // error +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 48, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 48, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 3)) + +function foo3(x: any) { } +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 48, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 49, 14)) + +function foo4(x: typeof b); +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 51, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 52, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 51, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 3)) + +function foo4(x: typeof b); // error +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 51, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 52, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 52, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 3)) + +function foo4(x: any) { } +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 51, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 52, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 53, 14)) + +function foo5(x: A); +>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 55, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 56, 50)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 55, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 0, 0)) + +function foo5(x: B, Array>); // ok +>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 55, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 56, 50)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 56, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo5(x: any) { } +>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 55, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 56, 50)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 57, 14)) + +function foo5b(x: A); +>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 57, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 59, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 60, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 59, 15)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 0, 0)) + +function foo5b(x: C); // ok +>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 57, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 59, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 60, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 60, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo5b(x: any) { } +>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 57, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 59, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 60, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 61, 15)) + +function foo5c(x: C); +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 61, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 63, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 64, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 63, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo5c(x: D); // ok +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 61, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 63, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 64, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 64, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo5c(x: any) { } +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 61, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 63, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 64, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 65, 15)) + +function foo6c(x: C); +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 65, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 67, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 68, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 67, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo6c(x: D); // error, "any" does not satisfy the constraint +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 65, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 67, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 68, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 68, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo6c(x: any) { } +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 65, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 67, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 68, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 69, 15)) + +function foo6(x: A); +>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 69, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 71, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 72, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 71, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 0, 0)) + +function foo6(x: I); // ok +>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 69, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 71, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 72, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 72, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo6(x: any) { } +>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 69, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 71, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 72, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 73, 14)) + +function foo7(x: A); +>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 75, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 76, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 75, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 0, 0)) + +function foo7(x: typeof a); // ok +>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 75, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 76, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 76, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 3)) + +function foo7(x: any) { } +>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 75, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 76, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 77, 14)) + +function foo8(x: B, Array>); +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 77, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 79, 50), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 80, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 79, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo8(x: I); // ok +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 77, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 79, 50), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 80, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 80, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo8(x: any) { } +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 77, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 79, 50), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 80, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 81, 14)) + +function foo9(x: B, Array>); +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 81, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 83, 50), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 84, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 83, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo9(x: C); // ok +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 81, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 83, 50), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 84, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 84, 14)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo9(x: any) { } +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 81, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 83, 50), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 84, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 85, 14)) + +function foo10(x: B, Array>); +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 85, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 87, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 88, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 87, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo10(x: typeof a); // ok +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 85, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 87, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 88, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 88, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 3)) + +function foo10(x: any) { } +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 85, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 87, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 88, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 89, 15)) + +function foo11(x: B, Array>); +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 89, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 91, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 92, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 91, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 6, 1)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo11(x: typeof b); // ok +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 89, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 91, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 92, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 92, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 3)) + +function foo11(x: any) { } +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 89, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 91, 51), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 92, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 93, 15)) + +function foo12(x: I); +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 96, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 95, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo12(x: C); // ok +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 96, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 96, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo12(x: any) { } +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 96, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 97, 15)) + +function foo12b(x: I2); +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 99, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 100, 38)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 99, 16)) +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 22, 1)) + +function foo12b(x: C); // ok +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 99, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 100, 38)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 100, 16)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo12b(x: any) { } +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 99, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 100, 38)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 101, 16)) + +function foo13(x: I); +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 101, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 103, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 104, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 103, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo13(x: typeof a); // ok +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 101, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 103, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 104, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 104, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 28, 3)) + +function foo13(x: any) { } +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 101, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 103, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 104, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 105, 15)) + +function foo14(x: I); +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 105, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 107, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 108, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 107, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 18, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo14(x: typeof b); // ok +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 105, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 107, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 108, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 108, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 29, 3)) + +function foo14(x: any) { } +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 105, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 107, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 108, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 109, 15)) + +function foo15(x: I2); +>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 109, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 111, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 112, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 111, 15)) +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 22, 1)) + +function foo15(x: C); // ok +>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 109, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 111, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 112, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 112, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 10, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo15(x: any) { } +>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 109, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 111, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 112, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts, 113, 15)) + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.types new file mode 100644 index 00000000000..4974b0874eb --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.types @@ -0,0 +1,468 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class A { +>A : A + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>T : T +>U : U +>U : U +>Date : Date +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class B> { +>B : B +>T : T +>U : U +>U : U +>Array : T[] + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class C { +>C : C +>T : T +>U : U +>U : U +>String : String + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class D { +>D : D +>T : T +>U : U +>U : U +>Number : Number + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +>null : null +} + +interface I { +>I : I +>T : T +>U : U +>U : U +>Number : Number + + foo(x: T, y: U): string; +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +} + +interface I2 { +>I2 : I2 + + foo(x: T, y: U): string; +>foo : (x: T, y: U) => string +>T : T +>U : U +>U : U +>Boolean : Boolean +>x : T +>T : T +>y : U +>U : U +} + +var a: { foo>(x: T, y: U): string } +>a : { foo(x: T, y: U): string; } +>foo : (x: T, y: U) => string +>T : T +>U : U +>U : U +>Array : T[] +>x : T +>T : T +>y : U +>U : U + +var b = { foo(x: T, y: U) { return ''; } }; +>b : { foo(x: T, y: U): string; } +>{ foo(x: T, y: U) { return ''; } } : { foo(x: T, y: U): string; } +>foo : (x: T, y: U) => string +>T : T +>U : U +>U : U +>RegExp : RegExp +>x : T +>T : T +>y : U +>U : U +>'' : string + +function foo1(x: A); +>foo1 : { (x: A): any; (x: A): any; } +>x : A +>A : A + +function foo1(x: A); // error +>foo1 : { (x: A): any; (x: A): any; } +>x : A +>A : A + +function foo1(x: any) { } +>foo1 : { (x: A): any; (x: A): any; } +>x : any + +function foo1b(x: B, Array>); +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo1b(x: B, Array>); // error +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo1b(x: any) { } +>foo1b : { (x: B): any; (x: B): any; } +>x : any + +function foo1c(x: C); +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo1c(x: C); // error +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo1c(x: any) { } +>foo1c : { (x: C): any; (x: C): any; } +>x : any + +function foo2(x: I); +>foo2 : { (x: I): any; (x: I): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo2(x: I); // error +>foo2 : { (x: I): any; (x: I): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo2(x: any) { } +>foo2 : { (x: I): any; (x: I): any; } +>x : any + +function foo3(x: typeof a); +>foo3 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo3(x: typeof a); // error +>foo3 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo3(x: any) { } +>foo3 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo4(x: typeof b); +>foo4 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo4(x: typeof b); // error +>foo4 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo4(x: any) { } +>foo4 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo5(x: A); +>foo5 : { (x: A): any; (x: B): any; } +>x : A +>A : A + +function foo5(x: B, Array>); // ok +>foo5 : { (x: A): any; (x: B): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo5(x: any) { } +>foo5 : { (x: A): any; (x: B): any; } +>x : any + +function foo5b(x: A); +>foo5b : { (x: A): any; (x: C): any; } +>x : A +>A : A + +function foo5b(x: C); // ok +>foo5b : { (x: A): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo5b(x: any) { } +>foo5b : { (x: A): any; (x: C): any; } +>x : any + +function foo5c(x: C); +>foo5c : { (x: C): any; (x: D): any; } +>x : C +>C : C +>String : String +>String : String + +function foo5c(x: D); // ok +>foo5c : { (x: C): any; (x: D): any; } +>x : D +>D : D +>Number : Number +>Number : Number + +function foo5c(x: any) { } +>foo5c : { (x: C): any; (x: D): any; } +>x : any + +function foo6c(x: C); +>foo6c : { (x: C): any; (x: D): any; } +>x : C +>C : C +>String : String +>String : String + +function foo6c(x: D); // error, "any" does not satisfy the constraint +>foo6c : { (x: C): any; (x: D): any; } +>x : D +>D : D +>Number : Number + +function foo6c(x: any) { } +>foo6c : { (x: C): any; (x: D): any; } +>x : any + +function foo6(x: A); +>foo6 : { (x: A): any; (x: I): any; } +>x : A +>A : A + +function foo6(x: I); // ok +>foo6 : { (x: A): any; (x: I): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo6(x: any) { } +>foo6 : { (x: A): any; (x: I): any; } +>x : any + +function foo7(x: A); +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): string; }): any; } +>x : A +>A : A + +function foo7(x: typeof a); // ok +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo7(x: any) { } +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo8(x: B, Array>); +>foo8 : { (x: B): any; (x: I): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo8(x: I); // ok +>foo8 : { (x: B): any; (x: I): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo8(x: any) { } +>foo8 : { (x: B): any; (x: I): any; } +>x : any + +function foo9(x: B, Array>); +>foo9 : { (x: B): any; (x: C): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo9(x: C); // ok +>foo9 : { (x: B): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo9(x: any) { } +>foo9 : { (x: B): any; (x: C): any; } +>x : any + +function foo10(x: B, Array>); +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo10(x: typeof a); // ok +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo10(x: any) { } +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo11(x: B, Array>); +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo11(x: typeof b); // ok +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo11(x: any) { } +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo12(x: I); +>foo12 : { (x: I): any; (x: C): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo12(x: C); // ok +>foo12 : { (x: I): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo12(x: any) { } +>foo12 : { (x: I): any; (x: C): any; } +>x : any + +function foo12b(x: I2); +>foo12b : { (x: I2): any; (x: C): any; } +>x : I2 +>I2 : I2 + +function foo12b(x: C); // ok +>foo12b : { (x: I2): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo12b(x: any) { } +>foo12b : { (x: I2): any; (x: C): any; } +>x : any + +function foo13(x: I); +>foo13 : { (x: I): any; (x: { foo(x: T, y: U): string; }): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo13(x: typeof a); // ok +>foo13 : { (x: I): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo13(x: any) { } +>foo13 : { (x: I): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo14(x: I); +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): string; }): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo14(x: typeof b); // ok +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo14(x: any) { } +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo15(x: I2); +>foo15 : { (x: I2): any; (x: C): any; } +>x : I2 +>I2 : I2 + +function foo15(x: C); // ok +>foo15 : { (x: I2): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo15(x: any) { } +>foo15 : { (x: I2): any; (x: C): any; } +>x : any + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.errors.txt b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.errors.txt deleted file mode 100644 index 42e7f11e939..00000000000 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.errors.txt +++ /dev/null @@ -1,150 +0,0 @@ -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(15,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(18,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(22,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(26,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(30,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(35,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(38,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts(39,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts (8 errors) ==== - // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those - // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, - // optional or rest) and types, and identical return types. - - class One { foo: string } - class Two { foo: string } - interface Three { foo: string } - interface Four { foo: T } - interface Five extends Four { } - interface Six { - foo: T; - } - - class A { - foo(x: T, y: U): string { return null; } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - class B { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string { return null; } - } - - class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string { return null; } - } - - class D> { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string { return null; } - } - - interface I> { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo(x: T, y: U): string; - } - - interface I2 { - foo>(x: T, y: U): string; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - var a: { foo(x: T, y: U): string } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var b = { foo(x: T, y: U) { return ''; } }; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - function foo1(x: A); - function foo1(x: A); // error - function foo1(x: any) { } - - function foo1b(x: B); - function foo1b(x: B); // error - function foo1b(x: any) { } - - function foo1c(x: C); - function foo1c(x: C); // error - function foo1c(x: any) { } - - function foo2(x: I, Five>); - function foo2(x: I, Five>); // error - function foo2(x: any) { } - - function foo3(x: typeof a); - function foo3(x: typeof a); // error - function foo3(x: any) { } - - function foo4(x: typeof b); - function foo4(x: typeof b); // error - function foo4(x: any) { } - - function foo5(x: A); - function foo5(x: B); // ok - function foo5(x: any) { } - - function foo5b(x: A); - function foo5b(x: C); // ok - function foo5b(x: any) { } - - function foo5c(x: C); - function foo5c(x: D, Four>); // error - function foo5c(x: any) { } - - function foo6c(x: C); - function foo6c(x: D, Four>); // error - function foo6c(x: any) { } - - function foo6(x: A); - function foo6(x: I, Five>); // ok - function foo6(x: any) { } - - function foo7(x: A); - function foo7(x: typeof a); // error - function foo7(x: any) { } - - function foo8(x: B); - function foo8(x: I, Five>); // error - function foo8(x: any) { } - - function foo9(x: B); - function foo9(x: C); // error - function foo9(x: any) { } - - function foo10(x: B); - function foo10(x: typeof a); // ok - function foo10(x: any) { } - - function foo11(x: B); - function foo11(x: typeof b); // ok - function foo11(x: any) { } - - function foo12(x: I, Five>); - function foo12(x: C); // error - function foo12(x: any) { } - - function foo12b(x: I2); - function foo12b(x: C); // ok - function foo12b(x: any) { } - - function foo13(x: I, Five>); - function foo13(x: typeof a); // ok - function foo13(x: any) { } - - function foo14(x: I, Five>); - function foo14(x: typeof b); // ok - function foo14(x: any) { } - - function foo15(x: I2); - function foo15(x: C); // ok - function foo15(x: any) { } \ No newline at end of file diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js index 21106b56b00..48131af3212 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js @@ -131,36 +131,36 @@ var One = (function () { function One() { } return One; -})(); +}()); var Two = (function () { function Two() { } return Two; -})(); +}()); var A = (function () { function A() { } A.prototype.foo = function (x, y) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; return C; -})(); +}()); var D = (function () { function D() { } D.prototype.foo = function (x, y) { return null; }; return D; -})(); +}()); var a; var b = { foo: function (x, y) { return ''; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.symbols b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.symbols new file mode 100644 index 00000000000..6bcbd98f225 --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.symbols @@ -0,0 +1,497 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class One { foo: string } +>One : Symbol(One, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 0, 0)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 11)) + +class Two { foo: string } +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 11)) + +interface Three { foo: string } +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 17)) + +interface Four { foo: T } +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 31)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 15)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 19)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 15)) + +interface Five extends Four { } +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 8, 15)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 31)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 8, 15)) + +interface Six { +>Six : Symbol(Six, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 8, 37)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 9, 14)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 9, 16)) + + foo: T; +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 9, 21)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 9, 14)) +} + +class A { +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 11, 1)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 13, 9)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 14, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 14, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 14, 20)) +>One : Symbol(One, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 0, 0)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 14, 36)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 14, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 14, 41)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 14, 20)) +} + +class B { +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 17, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 17, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 17, 20)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 17, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 18, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 17, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 18, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 17, 20)) +} + +class C { +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 21, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 21, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 21, 20)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 21, 39)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 22, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 21, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 22, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 21, 20)) +} + +class D> { +>D : Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 23, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 25, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 25, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 25, 20)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 31)) + + foo(x: T, y: U): string { return null; } +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 25, 46)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 26, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 25, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 26, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 25, 20)) +} + +interface I> { +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 29, 12)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 29, 24)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 29, 24)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + + foo(x: T, y: U): string; +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 29, 50)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 30, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 29, 12)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 30, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 29, 24)) +} + +interface I2 { +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 31, 1)) + + foo>(x: T, y: U): string; +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 33, 14)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 34, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 34, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 34, 20)) +>Six : Symbol(Six, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 8, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 34, 52)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 34, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 34, 57)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 34, 20)) +} + +var a: { foo(x: T, y: U): string } +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 3)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 25)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 25)) +>One : Symbol(One, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 0, 0)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 41)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 13)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 46)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 25)) + +var b = { foo(x: T, y: U) { return ''; } }; +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 3)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 9)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 14)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 26)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 26)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 42)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 14)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 47)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 26)) + +function foo1(x: A); +>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 71), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 40, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 41, 20)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 40, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 11, 1)) + +function foo1(x: A); // error +>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 71), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 40, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 41, 20)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 41, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 11, 1)) + +function foo1(x: any) { } +>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 71), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 40, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 41, 20)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 42, 14)) + +function foo1b(x: B); +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 42, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 44, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 45, 31)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 44, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo1b(x: B); // error +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 42, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 44, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 45, 31)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 45, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo1b(x: any) { } +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 42, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 44, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 45, 31)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 46, 15)) + +function foo1c(x: C); +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 46, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 48, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 49, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 48, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo1c(x: C); // error +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 46, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 48, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 49, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 49, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo1c(x: any) { } +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 46, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 48, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 49, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 50, 15)) + +function foo2(x: I, Five>); +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 50, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 52, 48), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 53, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 52, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo2(x: I, Five>); // error +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 50, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 52, 48), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 53, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 53, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo2(x: any) { } +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 50, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 52, 48), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 53, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 54, 14)) + +function foo3(x: typeof a); +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 54, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 56, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 57, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 56, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 3)) + +function foo3(x: typeof a); // error +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 54, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 56, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 57, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 57, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 3)) + +function foo3(x: any) { } +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 54, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 56, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 57, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 58, 14)) + +function foo4(x: typeof b); +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 58, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 60, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 61, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 60, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 3)) + +function foo4(x: typeof b); // error +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 58, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 60, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 61, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 61, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 3)) + +function foo4(x: any) { } +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 58, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 60, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 61, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 62, 14)) + +function foo5(x: A); +>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 62, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 64, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 65, 30)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 64, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 11, 1)) + +function foo5(x: B); // ok +>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 62, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 64, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 65, 30)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 65, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo5(x: any) { } +>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 62, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 64, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 65, 30)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 66, 14)) + +function foo5b(x: A); +>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 66, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 68, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 69, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 68, 15)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 11, 1)) + +function foo5b(x: C); // ok +>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 66, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 68, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 69, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 69, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo5b(x: any) { } +>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 66, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 68, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 69, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 70, 15)) + +function foo5c(x: C); +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 70, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 72, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 73, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 72, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo5c(x: D, Four>); // error +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 70, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 72, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 73, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 73, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 23, 1)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 31)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 31)) + +function foo5c(x: any) { } +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 70, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 72, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 73, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 74, 15)) + +function foo6c(x: C); +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 74, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 76, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 77, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 76, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo6c(x: D, Four>); // error +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 74, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 76, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 77, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 77, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 23, 1)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 31)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 6, 31)) + +function foo6c(x: any) { } +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 74, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 76, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 77, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 78, 15)) + +function foo6(x: A); +>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 78, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 80, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 81, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 80, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 11, 1)) + +function foo6(x: I, Five>); // ok +>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 78, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 80, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 81, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 81, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo6(x: any) { } +>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 78, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 80, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 81, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 82, 14)) + +function foo7(x: A); +>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 82, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 84, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 85, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 84, 14)) +>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 11, 1)) + +function foo7(x: typeof a); // error +>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 82, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 84, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 85, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 85, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 3)) + +function foo7(x: any) { } +>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 82, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 84, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 85, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 86, 14)) + +function foo8(x: B); +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 86, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 88, 30), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 89, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 88, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo8(x: I, Five>); // error +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 86, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 88, 30), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 89, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 89, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo8(x: any) { } +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 86, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 88, 30), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 89, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 90, 14)) + +function foo9(x: B); +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 90, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 92, 30), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 93, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 92, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo9(x: C); // error +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 90, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 92, 30), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 93, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 93, 14)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo9(x: any) { } +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 90, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 92, 30), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 93, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 94, 14)) + +function foo10(x: B); +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 94, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 96, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 97, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 96, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo10(x: typeof a); // ok +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 94, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 96, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 97, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 97, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 3)) + +function foo10(x: any) { } +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 94, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 96, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 97, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 98, 15)) + +function foo11(x: B); +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 98, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 100, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 101, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 100, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 15, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo11(x: typeof b); // ok +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 98, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 100, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 101, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 101, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 3)) + +function foo11(x: any) { } +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 98, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 100, 31), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 101, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 102, 15)) + +function foo12(x: I, Five>); +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 102, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 104, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 105, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 104, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo12(x: C); // error +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 102, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 104, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 105, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 105, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo12(x: any) { } +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 102, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 104, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 105, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 106, 15)) + +function foo12b(x: I2); +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 106, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 108, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 109, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 108, 16)) +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 31, 1)) + +function foo12b(x: C); // ok +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 106, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 108, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 109, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 109, 16)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo12b(x: any) { } +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 106, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 108, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 109, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 110, 16)) + +function foo13(x: I, Five>); +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 110, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 112, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 113, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 112, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo13(x: typeof a); // ok +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 110, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 112, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 113, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 113, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 37, 3)) + +function foo13(x: any) { } +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 110, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 112, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 113, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 114, 15)) + +function foo14(x: I, Five>); +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 114, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 116, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 117, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 116, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 27, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo14(x: typeof b); // ok +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 114, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 116, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 117, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 117, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 38, 3)) + +function foo14(x: any) { } +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 114, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 116, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 117, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 118, 15)) + +function foo15(x: I2); +>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 118, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 120, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 121, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 120, 15)) +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 31, 1)) + +function foo15(x: C); // ok +>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 118, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 120, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 121, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 121, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 19, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo15(x: any) { } +>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 118, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 120, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 121, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts, 122, 15)) + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.types new file mode 100644 index 00000000000..b5c2f6bdef0 --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.types @@ -0,0 +1,503 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class One { foo: string } +>One : One +>foo : string + +class Two { foo: string } +>Two : Two +>foo : string + +interface Three { foo: string } +>Three : Three +>foo : string + +interface Four { foo: T } +>Four : Four +>T : T +>foo : T +>T : T + +interface Five extends Four { } +>Five : Five +>T : T +>Four : Four +>T : T + +interface Six { +>Six : Six +>T : T +>U : U + + foo: T; +>foo : T +>T : T +} + +class A { +>A : A + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>T : T +>U : U +>U : U +>One : One +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class B { +>B : B +>T : T +>U : U +>U : U +>Two : Two + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class C { +>C : C +>T : T +>U : U +>U : U +>Three : Three + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class D> { +>D : D +>T : T +>U : U +>U : U +>Four : Four + + foo(x: T, y: U): string { return null; } +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +>null : null +} + +interface I> { +>I : I +>T : T +>U : U +>U : U +>Five : Five + + foo(x: T, y: U): string; +>foo : (x: T, y: U) => string +>x : T +>T : T +>y : U +>U : U +} + +interface I2 { +>I2 : I2 + + foo>(x: T, y: U): string; +>foo : >(x: T, y: U) => string +>T : T +>U : U +>U : U +>Six : Six +>x : T +>T : T +>y : U +>U : U +} + +var a: { foo(x: T, y: U): string } +>a : { foo(x: T, y: U): string; } +>foo : (x: T, y: U) => string +>T : T +>U : U +>U : U +>One : One +>x : T +>T : T +>y : U +>U : U + +var b = { foo(x: T, y: U) { return ''; } }; +>b : { foo(x: T, y: U): string; } +>{ foo(x: T, y: U) { return ''; } } : { foo(x: T, y: U): string; } +>foo : (x: T, y: U) => string +>T : T +>U : U +>U : U +>Two : Two +>x : T +>T : T +>y : U +>U : U +>'' : string + +function foo1(x: A); +>foo1 : { (x: A): any; (x: A): any; } +>x : A +>A : A + +function foo1(x: A); // error +>foo1 : { (x: A): any; (x: A): any; } +>x : A +>A : A + +function foo1(x: any) { } +>foo1 : { (x: A): any; (x: A): any; } +>x : any + +function foo1b(x: B); +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo1b(x: B); // error +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo1b(x: any) { } +>foo1b : { (x: B): any; (x: B): any; } +>x : any + +function foo1c(x: C); +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo1c(x: C); // error +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo1c(x: any) { } +>foo1c : { (x: C): any; (x: C): any; } +>x : any + +function foo2(x: I, Five>); +>foo2 : { (x: I, Five>): any; (x: I, Five>): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo2(x: I, Five>); // error +>foo2 : { (x: I, Five>): any; (x: I, Five>): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo2(x: any) { } +>foo2 : { (x: I, Five>): any; (x: I, Five>): any; } +>x : any + +function foo3(x: typeof a); +>foo3 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo3(x: typeof a); // error +>foo3 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo3(x: any) { } +>foo3 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo4(x: typeof b); +>foo4 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo4(x: typeof b); // error +>foo4 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo4(x: any) { } +>foo4 : { (x: { foo(x: T, y: U): string; }): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo5(x: A); +>foo5 : { (x: A): any; (x: B): any; } +>x : A +>A : A + +function foo5(x: B); // ok +>foo5 : { (x: A): any; (x: B): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo5(x: any) { } +>foo5 : { (x: A): any; (x: B): any; } +>x : any + +function foo5b(x: A); +>foo5b : { (x: A): any; (x: C): any; } +>x : A +>A : A + +function foo5b(x: C); // ok +>foo5b : { (x: A): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo5b(x: any) { } +>foo5b : { (x: A): any; (x: C): any; } +>x : any + +function foo5c(x: C); +>foo5c : { (x: C): any; (x: D, Four>): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo5c(x: D, Four>); // error +>foo5c : { (x: C): any; (x: D, Four>): any; } +>x : D, Four> +>D : D +>Four : Four +>Four : Four + +function foo5c(x: any) { } +>foo5c : { (x: C): any; (x: D, Four>): any; } +>x : any + +function foo6c(x: C); +>foo6c : { (x: C): any; (x: D, Four>): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo6c(x: D, Four>); // error +>foo6c : { (x: C): any; (x: D, Four>): any; } +>x : D, Four> +>D : D +>Four : Four +>Four : Four + +function foo6c(x: any) { } +>foo6c : { (x: C): any; (x: D, Four>): any; } +>x : any + +function foo6(x: A); +>foo6 : { (x: A): any; (x: I, Five>): any; } +>x : A +>A : A + +function foo6(x: I, Five>); // ok +>foo6 : { (x: A): any; (x: I, Five>): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo6(x: any) { } +>foo6 : { (x: A): any; (x: I, Five>): any; } +>x : any + +function foo7(x: A); +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): string; }): any; } +>x : A +>A : A + +function foo7(x: typeof a); // error +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo7(x: any) { } +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo8(x: B); +>foo8 : { (x: B): any; (x: I, Five>): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo8(x: I, Five>); // error +>foo8 : { (x: B): any; (x: I, Five>): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo8(x: any) { } +>foo8 : { (x: B): any; (x: I, Five>): any; } +>x : any + +function foo9(x: B); +>foo9 : { (x: B): any; (x: C): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo9(x: C); // error +>foo9 : { (x: B): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo9(x: any) { } +>foo9 : { (x: B): any; (x: C): any; } +>x : any + +function foo10(x: B); +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo10(x: typeof a); // ok +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo10(x: any) { } +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo11(x: B); +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo11(x: typeof b); // ok +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo11(x: any) { } +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo12(x: I, Five>); +>foo12 : { (x: I, Five>): any; (x: C): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo12(x: C); // error +>foo12 : { (x: I, Five>): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo12(x: any) { } +>foo12 : { (x: I, Five>): any; (x: C): any; } +>x : any + +function foo12b(x: I2); +>foo12b : { (x: I2): any; (x: C): any; } +>x : I2 +>I2 : I2 + +function foo12b(x: C); // ok +>foo12b : { (x: I2): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo12b(x: any) { } +>foo12b : { (x: I2): any; (x: C): any; } +>x : any + +function foo13(x: I, Five>); +>foo13 : { (x: I, Five>): any; (x: { foo(x: T, y: U): string; }): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo13(x: typeof a); // ok +>foo13 : { (x: I, Five>): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>a : { foo(x: T, y: U): string; } + +function foo13(x: any) { } +>foo13 : { (x: I, Five>): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo14(x: I, Five>); +>foo14 : { (x: I, Five>): any; (x: { foo(x: T, y: U): string; }): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo14(x: typeof b); // ok +>foo14 : { (x: I, Five>): any; (x: { foo(x: T, y: U): string; }): any; } +>x : { foo(x: T, y: U): string; } +>b : { foo(x: T, y: U): string; } + +function foo14(x: any) { } +>foo14 : { (x: I, Five>): any; (x: { foo(x: T, y: U): string; }): any; } +>x : any + +function foo15(x: I2); +>foo15 : { (x: I2): any; (x: C): any; } +>x : I2 +>I2 : I2 + +function foo15(x: C); // ok +>foo15 : { (x: I2): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo15(x: any) { } +>foo15 : { (x: I2): any; (x: C): any; } +>x : any + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js index 99188347d36..43147c28f55 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js @@ -111,19 +111,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return null; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js index 10d72bde0b3..c3758bc6c08 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js @@ -111,19 +111,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return null; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js index 5a20dfdecb6..de6a4724cd7 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js @@ -107,19 +107,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return x; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js index ec9c786b890..c27f7095d16 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js @@ -107,19 +107,19 @@ var A = (function () { } A.prototype.foo = function (x) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x) { return x; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js index a4af2bc820e..327cc15eddb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js @@ -111,19 +111,19 @@ var A = (function () { } A.prototype.foo = function (x, y) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x, y) { return x; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js index 28b2f978b55..753548bc360 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js @@ -111,19 +111,19 @@ var A = (function () { } A.prototype.foo = function (x, y) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x, y) { return x; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js index de9b4859fa1..da4bb20591b 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js @@ -111,19 +111,19 @@ var A = (function () { } A.prototype.foo = function (x, y) { return null; }; return A; -})(); +}()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; return B; -})(); +}()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; return C; -})(); +}()); var a; var b = { foo: function (x, y) { return x; } }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.js index fdc67d4b84a..c15c53b9bf8 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.js @@ -84,13 +84,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x) { return null; } return C; -})(); +}()); var a; var b = { new: function (x) { return ''; } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.errors.txt b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.errors.txt deleted file mode 100644 index 536be73b5cc..00000000000 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.errors.txt +++ /dev/null @@ -1,110 +0,0 @@ -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts(5,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts(9,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts(13,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts(17,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts(22,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts(25,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts(26,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts (7 errors) ==== - // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those - // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, - // optional or rest) and types, and identical return types. - - class B> { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - constructor(x: T, y: U) { return null; } - } - - class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - constructor(x: T, y: U) { return null; } - } - - class D { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - constructor(x: T, y: U) { return null; } - } - - interface I { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - new(x: T, y: U): string; - } - - interface I2 { - new(x: T, y: U): string; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - var a: { new>(x: T, y: U): string } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var b = { new(x: T, y: U) { return ''; } }; // not a construct signature, function called new - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - function foo1b(x: B, Array>); - function foo1b(x: B, Array>); // error - function foo1b(x: any) { } - - function foo1c(x: C); - function foo1c(x: C); // error - function foo1c(x: any) { } - - function foo2(x: I); - function foo2(x: I); // error - function foo2(x: any) { } - - function foo3(x: typeof a); - function foo3(x: typeof a); // error - function foo3(x: any) { } - - function foo4(x: typeof b); - function foo4(x: typeof b); // error - function foo4(x: any) { } - - function foo5c(x: C); - function foo5c(x: D); // ok - function foo5c(x: any) { } - - function foo6c(x: C); - function foo6c(x: D); // ok - function foo6c(x: any) { } - - function foo8(x: B, Array>); - function foo8(x: I); // ok - function foo8(x: any) { } - - function foo9(x: B, Array>); - function foo9(x: C); // error, types are structurally equal - function foo9(x: any) { } - - function foo10(x: B, Array>); - function foo10(x: typeof a); // ok - function foo10(x: any) { } - - function foo11(x: B, Array>); - function foo11(x: typeof b); // ok - function foo11(x: any) { } - - function foo12(x: I); - function foo12(x: C); // ok - function foo12(x: any) { } - - function foo12b(x: I2); - function foo12b(x: C); // ok - function foo12b(x: any) { } - - function foo13(x: I); - function foo13(x: typeof a); // ok - function foo13(x: any) { } - - function foo14(x: I); - function foo14(x: typeof b); // ok - function foo14(x: any) { } \ No newline at end of file diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.js index 11dcdf0a609..f8aff596dc9 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.js @@ -95,19 +95,19 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x, y) { return null; } return C; -})(); +}()); var D = (function () { function D(x, y) { return null; } return D; -})(); +}()); var a; var b = { new: function (x, y) { return ''; } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.symbols b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.symbols new file mode 100644 index 00000000000..ce55a114621 --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.symbols @@ -0,0 +1,349 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class B> { +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 0, 0)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 4, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 4, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 4, 20)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + constructor(x: T, y: U) { return null; } +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 5, 16)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 4, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 5, 21)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 4, 20)) +} + +class C { +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 8, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 8, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 8, 20)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + constructor(x: T, y: U) { return null; } +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 9, 16)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 8, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 9, 21)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 8, 20)) +} + +class D { +>D : Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 10, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 12, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 12, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 12, 20)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + constructor(x: T, y: U) { return null; } +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 13, 16)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 12, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 13, 21)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 12, 20)) +} + +interface I { +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 14, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 16, 12)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 16, 24)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 16, 24)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + new(x: T, y: U): string; +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 17, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 16, 12)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 17, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 16, 24)) +} + +interface I2 { +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 18, 1)) + + new(x: T, y: U): string; +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 21, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 21, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 21, 20)) +>Boolean : Symbol(Boolean, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 21, 40)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 21, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 21, 45)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 21, 20)) +} + +var a: { new>(x: T, y: U): string } +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 3)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 25)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 25)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 51)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 13)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 56)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 25)) + +var b = { new(x: T, y: U) { return ''; } }; // not a construct signature, function called new +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 3)) +>new : Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 9)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 14)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 26)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 26)) +>RegExp : Symbol(RegExp, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 45)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 14)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 50)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 26)) + +function foo1b(x: B, Array>); +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 74), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 27, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 28, 51)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 27, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 0, 0)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1b(x: B, Array>); // error +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 74), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 27, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 28, 51)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 28, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 0, 0)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1b(x: any) { } +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 74), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 27, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 28, 51)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 29, 15)) + +function foo1c(x: C); +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 31, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 32, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 31, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1c(x: C); // error +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 31, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 32, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 32, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo1c(x: any) { } +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 31, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 32, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 33, 15)) + +function foo2(x: I); +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 33, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 35, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 36, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 35, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo2(x: I); // error +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 33, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 35, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 36, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 36, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo2(x: any) { } +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 33, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 35, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 36, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 37, 14)) + +function foo3(x: typeof a); +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 40, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 39, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 3)) + +function foo3(x: typeof a); // error +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 40, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 40, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 3)) + +function foo3(x: any) { } +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 40, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 41, 14)) + +function foo4(x: typeof b); +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 43, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 44, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 43, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 3)) + +function foo4(x: typeof b); // error +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 43, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 44, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 44, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 3)) + +function foo4(x: any) { } +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 43, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 44, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 45, 14)) + +function foo5c(x: C); +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 47, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 48, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 47, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo5c(x: D); // ok +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 47, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 48, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 48, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 10, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo5c(x: any) { } +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 47, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 48, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 49, 15)) + +function foo6c(x: C); +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 49, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 52, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 51, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo6c(x: D); // ok +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 49, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 52, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 52, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 10, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo6c(x: any) { } +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 49, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 52, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 53, 15)) + +function foo8(x: B, Array>); +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 55, 50), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 56, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 55, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 0, 0)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo8(x: I); // ok +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 55, 50), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 56, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 56, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo8(x: any) { } +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 55, 50), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 56, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 57, 14)) + +function foo9(x: B, Array>); +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 57, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 59, 50), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 60, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 59, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 0, 0)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo9(x: C); // error, types are structurally equal +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 57, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 59, 50), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 60, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 60, 14)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo9(x: any) { } +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 57, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 59, 50), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 60, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 61, 14)) + +function foo10(x: B, Array>); +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 61, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 63, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 64, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 63, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 0, 0)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo10(x: typeof a); // ok +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 61, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 63, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 64, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 64, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 3)) + +function foo10(x: any) { } +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 61, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 63, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 64, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 65, 15)) + +function foo11(x: B, Array>); +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 65, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 67, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 68, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 67, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 0, 0)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo11(x: typeof b); // ok +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 65, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 67, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 68, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 68, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 3)) + +function foo11(x: any) { } +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 65, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 67, 51), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 68, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 69, 15)) + +function foo12(x: I); +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 72, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 71, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo12(x: C); // ok +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 72, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 72, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo12(x: any) { } +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 72, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 73, 15)) + +function foo12b(x: I2); +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 75, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 76, 38)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 75, 16)) +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 18, 1)) + +function foo12b(x: C); // ok +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 75, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 76, 38)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 76, 16)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 6, 1)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo12b(x: any) { } +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 75, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 76, 38)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 77, 16)) + +function foo13(x: I); +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 77, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 79, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 80, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 79, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo13(x: typeof a); // ok +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 77, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 79, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 80, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 80, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 24, 3)) + +function foo13(x: any) { } +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 77, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 79, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 80, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 81, 15)) + +function foo14(x: I); +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 81, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 83, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 84, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 83, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 14, 1)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function foo14(x: typeof b); // ok +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 81, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 83, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 84, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 84, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 25, 3)) + +function foo14(x: any) { } +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 81, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 83, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 84, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts, 85, 15)) + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.types new file mode 100644 index 00000000000..b1d1d79ac05 --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.types @@ -0,0 +1,354 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class B> { +>B : B +>T : T +>U : U +>U : U +>Array : T[] + + constructor(x: T, y: U) { return null; } +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class C { +>C : C +>T : T +>U : U +>U : U +>String : String + + constructor(x: T, y: U) { return null; } +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class D { +>D : D +>T : T +>U : U +>U : U +>Number : Number + + constructor(x: T, y: U) { return null; } +>x : T +>T : T +>y : U +>U : U +>null : null +} + +interface I { +>I : I +>T : T +>U : U +>U : U +>Number : Number + + new(x: T, y: U): string; +>x : T +>T : T +>y : U +>U : U +} + +interface I2 { +>I2 : I2 + + new(x: T, y: U): string; +>T : T +>U : U +>U : U +>Boolean : Boolean +>x : T +>T : T +>y : U +>U : U +} + +var a: { new>(x: T, y: U): string } +>a : new (x: T, y: U) => string +>T : T +>U : U +>U : U +>Array : T[] +>x : T +>T : T +>y : U +>U : U + +var b = { new(x: T, y: U) { return ''; } }; // not a construct signature, function called new +>b : { new(x: T, y: U): string; } +>{ new(x: T, y: U) { return ''; } } : { new(x: T, y: U): string; } +>new : (x: T, y: U) => string +>T : T +>U : U +>U : U +>RegExp : RegExp +>x : T +>T : T +>y : U +>U : U +>'' : string + +function foo1b(x: B, Array>); +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo1b(x: B, Array>); // error +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo1b(x: any) { } +>foo1b : { (x: B): any; (x: B): any; } +>x : any + +function foo1c(x: C); +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo1c(x: C); // error +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo1c(x: any) { } +>foo1c : { (x: C): any; (x: C): any; } +>x : any + +function foo2(x: I); +>foo2 : { (x: I): any; (x: I): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo2(x: I); // error +>foo2 : { (x: I): any; (x: I): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo2(x: any) { } +>foo2 : { (x: I): any; (x: I): any; } +>x : any + +function foo3(x: typeof a); +>foo3 : { (x: new (x: T, y: U) => string): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo3(x: typeof a); // error +>foo3 : { (x: new (x: T, y: U) => string): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo3(x: any) { } +>foo3 : { (x: new (x: T, y: U) => string): any; (x: new (x: T, y: U) => string): any; } +>x : any + +function foo4(x: typeof b); +>foo4 : { (x: { new(x: T, y: U): string; }): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo4(x: typeof b); // error +>foo4 : { (x: { new(x: T, y: U): string; }): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo4(x: any) { } +>foo4 : { (x: { new(x: T, y: U): string; }): any; (x: { new(x: T, y: U): string; }): any; } +>x : any + +function foo5c(x: C); +>foo5c : { (x: C): any; (x: D): any; } +>x : C +>C : C +>String : String +>String : String + +function foo5c(x: D); // ok +>foo5c : { (x: C): any; (x: D): any; } +>x : D +>D : D +>Number : Number +>Number : Number + +function foo5c(x: any) { } +>foo5c : { (x: C): any; (x: D): any; } +>x : any + +function foo6c(x: C); +>foo6c : { (x: C): any; (x: D): any; } +>x : C +>C : C +>String : String +>String : String + +function foo6c(x: D); // ok +>foo6c : { (x: C): any; (x: D): any; } +>x : D +>D : D +>Number : Number + +function foo6c(x: any) { } +>foo6c : { (x: C): any; (x: D): any; } +>x : any + +function foo8(x: B, Array>); +>foo8 : { (x: B): any; (x: I): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo8(x: I); // ok +>foo8 : { (x: B): any; (x: I): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo8(x: any) { } +>foo8 : { (x: B): any; (x: I): any; } +>x : any + +function foo9(x: B, Array>); +>foo9 : { (x: B): any; (x: C): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo9(x: C); // error, types are structurally equal +>foo9 : { (x: B): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo9(x: any) { } +>foo9 : { (x: B): any; (x: C): any; } +>x : any + +function foo10(x: B, Array>); +>foo10 : { (x: B): any; (x: new (x: T, y: U) => string): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo10(x: typeof a); // ok +>foo10 : { (x: B): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo10(x: any) { } +>foo10 : { (x: B): any; (x: new (x: T, y: U) => string): any; } +>x : any + +function foo11(x: B, Array>); +>foo11 : { (x: B): any; (x: { new(x: T, y: U): string; }): any; } +>x : B +>B : B +>Array : T[] +>Array : T[] + +function foo11(x: typeof b); // ok +>foo11 : { (x: B): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo11(x: any) { } +>foo11 : { (x: B): any; (x: { new(x: T, y: U): string; }): any; } +>x : any + +function foo12(x: I); +>foo12 : { (x: I): any; (x: C): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo12(x: C); // ok +>foo12 : { (x: I): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo12(x: any) { } +>foo12 : { (x: I): any; (x: C): any; } +>x : any + +function foo12b(x: I2); +>foo12b : { (x: I2): any; (x: C): any; } +>x : I2 +>I2 : I2 + +function foo12b(x: C); // ok +>foo12b : { (x: I2): any; (x: C): any; } +>x : C +>C : C +>String : String +>String : String + +function foo12b(x: any) { } +>foo12b : { (x: I2): any; (x: C): any; } +>x : any + +function foo13(x: I); +>foo13 : { (x: I): any; (x: new (x: T, y: U) => string): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo13(x: typeof a); // ok +>foo13 : { (x: I): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo13(x: any) { } +>foo13 : { (x: I): any; (x: new (x: T, y: U) => string): any; } +>x : any + +function foo14(x: I); +>foo14 : { (x: I): any; (x: { new(x: T, y: U): string; }): any; } +>x : I +>I : I +>Number : Number +>Number : Number + +function foo14(x: typeof b); // ok +>foo14 : { (x: I): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo14(x: any) { } +>foo14 : { (x: I): any; (x: { new(x: T, y: U): string; }): any; } +>x : any + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.errors.txt b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.errors.txt deleted file mode 100644 index 33a62356d1c..00000000000 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.errors.txt +++ /dev/null @@ -1,119 +0,0 @@ -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts(14,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts(18,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts(22,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts(26,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts(31,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts(34,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts(35,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts (7 errors) ==== - // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those - // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, - // optional or rest) and types, and identical return types. - - class One { foo: string } - class Two { foo: string } - interface Three { foo: string } - interface Four { foo: T } - interface Five extends Four { } - interface Six { - foo: T; - } - - class B { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - constructor(x: T, y: U) { return null; } - } - - class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - constructor(x: T, y: U) { return null; } - } - - class D> { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - constructor(x: T, y: U) { return null; } - } - - interface I> { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - new(x: T, y: U): string; - } - - interface I2 { - new>(x: T, y: U): string; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - - var a: { new(x: T, y: U): string } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var b = { new(x: T, y: U) { return ''; } }; // not a construct signature, function called new - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - function foo1b(x: B); - function foo1b(x: B); // error - function foo1b(x: any) { } - - function foo1c(x: C); - function foo1c(x: C); // error - function foo1c(x: any) { } - - function foo2(x: I, Five>); - function foo2(x: I, Five>); // error - function foo2(x: any) { } - - function foo3(x: typeof a); - function foo3(x: typeof a); // error - function foo3(x: any) { } - - function foo4(x: typeof b); - function foo4(x: typeof b); // error - function foo4(x: any) { } - - function foo5c(x: C); - function foo5c(x: D, Four>); // error - function foo5c(x: any) { } - - function foo6c(x: C); - function foo6c(x: D, Four>); // error - function foo6c(x: any) { } - - function foo8(x: B); - function foo8(x: I, Five>); // error - function foo8(x: any) { } - - function foo9(x: B); - function foo9(x: C); // error - function foo9(x: any) { } - - function foo10(x: B); - function foo10(x: typeof a); // ok - function foo10(x: any) { } - - function foo11(x: B); - function foo11(x: typeof b); // ok - function foo11(x: any) { } - - function foo12(x: I, Five>); - function foo12(x: C); // ok - function foo12(x: any) { } - - function foo12b(x: I2); - function foo12b(x: C); // ok - function foo12b(x: any) { } - - function foo13(x: I, Five>); - function foo13(x: typeof a); // ok - function foo13(x: any) { } - - function foo14(x: I, Five>); - function foo14(x: typeof b); // ok - function foo14(x: any) { } \ No newline at end of file diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.js index 5c6f59eef24..141aa86823b 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.js @@ -103,30 +103,30 @@ var One = (function () { function One() { } return One; -})(); +}()); var Two = (function () { function Two() { } return Two; -})(); +}()); var B = (function () { function B(x, y) { return null; } return B; -})(); +}()); var C = (function () { function C(x, y) { return null; } return C; -})(); +}()); var D = (function () { function D(x, y) { return null; } return D; -})(); +}()); var a; var b = { new: function (x, y) { return ''; } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.symbols b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.symbols new file mode 100644 index 00000000000..4d7adc798f9 --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.symbols @@ -0,0 +1,384 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class One { foo: string } +>One : Symbol(One, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 0, 0)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 11)) + +class Two { foo: string } +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 11)) + +interface Three { foo: string } +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 17)) + +interface Four { foo: T } +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 31)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 15)) +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 19)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 15)) + +interface Five extends Four { } +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 8, 15)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 31)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 8, 15)) + +interface Six { +>Six : Symbol(Six, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 8, 37)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 9, 14)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 9, 16)) + + foo: T; +>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 9, 21)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 9, 14)) +} + +class B { +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 11, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 13, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 13, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 13, 20)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) + + constructor(x: T, y: U) { return null; } +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 14, 16)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 13, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 14, 21)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 13, 20)) +} + +class C { +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 17, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 17, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 17, 20)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + + constructor(x: T, y: U) { return null; } +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 18, 16)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 17, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 18, 21)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 17, 20)) +} + +class D> { +>D : Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 19, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 21, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 21, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 21, 20)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 31)) + + constructor(x: T, y: U) { return null; } +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 22, 16)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 21, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 22, 21)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 21, 20)) +} + +interface I> { +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 23, 1)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 25, 12)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 25, 24)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 25, 24)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) + + new(x: T, y: U): string; +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 26, 8)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 25, 12)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 26, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 25, 24)) +} + +interface I2 { +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 27, 1)) + + new>(x: T, y: U): string; +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 30, 8)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 30, 20)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 30, 20)) +>Six : Symbol(Six, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 8, 37)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 30, 52)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 30, 8)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 30, 57)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 30, 20)) +} + +var a: { new(x: T, y: U): string } +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 3)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 13)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 25)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 25)) +>One : Symbol(One, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 0, 0)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 41)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 13)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 46)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 25)) + +var b = { new(x: T, y: U) { return ''; } }; // not a construct signature, function called new +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 3)) +>new : Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 9)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 14)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 26)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 26)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 42)) +>T : Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 14)) +>y : Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 47)) +>U : Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 26)) + +function foo1b(x: B); +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 71), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 36, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 37, 31)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 36, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 11, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo1b(x: B); // error +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 71), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 36, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 37, 31)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 37, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 11, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo1b(x: any) { } +>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 71), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 36, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 37, 31)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 38, 15)) + +function foo1c(x: C); +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 38, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 40, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 41, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 40, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo1c(x: C); // error +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 38, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 40, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 41, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 41, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo1c(x: any) { } +>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 38, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 40, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 41, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 42, 15)) + +function foo2(x: I, Five>); +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 42, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 44, 48), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 45, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 44, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 23, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo2(x: I, Five>); // error +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 42, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 44, 48), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 45, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 45, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 23, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo2(x: any) { } +>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 42, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 44, 48), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 45, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 46, 14)) + +function foo3(x: typeof a); +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 46, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 48, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 49, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 48, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 3)) + +function foo3(x: typeof a); // error +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 46, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 48, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 49, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 49, 14)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 3)) + +function foo3(x: any) { } +>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 46, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 48, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 49, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 50, 14)) + +function foo4(x: typeof b); +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 50, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 52, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 53, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 52, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 3)) + +function foo4(x: typeof b); // error +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 50, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 52, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 53, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 53, 14)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 3)) + +function foo4(x: any) { } +>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 50, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 52, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 53, 27)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 54, 14)) + +function foo5c(x: C); +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 54, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 56, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 57, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 56, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo5c(x: D, Four>); // error +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 54, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 56, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 57, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 57, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 19, 1)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 31)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 31)) + +function foo5c(x: any) { } +>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 54, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 56, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 57, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 58, 15)) + +function foo6c(x: C); +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 58, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 60, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 61, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 60, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo6c(x: D, Four>); // error +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 58, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 60, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 61, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 61, 15)) +>D : Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 19, 1)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 31)) +>Four : Symbol(Four, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 6, 31)) + +function foo6c(x: any) { } +>foo6c : Symbol(foo6c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 58, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 60, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 61, 49)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 62, 15)) + +function foo8(x: B); +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 62, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 64, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 65, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 64, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 11, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo8(x: I, Five>); // error +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 62, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 64, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 65, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 65, 14)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 23, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo8(x: any) { } +>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 62, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 64, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 65, 48)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 66, 14)) + +function foo9(x: B); +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 66, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 68, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 69, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 68, 14)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 11, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo9(x: C); // error +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 66, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 68, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 69, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 69, 14)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo9(x: any) { } +>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 66, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 68, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 69, 34)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 70, 14)) + +function foo10(x: B); +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 70, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 72, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 73, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 72, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 11, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo10(x: typeof a); // ok +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 70, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 72, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 73, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 73, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 3)) + +function foo10(x: any) { } +>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 70, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 72, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 73, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 74, 15)) + +function foo11(x: B); +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 74, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 76, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 77, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 76, 15)) +>B : Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 11, 1)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) +>Two : Symbol(Two, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 4, 25)) + +function foo11(x: typeof b); // ok +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 74, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 76, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 77, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 77, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 3)) + +function foo11(x: any) { } +>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 74, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 76, 31), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 77, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 78, 15)) + +function foo12(x: I, Five>); +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 78, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 80, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 81, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 80, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 23, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo12(x: C); // ok +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 78, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 80, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 81, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 81, 15)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo12(x: any) { } +>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 78, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 80, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 81, 35)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 82, 15)) + +function foo12b(x: I2); +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 82, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 84, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 85, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 84, 16)) +>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 27, 1)) + +function foo12b(x: C); // ok +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 82, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 84, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 85, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 85, 16)) +>C : Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 15, 1)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) +>Three : Symbol(Three, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 5, 25)) + +function foo12b(x: any) { } +>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 82, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 84, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 85, 36)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 86, 16)) + +function foo13(x: I, Five>); +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 86, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 88, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 89, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 88, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 23, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo13(x: typeof a); // ok +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 86, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 88, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 89, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 89, 15)) +>a : Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 33, 3)) + +function foo13(x: any) { } +>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 86, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 88, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 89, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 90, 15)) + +function foo14(x: I, Five>); +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 90, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 92, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 93, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 92, 15)) +>I : Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 23, 1)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) +>Five : Symbol(Five, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 7, 28)) + +function foo14(x: typeof b); // ok +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 90, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 92, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 93, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 93, 15)) +>b : Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 34, 3)) + +function foo14(x: any) { } +>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 90, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 92, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 93, 28)) +>x : Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts, 94, 15)) + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.types new file mode 100644 index 00000000000..d8109a6a826 --- /dev/null +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.types @@ -0,0 +1,389 @@ +=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts === +// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those +// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, +// optional or rest) and types, and identical return types. + +class One { foo: string } +>One : One +>foo : string + +class Two { foo: string } +>Two : Two +>foo : string + +interface Three { foo: string } +>Three : Three +>foo : string + +interface Four { foo: T } +>Four : Four +>T : T +>foo : T +>T : T + +interface Five extends Four { } +>Five : Five +>T : T +>Four : Four +>T : T + +interface Six { +>Six : Six +>T : T +>U : U + + foo: T; +>foo : T +>T : T +} + +class B { +>B : B +>T : T +>U : U +>U : U +>Two : Two + + constructor(x: T, y: U) { return null; } +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class C { +>C : C +>T : T +>U : U +>U : U +>Three : Three + + constructor(x: T, y: U) { return null; } +>x : T +>T : T +>y : U +>U : U +>null : null +} + +class D> { +>D : D +>T : T +>U : U +>U : U +>Four : Four + + constructor(x: T, y: U) { return null; } +>x : T +>T : T +>y : U +>U : U +>null : null +} + +interface I> { +>I : I +>T : T +>U : U +>U : U +>Five : Five + + new(x: T, y: U): string; +>x : T +>T : T +>y : U +>U : U +} + +interface I2 { +>I2 : I2 + + new>(x: T, y: U): string; +>T : T +>U : U +>U : U +>Six : Six +>x : T +>T : T +>y : U +>U : U +} + +var a: { new(x: T, y: U): string } +>a : new (x: T, y: U) => string +>T : T +>U : U +>U : U +>One : One +>x : T +>T : T +>y : U +>U : U + +var b = { new(x: T, y: U) { return ''; } }; // not a construct signature, function called new +>b : { new(x: T, y: U): string; } +>{ new(x: T, y: U) { return ''; } } : { new(x: T, y: U): string; } +>new : (x: T, y: U) => string +>T : T +>U : U +>U : U +>Two : Two +>x : T +>T : T +>y : U +>U : U +>'' : string + +function foo1b(x: B); +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo1b(x: B); // error +>foo1b : { (x: B): any; (x: B): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo1b(x: any) { } +>foo1b : { (x: B): any; (x: B): any; } +>x : any + +function foo1c(x: C); +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo1c(x: C); // error +>foo1c : { (x: C): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo1c(x: any) { } +>foo1c : { (x: C): any; (x: C): any; } +>x : any + +function foo2(x: I, Five>); +>foo2 : { (x: I, Five>): any; (x: I, Five>): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo2(x: I, Five>); // error +>foo2 : { (x: I, Five>): any; (x: I, Five>): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo2(x: any) { } +>foo2 : { (x: I, Five>): any; (x: I, Five>): any; } +>x : any + +function foo3(x: typeof a); +>foo3 : { (x: new (x: T, y: U) => string): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo3(x: typeof a); // error +>foo3 : { (x: new (x: T, y: U) => string): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo3(x: any) { } +>foo3 : { (x: new (x: T, y: U) => string): any; (x: new (x: T, y: U) => string): any; } +>x : any + +function foo4(x: typeof b); +>foo4 : { (x: { new(x: T, y: U): string; }): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo4(x: typeof b); // error +>foo4 : { (x: { new(x: T, y: U): string; }): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo4(x: any) { } +>foo4 : { (x: { new(x: T, y: U): string; }): any; (x: { new(x: T, y: U): string; }): any; } +>x : any + +function foo5c(x: C); +>foo5c : { (x: C): any; (x: D, Four>): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo5c(x: D, Four>); // error +>foo5c : { (x: C): any; (x: D, Four>): any; } +>x : D, Four> +>D : D +>Four : Four +>Four : Four + +function foo5c(x: any) { } +>foo5c : { (x: C): any; (x: D, Four>): any; } +>x : any + +function foo6c(x: C); +>foo6c : { (x: C): any; (x: D, Four>): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo6c(x: D, Four>); // error +>foo6c : { (x: C): any; (x: D, Four>): any; } +>x : D, Four> +>D : D +>Four : Four +>Four : Four + +function foo6c(x: any) { } +>foo6c : { (x: C): any; (x: D, Four>): any; } +>x : any + +function foo8(x: B); +>foo8 : { (x: B): any; (x: I, Five>): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo8(x: I, Five>); // error +>foo8 : { (x: B): any; (x: I, Five>): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo8(x: any) { } +>foo8 : { (x: B): any; (x: I, Five>): any; } +>x : any + +function foo9(x: B); +>foo9 : { (x: B): any; (x: C): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo9(x: C); // error +>foo9 : { (x: B): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo9(x: any) { } +>foo9 : { (x: B): any; (x: C): any; } +>x : any + +function foo10(x: B); +>foo10 : { (x: B): any; (x: new (x: T, y: U) => string): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo10(x: typeof a); // ok +>foo10 : { (x: B): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo10(x: any) { } +>foo10 : { (x: B): any; (x: new (x: T, y: U) => string): any; } +>x : any + +function foo11(x: B); +>foo11 : { (x: B): any; (x: { new(x: T, y: U): string; }): any; } +>x : B +>B : B +>Two : Two +>Two : Two + +function foo11(x: typeof b); // ok +>foo11 : { (x: B): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo11(x: any) { } +>foo11 : { (x: B): any; (x: { new(x: T, y: U): string; }): any; } +>x : any + +function foo12(x: I, Five>); +>foo12 : { (x: I, Five>): any; (x: C): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo12(x: C); // ok +>foo12 : { (x: I, Five>): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo12(x: any) { } +>foo12 : { (x: I, Five>): any; (x: C): any; } +>x : any + +function foo12b(x: I2); +>foo12b : { (x: I2): any; (x: C): any; } +>x : I2 +>I2 : I2 + +function foo12b(x: C); // ok +>foo12b : { (x: I2): any; (x: C): any; } +>x : C +>C : C +>Three : Three +>Three : Three + +function foo12b(x: any) { } +>foo12b : { (x: I2): any; (x: C): any; } +>x : any + +function foo13(x: I, Five>); +>foo13 : { (x: I, Five>): any; (x: new (x: T, y: U) => string): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo13(x: typeof a); // ok +>foo13 : { (x: I, Five>): any; (x: new (x: T, y: U) => string): any; } +>x : new (x: T, y: U) => string +>a : new (x: T, y: U) => string + +function foo13(x: any) { } +>foo13 : { (x: I, Five>): any; (x: new (x: T, y: U) => string): any; } +>x : any + +function foo14(x: I, Five>); +>foo14 : { (x: I, Five>): any; (x: { new(x: T, y: U): string; }): any; } +>x : I, Five> +>I : I +>Five : Five +>Five : Five + +function foo14(x: typeof b); // ok +>foo14 : { (x: I, Five>): any; (x: { new(x: T, y: U): string; }): any; } +>x : { new(x: T, y: U): string; } +>b : { new(x: T, y: U): string; } + +function foo14(x: any) { } +>foo14 : { (x: I, Five>): any; (x: { new(x: T, y: U): string; }): any; } +>x : any + diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.js index 556d1bcaee0..b651d368f33 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.js @@ -91,13 +91,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x) { return null; } return C; -})(); +}()); var a; var b = { new: function (x) { return null; } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.js index 68c32cb0e71..ff7095c4ea1 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.js @@ -87,13 +87,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x) { return null; } return C; -})(); +}()); var a; var b = { new: function (x) { return null; } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.js index 789e02d2d7b..314eb700c4b 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.js @@ -79,13 +79,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x) { return null; } return C; -})(); +}()); var a; var b = { new: function (x) { return x; } }; function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.js index 5a501d05834..182cf8263b7 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.js @@ -79,13 +79,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x) { return null; } return C; -})(); +}()); var a; var b = { new: function (x) { return new C(x); } }; function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.js index 685a8441d97..5c5dd26c331 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.js @@ -83,13 +83,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x, y) { return null; } return C; -})(); +}()); var a; var b = { new: function (x, y) { return new C(x, y); } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.js index f16d69acaa1..14b2ec3c0ca 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.js @@ -83,13 +83,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x, y) { return null; } return C; -})(); +}()); var a; var b = { new: function (x, y) { return new C(x, y); } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.js b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.js index 25c628e9e15..ffc238cacae 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.js @@ -83,13 +83,13 @@ var B = (function () { return null; } return B; -})(); +}()); var C = (function () { function C(x, y) { return null; } return C; -})(); +}()); var a; var b = { new: function (x, y) { return new C(x, y); } }; // not a construct signature, function called new function foo1b(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js index e0f626ae083..c0bd423cd79 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js @@ -133,31 +133,31 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var PA = (function (_super) { __extends(PA, _super); function PA() { _super.apply(this, arguments); } return PA; -})(A); +}(A)); var PB = (function (_super) { __extends(PB, _super); function PB() { _super.apply(this, arguments); } return PB; -})(B); +}(B)); var a; var b = { foo: '' }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js index f0417a7ca23..98c29e96a86 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js @@ -136,43 +136,43 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var PA = (function (_super) { __extends(PA, _super); function PA() { _super.apply(this, arguments); } return PA; -})(A); +}(A)); var PB = (function (_super) { __extends(PB, _super); function PB() { _super.apply(this, arguments); } return PB; -})(B); +}(B)); var a; var b = { foo: null }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js index e1473790553..ea85b8b3c67 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js @@ -133,31 +133,31 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var PA = (function (_super) { __extends(PA, _super); function PA() { _super.apply(this, arguments); } return PA; -})(A); +}(A)); var PB = (function (_super) { __extends(PB, _super); function PB() { _super.apply(this, arguments); } return PB; -})(B); +}(B)); var a; var b = { foo: '' }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithOptionality.js b/tests/baselines/reference/objectTypesIdentityWithOptionality.js index 2a61cda1bb9..a45d474614a 100644 --- a/tests/baselines/reference/objectTypesIdentityWithOptionality.js +++ b/tests/baselines/reference/objectTypesIdentityWithOptionality.js @@ -62,17 +62,17 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { foo: '' }; function foo2(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates.js b/tests/baselines/reference/objectTypesIdentityWithPrivates.js index bf4f80da15a..7d6be5eaf8f 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates.js +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates.js @@ -131,31 +131,31 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var PA = (function (_super) { __extends(PA, _super); function PA() { _super.apply(this, arguments); } return PA; -})(A); +}(A)); var PB = (function (_super) { __extends(PB, _super); function PB() { _super.apply(this, arguments); } return PB; -})(B); +}(B)); var a; var b = { foo: '' }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates2.js b/tests/baselines/reference/objectTypesIdentityWithPrivates2.js index c8cd12cff30..cb9c677f024 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates2.js +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates2.js @@ -49,14 +49,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); function foo1(x) { } function foo2(x) { } function foo3(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates3.js b/tests/baselines/reference/objectTypesIdentityWithPrivates3.js index a812a1fc4bd..241fbcaf27e 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates3.js +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates3.js @@ -35,27 +35,27 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(C1); +}(C1)); var c1; c1; // Should succeed (private x originates in the same declaration) var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function (_super) { __extends(C4, _super); function C4() { _super.apply(this, arguments); } return C4; -})(C3); +}(C3)); var c3; c3; // Should fail (private x originates in the same declaration, but different types) diff --git a/tests/baselines/reference/objectTypesIdentityWithPublics.js b/tests/baselines/reference/objectTypesIdentityWithPublics.js index 7c36eb48f2c..0abc8a9b5cc 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPublics.js +++ b/tests/baselines/reference/objectTypesIdentityWithPublics.js @@ -94,17 +94,17 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { foo: '' }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js index 9cf9e99cb4b..c0578c2fba1 100644 --- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js +++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js @@ -133,31 +133,31 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var PA = (function (_super) { __extends(PA, _super); function PA() { _super.apply(this, arguments); } return PA; -})(A); +}(A)); var PB = (function (_super) { __extends(PB, _super); function PB() { _super.apply(this, arguments); } return PB; -})(B); +}(B)); var a; var b = { foo: '' }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js index 84f3d04e7bf..0670d45a5a5 100644 --- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js +++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js @@ -136,43 +136,43 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var PA = (function (_super) { __extends(PA, _super); function PA() { _super.apply(this, arguments); } return PA; -})(A); +}(A)); var PB = (function (_super) { __extends(PB, _super); function PB() { _super.apply(this, arguments); } return PB; -})(B); +}(B)); var a; var b = { foo: null }; function foo1(x) { } diff --git a/tests/baselines/reference/objectTypesWithOptionalProperties.js b/tests/baselines/reference/objectTypesWithOptionalProperties.js index c2177e63762..98141c048dd 100644 --- a/tests/baselines/reference/objectTypesWithOptionalProperties.js +++ b/tests/baselines/reference/objectTypesWithOptionalProperties.js @@ -32,12 +32,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var b = { x: 1 // error }; diff --git a/tests/baselines/reference/objectTypesWithOptionalProperties2.js b/tests/baselines/reference/objectTypesWithOptionalProperties2.js index e5ffbf09c10..eabb1a153a6 100644 --- a/tests/baselines/reference/objectTypesWithOptionalProperties2.js +++ b/tests/baselines/reference/objectTypesWithOptionalProperties2.js @@ -34,13 +34,13 @@ var C = (function () { } C.prototype.x = ; return C; -})(); +}()); var C2 = (function () { function C2() { } C2.prototype.x = ; return C2; -})(); +}()); var b = { x: function () { }, 1: // error // error diff --git a/tests/baselines/reference/objectTypesWithPredefinedTypesAsName.js b/tests/baselines/reference/objectTypesWithPredefinedTypesAsName.js index 650ceb664df..6c3637e2d0e 100644 --- a/tests/baselines/reference/objectTypesWithPredefinedTypesAsName.js +++ b/tests/baselines/reference/objectTypesWithPredefinedTypesAsName.js @@ -19,24 +19,24 @@ var any = (function () { function any() { } return any; -})(); +}()); var number = (function () { function number() { } return number; -})(); +}()); var boolean = (function () { function boolean() { } return boolean; -})(); +}()); var bool = (function () { function bool() { } return bool; -})(); // not a predefined type anymore +}()); // not a predefined type anymore var string = (function () { function string() { } return string; -})(); +}()); diff --git a/tests/baselines/reference/objectTypesWithPredefinedTypesAsName2.js b/tests/baselines/reference/objectTypesWithPredefinedTypesAsName2.js index 974744f1870..57176900886 100644 --- a/tests/baselines/reference/objectTypesWithPredefinedTypesAsName2.js +++ b/tests/baselines/reference/objectTypesWithPredefinedTypesAsName2.js @@ -9,5 +9,5 @@ var default_1 = (function () { function default_1() { } return default_1; -})(); +}()); void {}; // parse error unlike the others diff --git a/tests/baselines/reference/optionalArgsWithDefaultValues.js b/tests/baselines/reference/optionalArgsWithDefaultValues.js index 12ab7c9f330..b2bdc7a9a65 100644 --- a/tests/baselines/reference/optionalArgsWithDefaultValues.js +++ b/tests/baselines/reference/optionalArgsWithDefaultValues.js @@ -26,7 +26,7 @@ var CCC = (function () { if (z === void 0) { z = 0; } }; return CCC; -})(); +}()); var a = function (x) { if (x === void 0) { x = 0; } return 1; diff --git a/tests/baselines/reference/optionalConstructorArgInSuper.js b/tests/baselines/reference/optionalConstructorArgInSuper.js index e8b65ea5119..3e6a47b4de2 100644 --- a/tests/baselines/reference/optionalConstructorArgInSuper.js +++ b/tests/baselines/reference/optionalConstructorArgInSuper.js @@ -21,14 +21,14 @@ var Base = (function () { } Base.prototype.foo = function (other) { }; return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var d = new Derived(); // bug caused an error here, couldn't select overload var d2; d2.foo(); diff --git a/tests/baselines/reference/optionalParamArgsTest.js b/tests/baselines/reference/optionalParamArgsTest.js index 0c5a5d82814..6d42c38f907 100644 --- a/tests/baselines/reference/optionalParamArgsTest.js +++ b/tests/baselines/reference/optionalParamArgsTest.js @@ -157,7 +157,7 @@ var C1 = (function () { return C1M5A1 + C1M5A2; }; return C1; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2(v2) { @@ -165,7 +165,7 @@ var C2 = (function (_super) { _super.call(this, v2); } return C2; -})(C1); +}(C1)); function F1() { return 0; } function F2(F2A1) { return F2A1; } function F3(F3A1, F3A2) { diff --git a/tests/baselines/reference/optionalParamInOverride.js b/tests/baselines/reference/optionalParamInOverride.js index 4a72953bdad..f6ccdbe3fab 100644 --- a/tests/baselines/reference/optionalParamInOverride.js +++ b/tests/baselines/reference/optionalParamInOverride.js @@ -18,7 +18,7 @@ var Z = (function () { } Z.prototype.func = function () { }; return Z; -})(); +}()); var Y = (function (_super) { __extends(Y, _super); function Y() { @@ -26,4 +26,4 @@ var Y = (function (_super) { } Y.prototype.func = function (value) { }; return Y; -})(Z); +}(Z)); diff --git a/tests/baselines/reference/optionalPropertiesInClasses.js b/tests/baselines/reference/optionalPropertiesInClasses.js index 24f52e9d76a..0adbec827cf 100644 --- a/tests/baselines/reference/optionalPropertiesInClasses.js +++ b/tests/baselines/reference/optionalPropertiesInClasses.js @@ -22,14 +22,14 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); diff --git a/tests/baselines/reference/optionalSetterParam.js b/tests/baselines/reference/optionalSetterParam.js index 1632f33be9f..22cc2cdc067 100644 --- a/tests/baselines/reference/optionalSetterParam.js +++ b/tests/baselines/reference/optionalSetterParam.js @@ -15,4 +15,4 @@ var foo = (function () { configurable: true }); return foo; -})(); +}()); diff --git a/tests/baselines/reference/out-flag.js b/tests/baselines/reference/out-flag.js index 755703a12fe..a8c689f9736 100644 --- a/tests/baselines/reference/out-flag.js +++ b/tests/baselines/reference/out-flag.js @@ -30,7 +30,7 @@ var MyClass = (function () { // }; return MyClass; -})(); +}()); //# sourceMappingURL=out-flag.js.map //// [out-flag.d.ts] diff --git a/tests/baselines/reference/out-flag.js.map b/tests/baselines/reference/out-flag.js.map index 1d33d382eba..5d3af0ec652 100644 --- a/tests/baselines/reference/out-flag.js.map +++ b/tests/baselines/reference/out-flag.js.map @@ -1,2 +1,2 @@ //// [out-flag.js.map] -{"version":3,"file":"out-flag.js","sourceRoot":"","sources":["out-flag.ts"],"names":["MyClass","MyClass.constructor","MyClass.Count","MyClass.SetCount"],"mappings":"AAAA,eAAe;AAEf,oBAAoB;AACpB;IAAAA;IAYAC,CAACA;IAVGD,uBAAuBA;IAChBA,uBAAKA,GAAZA;QAEIE,MAAMA,CAACA,EAAEA,CAACA;IACdA,CAACA;IAEMF,0BAAQA,GAAfA,UAAgBA,KAAaA;QAEzBG,EAAEA;IACNA,CAACA;IACLH,cAACA;AAADA,CAACA,AAZD,IAYC"} \ No newline at end of file +{"version":3,"file":"out-flag.js","sourceRoot":"","sources":["out-flag.ts"],"names":[],"mappings":"AAAA,eAAe;AAEf,oBAAoB;AACpB;IAAA;IAYA,CAAC;IAVG,uBAAuB;IAChB,uBAAK,GAAZ;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IAEM,0BAAQ,GAAf,UAAgB,KAAa;QAEzB,EAAE;IACN,CAAC;IACL,cAAC;AAAD,CAAC,AAZD,IAYC"} \ No newline at end of file diff --git a/tests/baselines/reference/out-flag.sourcemap.txt b/tests/baselines/reference/out-flag.sourcemap.txt index 397cfe346a3..6bc04d8c453 100644 --- a/tests/baselines/reference/out-flag.sourcemap.txt +++ b/tests/baselines/reference/out-flag.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:out-flag.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (MyClass) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -59,8 +59,8 @@ sourceFile:out-flag.ts > } > 2 > } -1->Emitted(5, 5) Source(16, 1) + SourceIndex(0) name (MyClass.constructor) -2 >Emitted(5, 6) Source(16, 2) + SourceIndex(0) name (MyClass.constructor) +1->Emitted(5, 5) Source(16, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(16, 2) + SourceIndex(0) --- >>> // my function comments 1->^^^^ @@ -68,8 +68,8 @@ sourceFile:out-flag.ts 3 > ^^^^^^^^^^^^^^^^^-> 1-> 2 > // my function comments -1->Emitted(6, 5) Source(6, 5) + SourceIndex(0) name (MyClass) -2 >Emitted(6, 28) Source(6, 28) + SourceIndex(0) name (MyClass) +1->Emitted(6, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(6, 28) Source(6, 28) + SourceIndex(0) --- >>> MyClass.prototype.Count = function () { 1->^^^^ @@ -79,9 +79,9 @@ sourceFile:out-flag.ts > public 2 > Count 3 > -1->Emitted(7, 5) Source(7, 12) + SourceIndex(0) name (MyClass) -2 >Emitted(7, 28) Source(7, 17) + SourceIndex(0) name (MyClass) -3 >Emitted(7, 31) Source(7, 5) + SourceIndex(0) name (MyClass) +1->Emitted(7, 5) Source(7, 12) + SourceIndex(0) +2 >Emitted(7, 28) Source(7, 17) + SourceIndex(0) +3 >Emitted(7, 31) Source(7, 5) + SourceIndex(0) --- >>> return 42; 1 >^^^^^^^^ @@ -96,11 +96,11 @@ sourceFile:out-flag.ts 3 > 4 > 42 5 > ; -1 >Emitted(8, 9) Source(9, 9) + SourceIndex(0) name (MyClass.Count) -2 >Emitted(8, 15) Source(9, 15) + SourceIndex(0) name (MyClass.Count) -3 >Emitted(8, 16) Source(9, 16) + SourceIndex(0) name (MyClass.Count) -4 >Emitted(8, 18) Source(9, 18) + SourceIndex(0) name (MyClass.Count) -5 >Emitted(8, 19) Source(9, 19) + SourceIndex(0) name (MyClass.Count) +1 >Emitted(8, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(8, 15) Source(9, 15) + SourceIndex(0) +3 >Emitted(8, 16) Source(9, 16) + SourceIndex(0) +4 >Emitted(8, 18) Source(9, 18) + SourceIndex(0) +5 >Emitted(8, 19) Source(9, 19) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -109,8 +109,8 @@ sourceFile:out-flag.ts 1 > > 2 > } -1 >Emitted(9, 5) Source(10, 5) + SourceIndex(0) name (MyClass.Count) -2 >Emitted(9, 6) Source(10, 6) + SourceIndex(0) name (MyClass.Count) +1 >Emitted(9, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(9, 6) Source(10, 6) + SourceIndex(0) --- >>> MyClass.prototype.SetCount = function (value) { 1->^^^^ @@ -125,11 +125,11 @@ sourceFile:out-flag.ts 3 > 4 > public SetCount( 5 > value: number -1->Emitted(10, 5) Source(12, 12) + SourceIndex(0) name (MyClass) -2 >Emitted(10, 31) Source(12, 20) + SourceIndex(0) name (MyClass) -3 >Emitted(10, 34) Source(12, 5) + SourceIndex(0) name (MyClass) -4 >Emitted(10, 44) Source(12, 21) + SourceIndex(0) name (MyClass) -5 >Emitted(10, 49) Source(12, 34) + SourceIndex(0) name (MyClass) +1->Emitted(10, 5) Source(12, 12) + SourceIndex(0) +2 >Emitted(10, 31) Source(12, 20) + SourceIndex(0) +3 >Emitted(10, 34) Source(12, 5) + SourceIndex(0) +4 >Emitted(10, 44) Source(12, 21) + SourceIndex(0) +5 >Emitted(10, 49) Source(12, 34) + SourceIndex(0) --- >>> // 1 >^^^^^^^^ @@ -138,8 +138,8 @@ sourceFile:out-flag.ts > { > 2 > // -1 >Emitted(11, 9) Source(14, 9) + SourceIndex(0) name (MyClass.SetCount) -2 >Emitted(11, 11) Source(14, 11) + SourceIndex(0) name (MyClass.SetCount) +1 >Emitted(11, 9) Source(14, 9) + SourceIndex(0) +2 >Emitted(11, 11) Source(14, 11) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -148,8 +148,8 @@ sourceFile:out-flag.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) name (MyClass.SetCount) -2 >Emitted(12, 6) Source(15, 6) + SourceIndex(0) name (MyClass.SetCount) +1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(12, 6) Source(15, 6) + SourceIndex(0) --- >>> return MyClass; 1->^^^^ @@ -157,10 +157,10 @@ sourceFile:out-flag.ts 1-> > 2 > } -1->Emitted(13, 5) Source(16, 1) + SourceIndex(0) name (MyClass) -2 >Emitted(13, 19) Source(16, 2) + SourceIndex(0) name (MyClass) +1->Emitted(13, 5) Source(16, 1) + SourceIndex(0) +2 >Emitted(13, 19) Source(16, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -182,8 +182,8 @@ sourceFile:out-flag.ts > // > } > } -1 >Emitted(14, 1) Source(16, 1) + SourceIndex(0) name (MyClass) -2 >Emitted(14, 2) Source(16, 2) + SourceIndex(0) name (MyClass) +1 >Emitted(14, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(16, 2) + SourceIndex(0) 3 >Emitted(14, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(14, 6) Source(16, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/out-flag2.js b/tests/baselines/reference/out-flag2.js index e2a30f169e3..6d452daca66 100644 --- a/tests/baselines/reference/out-flag2.js +++ b/tests/baselines/reference/out-flag2.js @@ -12,12 +12,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); //# sourceMappingURL=c.js.map //// [c.d.ts] diff --git a/tests/baselines/reference/out-flag2.js.map b/tests/baselines/reference/out-flag2.js.map index c1523e75784..2c2f112b238 100644 --- a/tests/baselines/reference/out-flag2.js.map +++ b/tests/baselines/reference/out-flag2.js.map @@ -1,2 +1,2 @@ //// [c.js.map] -{"version":3,"file":"c.js","sourceRoot":"","sources":["tests/cases/compiler/a.ts","tests/cases/compiler/b.ts"],"names":["A","A.constructor","B","B.constructor"],"mappings":"AACA;IAAAA;IAAUC,CAACA;IAADD,QAACA;AAADA,CAACA,AAAX,IAAW;ACDX;IAAAE;IAAUC,CAACA;IAADD,QAACA;AAADA,CAACA,AAAX,IAAW"} \ No newline at end of file +{"version":3,"file":"c.js","sourceRoot":"","sources":["tests/cases/compiler/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":"AACA;IAAA;IAAU,CAAC;IAAD,QAAC;AAAD,CAAC,AAAX,IAAW;ACDX;IAAA;IAAU,CAAC;IAAD,QAAC;AAAD,CAAC,AAAX,IAAW"} \ No newline at end of file diff --git a/tests/baselines/reference/out-flag2.sourcemap.txt b/tests/baselines/reference/out-flag2.sourcemap.txt index 6a67e61bc91..a4966bf9f82 100644 --- a/tests/baselines/reference/out-flag2.sourcemap.txt +++ b/tests/baselines/reference/out-flag2.sourcemap.txt @@ -19,7 +19,7 @@ sourceFile:tests/cases/compiler/a.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) name (A) +1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -27,18 +27,18 @@ sourceFile:tests/cases/compiler/a.ts 3 > ^^^^^^^^^-> 1->class A { 2 > } -1->Emitted(3, 5) Source(2, 11) + SourceIndex(0) name (A.constructor) -2 >Emitted(3, 6) Source(2, 12) + SourceIndex(0) name (A.constructor) +1->Emitted(3, 5) Source(2, 11) + SourceIndex(0) +2 >Emitted(3, 6) Source(2, 12) + SourceIndex(0) --- >>> return A; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(2, 11) + SourceIndex(0) name (A) -2 >Emitted(4, 13) Source(2, 12) + SourceIndex(0) name (A) +1->Emitted(4, 5) Source(2, 11) + SourceIndex(0) +2 >Emitted(4, 13) Source(2, 12) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -48,8 +48,8 @@ sourceFile:tests/cases/compiler/a.ts 2 >} 3 > 4 > class A { } -1 >Emitted(5, 1) Source(2, 11) + SourceIndex(0) name (A) -2 >Emitted(5, 2) Source(2, 12) + SourceIndex(0) name (A) +1 >Emitted(5, 1) Source(2, 11) + SourceIndex(0) +2 >Emitted(5, 2) Source(2, 12) + SourceIndex(0) 3 >Emitted(5, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(2, 12) + SourceIndex(0) --- @@ -67,7 +67,7 @@ sourceFile:tests/cases/compiler/b.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(7, 5) Source(1, 1) + SourceIndex(1) name (B) +1->Emitted(7, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -75,18 +75,18 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1->class B { 2 > } -1->Emitted(8, 5) Source(1, 11) + SourceIndex(1) name (B.constructor) -2 >Emitted(8, 6) Source(1, 12) + SourceIndex(1) name (B.constructor) +1->Emitted(8, 5) Source(1, 11) + SourceIndex(1) +2 >Emitted(8, 6) Source(1, 12) + SourceIndex(1) --- >>> return B; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(9, 5) Source(1, 11) + SourceIndex(1) name (B) -2 >Emitted(9, 13) Source(1, 12) + SourceIndex(1) name (B) +1->Emitted(9, 5) Source(1, 11) + SourceIndex(1) +2 >Emitted(9, 13) Source(1, 12) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -96,8 +96,8 @@ sourceFile:tests/cases/compiler/b.ts 2 >} 3 > 4 > class B { } -1 >Emitted(10, 1) Source(1, 11) + SourceIndex(1) name (B) -2 >Emitted(10, 2) Source(1, 12) + SourceIndex(1) name (B) +1 >Emitted(10, 1) Source(1, 11) + SourceIndex(1) +2 >Emitted(10, 2) Source(1, 12) + SourceIndex(1) 3 >Emitted(10, 2) Source(1, 1) + SourceIndex(1) 4 >Emitted(10, 6) Source(1, 12) + SourceIndex(1) --- diff --git a/tests/baselines/reference/out-flag3.js b/tests/baselines/reference/out-flag3.js index 8327c3429d3..134bbfa9e03 100644 --- a/tests/baselines/reference/out-flag3.js +++ b/tests/baselines/reference/out-flag3.js @@ -15,12 +15,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); //# sourceMappingURL=c.js.map //// [c.d.ts] diff --git a/tests/baselines/reference/out-flag3.js.map b/tests/baselines/reference/out-flag3.js.map index a52d66589c7..5fb864821b7 100644 --- a/tests/baselines/reference/out-flag3.js.map +++ b/tests/baselines/reference/out-flag3.js.map @@ -1,2 +1,2 @@ //// [c.js.map] -{"version":3,"file":"c.js","sourceRoot":"","sources":["tests/cases/compiler/a.ts","tests/cases/compiler/b.ts"],"names":["A","A.constructor","B","B.constructor"],"mappings":"AACA,4BAA4B;AAE5B;IAAAA;IAAUC,CAACA;IAADD,QAACA;AAADA,CAACA,AAAX,IAAW;ACHX;IAAAE;IAAUC,CAACA;IAADD,QAACA;AAADA,CAACA,AAAX,IAAW"} \ No newline at end of file +{"version":3,"file":"c.js","sourceRoot":"","sources":["tests/cases/compiler/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":"AACA,4BAA4B;AAE5B;IAAA;IAAU,CAAC;IAAD,QAAC;AAAD,CAAC,AAAX,IAAW;ACHX;IAAA;IAAU,CAAC;IAAD,QAAC;AAAD,CAAC,AAAX,IAAW"} \ No newline at end of file diff --git a/tests/baselines/reference/out-flag3.sourcemap.txt b/tests/baselines/reference/out-flag3.sourcemap.txt index c30c9f63020..8801fd11143 100644 --- a/tests/baselines/reference/out-flag3.sourcemap.txt +++ b/tests/baselines/reference/out-flag3.sourcemap.txt @@ -29,7 +29,7 @@ sourceFile:tests/cases/compiler/a.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) name (A) +1->Emitted(3, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -37,18 +37,18 @@ sourceFile:tests/cases/compiler/a.ts 3 > ^^^^^^^^^-> 1->class A { 2 > } -1->Emitted(4, 5) Source(4, 11) + SourceIndex(0) name (A.constructor) -2 >Emitted(4, 6) Source(4, 12) + SourceIndex(0) name (A.constructor) +1->Emitted(4, 5) Source(4, 11) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 12) + SourceIndex(0) --- >>> return A; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 11) + SourceIndex(0) name (A) -2 >Emitted(5, 13) Source(4, 12) + SourceIndex(0) name (A) +1->Emitted(5, 5) Source(4, 11) + SourceIndex(0) +2 >Emitted(5, 13) Source(4, 12) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -58,8 +58,8 @@ sourceFile:tests/cases/compiler/a.ts 2 >} 3 > 4 > class A { } -1 >Emitted(6, 1) Source(4, 11) + SourceIndex(0) name (A) -2 >Emitted(6, 2) Source(4, 12) + SourceIndex(0) name (A) +1 >Emitted(6, 1) Source(4, 11) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 12) + SourceIndex(0) 3 >Emitted(6, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 12) + SourceIndex(0) --- @@ -77,7 +77,7 @@ sourceFile:tests/cases/compiler/b.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(8, 5) Source(1, 1) + SourceIndex(1) name (B) +1->Emitted(8, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -85,18 +85,18 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1->class B { 2 > } -1->Emitted(9, 5) Source(1, 11) + SourceIndex(1) name (B.constructor) -2 >Emitted(9, 6) Source(1, 12) + SourceIndex(1) name (B.constructor) +1->Emitted(9, 5) Source(1, 11) + SourceIndex(1) +2 >Emitted(9, 6) Source(1, 12) + SourceIndex(1) --- >>> return B; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(10, 5) Source(1, 11) + SourceIndex(1) name (B) -2 >Emitted(10, 13) Source(1, 12) + SourceIndex(1) name (B) +1->Emitted(10, 5) Source(1, 11) + SourceIndex(1) +2 >Emitted(10, 13) Source(1, 12) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -106,8 +106,8 @@ sourceFile:tests/cases/compiler/b.ts 2 >} 3 > 4 > class B { } -1 >Emitted(11, 1) Source(1, 11) + SourceIndex(1) name (B) -2 >Emitted(11, 2) Source(1, 12) + SourceIndex(1) name (B) +1 >Emitted(11, 1) Source(1, 11) + SourceIndex(1) +2 >Emitted(11, 2) Source(1, 12) + SourceIndex(1) 3 >Emitted(11, 2) Source(1, 1) + SourceIndex(1) 4 >Emitted(11, 6) Source(1, 12) + SourceIndex(1) --- diff --git a/tests/baselines/reference/outFilerootDirModuleNamesAmd.js b/tests/baselines/reference/outFilerootDirModuleNamesAmd.js new file mode 100644 index 00000000000..5b99f76a5b9 --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesAmd.js @@ -0,0 +1,27 @@ +//// [tests/cases/conformance/es6/moduleExportsAmd/outFilerootDirModuleNamesAmd.ts] //// + +//// [a.ts] +import foo from "./b"; +export default class Foo {} +foo(); + +//// [b.ts] +import Foo from "./a"; +export default function foo() { new Foo(); } + + +//// [output.js] +define("b", ["require", "exports", "a"], function (require, exports, a_1) { + "use strict"; + function foo() { new a_1.default(); } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = foo; +}); +define("a", ["require", "exports", "b"], function (require, exports, b_1) { + "use strict"; + class Foo { + } + Object.defineProperty(exports, "__esModule", { value: true }); + exports.default = Foo; + b_1.default(); +}); diff --git a/tests/baselines/reference/outFilerootDirModuleNamesAmd.symbols b/tests/baselines/reference/outFilerootDirModuleNamesAmd.symbols new file mode 100644 index 00000000000..fea742c20ca --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesAmd.symbols @@ -0,0 +1,18 @@ +=== tests/cases/conformance/es6/moduleExportsAmd/src/a.ts === +import foo from "./b"; +>foo : Symbol(foo, Decl(a.ts, 0, 6)) + +export default class Foo {} +>Foo : Symbol(Foo, Decl(a.ts, 0, 22)) + +foo(); +>foo : Symbol(foo, Decl(a.ts, 0, 6)) + +=== tests/cases/conformance/es6/moduleExportsAmd/src/b.ts === +import Foo from "./a"; +>Foo : Symbol(Foo, Decl(b.ts, 0, 6)) + +export default function foo() { new Foo(); } +>foo : Symbol(foo, Decl(b.ts, 0, 22)) +>Foo : Symbol(Foo, Decl(b.ts, 0, 6)) + diff --git a/tests/baselines/reference/outFilerootDirModuleNamesAmd.types b/tests/baselines/reference/outFilerootDirModuleNamesAmd.types new file mode 100644 index 00000000000..617096fd0dd --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesAmd.types @@ -0,0 +1,20 @@ +=== tests/cases/conformance/es6/moduleExportsAmd/src/a.ts === +import foo from "./b"; +>foo : () => void + +export default class Foo {} +>Foo : Foo + +foo(); +>foo() : void +>foo : () => void + +=== tests/cases/conformance/es6/moduleExportsAmd/src/b.ts === +import Foo from "./a"; +>Foo : typeof Foo + +export default function foo() { new Foo(); } +>foo : () => void +>new Foo() : Foo +>Foo : typeof Foo + diff --git a/tests/baselines/reference/outFilerootDirModuleNamesSystem.js b/tests/baselines/reference/outFilerootDirModuleNamesSystem.js new file mode 100644 index 00000000000..298ad52689f --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesSystem.js @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/es6/moduleExportsSystem/outFilerootDirModuleNamesSystem.ts] //// + +//// [a.ts] +import foo from "./b"; +export default class Foo {} +foo(); + +//// [b.ts] +import Foo from "./a"; +export default function foo() { new Foo(); } + + +//// [output.js] +System.register("b", ["a"], function(exports_1) { + "use strict"; + var a_1; + function foo() { new a_1.default(); } + exports_1("default", foo); + return { + setters:[ + function (a_1_1) { + a_1 = a_1_1; + }], + execute: function() { + } + } +}); +System.register("a", ["b"], function(exports_2) { + "use strict"; + var b_1; + var Foo; + return { + setters:[ + function (b_1_1) { + b_1 = b_1_1; + }], + execute: function() { + class Foo { + } + exports_2("default", Foo); + b_1.default(); + } + } +}); diff --git a/tests/baselines/reference/outFilerootDirModuleNamesSystem.symbols b/tests/baselines/reference/outFilerootDirModuleNamesSystem.symbols new file mode 100644 index 00000000000..535c037f5af --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesSystem.symbols @@ -0,0 +1,18 @@ +=== tests/cases/conformance/es6/moduleExportsSystem/src/a.ts === +import foo from "./b"; +>foo : Symbol(foo, Decl(a.ts, 0, 6)) + +export default class Foo {} +>Foo : Symbol(Foo, Decl(a.ts, 0, 22)) + +foo(); +>foo : Symbol(foo, Decl(a.ts, 0, 6)) + +=== tests/cases/conformance/es6/moduleExportsSystem/src/b.ts === +import Foo from "./a"; +>Foo : Symbol(Foo, Decl(b.ts, 0, 6)) + +export default function foo() { new Foo(); } +>foo : Symbol(foo, Decl(b.ts, 0, 22)) +>Foo : Symbol(Foo, Decl(b.ts, 0, 6)) + diff --git a/tests/baselines/reference/outFilerootDirModuleNamesSystem.types b/tests/baselines/reference/outFilerootDirModuleNamesSystem.types new file mode 100644 index 00000000000..2f0e23c2e81 --- /dev/null +++ b/tests/baselines/reference/outFilerootDirModuleNamesSystem.types @@ -0,0 +1,20 @@ +=== tests/cases/conformance/es6/moduleExportsSystem/src/a.ts === +import foo from "./b"; +>foo : () => void + +export default class Foo {} +>Foo : Foo + +foo(); +>foo() : void +>foo : () => void + +=== tests/cases/conformance/es6/moduleExportsSystem/src/b.ts === +import Foo from "./a"; +>Foo : typeof Foo + +export default function foo() { new Foo(); } +>foo : () => void +>new Foo() : Foo +>Foo : typeof Foo + diff --git a/tests/baselines/reference/outModuleConcatAmd.js b/tests/baselines/reference/outModuleConcatAmd.js index cfcd1bad9b8..8a478e675c6 100644 --- a/tests/baselines/reference/outModuleConcatAmd.js +++ b/tests/baselines/reference/outModuleConcatAmd.js @@ -14,16 +14,16 @@ var __extends = (this && this.__extends) || function (d, b) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) { +define("ref/a", ["require", "exports"], function (require, exports) { "use strict"; var A = (function () { function A() { } return A; - })(); + }()); exports.A = A; }); -define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) { +define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { "use strict"; var B = (function (_super) { __extends(B, _super); @@ -31,18 +31,18 @@ define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/re _super.apply(this, arguments); } return B; - })(a_1.A); + }(a_1.A)); exports.B = B; }); //# sourceMappingURL=all.js.map //// [all.d.ts] -declare module "tests/cases/compiler/ref/a" { +declare module "ref/a" { export class A { } } -declare module "tests/cases/compiler/b" { - import { A } from "tests/cases/compiler/ref/a"; +declare module "b" { + import { A } from "ref/a"; export class B extends A { } } diff --git a/tests/baselines/reference/outModuleConcatAmd.js.map b/tests/baselines/reference/outModuleConcatAmd.js.map index a4c3944d3d7..5c34fd866a4 100644 --- a/tests/baselines/reference/outModuleConcatAmd.js.map +++ b/tests/baselines/reference/outModuleConcatAmd.js.map @@ -1,2 +1,2 @@ //// [all.js.map] -{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":["A","A.constructor","B","B.constructor"],"mappings":";;;;;;;IACA;QAAAA;QAAiBC,CAACA;QAADD,QAACA;IAADA,CAACA,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;;;;ICAlB;QAAuBE,qBAACA;QAAxBA;YAAuBC,8BAACA;QAAGA,CAACA;QAADD,QAACA;IAADA,CAACA,AAA5B,EAAuB,KAAC,EAAI;IAAf,SAAC,IAAc,CAAA"} \ No newline at end of file +{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;IACA;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;;;;ICAlB;QAAuB,qBAAC;QAAxB;YAAuB,8BAAC;QAAG,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,SAAC,IAAc,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt b/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt index 2c695dca40d..76370d95c32 100644 --- a/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt +++ b/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt @@ -13,7 +13,7 @@ sourceFile:tests/cases/compiler/ref/a.ts >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); >>>}; ->>>define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) { +>>>define("ref/a", ["require", "exports"], function (require, exports) { >>> "use strict"; >>> var A = (function () { 1 >^^^^ @@ -26,7 +26,7 @@ sourceFile:tests/cases/compiler/ref/a.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(9, 9) Source(2, 1) + SourceIndex(0) name (A) +1->Emitted(9, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -34,18 +34,18 @@ sourceFile:tests/cases/compiler/ref/a.ts 3 > ^^^^^^^^^-> 1->export class A { 2 > } -1->Emitted(10, 9) Source(2, 18) + SourceIndex(0) name (A.constructor) -2 >Emitted(10, 10) Source(2, 19) + SourceIndex(0) name (A.constructor) +1->Emitted(10, 9) Source(2, 18) + SourceIndex(0) +2 >Emitted(10, 10) Source(2, 19) + SourceIndex(0) --- >>> return A; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(11, 9) Source(2, 18) + SourceIndex(0) name (A) -2 >Emitted(11, 17) Source(2, 19) + SourceIndex(0) name (A) +1->Emitted(11, 9) Source(2, 18) + SourceIndex(0) +2 >Emitted(11, 17) Source(2, 19) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -55,8 +55,8 @@ sourceFile:tests/cases/compiler/ref/a.ts 2 > } 3 > 4 > export class A { } -1 >Emitted(12, 5) Source(2, 18) + SourceIndex(0) name (A) -2 >Emitted(12, 6) Source(2, 19) + SourceIndex(0) name (A) +1 >Emitted(12, 5) Source(2, 18) + SourceIndex(0) +2 >Emitted(12, 6) Source(2, 19) + SourceIndex(0) 3 >Emitted(12, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(12, 10) Source(2, 19) + SourceIndex(0) --- @@ -79,7 +79,7 @@ emittedFile:all.js sourceFile:tests/cases/compiler/b.ts ------------------------------------------------------------------- >>>}); ->>>define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) { +>>>define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { >>> "use strict"; >>> var B = (function (_super) { 1 >^^^^ @@ -93,22 +93,22 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(18, 9) Source(2, 24) + SourceIndex(1) name (B) -2 >Emitted(18, 30) Source(2, 25) + SourceIndex(1) name (B) +1->Emitted(18, 9) Source(2, 24) + SourceIndex(1) +2 >Emitted(18, 30) Source(2, 25) + SourceIndex(1) --- >>> function B() { 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(19, 9) Source(2, 1) + SourceIndex(1) name (B) +1 >Emitted(19, 9) Source(2, 1) + SourceIndex(1) --- >>> _super.apply(this, arguments); 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(20, 13) Source(2, 24) + SourceIndex(1) name (B.constructor) -2 >Emitted(20, 43) Source(2, 25) + SourceIndex(1) name (B.constructor) +1->Emitted(20, 13) Source(2, 24) + SourceIndex(1) +2 >Emitted(20, 43) Source(2, 25) + SourceIndex(1) --- >>> } 1 >^^^^^^^^ @@ -116,36 +116,36 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1 > { 2 > } -1 >Emitted(21, 9) Source(2, 28) + SourceIndex(1) name (B.constructor) -2 >Emitted(21, 10) Source(2, 29) + SourceIndex(1) name (B.constructor) +1 >Emitted(21, 9) Source(2, 28) + SourceIndex(1) +2 >Emitted(21, 10) Source(2, 29) + SourceIndex(1) --- >>> return B; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(2, 28) + SourceIndex(1) name (B) -2 >Emitted(22, 17) Source(2, 29) + SourceIndex(1) name (B) +1->Emitted(22, 9) Source(2, 28) + SourceIndex(1) +2 >Emitted(22, 17) Source(2, 29) + SourceIndex(1) --- ->>> })(a_1.A); +>>> }(a_1.A)); 1 >^^^^ 2 > ^ 3 > -4 > ^^ -5 > ^^^^^ -6 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^^^ 7 > ^^^^^-> 1 > 2 > } 3 > 4 > export class B extends -5 > A -6 > { } -1 >Emitted(23, 5) Source(2, 28) + SourceIndex(1) name (B) -2 >Emitted(23, 6) Source(2, 29) + SourceIndex(1) name (B) +5 > A +6 > { } +1 >Emitted(23, 5) Source(2, 28) + SourceIndex(1) +2 >Emitted(23, 6) Source(2, 29) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(23, 8) Source(2, 24) + SourceIndex(1) -5 >Emitted(23, 13) Source(2, 25) + SourceIndex(1) +4 >Emitted(23, 7) Source(2, 24) + SourceIndex(1) +5 >Emitted(23, 12) Source(2, 25) + SourceIndex(1) 6 >Emitted(23, 15) Source(2, 29) + SourceIndex(1) --- >>> exports.B = B; diff --git a/tests/baselines/reference/outModuleConcatCommonjs.js b/tests/baselines/reference/outModuleConcatCommonjs.js index c859d6c63ef..0dbaee88004 100644 --- a/tests/baselines/reference/outModuleConcatCommonjs.js +++ b/tests/baselines/reference/outModuleConcatCommonjs.js @@ -20,12 +20,12 @@ var __extends = (this && this.__extends) || function (d, b) { //# sourceMappingURL=all.js.map //// [all.d.ts] -declare module "tests/cases/compiler/ref/a" { +declare module "ref/a" { export class A { } } -declare module "tests/cases/compiler/b" { - import { A } from "tests/cases/compiler/ref/a"; +declare module "b" { + import { A } from "ref/a"; export class B extends A { } } diff --git a/tests/baselines/reference/outModuleConcatES6.js b/tests/baselines/reference/outModuleConcatES6.js index 037d52eb410..45e58d2d773 100644 --- a/tests/baselines/reference/outModuleConcatES6.js +++ b/tests/baselines/reference/outModuleConcatES6.js @@ -15,12 +15,12 @@ export class B extends A { } //# sourceMappingURL=all.js.map //// [all.d.ts] -declare module "tests/cases/compiler/ref/a" { +declare module "ref/a" { export class A { } } -declare module "tests/cases/compiler/b" { - import { A } from "tests/cases/compiler/ref/a"; +declare module "b" { + import { A } from "ref/a"; export class B extends A { } } diff --git a/tests/baselines/reference/outModuleConcatSystem.js b/tests/baselines/reference/outModuleConcatSystem.js index 688221ca5b2..d4552d33167 100644 --- a/tests/baselines/reference/outModuleConcatSystem.js +++ b/tests/baselines/reference/outModuleConcatSystem.js @@ -14,7 +14,7 @@ var __extends = (this && this.__extends) || function (d, b) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -System.register("tests/cases/compiler/ref/a", [], function(exports_1) { +System.register("ref/a", [], function(exports_1) { "use strict"; var A; return { @@ -24,12 +24,12 @@ System.register("tests/cases/compiler/ref/a", [], function(exports_1) { function A() { } return A; - })(); + }()); exports_1("A", A); } } }); -System.register("tests/cases/compiler/b", ["tests/cases/compiler/ref/a"], function(exports_2) { +System.register("b", ["ref/a"], function(exports_2) { "use strict"; var a_1; var B; @@ -45,7 +45,7 @@ System.register("tests/cases/compiler/b", ["tests/cases/compiler/ref/a"], functi _super.apply(this, arguments); } return B; - })(a_1.A); + }(a_1.A)); exports_2("B", B); } } @@ -53,12 +53,12 @@ System.register("tests/cases/compiler/b", ["tests/cases/compiler/ref/a"], functi //# sourceMappingURL=all.js.map //// [all.d.ts] -declare module "tests/cases/compiler/ref/a" { +declare module "ref/a" { export class A { } } -declare module "tests/cases/compiler/b" { - import { A } from "tests/cases/compiler/ref/a"; +declare module "b" { + import { A } from "ref/a"; export class B extends A { } } diff --git a/tests/baselines/reference/outModuleConcatSystem.js.map b/tests/baselines/reference/outModuleConcatSystem.js.map index 91dd31751cd..47d3ba2d39c 100644 --- a/tests/baselines/reference/outModuleConcatSystem.js.map +++ b/tests/baselines/reference/outModuleConcatSystem.js.map @@ -1,2 +1,2 @@ //// [all.js.map] -{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":["A","A.constructor","B","B.constructor"],"mappings":";;;;;;;;;;;YACA;gBAAAA;gBAAiBC,CAACA;gBAADD,QAACA;YAADA,CAACA,AAAlB,IAAkB;YAAlB,iBAAkB,CAAA;;;;;;;;;;;;;;YCAlB;gBAAuBE,qBAACA;gBAAxBA;oBAAuBC,8BAACA;gBAAGA,CAACA;gBAADD,QAACA;YAADA,CAACA,AAA5B,EAAuB,KAAC,EAAI;YAA5B,iBAA4B,CAAA"} \ No newline at end of file +{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;;;;;YACA;gBAAA;gBAAiB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAlB,IAAkB;YAAlB,iBAAkB,CAAA;;;;;;;;;;;;;;YCAlB;gBAAuB,qBAAC;gBAAxB;oBAAuB,8BAAC;gBAAG,CAAC;gBAAD,QAAC;YAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;YAA5B,iBAA4B,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt b/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt index 7abebabbc61..e3f521c828c 100644 --- a/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt +++ b/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt @@ -13,7 +13,7 @@ sourceFile:tests/cases/compiler/ref/a.ts >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); >>>}; ->>>System.register("tests/cases/compiler/ref/a", [], function(exports_1) { +>>>System.register("ref/a", [], function(exports_1) { >>> "use strict"; >>> var A; >>> return { @@ -30,7 +30,7 @@ sourceFile:tests/cases/compiler/ref/a.ts 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(13, 17) Source(2, 1) + SourceIndex(0) name (A) +1->Emitted(13, 17) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -38,18 +38,18 @@ sourceFile:tests/cases/compiler/ref/a.ts 3 > ^^^^^^^^^-> 1->export class A { 2 > } -1->Emitted(14, 17) Source(2, 18) + SourceIndex(0) name (A.constructor) -2 >Emitted(14, 18) Source(2, 19) + SourceIndex(0) name (A.constructor) +1->Emitted(14, 17) Source(2, 18) + SourceIndex(0) +2 >Emitted(14, 18) Source(2, 19) + SourceIndex(0) --- >>> return A; 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(15, 17) Source(2, 18) + SourceIndex(0) name (A) -2 >Emitted(15, 25) Source(2, 19) + SourceIndex(0) name (A) +1->Emitted(15, 17) Source(2, 18) + SourceIndex(0) +2 >Emitted(15, 25) Source(2, 19) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^ 2 > ^ 3 > @@ -59,8 +59,8 @@ sourceFile:tests/cases/compiler/ref/a.ts 2 > } 3 > 4 > export class A { } -1 >Emitted(16, 13) Source(2, 18) + SourceIndex(0) name (A) -2 >Emitted(16, 14) Source(2, 19) + SourceIndex(0) name (A) +1 >Emitted(16, 13) Source(2, 18) + SourceIndex(0) +2 >Emitted(16, 14) Source(2, 19) + SourceIndex(0) 3 >Emitted(16, 14) Source(2, 1) + SourceIndex(0) 4 >Emitted(16, 18) Source(2, 19) + SourceIndex(0) --- @@ -82,7 +82,7 @@ sourceFile:tests/cases/compiler/b.ts >>> } >>> } >>>}); ->>>System.register("tests/cases/compiler/b", ["tests/cases/compiler/ref/a"], function(exports_2) { +>>>System.register("b", ["ref/a"], function(exports_2) { >>> "use strict"; >>> var a_1; >>> var B; @@ -104,22 +104,22 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(32, 17) Source(2, 24) + SourceIndex(1) name (B) -2 >Emitted(32, 38) Source(2, 25) + SourceIndex(1) name (B) +1->Emitted(32, 17) Source(2, 24) + SourceIndex(1) +2 >Emitted(32, 38) Source(2, 25) + SourceIndex(1) --- >>> function B() { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(33, 17) Source(2, 1) + SourceIndex(1) name (B) +1 >Emitted(33, 17) Source(2, 1) + SourceIndex(1) --- >>> _super.apply(this, arguments); 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(34, 21) Source(2, 24) + SourceIndex(1) name (B.constructor) -2 >Emitted(34, 51) Source(2, 25) + SourceIndex(1) name (B.constructor) +1->Emitted(34, 21) Source(2, 24) + SourceIndex(1) +2 >Emitted(34, 51) Source(2, 25) + SourceIndex(1) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -127,36 +127,36 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1 > { 2 > } -1 >Emitted(35, 17) Source(2, 28) + SourceIndex(1) name (B.constructor) -2 >Emitted(35, 18) Source(2, 29) + SourceIndex(1) name (B.constructor) +1 >Emitted(35, 17) Source(2, 28) + SourceIndex(1) +2 >Emitted(35, 18) Source(2, 29) + SourceIndex(1) --- >>> return B; 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(36, 17) Source(2, 28) + SourceIndex(1) name (B) -2 >Emitted(36, 25) Source(2, 29) + SourceIndex(1) name (B) +1->Emitted(36, 17) Source(2, 28) + SourceIndex(1) +2 >Emitted(36, 25) Source(2, 29) + SourceIndex(1) --- ->>> })(a_1.A); +>>> }(a_1.A)); 1 >^^^^^^^^^^^^ 2 > ^ 3 > -4 > ^^ -5 > ^^^^^ -6 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^^^ 7 > ^^^^^^^^^-> 1 > 2 > } 3 > 4 > export class B extends -5 > A -6 > { } -1 >Emitted(37, 13) Source(2, 28) + SourceIndex(1) name (B) -2 >Emitted(37, 14) Source(2, 29) + SourceIndex(1) name (B) +5 > A +6 > { } +1 >Emitted(37, 13) Source(2, 28) + SourceIndex(1) +2 >Emitted(37, 14) Source(2, 29) + SourceIndex(1) 3 >Emitted(37, 14) Source(2, 1) + SourceIndex(1) -4 >Emitted(37, 16) Source(2, 24) + SourceIndex(1) -5 >Emitted(37, 21) Source(2, 25) + SourceIndex(1) +4 >Emitted(37, 15) Source(2, 24) + SourceIndex(1) +5 >Emitted(37, 20) Source(2, 25) + SourceIndex(1) 6 >Emitted(37, 23) Source(2, 29) + SourceIndex(1) --- >>> exports_2("B", B); diff --git a/tests/baselines/reference/outModuleConcatUmd.js b/tests/baselines/reference/outModuleConcatUmd.js index c4aad41c6ed..6c60a13c892 100644 --- a/tests/baselines/reference/outModuleConcatUmd.js +++ b/tests/baselines/reference/outModuleConcatUmd.js @@ -20,12 +20,12 @@ var __extends = (this && this.__extends) || function (d, b) { //# sourceMappingURL=all.js.map //// [all.d.ts] -declare module "tests/cases/compiler/ref/a" { +declare module "ref/a" { export class A { } } -declare module "tests/cases/compiler/b" { - import { A } from "tests/cases/compiler/ref/a"; +declare module "b" { + import { A } from "ref/a"; export class B extends A { } } diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js b/tests/baselines/reference/outModuleTripleSlashRefs.js index 88cb9c9ed38..90f8feab7bc 100644 --- a/tests/baselines/reference/outModuleTripleSlashRefs.js +++ b/tests/baselines/reference/outModuleTripleSlashRefs.js @@ -41,18 +41,18 @@ var Foo = (function () { function Foo() { } return Foo; -})(); -define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) { +}()); +define("ref/a", ["require", "exports"], function (require, exports) { "use strict"; /// var A = (function () { function A() { } return A; - })(); + }()); exports.A = A; }); -define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) { +define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { "use strict"; var B = (function (_super) { __extends(B, _super); @@ -60,7 +60,7 @@ define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/re _super.apply(this, arguments); } return B; - })(a_1.A); + }(a_1.A)); exports.B = B; }); //# sourceMappingURL=all.js.map @@ -71,13 +71,13 @@ declare class Foo { member: Bar; } declare var GlobalFoo: Foo; -declare module "tests/cases/compiler/ref/a" { +declare module "ref/a" { export class A { member: typeof GlobalFoo; } } -declare module "tests/cases/compiler/b" { - import { A } from "tests/cases/compiler/ref/a"; +declare module "b" { + import { A } from "ref/a"; export class B extends A { } } diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js.map b/tests/baselines/reference/outModuleTripleSlashRefs.js.map index 4c44ff6ae26..7d0c11de99c 100644 --- a/tests/baselines/reference/outModuleTripleSlashRefs.js.map +++ b/tests/baselines/reference/outModuleTripleSlashRefs.js.map @@ -1,2 +1,2 @@ //// [all.js.map] -{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/b.ts","tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":["Foo","Foo.constructor","A","A.constructor","B","B.constructor"],"mappings":";;;;;AAAA,iCAAiC;AACjC;IAAAA;IAEAC,CAACA;IAADD,UAACA;AAADA,CAACA,AAFD,IAEC;;;ICFD,+BAA+B;IAC/B;QAAAE;QAEAC,CAACA;QAADD,QAACA;IAADA,CAACA,AAFD,IAEC;IAFY,SAAC,IAEb,CAAA;;;;ICHD;QAAuBE,qBAACA;QAAxBA;YAAuBC,8BAACA;QAAGA,CAACA;QAADD,QAACA;IAADA,CAACA,AAA5B,EAAuB,KAAC,EAAI;IAAf,SAAC,IAAc,CAAA"} \ No newline at end of file +{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/b.ts","tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;AAAA,iCAAiC;AACjC;IAAA;IAEA,CAAC;IAAD,UAAC;AAAD,CAAC,AAFD,IAEC;;;ICFD,+BAA+B;IAC/B;QAAA;QAEA,CAAC;QAAD,QAAC;IAAD,CAAC,AAFD,IAEC;IAFY,SAAC,IAEb,CAAA;;;;ICHD;QAAuB,qBAAC;QAAxB;YAAuB,8BAAC;QAAG,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,SAAC,IAAc,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt b/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt index b90ce2e7dcd..a689c611ef0 100644 --- a/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt +++ b/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt @@ -32,7 +32,7 @@ sourceFile:tests/cases/compiler/ref/b.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(8, 5) Source(2, 1) + SourceIndex(0) name (Foo) +1->Emitted(8, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -42,31 +42,31 @@ sourceFile:tests/cases/compiler/ref/b.ts > member: Bar; > 2 > } -1->Emitted(9, 5) Source(4, 1) + SourceIndex(0) name (Foo.constructor) -2 >Emitted(9, 6) Source(4, 2) + SourceIndex(0) name (Foo.constructor) +1->Emitted(9, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(9, 6) Source(4, 2) + SourceIndex(0) --- >>> return Foo; 1->^^^^ 2 > ^^^^^^^^^^ 1-> 2 > } -1->Emitted(10, 5) Source(4, 1) + SourceIndex(0) name (Foo) -2 >Emitted(10, 15) Source(4, 2) + SourceIndex(0) name (Foo) +1->Emitted(10, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(10, 15) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > 4 > class Foo { > member: Bar; > } -1 >Emitted(11, 1) Source(4, 1) + SourceIndex(0) name (Foo) -2 >Emitted(11, 2) Source(4, 2) + SourceIndex(0) name (Foo) +1 >Emitted(11, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(11, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(11, 6) Source(4, 2) + SourceIndex(0) --- @@ -74,7 +74,7 @@ sourceFile:tests/cases/compiler/ref/b.ts emittedFile:all.js sourceFile:tests/cases/compiler/ref/a.ts ------------------------------------------------------------------- ->>>define("tests/cases/compiler/ref/a", ["require", "exports"], function (require, exports) { +>>>define("ref/a", ["require", "exports"], function (require, exports) { >>> "use strict"; >>> /// 1->^^^^ @@ -96,7 +96,7 @@ sourceFile:tests/cases/compiler/ref/a.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(16, 9) Source(3, 1) + SourceIndex(1) name (A) +1->Emitted(16, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -106,18 +106,18 @@ sourceFile:tests/cases/compiler/ref/a.ts > member: typeof GlobalFoo; > 2 > } -1->Emitted(17, 9) Source(5, 1) + SourceIndex(1) name (A.constructor) -2 >Emitted(17, 10) Source(5, 2) + SourceIndex(1) name (A.constructor) +1->Emitted(17, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 10) Source(5, 2) + SourceIndex(1) --- >>> return A; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(18, 9) Source(5, 1) + SourceIndex(1) name (A) -2 >Emitted(18, 17) Source(5, 2) + SourceIndex(1) name (A) +1->Emitted(18, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(18, 17) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -129,8 +129,8 @@ sourceFile:tests/cases/compiler/ref/a.ts 4 > export class A { > member: typeof GlobalFoo; > } -1 >Emitted(19, 5) Source(5, 1) + SourceIndex(1) name (A) -2 >Emitted(19, 6) Source(5, 2) + SourceIndex(1) name (A) +1 >Emitted(19, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(19, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(19, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(19, 10) Source(5, 2) + SourceIndex(1) --- @@ -155,7 +155,7 @@ emittedFile:all.js sourceFile:tests/cases/compiler/b.ts ------------------------------------------------------------------- >>>}); ->>>define("tests/cases/compiler/b", ["require", "exports", "tests/cases/compiler/ref/a"], function (require, exports, a_1) { +>>>define("b", ["require", "exports", "ref/a"], function (require, exports, a_1) { >>> "use strict"; >>> var B = (function (_super) { 1 >^^^^ @@ -169,22 +169,22 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(25, 9) Source(2, 24) + SourceIndex(2) name (B) -2 >Emitted(25, 30) Source(2, 25) + SourceIndex(2) name (B) +1->Emitted(25, 9) Source(2, 24) + SourceIndex(2) +2 >Emitted(25, 30) Source(2, 25) + SourceIndex(2) --- >>> function B() { 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(26, 9) Source(2, 1) + SourceIndex(2) name (B) +1 >Emitted(26, 9) Source(2, 1) + SourceIndex(2) --- >>> _super.apply(this, arguments); 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(27, 13) Source(2, 24) + SourceIndex(2) name (B.constructor) -2 >Emitted(27, 43) Source(2, 25) + SourceIndex(2) name (B.constructor) +1->Emitted(27, 13) Source(2, 24) + SourceIndex(2) +2 >Emitted(27, 43) Source(2, 25) + SourceIndex(2) --- >>> } 1 >^^^^^^^^ @@ -192,36 +192,36 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1 > { 2 > } -1 >Emitted(28, 9) Source(2, 28) + SourceIndex(2) name (B.constructor) -2 >Emitted(28, 10) Source(2, 29) + SourceIndex(2) name (B.constructor) +1 >Emitted(28, 9) Source(2, 28) + SourceIndex(2) +2 >Emitted(28, 10) Source(2, 29) + SourceIndex(2) --- >>> return B; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(29, 9) Source(2, 28) + SourceIndex(2) name (B) -2 >Emitted(29, 17) Source(2, 29) + SourceIndex(2) name (B) +1->Emitted(29, 9) Source(2, 28) + SourceIndex(2) +2 >Emitted(29, 17) Source(2, 29) + SourceIndex(2) --- ->>> })(a_1.A); +>>> }(a_1.A)); 1 >^^^^ 2 > ^ 3 > -4 > ^^ -5 > ^^^^^ -6 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^^^ 7 > ^^^^^-> 1 > 2 > } 3 > 4 > export class B extends -5 > A -6 > { } -1 >Emitted(30, 5) Source(2, 28) + SourceIndex(2) name (B) -2 >Emitted(30, 6) Source(2, 29) + SourceIndex(2) name (B) +5 > A +6 > { } +1 >Emitted(30, 5) Source(2, 28) + SourceIndex(2) +2 >Emitted(30, 6) Source(2, 29) + SourceIndex(2) 3 >Emitted(30, 6) Source(2, 1) + SourceIndex(2) -4 >Emitted(30, 8) Source(2, 24) + SourceIndex(2) -5 >Emitted(30, 13) Source(2, 25) + SourceIndex(2) +4 >Emitted(30, 7) Source(2, 24) + SourceIndex(2) +5 >Emitted(30, 12) Source(2, 25) + SourceIndex(2) 6 >Emitted(30, 15) Source(2, 29) + SourceIndex(2) --- >>> exports.B = B; diff --git a/tests/baselines/reference/overload1.js b/tests/baselines/reference/overload1.js index af3aebde4ee..fd05873c647 100644 --- a/tests/baselines/reference/overload1.js +++ b/tests/baselines/reference/overload1.js @@ -51,7 +51,7 @@ var O; function A() { } return A; - })(); + }()); O.A = A; var B = (function (_super) { __extends(B, _super); @@ -59,7 +59,7 @@ var O; _super.apply(this, arguments); } return B; - })(A); + }(A)); O.B = B; var C = (function (_super) { __extends(C, _super); @@ -67,7 +67,7 @@ var O; _super.apply(this, arguments); } return C; - })(B); + }(B)); O.C = C; })(O || (O = {})); var e = x.g(new O.A()); // matches overload but bad assignment diff --git a/tests/baselines/reference/overload2.js b/tests/baselines/reference/overload2.js index 70d950e5420..667d0fb1db4 100644 --- a/tests/baselines/reference/overload2.js +++ b/tests/baselines/reference/overload2.js @@ -30,7 +30,7 @@ var C = (function () { function C() { } return C; -})(); +}()); // should be ok function foo1(x) { } diff --git a/tests/baselines/reference/overloadAssignmentCompat.js b/tests/baselines/reference/overloadAssignmentCompat.js index 2d4bd931844..7915edd5446 100644 --- a/tests/baselines/reference/overloadAssignmentCompat.js +++ b/tests/baselines/reference/overloadAssignmentCompat.js @@ -44,7 +44,7 @@ var Accessor = (function () { function Accessor() { } return Accessor; -})(); +}()); function attr(nameOrMap, value) { if (nameOrMap && typeof nameOrMap === "object") { // handle map case diff --git a/tests/baselines/reference/overloadCallTest.js b/tests/baselines/reference/overloadCallTest.js index 38930b7aea3..369c68923df 100644 --- a/tests/baselines/reference/overloadCallTest.js +++ b/tests/baselines/reference/overloadCallTest.js @@ -25,4 +25,4 @@ var foo = (function () { goo = bar("test"); } return foo; -})(); +}()); diff --git a/tests/baselines/reference/overloadConsecutiveness.js b/tests/baselines/reference/overloadConsecutiveness.js index 8c0d3d26b72..68e478a30b5 100644 --- a/tests/baselines/reference/overloadConsecutiveness.js +++ b/tests/baselines/reference/overloadConsecutiveness.js @@ -24,4 +24,4 @@ var C = (function () { C.prototype.m2 = function () { }; C.prototype.m3 = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/overloadEquivalenceWithStatics.js b/tests/baselines/reference/overloadEquivalenceWithStatics.js index 72692c4d89f..4c296410aa6 100644 --- a/tests/baselines/reference/overloadEquivalenceWithStatics.js +++ b/tests/baselines/reference/overloadEquivalenceWithStatics.js @@ -16,4 +16,4 @@ var A1 = (function () { return null; }; return A1; -})(); +}()); diff --git a/tests/baselines/reference/overloadGenericFunctionWithRestArgs.js b/tests/baselines/reference/overloadGenericFunctionWithRestArgs.js index c4b133ea44c..356cece5ab6 100644 --- a/tests/baselines/reference/overloadGenericFunctionWithRestArgs.js +++ b/tests/baselines/reference/overloadGenericFunctionWithRestArgs.js @@ -15,12 +15,12 @@ var B = (function () { function B() { } return B; -})(); +}()); var A = (function () { function A() { } return A; -})(); +}()); function Choice() { var v_args = []; for (var _i = 0; _i < arguments.length; _i++) { diff --git a/tests/baselines/reference/overloadModifiersMustAgree.js b/tests/baselines/reference/overloadModifiersMustAgree.js index afcc0f829c8..e7256562e76 100644 --- a/tests/baselines/reference/overloadModifiersMustAgree.js +++ b/tests/baselines/reference/overloadModifiersMustAgree.js @@ -22,5 +22,5 @@ var baz = (function () { } baz.prototype.foo = function (bar) { }; // error - access modifiers do not agree return baz; -})(); +}()); function bar(s) { } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks1.js b/tests/baselines/reference/overloadOnConstConstraintChecks1.js index 67aa365ee39..a3b7a329861 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks1.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks1.js @@ -33,7 +33,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -41,7 +41,7 @@ var Derived1 = (function (_super) { } Derived1.prototype.bar = function () { }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -49,7 +49,7 @@ var Derived2 = (function (_super) { } Derived2.prototype.baz = function () { }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { @@ -57,7 +57,7 @@ var Derived3 = (function (_super) { } Derived3.prototype.biz = function () { }; return Derived3; -})(Base); +}(Base)); var D = (function () { function D() { } @@ -65,4 +65,4 @@ var D = (function () { return null; }; return D; -})(); +}()); diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks2.js b/tests/baselines/reference/overloadOnConstConstraintChecks2.js index 353680bb92e..efb57153b13 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks2.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks2.js @@ -21,14 +21,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -36,7 +36,7 @@ var C = (function (_super) { } C.prototype.foo = function () { }; return C; -})(A); +}(A)); function foo(name) { return null; } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks3.js b/tests/baselines/reference/overloadOnConstConstraintChecks3.js index 2debaa589f5..181f9d8129c 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks3.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks3.js @@ -23,14 +23,14 @@ var A = (function () { this.x = 1; } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -38,7 +38,7 @@ var C = (function (_super) { } C.prototype.foo = function () { }; return C; -})(A); +}(A)); function foo(name) { return null; } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks4.js b/tests/baselines/reference/overloadOnConstConstraintChecks4.js index 17ec3779620..10733fa8ea3 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks4.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks4.js @@ -23,7 +23,7 @@ var Z = (function () { function Z() { } return Z; -})(); +}()); var A = (function (_super) { __extends(A, _super); function A() { @@ -31,14 +31,14 @@ var A = (function (_super) { this.x = 1; } return A; -})(Z); +}(Z)); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -46,7 +46,7 @@ var C = (function (_super) { } C.prototype.foo = function () { }; return C; -})(A); +}(A)); function foo(name) { return null; } diff --git a/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js b/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js index 1b6062e7b21..188e4d02140 100644 --- a/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js +++ b/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js @@ -15,4 +15,4 @@ var C = (function () { C.prototype.x1 = function (a, callback) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/overloadOnConstInCallback1.js b/tests/baselines/reference/overloadOnConstInCallback1.js index 90bffd4e75c..d0077908177 100644 --- a/tests/baselines/reference/overloadOnConstInCallback1.js +++ b/tests/baselines/reference/overloadOnConstInCallback1.js @@ -20,4 +20,4 @@ var C = (function () { callback(hm); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/overloadOnConstInheritance2.errors.txt b/tests/baselines/reference/overloadOnConstInheritance2.errors.txt index 4870106f474..4b502f145a6 100644 --- a/tests/baselines/reference/overloadOnConstInheritance2.errors.txt +++ b/tests/baselines/reference/overloadOnConstInheritance2.errors.txt @@ -1,6 +1,7 @@ tests/cases/compiler/overloadOnConstInheritance2.ts(5,11): error TS2430: Interface 'Deriver' incorrectly extends interface 'Base'. Types of property 'addEventListener' are incompatible. Type '(x: "bar") => string' is not assignable to type '{ (x: string): any; (x: "foo"): string; }'. + Type '(x: "bar") => string' provides no match for the signature '(x: string): any' tests/cases/compiler/overloadOnConstInheritance2.ts(6,5): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. @@ -14,6 +15,7 @@ tests/cases/compiler/overloadOnConstInheritance2.ts(6,5): error TS2382: Speciali !!! error TS2430: Interface 'Deriver' incorrectly extends interface 'Base'. !!! error TS2430: Types of property 'addEventListener' are incompatible. !!! error TS2430: Type '(x: "bar") => string' is not assignable to type '{ (x: string): any; (x: "foo"): string; }'. +!!! error TS2430: Type '(x: "bar") => string' provides no match for the signature '(x: string): any' addEventListener(x: 'bar'): string; // shouldn't need to redeclare the string overload ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature. diff --git a/tests/baselines/reference/overloadOnConstInheritance3.errors.txt b/tests/baselines/reference/overloadOnConstInheritance3.errors.txt index b338f9795d7..6d9f9b00692 100644 --- a/tests/baselines/reference/overloadOnConstInheritance3.errors.txt +++ b/tests/baselines/reference/overloadOnConstInheritance3.errors.txt @@ -1,6 +1,7 @@ tests/cases/compiler/overloadOnConstInheritance3.ts(4,11): error TS2430: Interface 'Deriver' incorrectly extends interface 'Base'. Types of property 'addEventListener' are incompatible. Type '{ (x: "bar"): string; (x: "foo"): string; }' is not assignable to type '(x: string) => any'. + Type '{ (x: "bar"): string; (x: "foo"): string; }' provides no match for the signature '(x: string): any' tests/cases/compiler/overloadOnConstInheritance3.ts(6,5): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. tests/cases/compiler/overloadOnConstInheritance3.ts(7,5): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. @@ -14,6 +15,7 @@ tests/cases/compiler/overloadOnConstInheritance3.ts(7,5): error TS2382: Speciali !!! error TS2430: Interface 'Deriver' incorrectly extends interface 'Base'. !!! error TS2430: Types of property 'addEventListener' are incompatible. !!! error TS2430: Type '{ (x: "bar"): string; (x: "foo"): string; }' is not assignable to type '(x: string) => any'. +!!! error TS2430: Type '{ (x: "bar"): string; (x: "foo"): string; }' provides no match for the signature '(x: string): any' // shouldn't need to redeclare the string overload addEventListener(x: 'bar'): string; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/overloadOnConstInheritance4.js b/tests/baselines/reference/overloadOnConstInheritance4.js index 7bfad88a7a7..f493d9ef2de 100644 --- a/tests/baselines/reference/overloadOnConstInheritance4.js +++ b/tests/baselines/reference/overloadOnConstInheritance4.js @@ -16,4 +16,4 @@ var C = (function () { C.prototype.x1 = function (a, callback) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js index 52f6639e352..5e3110abd3d 100644 --- a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js +++ b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js @@ -33,7 +33,7 @@ var C = (function () { callback(1); // error }; return C; -})(); +}()); var c; c.x1(1, function (x) { return 1; }); c.x1(1, function (x) { return 1; }); diff --git a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.errors.txt b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.errors.txt index f897cae121d..6b96abce29e 100644 --- a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.errors.txt +++ b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.errors.txt @@ -4,7 +4,7 @@ tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts(2,4): error TS2 ==== tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts (1 errors) ==== class C { x1(a: 'hi'); // error, no non-specialized signature in overload list - ~~~~~~~~~~~~ + ~~ !!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature. x1(a: string) { } } diff --git a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js index 980dfcb2145..8a610f30922 100644 --- a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js +++ b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js @@ -11,4 +11,4 @@ var C = (function () { } C.prototype.x1 = function (a) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/overloadOnConstNoStringImplementation2.js b/tests/baselines/reference/overloadOnConstNoStringImplementation2.js index 71d7a4e4a3f..98ee0f45c15 100644 --- a/tests/baselines/reference/overloadOnConstNoStringImplementation2.js +++ b/tests/baselines/reference/overloadOnConstNoStringImplementation2.js @@ -32,7 +32,7 @@ var C = (function () { callback(1); }; return C; -})(); +}()); var c; c.x1(1, function (x) { return 1; }); c.x1(1, function (x) { return 1; }); diff --git a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js index a8dfcde9ada..c98075c04a1 100644 --- a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js +++ b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js @@ -22,7 +22,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -30,7 +30,7 @@ var Derived1 = (function (_super) { } Derived1.prototype.bar = function () { }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -38,7 +38,7 @@ var Derived2 = (function (_super) { } Derived2.prototype.baz = function () { }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { @@ -46,7 +46,7 @@ var Derived3 = (function (_super) { } Derived3.prototype.biz = function () { }; return Derived3; -})(Base); +}(Base)); function foo(name) { return null; } diff --git a/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.js b/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.js index d88cd2bceb8..d7f992564db 100644 --- a/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.js +++ b/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.js @@ -21,32 +21,32 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var X = (function () { function X() { } return X; -})(); +}()); var X1 = (function () { function X1() { } return X1; -})(); +}()); var X2 = (function () { function X2() { } return X2; -})(); +}()); function f(a) { } var xs; diff --git a/tests/baselines/reference/overloadResolution.js b/tests/baselines/reference/overloadResolution.js index 287c5ccdb8e..0d25322fdfc 100644 --- a/tests/baselines/reference/overloadResolution.js +++ b/tests/baselines/reference/overloadResolution.js @@ -104,28 +104,28 @@ var SomeBase = (function () { function SomeBase() { } return SomeBase; -})(); +}()); var SomeDerived1 = (function (_super) { __extends(SomeDerived1, _super); function SomeDerived1() { _super.apply(this, arguments); } return SomeDerived1; -})(SomeBase); +}(SomeBase)); var SomeDerived2 = (function (_super) { __extends(SomeDerived2, _super); function SomeDerived2() { _super.apply(this, arguments); } return SomeDerived2; -})(SomeBase); +}(SomeBase)); var SomeDerived3 = (function (_super) { __extends(SomeDerived3, _super); function SomeDerived3() { _super.apply(this, arguments); } return SomeDerived3; -})(SomeBase); +}(SomeBase)); function fn1() { return null; } var s = fn1(undefined); var s; diff --git a/tests/baselines/reference/overloadResolutionClassConstructors.js b/tests/baselines/reference/overloadResolutionClassConstructors.js index 14306b7873b..9fa55fe1e95 100644 --- a/tests/baselines/reference/overloadResolutionClassConstructors.js +++ b/tests/baselines/reference/overloadResolutionClassConstructors.js @@ -111,34 +111,34 @@ var SomeBase = (function () { function SomeBase() { } return SomeBase; -})(); +}()); var SomeDerived1 = (function (_super) { __extends(SomeDerived1, _super); function SomeDerived1() { _super.apply(this, arguments); } return SomeDerived1; -})(SomeBase); +}(SomeBase)); var SomeDerived2 = (function (_super) { __extends(SomeDerived2, _super); function SomeDerived2() { _super.apply(this, arguments); } return SomeDerived2; -})(SomeBase); +}(SomeBase)); var SomeDerived3 = (function (_super) { __extends(SomeDerived3, _super); function SomeDerived3() { _super.apply(this, arguments); } return SomeDerived3; -})(SomeBase); +}(SomeBase)); // Ambiguous call picks the first overload in declaration order var fn1 = (function () { function fn1() { } return fn1; -})(); +}()); new fn1(undefined); // No candidate overloads found new fn1({}); // Error @@ -147,7 +147,7 @@ var fn2 = (function () { function fn2() { } return fn2; -})(); +}()); var d = new fn2(0, undefined); // Generic and non - generic overload where generic overload is the only candidate when called without type arguments var s = new fn2(0, ''); @@ -160,7 +160,7 @@ var fn3 = (function () { function fn3() { } return fn3; -})(); +}()); new fn3(3); new fn3('', 3, ''); new fn3(5, 5, 5); @@ -175,7 +175,7 @@ var fn4 = (function () { function fn4() { } return fn4; -})(); +}()); new fn4('', 3); new fn4(3, ''); // Error new fn4('', 3); // Error @@ -196,7 +196,7 @@ var fn5 = (function () { return undefined; } return fn5; -})(); +}()); new fn5(function (n) { return n.toFixed(); }); new fn5(function (n) { return n.substr(0); }); new fn5(function (n) { return n.blah; }); // Error diff --git a/tests/baselines/reference/overloadResolutionConstructors.js b/tests/baselines/reference/overloadResolutionConstructors.js index 788e6362f86..12d8480eefb 100644 --- a/tests/baselines/reference/overloadResolutionConstructors.js +++ b/tests/baselines/reference/overloadResolutionConstructors.js @@ -112,28 +112,28 @@ var SomeBase = (function () { function SomeBase() { } return SomeBase; -})(); +}()); var SomeDerived1 = (function (_super) { __extends(SomeDerived1, _super); function SomeDerived1() { _super.apply(this, arguments); } return SomeDerived1; -})(SomeBase); +}(SomeBase)); var SomeDerived2 = (function (_super) { __extends(SomeDerived2, _super); function SomeDerived2() { _super.apply(this, arguments); } return SomeDerived2; -})(SomeBase); +}(SomeBase)); var SomeDerived3 = (function (_super) { __extends(SomeDerived3, _super); function SomeDerived3() { _super.apply(this, arguments); } return SomeDerived3; -})(SomeBase); +}(SomeBase)); var fn1; // Ambiguous call picks the first overload in declaration order var s = new fn1(undefined); diff --git a/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js b/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js index 3c7f6bc7609..49ac12e6152 100644 --- a/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js +++ b/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js @@ -13,4 +13,4 @@ var Bar = (function () { return new Bar(0); }; return Bar; -})(); +}()); diff --git a/tests/baselines/reference/overloadResolutionOverNonCTLambdas.js b/tests/baselines/reference/overloadResolutionOverNonCTLambdas.js index 170f2dd2137..210e45c27d6 100644 --- a/tests/baselines/reference/overloadResolutionOverNonCTLambdas.js +++ b/tests/baselines/reference/overloadResolutionOverNonCTLambdas.js @@ -30,7 +30,7 @@ var Bugs; function A() { } return A; - })(); + }()); // replace(searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; function bug2(message) { var args = []; diff --git a/tests/baselines/reference/overloadReturnTypes.js b/tests/baselines/reference/overloadReturnTypes.js index 127063caaae..9a49a550f40 100644 --- a/tests/baselines/reference/overloadReturnTypes.js +++ b/tests/baselines/reference/overloadReturnTypes.js @@ -28,7 +28,7 @@ var Accessor = (function () { function Accessor() { } return Accessor; -})(); +}()); function attr(nameOrMap, value) { if (nameOrMap && typeof nameOrMap === "object") { // handle map case diff --git a/tests/baselines/reference/overloadedStaticMethodSpecialization.js b/tests/baselines/reference/overloadedStaticMethodSpecialization.js index db50cbc992c..d63b185419a 100644 --- a/tests/baselines/reference/overloadedStaticMethodSpecialization.js +++ b/tests/baselines/reference/overloadedStaticMethodSpecialization.js @@ -16,4 +16,4 @@ var A = (function () { return null; }; return A; -})(); +}()); diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js index bd08f70498d..b261201be40 100644 --- a/tests/baselines/reference/overloadingOnConstants1.js +++ b/tests/baselines/reference/overloadingOnConstants1.js @@ -36,7 +36,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -44,7 +44,7 @@ var Derived1 = (function (_super) { } Derived1.prototype.bar = function () { }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -52,7 +52,7 @@ var Derived2 = (function (_super) { } Derived2.prototype.baz = function () { }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { @@ -60,7 +60,7 @@ var Derived3 = (function (_super) { } Derived3.prototype.biz = function () { }; return Derived3; -})(Base); +}(Base)); var d2; // these are ok var htmlElement = d2.createElement("yo"); diff --git a/tests/baselines/reference/overloadingOnConstants2.js b/tests/baselines/reference/overloadingOnConstants2.js index eaec0054f66..977ae7ec5b9 100644 --- a/tests/baselines/reference/overloadingOnConstants2.js +++ b/tests/baselines/reference/overloadingOnConstants2.js @@ -38,20 +38,20 @@ var C = (function () { this.x = 1; } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var E = (function () { function E() { this.y = 1; } return E; -})(); +}()); function foo(x, items) { return null; } diff --git a/tests/baselines/reference/overloadresolutionWithConstraintCheckingDeferred.js b/tests/baselines/reference/overloadresolutionWithConstraintCheckingDeferred.js index 63b4a2b1e93..b5ddd0adebc 100644 --- a/tests/baselines/reference/overloadresolutionWithConstraintCheckingDeferred.js +++ b/tests/baselines/reference/overloadresolutionWithConstraintCheckingDeferred.js @@ -27,7 +27,7 @@ var G = (function () { function G(x) { } return G; -})(); +}()); var result = foo(function (x) { return new G(x); }); // x has type D, new G(x) fails, so first overload is picked. var result2 = foo(function (x) { return new G(x); }); // x has type D, new G(x) fails, so first overload is picked. var result3 = foo(function (x) { diff --git a/tests/baselines/reference/overloadsWithinClasses.js b/tests/baselines/reference/overloadsWithinClasses.js index 4ac612502c7..0cd191c8f44 100644 --- a/tests/baselines/reference/overloadsWithinClasses.js +++ b/tests/baselines/reference/overloadsWithinClasses.js @@ -30,17 +30,17 @@ var foo = (function () { foo.fnOverload = function () { }; foo.fnOverload = function (foo) { }; // error return foo; -})(); +}()); var bar = (function () { function bar() { } bar.fnOverload = function (foo) { }; // no error return bar; -})(); +}()); var X = (function () { function X() { } X.prototype.attr = function (first, second) { }; return X; -})(); +}()); diff --git a/tests/baselines/reference/overridingPrivateStaticMembers.js b/tests/baselines/reference/overridingPrivateStaticMembers.js index a155bb1b830..ddd9fae6429 100644 --- a/tests/baselines/reference/overridingPrivateStaticMembers.js +++ b/tests/baselines/reference/overridingPrivateStaticMembers.js @@ -17,11 +17,11 @@ var Base2 = (function () { function Base2() { } return Base2; -})(); +}()); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base2); +}(Base2)); diff --git a/tests/baselines/reference/paramPropertiesInSignatures.js b/tests/baselines/reference/paramPropertiesInSignatures.js index 15d7f616bdf..690052e589b 100644 --- a/tests/baselines/reference/paramPropertiesInSignatures.js +++ b/tests/baselines/reference/paramPropertiesInSignatures.js @@ -17,4 +17,4 @@ var C1 = (function () { this.p3 = p3; } // OK return C1; -})(); +}()); diff --git a/tests/baselines/reference/parameterInitializersForwardReferencing.js b/tests/baselines/reference/parameterInitializersForwardReferencing.js index 188a104f3af..e43ba42fbb8 100644 --- a/tests/baselines/reference/parameterInitializersForwardReferencing.js +++ b/tests/baselines/reference/parameterInitializersForwardReferencing.js @@ -91,7 +91,7 @@ var C = (function () { if (b === void 0) { b = 1; } }; return C; -})(); +}()); // Function expressions var x = function (a, b, c) { if (a === void 0) { a = b; } diff --git a/tests/baselines/reference/parameterNamesInTypeParameterList.js b/tests/baselines/reference/parameterNamesInTypeParameterList.js index 2fbd7fad3cb..f4d74b89782 100644 --- a/tests/baselines/reference/parameterNamesInTypeParameterList.js +++ b/tests/baselines/reference/parameterNamesInTypeParameterList.js @@ -50,4 +50,4 @@ var A = (function () { a.b; }; return A; -})(); +}()); diff --git a/tests/baselines/reference/parameterPropertyInConstructor2.js b/tests/baselines/reference/parameterPropertyInConstructor2.js index 595f3f3d0ff..23e891ce384 100644 --- a/tests/baselines/reference/parameterPropertyInConstructor2.js +++ b/tests/baselines/reference/parameterPropertyInConstructor2.js @@ -17,5 +17,5 @@ var mod; this.ages = ages; } return Customers; - })(); + }()); })(mod || (mod = {})); diff --git a/tests/baselines/reference/parameterPropertyInitializerInInitializers.js b/tests/baselines/reference/parameterPropertyInitializerInInitializers.js index d3cd88764f4..a689ab2df79 100644 --- a/tests/baselines/reference/parameterPropertyInitializerInInitializers.js +++ b/tests/baselines/reference/parameterPropertyInitializerInInitializers.js @@ -11,4 +11,4 @@ var Foo = (function () { this.y = y; } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parameterPropertyOutsideConstructor.js b/tests/baselines/reference/parameterPropertyOutsideConstructor.js index 43e20d4fa63..151b766cf5d 100644 --- a/tests/baselines/reference/parameterPropertyOutsideConstructor.js +++ b/tests/baselines/reference/parameterPropertyOutsideConstructor.js @@ -11,4 +11,4 @@ var C = (function () { C.prototype.foo = function (x) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parameterPropertyReferencingOtherParameter.js b/tests/baselines/reference/parameterPropertyReferencingOtherParameter.js index 18cb0e4a41c..35715e5feab 100644 --- a/tests/baselines/reference/parameterPropertyReferencingOtherParameter.js +++ b/tests/baselines/reference/parameterPropertyReferencingOtherParameter.js @@ -12,4 +12,4 @@ var Foo = (function () { this.y = y; } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parameterReferencesOtherParameter1.js b/tests/baselines/reference/parameterReferencesOtherParameter1.js index 6c8bb8a06a8..97058974f4f 100644 --- a/tests/baselines/reference/parameterReferencesOtherParameter1.js +++ b/tests/baselines/reference/parameterReferencesOtherParameter1.js @@ -14,10 +14,10 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); var UI = (function () { function UI(model, foo) { if (foo === void 0) { foo = model.name; } } return UI; -})(); +}()); diff --git a/tests/baselines/reference/parameterReferencesOtherParameter2.js b/tests/baselines/reference/parameterReferencesOtherParameter2.js index e9c9ff4e5d4..fd84f833e97 100644 --- a/tests/baselines/reference/parameterReferencesOtherParameter2.js +++ b/tests/baselines/reference/parameterReferencesOtherParameter2.js @@ -14,10 +14,10 @@ var Model = (function () { function Model() { } return Model; -})(); +}()); var UI = (function () { function UI(model, foo) { if (foo === void 0) { foo = model.name; } } return UI; -})(); +}()); diff --git a/tests/baselines/reference/parametersWithNoAnnotationAreAny.js b/tests/baselines/reference/parametersWithNoAnnotationAreAny.js index a8d06125d25..54d9d1b6e03 100644 --- a/tests/baselines/reference/parametersWithNoAnnotationAreAny.js +++ b/tests/baselines/reference/parametersWithNoAnnotationAreAny.js @@ -41,7 +41,7 @@ var C = (function () { return x; }; return C; -})(); +}()); var a; var b = { foo: function (x) { diff --git a/tests/baselines/reference/parseErrorInHeritageClause1.js b/tests/baselines/reference/parseErrorInHeritageClause1.js index b6640b64257..e2f66bfadd7 100644 --- a/tests/baselines/reference/parseErrorInHeritageClause1.js +++ b/tests/baselines/reference/parseErrorInHeritageClause1.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parseTypes.errors.txt b/tests/baselines/reference/parseTypes.errors.txt index baa5aaff738..cf8b0d79115 100644 --- a/tests/baselines/reference/parseTypes.errors.txt +++ b/tests/baselines/reference/parseTypes.errors.txt @@ -3,6 +3,7 @@ tests/cases/compiler/parseTypes.ts(10,1): error TS2322: Type '(s: string) => voi tests/cases/compiler/parseTypes.ts(11,1): error TS2322: Type '(s: string) => void' is not assignable to type '{ [x: number]: number; }'. Index signature is missing in type '(s: string) => void'. tests/cases/compiler/parseTypes.ts(12,1): error TS2322: Type '(s: string) => void' is not assignable to type 'new () => number'. + Type '(s: string) => void' provides no match for the signature 'new (): number' ==== tests/cases/compiler/parseTypes.ts (4 errors) ==== @@ -27,4 +28,5 @@ tests/cases/compiler/parseTypes.ts(12,1): error TS2322: Type '(s: string) => voi z=g; ~ !!! error TS2322: Type '(s: string) => void' is not assignable to type 'new () => number'. +!!! error TS2322: Type '(s: string) => void' provides no match for the signature 'new (): number' \ No newline at end of file diff --git a/tests/baselines/reference/parser0_004152.errors.txt b/tests/baselines/reference/parser0_004152.errors.txt index 97527418337..85c450ef39f 100644 --- a/tests/baselines/reference/parser0_004152.errors.txt +++ b/tests/baselines/reference/parser0_004152.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts(2,28): error TS2304: Cannot find name 'DisplayPosition'. tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts(2,45): error TS1137: Expression or comma expected. tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts(2,46): error TS1005: ';' expected. @@ -38,7 +38,7 @@ tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts(3,25): error T ==== tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts (35 errors) ==== export class Game { ~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. private position = new DisplayPosition([), 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 0], NoMove, 0); ~~~~~~~~~~~~~~~ !!! error TS2304: Cannot find name 'DisplayPosition'. diff --git a/tests/baselines/reference/parser0_004152.js b/tests/baselines/reference/parser0_004152.js index 87248eb8d83..333b64811c8 100644 --- a/tests/baselines/reference/parser0_004152.js +++ b/tests/baselines/reference/parser0_004152.js @@ -12,5 +12,5 @@ var Game = (function () { } ; return Game; -})(); +}()); exports.Game = Game; diff --git a/tests/baselines/reference/parser509546.errors.txt b/tests/baselines/reference/parser509546.errors.txt index 6b98dc2aa30..65e524cb0e7 100644 --- a/tests/baselines/reference/parser509546.errors.txt +++ b/tests/baselines/reference/parser509546.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546.ts (1 errors) ==== export class Logger { ~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. public } \ No newline at end of file diff --git a/tests/baselines/reference/parser509546.js b/tests/baselines/reference/parser509546.js index 9a38cdc8b61..ceaf9b3572c 100644 --- a/tests/baselines/reference/parser509546.js +++ b/tests/baselines/reference/parser509546.js @@ -10,5 +10,5 @@ var Logger = (function () { function Logger() { } return Logger; -})(); +}()); exports.Logger = Logger; diff --git a/tests/baselines/reference/parser509546_1.errors.txt b/tests/baselines/reference/parser509546_1.errors.txt index 5987aadff24..1098adc1463 100644 --- a/tests/baselines/reference/parser509546_1.errors.txt +++ b/tests/baselines/reference/parser509546_1.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts (1 errors) ==== export class Logger { ~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. public } \ No newline at end of file diff --git a/tests/baselines/reference/parser509546_1.js b/tests/baselines/reference/parser509546_1.js index 847ded1fdba..9d07172c509 100644 --- a/tests/baselines/reference/parser509546_1.js +++ b/tests/baselines/reference/parser509546_1.js @@ -10,5 +10,5 @@ var Logger = (function () { function Logger() { } return Logger; -})(); +}()); exports.Logger = Logger; diff --git a/tests/baselines/reference/parser509546_2.errors.txt b/tests/baselines/reference/parser509546_2.errors.txt index 617fec94321..ad551887dda 100644 --- a/tests/baselines/reference/parser509546_2.errors.txt +++ b/tests/baselines/reference/parser509546_2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts(3,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts(3,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts (1 errors) ==== @@ -6,7 +6,7 @@ tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_2.ts(3,1 export class Logger { ~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. public } \ No newline at end of file diff --git a/tests/baselines/reference/parser509546_2.js b/tests/baselines/reference/parser509546_2.js index 976bbd1e471..b8822b52541 100644 --- a/tests/baselines/reference/parser509546_2.js +++ b/tests/baselines/reference/parser509546_2.js @@ -12,5 +12,5 @@ var Logger = (function () { function Logger() { } return Logger; -})(); +}()); exports.Logger = Logger; diff --git a/tests/baselines/reference/parser509630.js b/tests/baselines/reference/parser509630.js index 6862eef4a93..4d94ea619ec 100644 --- a/tests/baselines/reference/parser509630.js +++ b/tests/baselines/reference/parser509630.js @@ -17,11 +17,11 @@ var Type = (function () { this.examples = []; // typing here } return Type; -})(); +}()); var Any = (function (_super) { __extends(Any, _super); function Any() { _super.apply(this, arguments); } return Any; -})(Type); +}(Type)); diff --git a/tests/baselines/reference/parser509667.js b/tests/baselines/reference/parser509667.js index 0938613b295..0b68d0e0f59 100644 --- a/tests/baselines/reference/parser509667.js +++ b/tests/baselines/reference/parser509667.js @@ -25,4 +25,4 @@ var Foo = (function () { Foo.prototype.f3 = function () { }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parser509668.js b/tests/baselines/reference/parser509668.js index 63c5d8a1a95..97a51d8a5e7 100644 --- a/tests/baselines/reference/parser509668.js +++ b/tests/baselines/reference/parser509668.js @@ -14,4 +14,4 @@ var Foo3 = (function () { } } return Foo3; -})(); +}()); diff --git a/tests/baselines/reference/parser512084.js b/tests/baselines/reference/parser512084.js index 967c8db3cb0..b109a3643b2 100644 --- a/tests/baselines/reference/parser512084.js +++ b/tests/baselines/reference/parser512084.js @@ -7,4 +7,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/parser553699.js b/tests/baselines/reference/parser553699.js index 8570780e74a..a8a39c9bea6 100644 --- a/tests/baselines/reference/parser553699.js +++ b/tests/baselines/reference/parser553699.js @@ -14,9 +14,9 @@ var Foo = (function () { } Foo.prototype.banana = function (x) { }; return Foo; -})(); +}()); var Bar = (function () { function Bar(c) { } return Bar; -})(); +}()); diff --git a/tests/baselines/reference/parser585151.js b/tests/baselines/reference/parser585151.js index 16085ab3f16..977d90ad538 100644 --- a/tests/baselines/reference/parser585151.js +++ b/tests/baselines/reference/parser585151.js @@ -9,5 +9,5 @@ var Foo2 = (function () { function Foo2() { } return Foo2; -})(); +}()); var icecream = "chocolate"; diff --git a/tests/baselines/reference/parser618973.errors.txt b/tests/baselines/reference/parser618973.errors.txt index 95e08726661..b76aa15c858 100644 --- a/tests/baselines/reference/parser618973.errors.txt +++ b/tests/baselines/reference/parser618973.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/parser/ecmascript5/RegressionTests/parser618973.ts(1,8): error TS1030: 'export' modifier already seen. -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser618973.ts(1,21): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser618973.ts(1,21): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser618973.ts (2 errors) ==== @@ -7,7 +7,7 @@ tests/cases/conformance/parser/ecmascript5/RegressionTests/parser618973.ts(1,21) ~~~~~~ !!! error TS1030: 'export' modifier already seen. ~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. public Bar() { } } \ No newline at end of file diff --git a/tests/baselines/reference/parser618973.js b/tests/baselines/reference/parser618973.js index dbcad3e3d6e..df9b2e4433a 100644 --- a/tests/baselines/reference/parser618973.js +++ b/tests/baselines/reference/parser618973.js @@ -12,5 +12,5 @@ var Foo = (function () { Foo.prototype.Bar = function () { }; return Foo; -})(); +}()); exports.Foo = Foo; diff --git a/tests/baselines/reference/parser642331.js b/tests/baselines/reference/parser642331.js index 056ea7dd384..7d267973f47 100644 --- a/tests/baselines/reference/parser642331.js +++ b/tests/baselines/reference/parser642331.js @@ -9,4 +9,4 @@ var test = (function () { function test(static) { } return test; -})(); +}()); diff --git a/tests/baselines/reference/parser642331_1.js b/tests/baselines/reference/parser642331_1.js index 83833ee6612..65c7fac6c23 100644 --- a/tests/baselines/reference/parser642331_1.js +++ b/tests/baselines/reference/parser642331_1.js @@ -12,4 +12,4 @@ var test = (function () { function test(static) { } return test; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic1.js b/tests/baselines/reference/parserAccessibilityAfterStatic1.js index 263efaf5dd2..9e35ee6f25e 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic1.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic1.js @@ -10,4 +10,4 @@ var Outer = (function () { function Outer() { } return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic10.js b/tests/baselines/reference/parserAccessibilityAfterStatic10.js index 6756a57ce7e..0fe0da80156 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic10.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic10.js @@ -11,4 +11,4 @@ var Outer = (function () { } Outer.intI = function () { }; return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic11.js b/tests/baselines/reference/parserAccessibilityAfterStatic11.js index 8b16153b797..65d618934a1 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic11.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic11.js @@ -11,4 +11,4 @@ var Outer = (function () { } Outer.public = function () { }; return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic14.js b/tests/baselines/reference/parserAccessibilityAfterStatic14.js index 4455936a859..ebb3ad88a00 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic14.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic14.js @@ -11,4 +11,4 @@ var Outer = (function () { } Outer.public = function () { }; return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic2.js b/tests/baselines/reference/parserAccessibilityAfterStatic2.js index 9a0a6b02722..b677e4c96fb 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic2.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic2.js @@ -10,4 +10,4 @@ var Outer = (function () { function Outer() { } return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic3.js b/tests/baselines/reference/parserAccessibilityAfterStatic3.js index bd3697fdbdb..7a9ae06e439 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic3.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic3.js @@ -11,4 +11,4 @@ var Outer = (function () { } Outer.public = 1; return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic4.js b/tests/baselines/reference/parserAccessibilityAfterStatic4.js index 094b947957e..9db3e362487 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic4.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic4.js @@ -10,4 +10,4 @@ var Outer = (function () { function Outer() { } return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic5.js b/tests/baselines/reference/parserAccessibilityAfterStatic5.js index 8373276dd00..10be7761a87 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic5.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic5.js @@ -10,4 +10,4 @@ var Outer = (function () { function Outer() { } return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic6.js b/tests/baselines/reference/parserAccessibilityAfterStatic6.js index de4fc048785..7b6e8eed7fd 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic6.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic6.js @@ -8,4 +8,4 @@ var Outer = (function () { function Outer() { } return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic7.js b/tests/baselines/reference/parserAccessibilityAfterStatic7.js index 2d94be8ea50..3bee7db9ddf 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic7.js +++ b/tests/baselines/reference/parserAccessibilityAfterStatic7.js @@ -11,4 +11,4 @@ var Outer = (function () { } Outer.intI = function () { }; return Outer; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessors1.js b/tests/baselines/reference/parserAccessors1.js index 6b47a46ede1..fcf8a6e14ff 100644 --- a/tests/baselines/reference/parserAccessors1.js +++ b/tests/baselines/reference/parserAccessors1.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserAccessors10.errors.txt b/tests/baselines/reference/parserAccessors10.errors.txt index d6a2b99eaca..b309b5e3947 100644 --- a/tests/baselines/reference/parserAccessors10.errors.txt +++ b/tests/baselines/reference/parserAccessors10.errors.txt @@ -1,9 +1,12 @@ +tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts(2,3): error TS1042: 'public' modifier cannot be used here. tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts(2,14): error TS2378: A 'get' accessor must return a value. -==== tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts (1 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors10.ts (2 errors) ==== var v = { public get foo() { } + ~~~~~~ +!!! error TS1042: 'public' modifier cannot be used here. ~~~ !!! error TS2378: A 'get' accessor must return a value. }; \ No newline at end of file diff --git a/tests/baselines/reference/parserAccessors2.js b/tests/baselines/reference/parserAccessors2.js index 482daa74a64..6a76cf0671a 100644 --- a/tests/baselines/reference/parserAccessors2.js +++ b/tests/baselines/reference/parserAccessors2.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserArgumentList1.errors.txt b/tests/baselines/reference/parserArgumentList1.errors.txt index 36d1a0fad37..01575cec0c4 100644 --- a/tests/baselines/reference/parserArgumentList1.errors.txt +++ b/tests/baselines/reference/parserArgumentList1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(1,35): error TS2304: Cannot find name 'HTMLElement'. tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(2,42): error TS2304: Cannot find name '_classNameRegexp'. @@ -6,7 +6,7 @@ tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(2,42): error T ==== tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts (3 errors) ==== export function removeClass (node:HTMLElement, className:string) { ~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~~~~~ !!! error TS2304: Cannot find name 'HTMLElement'. node.className = node.className.replace(_classNameRegexp(className), function (everything, leftDelimiter, name, rightDelimiter) { diff --git a/tests/baselines/reference/parserAstSpans1.js b/tests/baselines/reference/parserAstSpans1.js index 5de3cb8f9f1..41f07380e97 100644 --- a/tests/baselines/reference/parserAstSpans1.js +++ b/tests/baselines/reference/parserAstSpans1.js @@ -239,7 +239,7 @@ var c1 = (function () { c1.prototype.nc_f1 = function () { }; return c1; -})(); +}()); var i1_i; i1_i.i1_f1(); i1_i.i1_nc_f1(); @@ -314,7 +314,7 @@ var c2 = (function () { configurable: true }); return c2; -})(); +}()); var c3 = (function (_super) { __extends(c3, _super); function c3() { @@ -342,7 +342,7 @@ var c3 = (function (_super) { configurable: true }); return c3; -})(c2); +}(c2)); var c2_i = new c2(10); var c3_i = new c3(); c2_i.c2_f1(); @@ -365,7 +365,7 @@ var c4 = (function (_super) { _super.apply(this, arguments); } return c4; -})(c2); +}(c2)); var c4_i = new c4(10); var i2_i; var i3_i; @@ -400,7 +400,7 @@ var c5 = (function () { function c5() { } return c5; -})(); +}()); var c6 = (function (_super) { __extends(c6, _super); function c6() { @@ -408,4 +408,4 @@ var c6 = (function (_super) { this.d = _super.prototype.b; } return c6; -})(c5); +}(c5)); diff --git a/tests/baselines/reference/parserAutomaticSemicolonInsertion1.errors.txt b/tests/baselines/reference/parserAutomaticSemicolonInsertion1.errors.txt index ee17b6f82aa..9ffdc614ab1 100644 --- a/tests/baselines/reference/parserAutomaticSemicolonInsertion1.errors.txt +++ b/tests/baselines/reference/parserAutomaticSemicolonInsertion1.errors.txt @@ -1,5 +1,7 @@ tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts(8,1): error TS2322: Type 'Object' is not assignable to type 'I'. + Type 'Object' provides no match for the signature '(): void' tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts(14,1): error TS2322: Type 'Object' is not assignable to type '() => void'. + Type 'Object' provides no match for the signature '(): void' ==== tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAutomaticSemicolonInsertion1.ts (2 errors) ==== @@ -13,6 +15,7 @@ tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAut i = o; ~ !!! error TS2322: Type 'Object' is not assignable to type 'I'. +!!! error TS2322: Type 'Object' provides no match for the signature '(): void' var a: { (): void @@ -21,4 +24,5 @@ tests/cases/conformance/parser/ecmascript5/AutomaticSemicolonInsertion/parserAut a = o; ~ !!! error TS2322: Type 'Object' is not assignable to type '() => void'. +!!! error TS2322: Type 'Object' provides no match for the signature '(): void' \ No newline at end of file diff --git a/tests/baselines/reference/parserClass1.errors.txt b/tests/baselines/reference/parserClass1.errors.txt index da4fc8d870d..03ec87f66a6 100644 --- a/tests/baselines/reference/parserClass1.errors.txt +++ b/tests/baselines/reference/parserClass1.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass1.ts(1,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass1.ts(1,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass1.ts(1,40): error TS2304: Cannot find name 'ILogger'. ==== tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass1.ts (2 errors) ==== export class NullLogger implements ILogger { ~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~ !!! error TS2304: Cannot find name 'ILogger'. public information(): boolean { return false; } diff --git a/tests/baselines/reference/parserClass1.js b/tests/baselines/reference/parserClass1.js index 3f772a2f692..50d2fb179dc 100644 --- a/tests/baselines/reference/parserClass1.js +++ b/tests/baselines/reference/parserClass1.js @@ -22,5 +22,5 @@ var NullLogger = (function () { NullLogger.prototype.log = function (s) { }; return NullLogger; -})(); +}()); exports.NullLogger = NullLogger; diff --git a/tests/baselines/reference/parserClass2.errors.txt b/tests/baselines/reference/parserClass2.errors.txt index 39476805e1d..ee67b262fe5 100644 --- a/tests/baselines/reference/parserClass2.errors.txt +++ b/tests/baselines/reference/parserClass2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass2.ts(3,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass2.ts(3,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass2.ts(3,43): error TS2304: Cannot find name 'ILogger'. tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass2.ts(4,37): error TS2304: Cannot find name 'ILogger'. tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass2.ts(5,18): error TS2339: Property '_information' does not exist on type 'LoggerAdapter'. @@ -9,7 +9,7 @@ tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClass2.ts(5,1 export class LoggerAdapter implements ILogger { ~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~ !!! error TS2304: Cannot find name 'ILogger'. constructor (public logger: ILogger) { diff --git a/tests/baselines/reference/parserClass2.js b/tests/baselines/reference/parserClass2.js index 1fe84f37a07..c1d3b87e892 100644 --- a/tests/baselines/reference/parserClass2.js +++ b/tests/baselines/reference/parserClass2.js @@ -15,5 +15,5 @@ var LoggerAdapter = (function () { this._information = this.logger.information(); } return LoggerAdapter; -})(); +}()); exports.LoggerAdapter = LoggerAdapter; diff --git a/tests/baselines/reference/parserClassDeclaration1.js b/tests/baselines/reference/parserClassDeclaration1.js index f430b8e644a..41ecc9135c0 100644 --- a/tests/baselines/reference/parserClassDeclaration1.js +++ b/tests/baselines/reference/parserClassDeclaration1.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parserClassDeclaration10.js b/tests/baselines/reference/parserClassDeclaration10.js index 9b912f9eaac..9af82a82f52 100644 --- a/tests/baselines/reference/parserClassDeclaration10.js +++ b/tests/baselines/reference/parserClassDeclaration10.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration11.js b/tests/baselines/reference/parserClassDeclaration11.js index 078d3553a43..5749fa24f85 100644 --- a/tests/baselines/reference/parserClassDeclaration11.js +++ b/tests/baselines/reference/parserClassDeclaration11.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration12.js b/tests/baselines/reference/parserClassDeclaration12.js index 709bae1b29f..e4458c09ef6 100644 --- a/tests/baselines/reference/parserClassDeclaration12.js +++ b/tests/baselines/reference/parserClassDeclaration12.js @@ -9,4 +9,4 @@ var C = (function () { function C(a) { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration13.js b/tests/baselines/reference/parserClassDeclaration13.js index 93ce76fb168..ad0ca6d502f 100644 --- a/tests/baselines/reference/parserClassDeclaration13.js +++ b/tests/baselines/reference/parserClassDeclaration13.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype.bar = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration14.js b/tests/baselines/reference/parserClassDeclaration14.js index 9fbfc598168..724337abf00 100644 --- a/tests/baselines/reference/parserClassDeclaration14.js +++ b/tests/baselines/reference/parserClassDeclaration14.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration15.js b/tests/baselines/reference/parserClassDeclaration15.js index 4d0a285690a..5d96374d18d 100644 --- a/tests/baselines/reference/parserClassDeclaration15.js +++ b/tests/baselines/reference/parserClassDeclaration15.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration16.js b/tests/baselines/reference/parserClassDeclaration16.js index a6a92d73afa..94ce889b9ba 100644 --- a/tests/baselines/reference/parserClassDeclaration16.js +++ b/tests/baselines/reference/parserClassDeclaration16.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration19.js b/tests/baselines/reference/parserClassDeclaration19.js index 7900aa4d552..9be5032e698 100644 --- a/tests/baselines/reference/parserClassDeclaration19.js +++ b/tests/baselines/reference/parserClassDeclaration19.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype["foo"] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration2.js b/tests/baselines/reference/parserClassDeclaration2.js index 18bb068b23f..b462ee6e31e 100644 --- a/tests/baselines/reference/parserClassDeclaration2.js +++ b/tests/baselines/reference/parserClassDeclaration2.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration20.js b/tests/baselines/reference/parserClassDeclaration20.js index 7c99f2d8ee6..56dc7c2ce9d 100644 --- a/tests/baselines/reference/parserClassDeclaration20.js +++ b/tests/baselines/reference/parserClassDeclaration20.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype["0"] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration21.js b/tests/baselines/reference/parserClassDeclaration21.js index fa4cef46e0e..c28d25963c2 100644 --- a/tests/baselines/reference/parserClassDeclaration21.js +++ b/tests/baselines/reference/parserClassDeclaration21.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype[1] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration22.js b/tests/baselines/reference/parserClassDeclaration22.js index 596f7a4474b..2b979579dda 100644 --- a/tests/baselines/reference/parserClassDeclaration22.js +++ b/tests/baselines/reference/parserClassDeclaration22.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype["bar"] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration23.js b/tests/baselines/reference/parserClassDeclaration23.js index 40b291bb007..f9d8d0f8f5a 100644 --- a/tests/baselines/reference/parserClassDeclaration23.js +++ b/tests/baselines/reference/parserClassDeclaration23.js @@ -7,4 +7,4 @@ var C\u0032 = (function () { function C\u0032() { } return C\u0032; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration24.js b/tests/baselines/reference/parserClassDeclaration24.js index 8cf6e634cb2..b4b086253dc 100644 --- a/tests/baselines/reference/parserClassDeclaration24.js +++ b/tests/baselines/reference/parserClassDeclaration24.js @@ -7,4 +7,4 @@ var any = (function () { function any() { } return any; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration25.js b/tests/baselines/reference/parserClassDeclaration25.js index 69a8fded51e..f8ab42f19bd 100644 --- a/tests/baselines/reference/parserClassDeclaration25.js +++ b/tests/baselines/reference/parserClassDeclaration25.js @@ -14,4 +14,4 @@ var List = (function () { function List() { } return List; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration26.js b/tests/baselines/reference/parserClassDeclaration26.js index 94b56f521dd..3b5751b07cb 100644 --- a/tests/baselines/reference/parserClassDeclaration26.js +++ b/tests/baselines/reference/parserClassDeclaration26.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration3.js b/tests/baselines/reference/parserClassDeclaration3.js index 8ea681a668f..c375b4b5a21 100644 --- a/tests/baselines/reference/parserClassDeclaration3.js +++ b/tests/baselines/reference/parserClassDeclaration3.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(B); +}(B)); diff --git a/tests/baselines/reference/parserClassDeclaration4.js b/tests/baselines/reference/parserClassDeclaration4.js index 2bbbd134ed4..f19ac06c35c 100644 --- a/tests/baselines/reference/parserClassDeclaration4.js +++ b/tests/baselines/reference/parserClassDeclaration4.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parserClassDeclaration5.js b/tests/baselines/reference/parserClassDeclaration5.js index 146cbda9563..272edc89fb6 100644 --- a/tests/baselines/reference/parserClassDeclaration5.js +++ b/tests/baselines/reference/parserClassDeclaration5.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parserClassDeclaration6.js b/tests/baselines/reference/parserClassDeclaration6.js index 0f65ad53f07..88d8481d52a 100644 --- a/tests/baselines/reference/parserClassDeclaration6.js +++ b/tests/baselines/reference/parserClassDeclaration6.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parserClassDeclaration8.js b/tests/baselines/reference/parserClassDeclaration8.js index 2d1a830c650..1698fa169dd 100644 --- a/tests/baselines/reference/parserClassDeclaration8.js +++ b/tests/baselines/reference/parserClassDeclaration8.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclaration9.js b/tests/baselines/reference/parserClassDeclaration9.js index f1c87f582a9..b45962eacf7 100644 --- a/tests/baselines/reference/parserClassDeclaration9.js +++ b/tests/baselines/reference/parserClassDeclaration9.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserClassDeclarationIndexSignature1.js b/tests/baselines/reference/parserClassDeclarationIndexSignature1.js index 8a401b17ab2..430ee220db8 100644 --- a/tests/baselines/reference/parserClassDeclarationIndexSignature1.js +++ b/tests/baselines/reference/parserClassDeclarationIndexSignature1.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration1.js b/tests/baselines/reference/parserConstructorDeclaration1.js index 6de0ec3332b..bd29f61c884 100644 --- a/tests/baselines/reference/parserConstructorDeclaration1.js +++ b/tests/baselines/reference/parserConstructorDeclaration1.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration10.js b/tests/baselines/reference/parserConstructorDeclaration10.js index 9289636e919..96470c80624 100644 --- a/tests/baselines/reference/parserConstructorDeclaration10.js +++ b/tests/baselines/reference/parserConstructorDeclaration10.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration11.js b/tests/baselines/reference/parserConstructorDeclaration11.js index a21fa87f694..60e012ded4b 100644 --- a/tests/baselines/reference/parserConstructorDeclaration11.js +++ b/tests/baselines/reference/parserConstructorDeclaration11.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration12.js b/tests/baselines/reference/parserConstructorDeclaration12.js index dc540c3323e..025b994ff04 100644 --- a/tests/baselines/reference/parserConstructorDeclaration12.js +++ b/tests/baselines/reference/parserConstructorDeclaration12.js @@ -15,4 +15,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration2.js b/tests/baselines/reference/parserConstructorDeclaration2.js index 142bf5a5314..929b4dd295d 100644 --- a/tests/baselines/reference/parserConstructorDeclaration2.js +++ b/tests/baselines/reference/parserConstructorDeclaration2.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration3.js b/tests/baselines/reference/parserConstructorDeclaration3.js index 6e7531f1e66..f45e854d878 100644 --- a/tests/baselines/reference/parserConstructorDeclaration3.js +++ b/tests/baselines/reference/parserConstructorDeclaration3.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration4.js b/tests/baselines/reference/parserConstructorDeclaration4.js index 2b1ae1cdb68..46e1602a21f 100644 --- a/tests/baselines/reference/parserConstructorDeclaration4.js +++ b/tests/baselines/reference/parserConstructorDeclaration4.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration5.js b/tests/baselines/reference/parserConstructorDeclaration5.js index c0d8c03458e..a18d5351c77 100644 --- a/tests/baselines/reference/parserConstructorDeclaration5.js +++ b/tests/baselines/reference/parserConstructorDeclaration5.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration6.js b/tests/baselines/reference/parserConstructorDeclaration6.js index abee73fe0b8..eca0638116d 100644 --- a/tests/baselines/reference/parserConstructorDeclaration6.js +++ b/tests/baselines/reference/parserConstructorDeclaration6.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration7.js b/tests/baselines/reference/parserConstructorDeclaration7.js index 8c3b4db9d22..2b19cfab111 100644 --- a/tests/baselines/reference/parserConstructorDeclaration7.js +++ b/tests/baselines/reference/parserConstructorDeclaration7.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration8.js b/tests/baselines/reference/parserConstructorDeclaration8.js index 26c06b591c0..4ad3f93a1d8 100644 --- a/tests/baselines/reference/parserConstructorDeclaration8.js +++ b/tests/baselines/reference/parserConstructorDeclaration8.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserConstructorDeclaration9.js b/tests/baselines/reference/parserConstructorDeclaration9.js index 8393d35f5e7..d30ed12f313 100644 --- a/tests/baselines/reference/parserConstructorDeclaration9.js +++ b/tests/baselines/reference/parserConstructorDeclaration9.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES3Accessors1.js b/tests/baselines/reference/parserES3Accessors1.js index b4d0b9d6576..df1d416ced0 100644 --- a/tests/baselines/reference/parserES3Accessors1.js +++ b/tests/baselines/reference/parserES3Accessors1.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES3Accessors2.js b/tests/baselines/reference/parserES3Accessors2.js index 3d18e8ac280..68f4ac67377 100644 --- a/tests/baselines/reference/parserES3Accessors2.js +++ b/tests/baselines/reference/parserES3Accessors2.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5ComputedPropertyName10.js b/tests/baselines/reference/parserES5ComputedPropertyName10.js index a69165a192a..d648ce29e9a 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName10.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName10.js @@ -9,4 +9,4 @@ var C = (function () { this[e] = 1; } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5ComputedPropertyName11.js b/tests/baselines/reference/parserES5ComputedPropertyName11.js index dfa74b03a5f..dd777f53080 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName11.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName11.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5ComputedPropertyName7.js b/tests/baselines/reference/parserES5ComputedPropertyName7.js index 8634682c660..b707d7ea747 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName7.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName7.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5ComputedPropertyName9.js b/tests/baselines/reference/parserES5ComputedPropertyName9.js index fdefc8649d0..904bd3b0e32 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName9.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName9.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5SymbolIndexer2.js b/tests/baselines/reference/parserES5SymbolIndexer2.js index c511b6acafa..fbd0ff168fa 100644 --- a/tests/baselines/reference/parserES5SymbolIndexer2.js +++ b/tests/baselines/reference/parserES5SymbolIndexer2.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5SymbolProperty5.js b/tests/baselines/reference/parserES5SymbolProperty5.js index e2448432542..e50c6ad93ad 100644 --- a/tests/baselines/reference/parserES5SymbolProperty5.js +++ b/tests/baselines/reference/parserES5SymbolProperty5.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5SymbolProperty6.js b/tests/baselines/reference/parserES5SymbolProperty6.js index ce2050688c3..67e77d29dfb 100644 --- a/tests/baselines/reference/parserES5SymbolProperty6.js +++ b/tests/baselines/reference/parserES5SymbolProperty6.js @@ -9,4 +9,4 @@ var C = (function () { this[Symbol.toStringTag] = ""; } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserES5SymbolProperty7.js b/tests/baselines/reference/parserES5SymbolProperty7.js index 102d10af417..4965f7867c3 100644 --- a/tests/baselines/reference/parserES5SymbolProperty7.js +++ b/tests/baselines/reference/parserES5SymbolProperty7.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype[Symbol.toStringTag] = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserEnum1.errors.txt b/tests/baselines/reference/parserEnum1.errors.txt index ca89c5fc104..dd8cd23fe2c 100644 --- a/tests/baselines/reference/parserEnum1.errors.txt +++ b/tests/baselines/reference/parserEnum1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum1.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum1.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum1.ts (1 errors) ==== @@ -6,7 +6,7 @@ tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum1.ts(3,17) export enum SignatureFlags { ~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. None = 0, IsIndexer = 1, IsStringIndexer = 1 << 1, diff --git a/tests/baselines/reference/parserEnum2.errors.txt b/tests/baselines/reference/parserEnum2.errors.txt index f8a841fd9ba..242b624ad88 100644 --- a/tests/baselines/reference/parserEnum2.errors.txt +++ b/tests/baselines/reference/parserEnum2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum2.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum2.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum2.ts (1 errors) ==== @@ -6,7 +6,7 @@ tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum2.ts(3,17) export enum SignatureFlags { ~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. None = 0, IsIndexer = 1, IsStringIndexer = 1 << 1, diff --git a/tests/baselines/reference/parserEnum3.errors.txt b/tests/baselines/reference/parserEnum3.errors.txt index 463f338159a..e0b3691dbde 100644 --- a/tests/baselines/reference/parserEnum3.errors.txt +++ b/tests/baselines/reference/parserEnum3.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum3.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum3.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum3.ts (1 errors) ==== @@ -6,5 +6,5 @@ tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum3.ts(3,17) export enum SignatureFlags { ~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. } \ No newline at end of file diff --git a/tests/baselines/reference/parserEnum4.errors.txt b/tests/baselines/reference/parserEnum4.errors.txt index 9f2cd1d1862..9329b484c92 100644 --- a/tests/baselines/reference/parserEnum4.errors.txt +++ b/tests/baselines/reference/parserEnum4.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum4.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum4.ts(3,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum4.ts(4,9): error TS1132: Enum member expected. @@ -7,7 +7,7 @@ tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum4.ts(4,9): export enum SignatureFlags { ~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. , ~ !!! error TS1132: Enum member expected. diff --git a/tests/baselines/reference/parserErrantSemicolonInClass1.js b/tests/baselines/reference/parserErrantSemicolonInClass1.js index f3834da7e78..7dbe9f579d2 100644 --- a/tests/baselines/reference/parserErrantSemicolonInClass1.js +++ b/tests/baselines/reference/parserErrantSemicolonInClass1.js @@ -70,4 +70,4 @@ var a = (function () { return ns.toString(); }; return a; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement1.js b/tests/baselines/reference/parserErrorRecoveryIfStatement1.js index 662f3056a3d..03e3de32cc1 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement1.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement1.js @@ -22,4 +22,4 @@ var Foo = (function () { Foo.prototype.f3 = function () { }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement2.js b/tests/baselines/reference/parserErrorRecoveryIfStatement2.js index 171f3072535..84daa435711 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement2.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement2.js @@ -22,4 +22,4 @@ var Foo = (function () { Foo.prototype.f3 = function () { }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement3.js b/tests/baselines/reference/parserErrorRecoveryIfStatement3.js index 117525bcba0..b58c0ccd524 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement3.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement3.js @@ -22,4 +22,4 @@ var Foo = (function () { Foo.prototype.f3 = function () { }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement4.js b/tests/baselines/reference/parserErrorRecoveryIfStatement4.js index 460ca957c02..3d5e6af1fe6 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement4.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement4.js @@ -22,4 +22,4 @@ var Foo = (function () { Foo.prototype.f3 = function () { }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement5.js b/tests/baselines/reference/parserErrorRecoveryIfStatement5.js index 8df07082c42..b3a4f897aa7 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement5.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement5.js @@ -24,4 +24,4 @@ var Foo = (function () { } }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement6.js b/tests/baselines/reference/parserErrorRecoveryIfStatement6.js index fa327a73814..86454bed4f2 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement6.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement6.js @@ -23,4 +23,4 @@ var Foo = (function () { Foo.prototype.f3 = function () { }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecovery_Block3.js b/tests/baselines/reference/parserErrorRecovery_Block3.js index 55b0a4d65e7..1851d148bc8 100644 --- a/tests/baselines/reference/parserErrorRecovery_Block3.js +++ b/tests/baselines/reference/parserErrorRecovery_Block3.js @@ -14,4 +14,4 @@ var C = (function () { C.prototype.b = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecovery_ClassElement1.js b/tests/baselines/reference/parserErrorRecovery_ClassElement1.js index 7a3bf441e47..16f796a0fac 100644 --- a/tests/baselines/reference/parserErrorRecovery_ClassElement1.js +++ b/tests/baselines/reference/parserErrorRecovery_ClassElement1.js @@ -11,11 +11,11 @@ var C = (function () { function C() { } return C; -})(); +}()); // Classes can't be nested. So we should bail out of parsing here and recover // this as a source unit element. var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecovery_ClassElement2.js b/tests/baselines/reference/parserErrorRecovery_ClassElement2.js index fca227a4e8a..bab50d52751 100644 --- a/tests/baselines/reference/parserErrorRecovery_ClassElement2.js +++ b/tests/baselines/reference/parserErrorRecovery_ClassElement2.js @@ -13,7 +13,7 @@ var M; function C() { } return C; - })(); + }()); var E; (function (E) { })(E || (E = {})); diff --git a/tests/baselines/reference/parserErrorRecovery_ClassElement3.js b/tests/baselines/reference/parserErrorRecovery_ClassElement3.js index 39e701628bb..b5021218ada 100644 --- a/tests/baselines/reference/parserErrorRecovery_ClassElement3.js +++ b/tests/baselines/reference/parserErrorRecovery_ClassElement3.js @@ -14,7 +14,7 @@ var M; function C() { } return C; - })(); + }()); var E; (function (E) { })(E || (E = {})); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause1.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause1.js index b6557221c65..1215631857e 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause1.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause1.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js index 3c2f96f54fd..b53c41fb45c 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause3.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause3.js index b420e12cccb..33bba3cf860 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause3.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause3.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js index 594c4575eab..500f6d38c6d 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js index 3d2447e0b8c..8c02a996ea5 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js @@ -14,4 +14,4 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js index 8055cd9d494..9bb4395e556 100644 --- a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js +++ b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js @@ -44,7 +44,7 @@ var Shapes; // Static member Point.origin = new Point(0, 0); return Point; - })(); + }()); Shapes.Point = Point; })(Shapes || (Shapes = {})); // Local variables diff --git a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js index 4936b1ea8bc..0ee73b8b1e5 100644 --- a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js +++ b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js @@ -45,7 +45,7 @@ var Shapes; // Static member Point.origin = new Point(0, 0); return Point; - })(); + }()); Shapes.Point = Point; })(Shapes || (Shapes = {})); // Local variables diff --git a/tests/baselines/reference/parserErrorRecovery_ParameterList6.js b/tests/baselines/reference/parserErrorRecovery_ParameterList6.js index 060ad14766b..21e43f31512 100644 --- a/tests/baselines/reference/parserErrorRecovery_ParameterList6.js +++ b/tests/baselines/reference/parserErrorRecovery_ParameterList6.js @@ -9,6 +9,6 @@ var Foo = (function () { } Foo.prototype.banana = ; return Foo; -})(); +}()); break ; { } diff --git a/tests/baselines/reference/parserErrorRecovery_SourceUnit1.js b/tests/baselines/reference/parserErrorRecovery_SourceUnit1.js index a4b6427508f..a763012e0e6 100644 --- a/tests/baselines/reference/parserErrorRecovery_SourceUnit1.js +++ b/tests/baselines/reference/parserErrorRecovery_SourceUnit1.js @@ -10,9 +10,9 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/parserErrorRecovery_SwitchStatement2.js b/tests/baselines/reference/parserErrorRecovery_SwitchStatement2.js index 0fd532dde15..093b8ae7231 100644 --- a/tests/baselines/reference/parserErrorRecovery_SwitchStatement2.js +++ b/tests/baselines/reference/parserErrorRecovery_SwitchStatement2.js @@ -15,7 +15,7 @@ var C = (function () { function D() { } return D; - })(); + }()); } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserExportAssignment1.errors.txt b/tests/baselines/reference/parserExportAssignment1.errors.txt index cd153319f1a..cb989f655ce 100644 --- a/tests/baselines/reference/parserExportAssignment1.errors.txt +++ b/tests/baselines/reference/parserExportAssignment1.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts(1,10): error TS2304: Cannot find name 'foo'. ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts (2 errors) ==== export = foo ~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~ !!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/parserExportAssignment2.errors.txt b/tests/baselines/reference/parserExportAssignment2.errors.txt index 60eb0c1f43e..7e7fcbd950f 100644 --- a/tests/baselines/reference/parserExportAssignment2.errors.txt +++ b/tests/baselines/reference/parserExportAssignment2.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts(1,10): error TS2304: Cannot find name 'foo'. ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts (2 errors) ==== export = foo; ~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~ !!! error TS2304: Cannot find name 'foo'. \ No newline at end of file diff --git a/tests/baselines/reference/parserExportAssignment3.errors.txt b/tests/baselines/reference/parserExportAssignment3.errors.txt index b1e94a27469..5e2ff747e2d 100644 --- a/tests/baselines/reference/parserExportAssignment3.errors.txt +++ b/tests/baselines/reference/parserExportAssignment3.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment3.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment3.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment3.ts(1,9): error TS1109: Expression expected. ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment3.ts (2 errors) ==== export = ~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. !!! error TS1109: Expression expected. \ No newline at end of file diff --git a/tests/baselines/reference/parserExportAssignment4.errors.txt b/tests/baselines/reference/parserExportAssignment4.errors.txt index 93e311bdb23..10830b9b977 100644 --- a/tests/baselines/reference/parserExportAssignment4.errors.txt +++ b/tests/baselines/reference/parserExportAssignment4.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment4.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment4.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment4.ts(1,10): error TS1109: Expression expected. ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment4.ts (2 errors) ==== export = ; ~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~ !!! error TS1109: Expression expected. \ No newline at end of file diff --git a/tests/baselines/reference/parserExportAssignment7.errors.txt b/tests/baselines/reference/parserExportAssignment7.errors.txt index 7e54f2a4bce..c4ecd785484 100644 --- a/tests/baselines/reference/parserExportAssignment7.errors.txt +++ b/tests/baselines/reference/parserExportAssignment7.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(4,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(4,10): error TS2304: Cannot find name 'B'. @@ -6,7 +6,7 @@ tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignm ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts (3 errors) ==== export class C { ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. } export = B; diff --git a/tests/baselines/reference/parserExportAssignment7.js b/tests/baselines/reference/parserExportAssignment7.js index 4e3982e4295..baf8ec5b6bb 100644 --- a/tests/baselines/reference/parserExportAssignment7.js +++ b/tests/baselines/reference/parserExportAssignment7.js @@ -10,5 +10,5 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; diff --git a/tests/baselines/reference/parserExportAssignment8.errors.txt b/tests/baselines/reference/parserExportAssignment8.errors.txt index 71b37c99db7..39ccc32e495 100644 --- a/tests/baselines/reference/parserExportAssignment8.errors.txt +++ b/tests/baselines/reference/parserExportAssignment8.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,10): error TS2304: Cannot find name 'B'. @@ -6,7 +6,7 @@ tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignm ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts (3 errors) ==== export = B; ~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~~~~~ !!! error TS2309: An export assignment cannot be used in a module with other exported elements. ~ diff --git a/tests/baselines/reference/parserExportAssignment8.js b/tests/baselines/reference/parserExportAssignment8.js index 580a0bfe804..23f94dbe1e3 100644 --- a/tests/baselines/reference/parserExportAssignment8.js +++ b/tests/baselines/reference/parserExportAssignment8.js @@ -10,5 +10,5 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; diff --git a/tests/baselines/reference/parserGenericClass1.js b/tests/baselines/reference/parserGenericClass1.js index a946cd1ec15..1ba9b0f49c5 100644 --- a/tests/baselines/reference/parserGenericClass1.js +++ b/tests/baselines/reference/parserGenericClass1.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericClass2.js b/tests/baselines/reference/parserGenericClass2.js index 57e63777522..ef40783ab79 100644 --- a/tests/baselines/reference/parserGenericClass2.js +++ b/tests/baselines/reference/parserGenericClass2.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericConstraint1.js b/tests/baselines/reference/parserGenericConstraint1.js index d4e9d3242c4..395a65a52fb 100644 --- a/tests/baselines/reference/parserGenericConstraint1.js +++ b/tests/baselines/reference/parserGenericConstraint1.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericConstraint2.errors.txt b/tests/baselines/reference/parserGenericConstraint2.errors.txt index a1548d81d9a..00fe33457a5 100644 --- a/tests/baselines/reference/parserGenericConstraint2.errors.txt +++ b/tests/baselines/reference/parserGenericConstraint2.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint2.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint2.ts(1,19): error TS2304: Cannot find name 'List'. -==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint2.ts (2 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint2.ts (1 errors) ==== class C > { - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~ !!! error TS2304: Cannot find name 'List'. } \ No newline at end of file diff --git a/tests/baselines/reference/parserGenericConstraint2.js b/tests/baselines/reference/parserGenericConstraint2.js index 9538530bb26..18218ecd992 100644 --- a/tests/baselines/reference/parserGenericConstraint2.js +++ b/tests/baselines/reference/parserGenericConstraint2.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericConstraint3.errors.txt b/tests/baselines/reference/parserGenericConstraint3.errors.txt index 1dc7ea4e080..e4e42d5b53b 100644 --- a/tests/baselines/reference/parserGenericConstraint3.errors.txt +++ b/tests/baselines/reference/parserGenericConstraint3.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint3.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint3.ts(1,19): error TS2304: Cannot find name 'List'. -==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint3.ts (2 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint3.ts (1 errors) ==== class C> { - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~ !!! error TS2304: Cannot find name 'List'. } \ No newline at end of file diff --git a/tests/baselines/reference/parserGenericConstraint3.js b/tests/baselines/reference/parserGenericConstraint3.js index 259377da4f6..a8a6669186c 100644 --- a/tests/baselines/reference/parserGenericConstraint3.js +++ b/tests/baselines/reference/parserGenericConstraint3.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericConstraint4.errors.txt b/tests/baselines/reference/parserGenericConstraint4.errors.txt index 3109bca9a2f..b42570593f7 100644 --- a/tests/baselines/reference/parserGenericConstraint4.errors.txt +++ b/tests/baselines/reference/parserGenericConstraint4.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint4.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint4.ts(1,19): error TS2304: Cannot find name 'List'. -==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint4.ts (2 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint4.ts (1 errors) ==== class C > > { - ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~ !!! error TS2304: Cannot find name 'List'. } \ No newline at end of file diff --git a/tests/baselines/reference/parserGenericConstraint4.js b/tests/baselines/reference/parserGenericConstraint4.js index 15c19cb40ad..69e26feba8f 100644 --- a/tests/baselines/reference/parserGenericConstraint4.js +++ b/tests/baselines/reference/parserGenericConstraint4.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericConstraint5.errors.txt b/tests/baselines/reference/parserGenericConstraint5.errors.txt index db8fea938b8..3479731ae13 100644 --- a/tests/baselines/reference/parserGenericConstraint5.errors.txt +++ b/tests/baselines/reference/parserGenericConstraint5.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint5.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint5.ts(1,19): error TS2304: Cannot find name 'List'. -==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint5.ts (2 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint5.ts (1 errors) ==== class C> > { - ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~ !!! error TS2304: Cannot find name 'List'. } \ No newline at end of file diff --git a/tests/baselines/reference/parserGenericConstraint5.js b/tests/baselines/reference/parserGenericConstraint5.js index 1cf637fd08d..46b19594937 100644 --- a/tests/baselines/reference/parserGenericConstraint5.js +++ b/tests/baselines/reference/parserGenericConstraint5.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericConstraint6.errors.txt b/tests/baselines/reference/parserGenericConstraint6.errors.txt index 032ed7fafb3..5efbcc8e8d0 100644 --- a/tests/baselines/reference/parserGenericConstraint6.errors.txt +++ b/tests/baselines/reference/parserGenericConstraint6.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint6.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint6.ts(1,19): error TS2304: Cannot find name 'List'. -==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint6.ts (2 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint6.ts (1 errors) ==== class C >> { - ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~ !!! error TS2304: Cannot find name 'List'. } \ No newline at end of file diff --git a/tests/baselines/reference/parserGenericConstraint6.js b/tests/baselines/reference/parserGenericConstraint6.js index fb41cf17d24..1dd809e4118 100644 --- a/tests/baselines/reference/parserGenericConstraint6.js +++ b/tests/baselines/reference/parserGenericConstraint6.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericConstraint7.errors.txt b/tests/baselines/reference/parserGenericConstraint7.errors.txt index 62dc8373e63..ffff8ea2583 100644 --- a/tests/baselines/reference/parserGenericConstraint7.errors.txt +++ b/tests/baselines/reference/parserGenericConstraint7.errors.txt @@ -1,11 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.ts(1,19): error TS2304: Cannot find name 'List'. -==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.ts (2 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.ts (1 errors) ==== class C>> { - ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~~~~ !!! error TS2304: Cannot find name 'List'. } \ No newline at end of file diff --git a/tests/baselines/reference/parserGenericConstraint7.js b/tests/baselines/reference/parserGenericConstraint7.js index 2d85afcdb5b..6d3107a1c4f 100644 --- a/tests/baselines/reference/parserGenericConstraint7.js +++ b/tests/baselines/reference/parserGenericConstraint7.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserGenericsInTypeContexts1.js b/tests/baselines/reference/parserGenericsInTypeContexts1.js index 9cea884bcfb..f6f4f39393f 100644 --- a/tests/baselines/reference/parserGenericsInTypeContexts1.js +++ b/tests/baselines/reference/parserGenericsInTypeContexts1.js @@ -29,7 +29,7 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); var v1; var v2 = null; var v3; diff --git a/tests/baselines/reference/parserGenericsInTypeContexts2.js b/tests/baselines/reference/parserGenericsInTypeContexts2.js index b5e5e010d56..99e19586c52 100644 --- a/tests/baselines/reference/parserGenericsInTypeContexts2.js +++ b/tests/baselines/reference/parserGenericsInTypeContexts2.js @@ -29,7 +29,7 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(A); +}(A)); var v1; var v2 = null; var v3; diff --git a/tests/baselines/reference/parserGetAccessorWithTypeParameters1.js b/tests/baselines/reference/parserGetAccessorWithTypeParameters1.js index 5a226dab628..467eb93d0da 100644 --- a/tests/baselines/reference/parserGetAccessorWithTypeParameters1.js +++ b/tests/baselines/reference/parserGetAccessorWithTypeParameters1.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration1.js b/tests/baselines/reference/parserIndexMemberDeclaration1.js index 6da7cdb0a76..5db1aebd683 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration1.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration1.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration10.js b/tests/baselines/reference/parserIndexMemberDeclaration10.js index cba928413a3..99d41e5410b 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration10.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration10.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration2.js b/tests/baselines/reference/parserIndexMemberDeclaration2.js index 6a351698516..afd60f7e2b1 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration2.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration2.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration3.js b/tests/baselines/reference/parserIndexMemberDeclaration3.js index caa9bedf449..1f06401dc0c 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration3.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration3.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration4.js b/tests/baselines/reference/parserIndexMemberDeclaration4.js index ebf05909c2f..9b054efcec3 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration4.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration4.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration5.js b/tests/baselines/reference/parserIndexMemberDeclaration5.js index 209e26ae4c0..df681657a15 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration5.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration5.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration6.js b/tests/baselines/reference/parserIndexMemberDeclaration6.js index 9dae6a786b4..c5356f58a65 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration6.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration6.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration7.js b/tests/baselines/reference/parserIndexMemberDeclaration7.js index 550063e6659..214f0d244af 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration7.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration7.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration8.js b/tests/baselines/reference/parserIndexMemberDeclaration8.js index c1f40ad0f15..c97df0c2948 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration8.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration8.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserIndexMemberDeclaration9.js b/tests/baselines/reference/parserIndexMemberDeclaration9.js index bd547be3bd3..3289715b3a3 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration9.js +++ b/tests/baselines/reference/parserIndexMemberDeclaration9.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserInterfaceDeclaration6.errors.txt b/tests/baselines/reference/parserInterfaceDeclaration6.errors.txt index ab6985c5ab1..6820ecdd48c 100644 --- a/tests/baselines/reference/parserInterfaceDeclaration6.errors.txt +++ b/tests/baselines/reference/parserInterfaceDeclaration6.errors.txt @@ -1,5 +1,5 @@ tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration6.ts(1,8): error TS1030: 'export' modifier already seen. -tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration6.ts(1,25): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration6.ts(1,25): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration6.ts (2 errors) ==== @@ -7,5 +7,5 @@ tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterface ~~~~~~ !!! error TS1030: 'export' modifier already seen. ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. } \ No newline at end of file diff --git a/tests/baselines/reference/parserInterfaceDeclaration7.errors.txt b/tests/baselines/reference/parserInterfaceDeclaration7.errors.txt index 344a5d9deb8..ecd59ae29e8 100644 --- a/tests/baselines/reference/parserInterfaceDeclaration7.errors.txt +++ b/tests/baselines/reference/parserInterfaceDeclaration7.errors.txt @@ -1,8 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration7.ts(1,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration7.ts(1,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/InterfaceDeclarations/parserInterfaceDeclaration7.ts (1 errors) ==== export interface I { ~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. } \ No newline at end of file diff --git a/tests/baselines/reference/parserInvalidIdentifiersInVariableStatements1.js b/tests/baselines/reference/parserInvalidIdentifiersInVariableStatements1.js index e6b9c9fa1b8..039d9d8926f 100644 --- a/tests/baselines/reference/parserInvalidIdentifiersInVariableStatements1.js +++ b/tests/baselines/reference/parserInvalidIdentifiersInVariableStatements1.js @@ -13,6 +13,6 @@ var default_1 = (function () { function default_1() { } return default_1; -})(); +}()); ; var bar; diff --git a/tests/baselines/reference/parserMemberAccessor1.js b/tests/baselines/reference/parserMemberAccessor1.js index 866a171bc43..ffbc62c8300 100644 --- a/tests/baselines/reference/parserMemberAccessor1.js +++ b/tests/baselines/reference/parserMemberAccessor1.js @@ -15,4 +15,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration1.js b/tests/baselines/reference/parserMemberAccessorDeclaration1.js index 30534735cfc..eec8364cacb 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration1.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration1.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration10.js b/tests/baselines/reference/parserMemberAccessorDeclaration10.js index d778b192279..fd02058d06c 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration10.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration10.js @@ -14,4 +14,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration11.js b/tests/baselines/reference/parserMemberAccessorDeclaration11.js index da8d7fc6425..d2ed28ec1b4 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration11.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration11.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration12.js b/tests/baselines/reference/parserMemberAccessorDeclaration12.js index 72923e060c4..85ad8ec231d 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration12.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration12.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration13.js b/tests/baselines/reference/parserMemberAccessorDeclaration13.js index 14b0f1b0a05..0882cb84bd4 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration13.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration13.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration14.js b/tests/baselines/reference/parserMemberAccessorDeclaration14.js index 21b11219ca1..a40b5eafa5d 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration14.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration14.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration15.js b/tests/baselines/reference/parserMemberAccessorDeclaration15.js index 0d01c75840c..333ae538473 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration15.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration15.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration16.js b/tests/baselines/reference/parserMemberAccessorDeclaration16.js index a6cd0aaa7e9..aa70918914b 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration16.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration16.js @@ -15,4 +15,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration17.js b/tests/baselines/reference/parserMemberAccessorDeclaration17.js index d61fa2e8409..10334e7881c 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration17.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration17.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration18.js b/tests/baselines/reference/parserMemberAccessorDeclaration18.js index 9483a1f2daf..e25aa69f465 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration18.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration18.js @@ -18,4 +18,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration2.js b/tests/baselines/reference/parserMemberAccessorDeclaration2.js index f29efc846ee..01d98d67694 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration2.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration2.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration3.js b/tests/baselines/reference/parserMemberAccessorDeclaration3.js index 9c64bf02522..acde7a1daed 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration3.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration3.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4.js b/tests/baselines/reference/parserMemberAccessorDeclaration4.js index e65f6431a7c..f0cea8d239a 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration4.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration4.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5.js b/tests/baselines/reference/parserMemberAccessorDeclaration5.js index d304a44d64d..6c990debd85 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration5.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration5.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6.js b/tests/baselines/reference/parserMemberAccessorDeclaration6.js index 9c6f3ce8a55..3f9f6d9bea9 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration6.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration6.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration7.js b/tests/baselines/reference/parserMemberAccessorDeclaration7.js index ce103accf61..fd4ed1b4923 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration7.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration7.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration8.js b/tests/baselines/reference/parserMemberAccessorDeclaration8.js index 07f12acae40..edcca9cabc2 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration8.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration8.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration9.js b/tests/baselines/reference/parserMemberAccessorDeclaration9.js index 02183d46ef1..5872d37203b 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration9.js +++ b/tests/baselines/reference/parserMemberAccessorDeclaration9.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration1.js b/tests/baselines/reference/parserMemberFunctionDeclaration1.js index 1d40fa94700..21a4793b190 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration1.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration1.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.Foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration2.js b/tests/baselines/reference/parserMemberFunctionDeclaration2.js index fed1a6a0743..2b94b05aea2 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration2.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration2.js @@ -9,4 +9,4 @@ var C = (function () { } C.Foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration3.js b/tests/baselines/reference/parserMemberFunctionDeclaration3.js index 18bbec7ba5f..9754db2c1a8 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration3.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration3.js @@ -9,4 +9,4 @@ var C = (function () { } C.Foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration4.js b/tests/baselines/reference/parserMemberFunctionDeclaration4.js index cd12f23442c..f082a450346 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration4.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration4.js @@ -10,4 +10,4 @@ var C = (function () { C.prototype.Foo = function () { } exports.Foo = Foo;; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration5.js b/tests/baselines/reference/parserMemberFunctionDeclaration5.js index 75630d34551..8d060cb7cc9 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration5.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration5.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.Foo = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js b/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js index e0a0f7860cc..f8412376210 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js +++ b/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js @@ -26,4 +26,4 @@ var C = (function () { C.public = function () { }; C.static = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberVariableDeclaration1.js b/tests/baselines/reference/parserMemberVariableDeclaration1.js index 7c59fa7db4c..aac616cc10e 100644 --- a/tests/baselines/reference/parserMemberVariableDeclaration1.js +++ b/tests/baselines/reference/parserMemberVariableDeclaration1.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberVariableDeclaration2.js b/tests/baselines/reference/parserMemberVariableDeclaration2.js index 7f4ae15a7ee..9d9032f7fb0 100644 --- a/tests/baselines/reference/parserMemberVariableDeclaration2.js +++ b/tests/baselines/reference/parserMemberVariableDeclaration2.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberVariableDeclaration3.js b/tests/baselines/reference/parserMemberVariableDeclaration3.js index e03279abed9..3518443cf6e 100644 --- a/tests/baselines/reference/parserMemberVariableDeclaration3.js +++ b/tests/baselines/reference/parserMemberVariableDeclaration3.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberVariableDeclaration4.js b/tests/baselines/reference/parserMemberVariableDeclaration4.js index d52dd0f4a08..6e0c8903899 100644 --- a/tests/baselines/reference/parserMemberVariableDeclaration4.js +++ b/tests/baselines/reference/parserMemberVariableDeclaration4.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMemberVariableDeclaration5.js b/tests/baselines/reference/parserMemberVariableDeclaration5.js index bc8a49ff3f5..47b563e8a78 100644 --- a/tests/baselines/reference/parserMemberVariableDeclaration5.js +++ b/tests/baselines/reference/parserMemberVariableDeclaration5.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserMissingLambdaOpenBrace1.js b/tests/baselines/reference/parserMissingLambdaOpenBrace1.js index 8280d8dc9b2..36b3d92fcd7 100644 --- a/tests/baselines/reference/parserMissingLambdaOpenBrace1.js +++ b/tests/baselines/reference/parserMissingLambdaOpenBrace1.js @@ -20,4 +20,4 @@ var C = (function () { }); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserModifierOnStatementInBlock1.errors.txt b/tests/baselines/reference/parserModifierOnStatementInBlock1.errors.txt index 973920e3584..c73c52ddd35 100644 --- a/tests/baselines/reference/parserModifierOnStatementInBlock1.errors.txt +++ b/tests/baselines/reference/parserModifierOnStatementInBlock1.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock1.ts(2,4): error TS1184: Modifiers cannot appear here. ==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock1.ts (2 errors) ==== export function foo() { ~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export var x = this; ~~~~~~ !!! error TS1184: Modifiers cannot appear here. diff --git a/tests/baselines/reference/parserModifierOnStatementInBlock3.errors.txt b/tests/baselines/reference/parserModifierOnStatementInBlock3.errors.txt index 7a3fb004225..a480a0c4330 100644 --- a/tests/baselines/reference/parserModifierOnStatementInBlock3.errors.txt +++ b/tests/baselines/reference/parserModifierOnStatementInBlock3.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock3.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock3.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock3.ts(2,4): error TS1184: Modifiers cannot appear here. ==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock3.ts (2 errors) ==== export function foo() { ~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export function bar() { ~~~~~~ !!! error TS1184: Modifiers cannot appear here. diff --git a/tests/baselines/reference/parserModule1.errors.txt b/tests/baselines/reference/parserModule1.errors.txt index 3a145493dd9..dc5c9c2dd35 100644 --- a/tests/baselines/reference/parserModule1.errors.txt +++ b/tests/baselines/reference/parserModule1.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModule1.ts(1,19): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModule1.ts(1,19): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModule1.ts (1 errors) ==== export module CompilerDiagnostics { ~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export var debug = false; export interface IDiagnosticWriter { Alert(output: string): void; diff --git a/tests/baselines/reference/parserParameterList1.js b/tests/baselines/reference/parserParameterList1.js index 86b0690728d..7fabad715e1 100644 --- a/tests/baselines/reference/parserParameterList1.js +++ b/tests/baselines/reference/parserParameterList1.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.F = function (A, B) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList10.js b/tests/baselines/reference/parserParameterList10.js index 7a4e8132868..93ed8c60e8b 100644 --- a/tests/baselines/reference/parserParameterList10.js +++ b/tests/baselines/reference/parserParameterList10.js @@ -14,4 +14,4 @@ var C = (function () { } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList16.errors.txt b/tests/baselines/reference/parserParameterList16.errors.txt index f4de32b0f91..4b30b386e6f 100644 --- a/tests/baselines/reference/parserParameterList16.errors.txt +++ b/tests/baselines/reference/parserParameterList16.errors.txt @@ -5,7 +5,7 @@ tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16. ==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts (2 errors) ==== class C { foo(a = 4); - ~~~~~~~~~~~ + ~~~ !!! error TS2394: Overload signature is not compatible with function implementation. ~~~~~ !!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation. diff --git a/tests/baselines/reference/parserParameterList16.js b/tests/baselines/reference/parserParameterList16.js index 50c58215478..9565cba53c1 100644 --- a/tests/baselines/reference/parserParameterList16.js +++ b/tests/baselines/reference/parserParameterList16.js @@ -10,4 +10,4 @@ var C = (function () { } C.prototype.foo = function (a, b) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList17.js b/tests/baselines/reference/parserParameterList17.js index 069c4975cdd..f38c9d062c9 100644 --- a/tests/baselines/reference/parserParameterList17.js +++ b/tests/baselines/reference/parserParameterList17.js @@ -9,4 +9,4 @@ var C = (function () { function C(a, b) { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList2.js b/tests/baselines/reference/parserParameterList2.js index c6a7f48c43e..8fcddb532dc 100644 --- a/tests/baselines/reference/parserParameterList2.js +++ b/tests/baselines/reference/parserParameterList2.js @@ -11,4 +11,4 @@ var C = (function () { if (A === void 0) { A = 0; } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList3.js b/tests/baselines/reference/parserParameterList3.js index 3992dc548ef..d2cf7c5c9f5 100644 --- a/tests/baselines/reference/parserParameterList3.js +++ b/tests/baselines/reference/parserParameterList3.js @@ -9,4 +9,4 @@ var C = (function () { } C.prototype.F = function (A, B) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList6.js b/tests/baselines/reference/parserParameterList6.js index a535bcfe1b0..4713cf91978 100644 --- a/tests/baselines/reference/parserParameterList6.js +++ b/tests/baselines/reference/parserParameterList6.js @@ -9,4 +9,4 @@ var C = (function () { function C(C) { } return C; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList7.js b/tests/baselines/reference/parserParameterList7.js index 5485d74315a..391d3158127 100644 --- a/tests/baselines/reference/parserParameterList7.js +++ b/tests/baselines/reference/parserParameterList7.js @@ -11,4 +11,4 @@ var C1 = (function () { this.p3 = p3; } // OK return C1; -})(); +}()); diff --git a/tests/baselines/reference/parserParameterList9.js b/tests/baselines/reference/parserParameterList9.js index 965b92a7ef6..ec08b48f572 100644 --- a/tests/baselines/reference/parserParameterList9.js +++ b/tests/baselines/reference/parserParameterList9.js @@ -14,4 +14,4 @@ var C = (function () { } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserRealSource1.js b/tests/baselines/reference/parserRealSource1.js index d19c2242f0b..d26e749a667 100644 --- a/tests/baselines/reference/parserRealSource1.js +++ b/tests/baselines/reference/parserRealSource1.js @@ -197,7 +197,7 @@ var TypeScript; NullLogger.prototype.log = function (s) { }; return NullLogger; - })(); + }()); TypeScript.NullLogger = NullLogger; var LoggerAdapter = (function () { function LoggerAdapter(logger) { @@ -217,7 +217,7 @@ var TypeScript; this.logger.log(s); }; return LoggerAdapter; - })(); + }()); TypeScript.LoggerAdapter = LoggerAdapter; var BufferedLogger = (function () { function BufferedLogger() { @@ -232,7 +232,7 @@ var TypeScript; this.logContents.push(s); }; return BufferedLogger; - })(); + }()); TypeScript.BufferedLogger = BufferedLogger; function timeFunction(logger, funcDescription, func) { var start = +new Date(); diff --git a/tests/baselines/reference/parserRealSource10.js b/tests/baselines/reference/parserRealSource10.js index f184db9173c..255cad3ca21 100644 --- a/tests/baselines/reference/parserRealSource10.js +++ b/tests/baselines/reference/parserRealSource10.js @@ -644,7 +644,7 @@ var TypeScript; this.ers = ers; } return TokenInfo; - })(); + }()); TypeScript.TokenInfo = TokenInfo; function setTokenInfo(tokenId, reservation, binopPrecedence, binopNodeType, unopPrecedence, unopNodeType, text, ers) { if (tokenId !== undefined) { @@ -790,7 +790,7 @@ var TypeScript; this.limChar = limChar; } return SavedToken; - })(); + }()); TypeScript.SavedToken = SavedToken; var Token = (function () { function Token(tokenId) { @@ -821,7 +821,7 @@ var TypeScript; return TokenClass.Punctuation; }; return Token; - })(); + }()); TypeScript.Token = Token; var NumberLiteralToken = (function (_super) { __extends(NumberLiteralToken, _super); @@ -837,7 +837,7 @@ var TypeScript; return TokenClass.Literal; }; return NumberLiteralToken; - })(Token); + }(Token)); TypeScript.NumberLiteralToken = NumberLiteralToken; var StringLiteralToken = (function (_super) { __extends(StringLiteralToken, _super); @@ -852,7 +852,7 @@ var TypeScript; return TokenClass.Literal; }; return StringLiteralToken; - })(Token); + }(Token)); TypeScript.StringLiteralToken = StringLiteralToken; var IdentifierToken = (function (_super) { __extends(IdentifierToken, _super); @@ -868,7 +868,7 @@ var TypeScript; return TokenClass.Identifier; }; return IdentifierToken; - })(Token); + }(Token)); TypeScript.IdentifierToken = IdentifierToken; var WhitespaceToken = (function (_super) { __extends(WhitespaceToken, _super); @@ -883,7 +883,7 @@ var TypeScript; return TokenClass.Whitespace; }; return WhitespaceToken; - })(Token); + }(Token)); TypeScript.WhitespaceToken = WhitespaceToken; var CommentToken = (function (_super) { __extends(CommentToken, _super); @@ -902,7 +902,7 @@ var TypeScript; return TokenClass.Comment; }; return CommentToken; - })(Token); + }(Token)); TypeScript.CommentToken = CommentToken; var RegularExpressionLiteralToken = (function (_super) { __extends(RegularExpressionLiteralToken, _super); @@ -917,7 +917,7 @@ var TypeScript; return TokenClass.Literal; }; return RegularExpressionLiteralToken; - })(Token); + }(Token)); TypeScript.RegularExpressionLiteralToken = RegularExpressionLiteralToken; // TODO: new with length TokenID.LimFixed TypeScript.staticTokens = new Token[]; diff --git a/tests/baselines/reference/parserRealSource11.js b/tests/baselines/reference/parserRealSource11.js index 4091eb290d1..0c1d1064255 100644 --- a/tests/baselines/reference/parserRealSource11.js +++ b/tests/baselines/reference/parserRealSource11.js @@ -2381,7 +2381,7 @@ var TypeScript; this.limChar = -1; // -1 = "undefined" or "compiler generated" } return ASTSpan; - })(); + }()); TypeScript.ASTSpan = ASTSpan; var AST = (function (_super) { __extends(AST, _super); @@ -2537,7 +2537,7 @@ var TypeScript; return resolved; }; return AST; - })(ASTSpan); + }(ASTSpan)); TypeScript.AST = AST; var IncompleteAST = (function (_super) { __extends(IncompleteAST, _super); @@ -2547,7 +2547,7 @@ var TypeScript; this.limChar = lim; } return IncompleteAST; - })(AST); + }(AST)); TypeScript.IncompleteAST = IncompleteAST; var ASTList = (function (_super) { __extends(ASTList, _super); @@ -2602,7 +2602,7 @@ var TypeScript; return this; }; return ASTList; - })(AST); + }(AST)); TypeScript.ASTList = ASTList; var Identifier = (function (_super) { __extends(Identifier, _super); @@ -2658,7 +2658,7 @@ var TypeScript; return new Identifier(token.getText(), token.hasEscapeSequence); }; return Identifier; - })(AST); + }(AST)); TypeScript.Identifier = Identifier; var MissingIdentifier = (function (_super) { __extends(MissingIdentifier, _super); @@ -2672,7 +2672,7 @@ var TypeScript; // Emit nothing for a missing ID }; return MissingIdentifier; - })(Identifier); + }(Identifier)); TypeScript.MissingIdentifier = MissingIdentifier; var Label = (function (_super) { __extends(Label, _super); @@ -2696,7 +2696,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return Label; - })(AST); + }(AST)); TypeScript.Label = Label; var Expression = (function (_super) { __extends(Expression, _super); @@ -2706,7 +2706,7 @@ var TypeScript; Expression.prototype.isExpression = function () { return true; }; Expression.prototype.isStatementOrExpression = function () { return true; }; return Expression; - })(AST); + }(AST)); TypeScript.Expression = Expression; var UnaryExpression = (function (_super) { __extends(UnaryExpression, _super); @@ -2850,7 +2850,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return UnaryExpression; - })(Expression); + }(Expression)); TypeScript.UnaryExpression = UnaryExpression; var CallExpression = (function (_super) { __extends(CallExpression, _super); @@ -2882,7 +2882,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return CallExpression; - })(Expression); + }(Expression)); TypeScript.CallExpression = CallExpression; var BinaryExpression = (function (_super) { __extends(BinaryExpression, _super); @@ -3034,7 +3034,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return BinaryExpression; - })(Expression); + }(Expression)); TypeScript.BinaryExpression = BinaryExpression; var ConditionalExpression = (function (_super) { __extends(ConditionalExpression, _super); @@ -3059,7 +3059,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return ConditionalExpression; - })(Expression); + }(Expression)); TypeScript.ConditionalExpression = ConditionalExpression; var NumberLiteral = (function (_super) { __extends(NumberLiteral, _super); @@ -3100,7 +3100,7 @@ var TypeScript; } }; return NumberLiteral; - })(Expression); + }(Expression)); TypeScript.NumberLiteral = NumberLiteral; var RegexLiteral = (function (_super) { __extends(RegexLiteral, _super); @@ -3120,7 +3120,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return RegexLiteral; - })(Expression); + }(Expression)); TypeScript.RegexLiteral = RegexLiteral; var StringLiteral = (function (_super) { __extends(StringLiteral, _super); @@ -3146,7 +3146,7 @@ var TypeScript; return this.text; }; return StringLiteral; - })(Expression); + }(Expression)); TypeScript.StringLiteral = StringLiteral; var ModuleElement = (function (_super) { __extends(ModuleElement, _super); @@ -3154,7 +3154,7 @@ var TypeScript; _super.call(this, nodeType); } return ModuleElement; - })(AST); + }(AST)); TypeScript.ModuleElement = ModuleElement; var ImportDeclaration = (function (_super) { __extends(ImportDeclaration, _super); @@ -3213,7 +3213,7 @@ var TypeScript; } }; return ImportDeclaration; - })(ModuleElement); + }(ModuleElement)); TypeScript.ImportDeclaration = ImportDeclaration; var BoundDecl = (function (_super) { __extends(BoundDecl, _super); @@ -3237,7 +3237,7 @@ var TypeScript; return this.treeViewLabel(); }; return BoundDecl; - })(AST); + }(AST)); TypeScript.BoundDecl = BoundDecl; var VarDecl = (function (_super) { __extends(VarDecl, _super); @@ -3254,7 +3254,7 @@ var TypeScript; return "var " + this.id.actualText; }; return VarDecl; - })(BoundDecl); + }(BoundDecl)); TypeScript.VarDecl = VarDecl; var ArgDecl = (function (_super) { __extends(ArgDecl, _super); @@ -3275,7 +3275,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return ArgDecl; - })(BoundDecl); + }(BoundDecl)); TypeScript.ArgDecl = ArgDecl; var internalId = 0; var FuncDecl = (function (_super) { @@ -3406,7 +3406,7 @@ var TypeScript; FuncDecl.prototype.isSignature = function () { return (this.fncFlags & FncFlags.Signature) != FncFlags.None; }; FuncDecl.prototype.hasStaticDeclarations = function () { return (!this.isConstructor && (this.statics.members.length > 0 || this.innerStaticFuncs.length > 0)); }; return FuncDecl; - })(AST); + }(AST)); TypeScript.FuncDecl = FuncDecl; var LocationInfo = (function () { function LocationInfo(filename, lineMap, unitIndex) { @@ -3415,7 +3415,7 @@ var TypeScript; this.unitIndex = unitIndex; } return LocationInfo; - })(); + }()); TypeScript.LocationInfo = LocationInfo; TypeScript.unknownLocationInfo = new LocationInfo("unknown", null, -1); var Script = (function (_super) { @@ -3485,7 +3485,7 @@ var TypeScript; } }; return Script; - })(FuncDecl); + }(FuncDecl)); TypeScript.Script = Script; var NamedDeclaration = (function (_super) { __extends(NamedDeclaration, _super); @@ -3497,7 +3497,7 @@ var TypeScript; this.rightCurlyCount = 0; } return NamedDeclaration; - })(ModuleElement); + }(ModuleElement)); TypeScript.NamedDeclaration = NamedDeclaration; var ModuleDeclaration = (function (_super) { __extends(ModuleDeclaration, _super); @@ -3532,7 +3532,7 @@ var TypeScript; } }; return ModuleDeclaration; - })(NamedDeclaration); + }(NamedDeclaration)); TypeScript.ModuleDeclaration = ModuleDeclaration; var TypeDeclaration = (function (_super) { __extends(TypeDeclaration, _super); @@ -3549,7 +3549,7 @@ var TypeScript; return hasFlag(this.varFlags, VarFlags.Ambient); }; return TypeDeclaration; - })(NamedDeclaration); + }(NamedDeclaration)); TypeScript.TypeDeclaration = TypeDeclaration; var ClassDeclaration = (function (_super) { __extends(ClassDeclaration, _super); @@ -3567,7 +3567,7 @@ var TypeScript; emitter.emitJavascriptClass(this); }; return ClassDeclaration; - })(TypeDeclaration); + }(TypeDeclaration)); TypeScript.ClassDeclaration = ClassDeclaration; var InterfaceDeclaration = (function (_super) { __extends(InterfaceDeclaration, _super); @@ -3580,7 +3580,7 @@ var TypeScript; InterfaceDeclaration.prototype.emit = function (emitter, tokenId, startLine) { }; return InterfaceDeclaration; - })(TypeDeclaration); + }(TypeDeclaration)); TypeScript.InterfaceDeclaration = InterfaceDeclaration; var Statement = (function (_super) { __extends(Statement, _super); @@ -3596,7 +3596,7 @@ var TypeScript; return this; }; return Statement; - })(ModuleElement); + }(ModuleElement)); TypeScript.Statement = Statement; var LabeledStatement = (function (_super) { __extends(LabeledStatement, _super); @@ -3630,7 +3630,7 @@ var TypeScript; beforeBB.addSuccessor(bb); }; return LabeledStatement; - })(Statement); + }(Statement)); TypeScript.LabeledStatement = LabeledStatement; var Block = (function (_super) { __extends(Block, _super); @@ -3685,7 +3685,7 @@ var TypeScript; return this; }; return Block; - })(Statement); + }(Statement)); TypeScript.Block = Block; var Jump = (function (_super) { __extends(Jump, _super); @@ -3736,7 +3736,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return Jump; - })(Statement); + }(Statement)); TypeScript.Jump = Jump; var WhileStatement = (function (_super) { __extends(WhileStatement, _super); @@ -3788,7 +3788,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return WhileStatement; - })(Statement); + }(Statement)); TypeScript.WhileStatement = WhileStatement; var DoWhileStatement = (function (_super) { __extends(DoWhileStatement, _super); @@ -3844,7 +3844,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return DoWhileStatement; - })(Statement); + }(Statement)); TypeScript.DoWhileStatement = DoWhileStatement; var IfStatement = (function (_super) { __extends(IfStatement, _super); @@ -3922,7 +3922,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return IfStatement; - })(Statement); + }(Statement)); TypeScript.IfStatement = IfStatement; var ReturnStatement = (function (_super) { __extends(ReturnStatement, _super); @@ -3953,7 +3953,7 @@ var TypeScript; return typeFlow.typeCheckReturn(this); }; return ReturnStatement; - })(Statement); + }(Statement)); TypeScript.ReturnStatement = ReturnStatement; var EndCode = (function (_super) { __extends(EndCode, _super); @@ -3961,7 +3961,7 @@ var TypeScript; _super.call(this, NodeType.EndCode); } return EndCode; - })(AST); + }(AST)); TypeScript.EndCode = EndCode; var ForInStatement = (function (_super) { __extends(ForInStatement, _super); @@ -4076,7 +4076,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return ForInStatement; - })(Statement); + }(Statement)); TypeScript.ForInStatement = ForInStatement; var ForStatement = (function (_super) { __extends(ForStatement, _super); @@ -4167,7 +4167,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return ForStatement; - })(Statement); + }(Statement)); TypeScript.ForStatement = ForStatement; var WithStatement = (function (_super) { __extends(WithStatement, _super); @@ -4193,7 +4193,7 @@ var TypeScript; return typeFlow.typeCheckWith(this); }; return WithStatement; - })(Statement); + }(Statement)); TypeScript.WithStatement = WithStatement; var SwitchStatement = (function (_super) { __extends(SwitchStatement, _super); @@ -4265,7 +4265,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return SwitchStatement; - })(Statement); + }(Statement)); TypeScript.SwitchStatement = SwitchStatement; var CaseStatement = (function (_super) { __extends(CaseStatement, _super); @@ -4318,7 +4318,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return CaseStatement; - })(Statement); + }(Statement)); TypeScript.CaseStatement = CaseStatement; var TypeReference = (function (_super) { __extends(TypeReference, _super); @@ -4348,7 +4348,7 @@ var TypeScript; return this; }; return TypeReference; - })(AST); + }(AST)); TypeScript.TypeReference = TypeReference; var TryFinally = (function (_super) { __extends(TryFinally, _super); @@ -4393,7 +4393,7 @@ var TypeScript; context.walker.options.goChildren = false; }; return TryFinally; - })(Statement); + }(Statement)); TypeScript.TryFinally = TryFinally; var TryCatch = (function (_super) { __extends(TryCatch, _super); @@ -4443,7 +4443,7 @@ var TypeScript; return this; }; return TryCatch; - })(Statement); + }(Statement)); TypeScript.TryCatch = TryCatch; var Try = (function (_super) { __extends(Try, _super); @@ -4471,7 +4471,7 @@ var TypeScript; context.noContinuation = false; }; return Try; - })(Statement); + }(Statement)); TypeScript.Try = Try; var Catch = (function (_super) { __extends(Catch, _super); @@ -4544,7 +4544,7 @@ var TypeScript; return this; }; return Catch; - })(Statement); + }(Statement)); TypeScript.Catch = Catch; var Finally = (function (_super) { __extends(Finally, _super); @@ -4572,7 +4572,7 @@ var TypeScript; return this; }; return Finally; - })(Statement); + }(Statement)); TypeScript.Finally = Finally; var Comment = (function (_super) { __extends(Comment, _super); @@ -4598,7 +4598,7 @@ var TypeScript; return this.text; }; return Comment; - })(AST); + }(AST)); TypeScript.Comment = Comment; var DebuggerStatement = (function (_super) { __extends(DebuggerStatement, _super); @@ -4613,6 +4613,6 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); }; return DebuggerStatement; - })(Statement); + }(Statement)); TypeScript.DebuggerStatement = DebuggerStatement; })(TypeScript || (TypeScript = {})); diff --git a/tests/baselines/reference/parserRealSource12.js b/tests/baselines/reference/parserRealSource12.js index 831c121ab08..fccb1fa45e0 100644 --- a/tests/baselines/reference/parserRealSource12.js +++ b/tests/baselines/reference/parserRealSource12.js @@ -548,7 +548,7 @@ var TypeScript; this.goNextSibling = !stop; }; return AstWalkOptions; - })(); + }()); TypeScript.AstWalkOptions = AstWalkOptions; var AstWalker = (function () { function AstWalker(childrenWalkers, pre, post, options, state) { @@ -586,7 +586,7 @@ var TypeScript; } }; return AstWalker; - })(); + }()); var AstWalkerFactory = (function () { function AstWalkerFactory() { this.childrenWalkers = []; @@ -720,7 +720,7 @@ var TypeScript; } }; return AstWalkerFactory; - })(); + }()); TypeScript.AstWalkerFactory = AstWalkerFactory; var globalAstWalkerFactory; function getAstWalkerFactory() { diff --git a/tests/baselines/reference/parserRealSource14.js b/tests/baselines/reference/parserRealSource14.js index 4312cb38517..c31a9dd6c72 100644 --- a/tests/baselines/reference/parserRealSource14.js +++ b/tests/baselines/reference/parserRealSource14.js @@ -940,7 +940,7 @@ var TypeScript; this.asts[this.top - 0].isStatementBlock === false; }; return AstPath; - })(); + }()); TypeScript.AstPath = AstPath; function isValidAstNode(ast) { if (ast === null) @@ -955,7 +955,7 @@ var TypeScript; this.path = new TypeScript.AstPath(); } return AstPathContext; - })(); + }()); TypeScript.AstPathContext = AstPathContext; (function (GetAstPathOptions) { GetAstPathOptions[GetAstPathOptions["Default"] = 0] = "Default"; diff --git a/tests/baselines/reference/parserRealSource4.js b/tests/baselines/reference/parserRealSource4.js index 563e9e92a08..c06bd191fb5 100644 --- a/tests/baselines/reference/parserRealSource4.js +++ b/tests/baselines/reference/parserRealSource4.js @@ -314,7 +314,7 @@ var TypeScript; this["constructor"] = undefined; } return BlockIntrinsics; - })(); + }()); TypeScript.BlockIntrinsics = BlockIntrinsics; var StringHashTable = (function () { function StringHashTable() { @@ -388,7 +388,7 @@ var TypeScript; } }; return StringHashTable; - })(); + }()); TypeScript.StringHashTable = StringHashTable; // The resident table is expected to reference the same table object, whereas the // transientTable may reference different objects over time @@ -441,7 +441,7 @@ var TypeScript; } }; return DualStringHashTable; - })(); + }()); TypeScript.DualStringHashTable = DualStringHashTable; function numberHashFn(key) { var c2 = 0x27d4eb2d; // a prime or an odd constant @@ -463,7 +463,7 @@ var TypeScript; this.data = data; } return HashEntry; - })(); + }()); TypeScript.HashEntry = HashEntry; var HashTable = (function () { function HashTable(size, hashFn, equalsFn) { @@ -526,7 +526,7 @@ var TypeScript; return (null); }; return HashTable; - })(); + }()); TypeScript.HashTable = HashTable; // Simple Hash table with list of keys and values matching each other at the given index var SimpleHashTable = (function () { @@ -559,6 +559,6 @@ var TypeScript; return true; }; return SimpleHashTable; - })(); + }()); TypeScript.SimpleHashTable = SimpleHashTable; })(TypeScript || (TypeScript = {})); diff --git a/tests/baselines/reference/parserRealSource5.js b/tests/baselines/reference/parserRealSource5.js index 9c64899fab7..4f4db59746e 100644 --- a/tests/baselines/reference/parserRealSource5.js +++ b/tests/baselines/reference/parserRealSource5.js @@ -111,7 +111,7 @@ var TypeScript; this.builder = ""; }; return PrintContext; - })(); + }()); TypeScript.PrintContext = PrintContext; function prePrintAST(ast, parent, walker) { var pc = walker.state; diff --git a/tests/baselines/reference/parserRealSource6.js b/tests/baselines/reference/parserRealSource6.js index d65207b8c77..c7dcc5e497b 100644 --- a/tests/baselines/reference/parserRealSource6.js +++ b/tests/baselines/reference/parserRealSource6.js @@ -234,7 +234,7 @@ var TypeScript; this.script = null; } return TypeCollectionContext; - })(); + }()); TypeScript.TypeCollectionContext = TypeCollectionContext; var MemberScopeContext = (function () { function MemberScopeContext(flow, pos, matchFlag) { @@ -246,7 +246,7 @@ var TypeScript; this.options = new AstWalkOptions(); } return MemberScopeContext; - })(); + }()); TypeScript.MemberScopeContext = MemberScopeContext; var EnclosingScopeContext = (function () { function EnclosingScopeContext(logger, script, text, pos, isMemberCompletion) { @@ -293,7 +293,7 @@ var TypeScript; return this.scriptFragment; }; return EnclosingScopeContext; - })(); + }()); TypeScript.EnclosingScopeContext = EnclosingScopeContext; function preFindMemberScope(ast, parent, walker) { var memScope = walker.state; diff --git a/tests/baselines/reference/parserRealSource7.js b/tests/baselines/reference/parserRealSource7.js index 5073c33febd..edc290c35d8 100644 --- a/tests/baselines/reference/parserRealSource7.js +++ b/tests/baselines/reference/parserRealSource7.js @@ -845,7 +845,7 @@ var TypeScript; this.exceptionBlock = -1; } return Continuation; - })(); + }()); TypeScript.Continuation = Continuation; function getBaseTypeLinks(bases, baseTypeLinks) { if (bases) { diff --git a/tests/baselines/reference/parserRealSource8.js b/tests/baselines/reference/parserRealSource8.js index 8a667ad6dbe..d23297954be 100644 --- a/tests/baselines/reference/parserRealSource8.js +++ b/tests/baselines/reference/parserRealSource8.js @@ -479,7 +479,7 @@ var TypeScript; this.modDeclChain = modDeclChain; } return AssignScopeContext; - })(); + }()); TypeScript.AssignScopeContext = AssignScopeContext; function pushAssignScope(scope, context, type, classType, fnc) { var chain = new ScopeChain(null, context.scopeChain, scope); @@ -525,7 +525,7 @@ var TypeScript; } }; return ScopeSearchFilter; - })(); + }()); TypeScript.ScopeSearchFilter = ScopeSearchFilter; TypeScript.instanceFilter = new ScopeSearchFilter(instanceCompare, instanceFilterStop); function preAssignModuleScopes(ast, context) { diff --git a/tests/baselines/reference/parserRealSource9.js b/tests/baselines/reference/parserRealSource9.js index dba28c4f295..e278f88c8e9 100644 --- a/tests/baselines/reference/parserRealSource9.js +++ b/tests/baselines/reference/parserRealSource9.js @@ -396,6 +396,6 @@ var TypeScript; }, this); }; return Binder; - })(); + }()); TypeScript.Binder = Binder; })(TypeScript || (TypeScript = {})); diff --git a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.js b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.js index 0cbae53aac3..065605fe9d4 100644 --- a/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.js +++ b/tests/baselines/reference/parserSetAccessorWithTypeAnnotation1.js @@ -15,4 +15,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserSetAccessorWithTypeParameters1.js b/tests/baselines/reference/parserSetAccessorWithTypeParameters1.js index 651640c6466..ca07292ee54 100644 --- a/tests/baselines/reference/parserSetAccessorWithTypeParameters1.js +++ b/tests/baselines/reference/parserSetAccessorWithTypeParameters1.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/parserSuperExpression1.js b/tests/baselines/reference/parserSuperExpression1.js index 0d219afad37..02bd49653fe 100644 --- a/tests/baselines/reference/parserSuperExpression1.js +++ b/tests/baselines/reference/parserSuperExpression1.js @@ -21,7 +21,7 @@ var C = (function () { _super.prototype.foo.call(this); }; return C; -})(); +}()); var M1; (function (M1) { var M2; @@ -33,6 +33,6 @@ var M1; _super.prototype.foo.call(this); }; return C; - })(); + }()); })(M2 = M1.M2 || (M1.M2 = {})); })(M1 || (M1 = {})); diff --git a/tests/baselines/reference/parserSuperExpression2.js b/tests/baselines/reference/parserSuperExpression2.js index eb3c2c697e6..ebd43ad3180 100644 --- a/tests/baselines/reference/parserSuperExpression2.js +++ b/tests/baselines/reference/parserSuperExpression2.js @@ -13,4 +13,4 @@ var C = (function () { _super.prototype..call(this, 0); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserSuperExpression3.js b/tests/baselines/reference/parserSuperExpression3.js index b8ae4257c79..f311efcd0f6 100644 --- a/tests/baselines/reference/parserSuperExpression3.js +++ b/tests/baselines/reference/parserSuperExpression3.js @@ -13,4 +13,4 @@ var C = (function () { this.super(0); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/parserSuperExpression4.js b/tests/baselines/reference/parserSuperExpression4.js index 59ba63bb2cf..97f6ad26c4b 100644 --- a/tests/baselines/reference/parserSuperExpression4.js +++ b/tests/baselines/reference/parserSuperExpression4.js @@ -21,7 +21,7 @@ var C = (function () { _super.prototype.foo = 1; }; return C; -})(); +}()); var M1; (function (M1) { var M2; @@ -33,6 +33,6 @@ var M1; _super.prototype.foo = 1; }; return C; - })(); + }()); })(M2 = M1.M2 || (M1.M2 = {})); })(M1 || (M1 = {})); diff --git a/tests/baselines/reference/parserUnicode3.js b/tests/baselines/reference/parserUnicode3.js index 6d4daa539ee..30652e90cfa 100644 --- a/tests/baselines/reference/parserUnicode3.js +++ b/tests/baselines/reference/parserUnicode3.js @@ -7,4 +7,4 @@ var 剩下 = (function () { function 剩下() { } return 剩下; -})(); +}()); diff --git a/tests/baselines/reference/parserharness.js b/tests/baselines/reference/parserharness.js index 296aae05fad..6b38a8c9e4c 100644 --- a/tests/baselines/reference/parserharness.js +++ b/tests/baselines/reference/parserharness.js @@ -2282,7 +2282,7 @@ var Harness; Logger.prototype.comment = function (comment) { }; Logger.prototype.verify = function (test, passed, actual, expected, message) { }; return Logger; - })(); + }()); Harness.Logger = Logger; // Logger-related functions var loggers = []; @@ -2375,7 +2375,7 @@ var Harness; Runnable.currentStack = []; Runnable.errorHandlerStack = []; return Runnable; - })(); + }()); Harness.Runnable = Runnable; var TestCase = (function (_super) { __extends(TestCase, _super); @@ -2409,7 +2409,7 @@ var Harness; } }; return TestCase; - })(Runnable); + }(Runnable)); Harness.TestCase = TestCase; var Scenario = (function (_super) { __extends(Scenario, _super); @@ -2464,7 +2464,7 @@ var Harness; done(); }; return Scenario; - })(Runnable); + }(Runnable)); Harness.Scenario = Scenario; var Run = (function (_super) { __extends(Run, _super); @@ -2495,7 +2495,7 @@ var Harness; emitLog('end'); }; return Run; - })(Runnable); + }(Runnable)); Harness.Run = Run; // Performance test var Perf; @@ -2530,7 +2530,7 @@ var Harness; this.time = (Clock.now() - this.startTime) / Clock.resolution * 1000; }; return Timer; - })(); + }()); Perf.Timer = Timer; var Dataset = (function () { function Dataset() { @@ -2573,7 +2573,7 @@ var Harness; return Math.sqrt(sumOfSquares / this.data.length); }; return Dataset; - })(); + }()); Perf.Dataset = Dataset; // Base benchmark class with some defaults. var Benchmark = (function () { @@ -2592,7 +2592,7 @@ var Harness; this.results[name].add(timing); }; return Benchmark; - })(); + }()); Perf.Benchmark = Benchmark; Perf.benchmarks = []; var timeFunction; @@ -2673,7 +2673,7 @@ var Harness; this.currentLine = ""; }; return WriterAggregator; - })(); + }()); Compiler.WriterAggregator = WriterAggregator; /** Mimics having multiple files, later concatenated to a single file. */ var EmitterIOHost = (function () { @@ -2709,7 +2709,7 @@ var Harness; return result; }; return EmitterIOHost; - })(); + }()); Compiler.EmitterIOHost = EmitterIOHost; var libFolder = global['WScript'] ? TypeScript.filePath(global['WScript'].ScriptFullName) : (__dirname + '/'); Compiler.libText = IO ? IO.readFile(libFolder + "lib.d.ts") : ''; @@ -2873,7 +2873,7 @@ var Harness; }); }; return Type; - })(); + }()); Compiler.Type = Type; var TypeFactory = (function () { function TypeFactory() { @@ -3014,7 +3014,7 @@ var Harness; }); }; return TypeFactory; - })(); + }()); Compiler.TypeFactory = TypeFactory; /** Generates a .d.ts file for the given code * @param verifyNoDeclFile pass true when the given code should generate no decl file, false otherwise @@ -3110,7 +3110,7 @@ var Harness; return false; }; return CompilerResult; - })(); + }()); Compiler.CompilerResult = CompilerResult; // Compiler Error. var CompilerError = (function () { @@ -3124,7 +3124,7 @@ var Harness; return this.file + "(" + this.line + "," + this.column + "): " + this.message; }; return CompilerError; - })(); + }()); Compiler.CompilerError = CompilerError; /** Create a new instance of the compiler with default settings and lib.d.ts, then typecheck */ function recreate() { @@ -3452,7 +3452,7 @@ var Harness; return new TypeScript.ScriptEditRange(minDistFromStart, entries[0].length - minDistFromEnd, aggDelta); }; return ScriptInfo; - })(); + }()); Harness.ScriptInfo = ScriptInfo; var TypeScriptLS = (function () { function TypeScriptLS() { @@ -3654,7 +3654,7 @@ var Harness; return JSON.stringify({ usePullLanguageService: Harness.usePull }); }; return TypeScriptLS; - })(); + }()); Harness.TypeScriptLS = TypeScriptLS; // Describe/it definitions function describe(description, block) { diff --git a/tests/baselines/reference/parserindenter.js b/tests/baselines/reference/parserindenter.js index a60eadc66a1..8beb2393748 100644 --- a/tests/baselines/reference/parserindenter.js +++ b/tests/baselines/reference/parserindenter.js @@ -1340,6 +1340,6 @@ var Formatting; this.snapshot.GetLineNumberFromPosition(token.Span.endPosition()) > this.snapshot.GetLineNumberFromPosition(token.Span.startPosition()); }; return Indenter; - })(); + }()); Formatting.Indenter = Indenter; })(Formatting || (Formatting = {})); diff --git a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js index 59129f91b97..de5777feca8 100644 --- a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js +++ b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js @@ -12,4 +12,4 @@ var C = (function () { C.prototype.f = function () { }; ; return C; -})(); +}()); diff --git a/tests/baselines/reference/partiallyAmbientClodule.js b/tests/baselines/reference/partiallyAmbientClodule.js index 52077a4b4ad..f721d032f34 100644 --- a/tests/baselines/reference/partiallyAmbientClodule.js +++ b/tests/baselines/reference/partiallyAmbientClodule.js @@ -9,4 +9,4 @@ var foo = (function () { function foo() { } return foo; -})(); // Legal, because module is ambient +}()); // Legal, because module is ambient diff --git a/tests/baselines/reference/pinnedComments1.js b/tests/baselines/reference/pinnedComments1.js index 9ab2a147e6a..18bdcc982b0 100644 --- a/tests/baselines/reference/pinnedComments1.js +++ b/tests/baselines/reference/pinnedComments1.js @@ -18,4 +18,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/plusOperatorWithAnyOtherType.js b/tests/baselines/reference/plusOperatorWithAnyOtherType.js index 0356bad198e..6c24aa68806 100644 --- a/tests/baselines/reference/plusOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/plusOperatorWithAnyOtherType.js @@ -75,7 +75,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/plusOperatorWithBooleanType.js b/tests/baselines/reference/plusOperatorWithBooleanType.js index d48066707aa..1bd72bb6ea7 100644 --- a/tests/baselines/reference/plusOperatorWithBooleanType.js +++ b/tests/baselines/reference/plusOperatorWithBooleanType.js @@ -44,7 +44,7 @@ var A = (function () { } A.foo = function () { return false; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/plusOperatorWithNumberType.js b/tests/baselines/reference/plusOperatorWithNumberType.js index 8da631aa7a8..377577194bb 100644 --- a/tests/baselines/reference/plusOperatorWithNumberType.js +++ b/tests/baselines/reference/plusOperatorWithNumberType.js @@ -51,7 +51,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/plusOperatorWithStringType.js b/tests/baselines/reference/plusOperatorWithStringType.js index dbe7e23a3d6..19d143eeb8e 100644 --- a/tests/baselines/reference/plusOperatorWithStringType.js +++ b/tests/baselines/reference/plusOperatorWithStringType.js @@ -50,7 +50,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/prespecializedGenericMembers1.js b/tests/baselines/reference/prespecializedGenericMembers1.js index c53a6f2ee69..dd6bd2a2dc6 100644 --- a/tests/baselines/reference/prespecializedGenericMembers1.js +++ b/tests/baselines/reference/prespecializedGenericMembers1.js @@ -26,13 +26,13 @@ var Cat = (function () { function Cat() { } return Cat; -})(); +}()); exports.Cat = Cat; var CatBag = (function () { function CatBag(cats) { } return CatBag; -})(); +}()); exports.CatBag = CatBag; var cat = new Cat(); var catThing = { diff --git a/tests/baselines/reference/primitiveConstraints1.errors.txt b/tests/baselines/reference/primitiveConstraints1.errors.txt index 55d1f24f4ba..fb9591bfc31 100644 --- a/tests/baselines/reference/primitiveConstraints1.errors.txt +++ b/tests/baselines/reference/primitiveConstraints1.errors.txt @@ -1,15 +1,15 @@ -tests/cases/compiler/primitiveConstraints1.ts(1,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/primitiveConstraints1.ts(4,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/compiler/primitiveConstraints1.ts(2,6): error TS2344: Type 'string' does not satisfy the constraint 'number'. +tests/cases/compiler/primitiveConstraints1.ts(5,14): error TS2344: Type 'string' does not satisfy the constraint 'number'. ==== tests/cases/compiler/primitiveConstraints1.ts (2 errors) ==== function foo1(t: T, u: U) { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo1('hm', 1); // no error + ~~~~~~ +!!! error TS2344: Type 'string' does not satisfy the constraint 'number'. function foo2(t: T, u: U) { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo2(1, 'hm'); // error + ~~~~~~ +!!! error TS2344: Type 'string' does not satisfy the constraint 'number'. \ No newline at end of file diff --git a/tests/baselines/reference/primitiveConstraints2.js b/tests/baselines/reference/primitiveConstraints2.js index 4ce8480ae0e..c8c49b2a164 100644 --- a/tests/baselines/reference/primitiveConstraints2.js +++ b/tests/baselines/reference/primitiveConstraints2.js @@ -17,7 +17,7 @@ var C = (function () { return null; }; return C; -})(); +}()); var x = new C(); x.bar2(2, ""); // should error x.bar2(2, ""); // should error diff --git a/tests/baselines/reference/primitiveMembers.js b/tests/baselines/reference/primitiveMembers.js index 60ae4b79dec..caf41fe2708 100644 --- a/tests/baselines/reference/primitiveMembers.js +++ b/tests/baselines/reference/primitiveMembers.js @@ -59,7 +59,7 @@ var baz = (function () { baz.prototype.bar = function () { }; ; return baz; -})(); +}()); var foo = (function (_super) { __extends(foo, _super); function foo() { @@ -68,4 +68,4 @@ var foo = (function (_super) { foo.prototype.bar = function () { return undefined; }; ; return foo; -})(baz); +}(baz)); diff --git a/tests/baselines/reference/primitiveTypeAsClassName.js b/tests/baselines/reference/primitiveTypeAsClassName.js index 5890e53d144..f68d64f9444 100644 --- a/tests/baselines/reference/primitiveTypeAsClassName.js +++ b/tests/baselines/reference/primitiveTypeAsClassName.js @@ -6,4 +6,4 @@ var any = (function () { function any() { } return any; -})(); +}()); diff --git a/tests/baselines/reference/privacyAccessorDeclFile.js b/tests/baselines/reference/privacyAccessorDeclFile.js index efd96c4442b..6fed8b8f082 100644 --- a/tests/baselines/reference/privacyAccessorDeclFile.js +++ b/tests/baselines/reference/privacyAccessorDeclFile.js @@ -1065,12 +1065,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithWithPrivateGetAccessorTypes = (function () { function publicClassWithWithPrivateGetAccessorTypes() { @@ -1132,7 +1132,7 @@ var publicClassWithWithPrivateGetAccessorTypes = (function () { configurable: true }); return publicClassWithWithPrivateGetAccessorTypes; -})(); +}()); exports.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; var publicClassWithWithPublicGetAccessorTypes = (function () { function publicClassWithWithPublicGetAccessorTypes() { @@ -1194,7 +1194,7 @@ var publicClassWithWithPublicGetAccessorTypes = (function () { configurable: true }); return publicClassWithWithPublicGetAccessorTypes; -})(); +}()); exports.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; var privateClassWithWithPrivateGetAccessorTypes = (function () { function privateClassWithWithPrivateGetAccessorTypes() { @@ -1256,7 +1256,7 @@ var privateClassWithWithPrivateGetAccessorTypes = (function () { configurable: true }); return privateClassWithWithPrivateGetAccessorTypes; -})(); +}()); var privateClassWithWithPublicGetAccessorTypes = (function () { function privateClassWithWithPublicGetAccessorTypes() { } @@ -1317,7 +1317,7 @@ var privateClassWithWithPublicGetAccessorTypes = (function () { configurable: true }); return privateClassWithWithPublicGetAccessorTypes; -})(); +}()); var publicClassWithWithPrivateSetAccessorTypes = (function () { function publicClassWithWithPrivateSetAccessorTypes() { } @@ -1346,7 +1346,7 @@ var publicClassWithWithPrivateSetAccessorTypes = (function () { configurable: true }); return publicClassWithWithPrivateSetAccessorTypes; -})(); +}()); exports.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; var publicClassWithWithPublicSetAccessorTypes = (function () { function publicClassWithWithPublicSetAccessorTypes() { @@ -1376,7 +1376,7 @@ var publicClassWithWithPublicSetAccessorTypes = (function () { configurable: true }); return publicClassWithWithPublicSetAccessorTypes; -})(); +}()); exports.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; var privateClassWithWithPrivateSetAccessorTypes = (function () { function privateClassWithWithPrivateSetAccessorTypes() { @@ -1406,7 +1406,7 @@ var privateClassWithWithPrivateSetAccessorTypes = (function () { configurable: true }); return privateClassWithWithPrivateSetAccessorTypes; -})(); +}()); var privateClassWithWithPublicSetAccessorTypes = (function () { function privateClassWithWithPublicSetAccessorTypes() { } @@ -1435,7 +1435,7 @@ var privateClassWithWithPublicSetAccessorTypes = (function () { configurable: true }); return privateClassWithWithPublicSetAccessorTypes; -})(); +}()); var publicClassWithPrivateModuleGetAccessorTypes = (function () { function publicClassWithPrivateModuleGetAccessorTypes() { } @@ -1468,7 +1468,7 @@ var publicClassWithPrivateModuleGetAccessorTypes = (function () { configurable: true }); return publicClassWithPrivateModuleGetAccessorTypes; -})(); +}()); exports.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; var publicClassWithPrivateModuleSetAccessorTypes = (function () { function publicClassWithPrivateModuleSetAccessorTypes() { @@ -1486,7 +1486,7 @@ var publicClassWithPrivateModuleSetAccessorTypes = (function () { configurable: true }); return publicClassWithPrivateModuleSetAccessorTypes; -})(); +}()); exports.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; var privateClassWithPrivateModuleGetAccessorTypes = (function () { function privateClassWithPrivateModuleGetAccessorTypes() { @@ -1520,7 +1520,7 @@ var privateClassWithPrivateModuleGetAccessorTypes = (function () { configurable: true }); return privateClassWithPrivateModuleGetAccessorTypes; -})(); +}()); var privateClassWithPrivateModuleSetAccessorTypes = (function () { function privateClassWithPrivateModuleSetAccessorTypes() { } @@ -1537,19 +1537,19 @@ var privateClassWithPrivateModuleSetAccessorTypes = (function () { configurable: true }); return privateClassWithPrivateModuleSetAccessorTypes; -})(); +}()); var publicModule; (function (publicModule) { var privateClass = (function () { function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModule.publicClass = publicClass; var publicClassWithWithPrivateGetAccessorTypes = (function () { function publicClassWithWithPrivateGetAccessorTypes() { @@ -1611,7 +1611,7 @@ var publicModule; configurable: true }); return publicClassWithWithPrivateGetAccessorTypes; - })(); + }()); publicModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; var publicClassWithWithPublicGetAccessorTypes = (function () { function publicClassWithWithPublicGetAccessorTypes() { @@ -1673,7 +1673,7 @@ var publicModule; configurable: true }); return publicClassWithWithPublicGetAccessorTypes; - })(); + }()); publicModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; var privateClassWithWithPrivateGetAccessorTypes = (function () { function privateClassWithWithPrivateGetAccessorTypes() { @@ -1735,7 +1735,7 @@ var publicModule; configurable: true }); return privateClassWithWithPrivateGetAccessorTypes; - })(); + }()); var privateClassWithWithPublicGetAccessorTypes = (function () { function privateClassWithWithPublicGetAccessorTypes() { } @@ -1796,7 +1796,7 @@ var publicModule; configurable: true }); return privateClassWithWithPublicGetAccessorTypes; - })(); + }()); var publicClassWithWithPrivateSetAccessorTypes = (function () { function publicClassWithWithPrivateSetAccessorTypes() { } @@ -1825,7 +1825,7 @@ var publicModule; configurable: true }); return publicClassWithWithPrivateSetAccessorTypes; - })(); + }()); publicModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; var publicClassWithWithPublicSetAccessorTypes = (function () { function publicClassWithWithPublicSetAccessorTypes() { @@ -1855,7 +1855,7 @@ var publicModule; configurable: true }); return publicClassWithWithPublicSetAccessorTypes; - })(); + }()); publicModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; var privateClassWithWithPrivateSetAccessorTypes = (function () { function privateClassWithWithPrivateSetAccessorTypes() { @@ -1885,7 +1885,7 @@ var publicModule; configurable: true }); return privateClassWithWithPrivateSetAccessorTypes; - })(); + }()); var privateClassWithWithPublicSetAccessorTypes = (function () { function privateClassWithWithPublicSetAccessorTypes() { } @@ -1914,7 +1914,7 @@ var publicModule; configurable: true }); return privateClassWithWithPublicSetAccessorTypes; - })(); + }()); var publicClassWithPrivateModuleGetAccessorTypes = (function () { function publicClassWithPrivateModuleGetAccessorTypes() { } @@ -1947,7 +1947,7 @@ var publicModule; configurable: true }); return publicClassWithPrivateModuleGetAccessorTypes; - })(); + }()); publicModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; var publicClassWithPrivateModuleSetAccessorTypes = (function () { function publicClassWithPrivateModuleSetAccessorTypes() { @@ -1965,7 +1965,7 @@ var publicModule; configurable: true }); return publicClassWithPrivateModuleSetAccessorTypes; - })(); + }()); publicModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; var privateClassWithPrivateModuleGetAccessorTypes = (function () { function privateClassWithPrivateModuleGetAccessorTypes() { @@ -1999,7 +1999,7 @@ var publicModule; configurable: true }); return privateClassWithPrivateModuleGetAccessorTypes; - })(); + }()); var privateClassWithPrivateModuleSetAccessorTypes = (function () { function privateClassWithPrivateModuleSetAccessorTypes() { } @@ -2016,7 +2016,7 @@ var publicModule; configurable: true }); return privateClassWithPrivateModuleSetAccessorTypes; - })(); + }()); })(publicModule = exports.publicModule || (exports.publicModule = {})); var privateModule; (function (privateModule) { @@ -2024,12 +2024,12 @@ var privateModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivateGetAccessorTypes = (function () { function publicClassWithWithPrivateGetAccessorTypes() { @@ -2091,7 +2091,7 @@ var privateModule; configurable: true }); return publicClassWithWithPrivateGetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; var publicClassWithWithPublicGetAccessorTypes = (function () { function publicClassWithWithPublicGetAccessorTypes() { @@ -2153,7 +2153,7 @@ var privateModule; configurable: true }); return publicClassWithWithPublicGetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; var privateClassWithWithPrivateGetAccessorTypes = (function () { function privateClassWithWithPrivateGetAccessorTypes() { @@ -2215,7 +2215,7 @@ var privateModule; configurable: true }); return privateClassWithWithPrivateGetAccessorTypes; - })(); + }()); var privateClassWithWithPublicGetAccessorTypes = (function () { function privateClassWithWithPublicGetAccessorTypes() { } @@ -2276,7 +2276,7 @@ var privateModule; configurable: true }); return privateClassWithWithPublicGetAccessorTypes; - })(); + }()); var publicClassWithWithPrivateSetAccessorTypes = (function () { function publicClassWithWithPrivateSetAccessorTypes() { } @@ -2305,7 +2305,7 @@ var privateModule; configurable: true }); return publicClassWithWithPrivateSetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; var publicClassWithWithPublicSetAccessorTypes = (function () { function publicClassWithWithPublicSetAccessorTypes() { @@ -2335,7 +2335,7 @@ var privateModule; configurable: true }); return publicClassWithWithPublicSetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; var privateClassWithWithPrivateSetAccessorTypes = (function () { function privateClassWithWithPrivateSetAccessorTypes() { @@ -2365,7 +2365,7 @@ var privateModule; configurable: true }); return privateClassWithWithPrivateSetAccessorTypes; - })(); + }()); var privateClassWithWithPublicSetAccessorTypes = (function () { function privateClassWithWithPublicSetAccessorTypes() { } @@ -2394,7 +2394,7 @@ var privateModule; configurable: true }); return privateClassWithWithPublicSetAccessorTypes; - })(); + }()); var publicClassWithPrivateModuleGetAccessorTypes = (function () { function publicClassWithPrivateModuleGetAccessorTypes() { } @@ -2427,7 +2427,7 @@ var privateModule; configurable: true }); return publicClassWithPrivateModuleGetAccessorTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; var publicClassWithPrivateModuleSetAccessorTypes = (function () { function publicClassWithPrivateModuleSetAccessorTypes() { @@ -2445,7 +2445,7 @@ var privateModule; configurable: true }); return publicClassWithPrivateModuleSetAccessorTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; var privateClassWithPrivateModuleGetAccessorTypes = (function () { function privateClassWithPrivateModuleGetAccessorTypes() { @@ -2479,7 +2479,7 @@ var privateModule; configurable: true }); return privateClassWithPrivateModuleGetAccessorTypes; - })(); + }()); var privateClassWithPrivateModuleSetAccessorTypes = (function () { function privateClassWithPrivateModuleSetAccessorTypes() { } @@ -2496,14 +2496,14 @@ var privateModule; configurable: true }); return privateClassWithPrivateModuleSetAccessorTypes; - })(); + }()); })(privateModule || (privateModule = {})); //// [privacyAccessorDeclFile_GlobalFile.js] var publicClassInGlobal = (function () { function publicClassInGlobal() { } return publicClassInGlobal; -})(); +}()); var publicClassInGlobalWithPublicGetAccessorTypes = (function () { function publicClassInGlobalWithPublicGetAccessorTypes() { } @@ -2564,7 +2564,7 @@ var publicClassInGlobalWithPublicGetAccessorTypes = (function () { configurable: true }); return publicClassInGlobalWithPublicGetAccessorTypes; -})(); +}()); var publicClassInGlobalWithWithPublicSetAccessorTypes = (function () { function publicClassInGlobalWithWithPublicSetAccessorTypes() { } @@ -2593,19 +2593,19 @@ var publicClassInGlobalWithWithPublicSetAccessorTypes = (function () { configurable: true }); return publicClassInGlobalWithWithPublicSetAccessorTypes; -})(); +}()); var publicModuleInGlobal; (function (publicModuleInGlobal) { var privateClass = (function () { function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModuleInGlobal.publicClass = publicClass; var privateModule; (function (privateModule) { @@ -2613,12 +2613,12 @@ var publicModuleInGlobal; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivateGetAccessorTypes = (function () { function publicClassWithWithPrivateGetAccessorTypes() { @@ -2680,7 +2680,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPrivateGetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; var publicClassWithWithPublicGetAccessorTypes = (function () { function publicClassWithWithPublicGetAccessorTypes() { @@ -2742,7 +2742,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPublicGetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; var privateClassWithWithPrivateGetAccessorTypes = (function () { function privateClassWithWithPrivateGetAccessorTypes() { @@ -2804,7 +2804,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPrivateGetAccessorTypes; - })(); + }()); var privateClassWithWithPublicGetAccessorTypes = (function () { function privateClassWithWithPublicGetAccessorTypes() { } @@ -2865,7 +2865,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPublicGetAccessorTypes; - })(); + }()); var publicClassWithWithPrivateSetAccessorTypes = (function () { function publicClassWithWithPrivateSetAccessorTypes() { } @@ -2894,7 +2894,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPrivateSetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; var publicClassWithWithPublicSetAccessorTypes = (function () { function publicClassWithWithPublicSetAccessorTypes() { @@ -2924,7 +2924,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPublicSetAccessorTypes; - })(); + }()); privateModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; var privateClassWithWithPrivateSetAccessorTypes = (function () { function privateClassWithWithPrivateSetAccessorTypes() { @@ -2954,7 +2954,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPrivateSetAccessorTypes; - })(); + }()); var privateClassWithWithPublicSetAccessorTypes = (function () { function privateClassWithWithPublicSetAccessorTypes() { } @@ -2983,7 +2983,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPublicSetAccessorTypes; - })(); + }()); var publicClassWithPrivateModuleGetAccessorTypes = (function () { function publicClassWithPrivateModuleGetAccessorTypes() { } @@ -3016,7 +3016,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithPrivateModuleGetAccessorTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; var publicClassWithPrivateModuleSetAccessorTypes = (function () { function publicClassWithPrivateModuleSetAccessorTypes() { @@ -3034,7 +3034,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithPrivateModuleSetAccessorTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; var privateClassWithPrivateModuleGetAccessorTypes = (function () { function privateClassWithPrivateModuleGetAccessorTypes() { @@ -3068,7 +3068,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithPrivateModuleGetAccessorTypes; - })(); + }()); var privateClassWithPrivateModuleSetAccessorTypes = (function () { function privateClassWithPrivateModuleSetAccessorTypes() { } @@ -3085,7 +3085,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithPrivateModuleSetAccessorTypes; - })(); + }()); })(privateModule || (privateModule = {})); var publicClassWithWithPrivateGetAccessorTypes = (function () { function publicClassWithWithPrivateGetAccessorTypes() { @@ -3147,7 +3147,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPrivateGetAccessorTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; var publicClassWithWithPublicGetAccessorTypes = (function () { function publicClassWithWithPublicGetAccessorTypes() { @@ -3209,7 +3209,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPublicGetAccessorTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; var privateClassWithWithPrivateGetAccessorTypes = (function () { function privateClassWithWithPrivateGetAccessorTypes() { @@ -3271,7 +3271,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPrivateGetAccessorTypes; - })(); + }()); var privateClassWithWithPublicGetAccessorTypes = (function () { function privateClassWithWithPublicGetAccessorTypes() { } @@ -3332,7 +3332,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPublicGetAccessorTypes; - })(); + }()); var publicClassWithWithPrivateSetAccessorTypes = (function () { function publicClassWithWithPrivateSetAccessorTypes() { } @@ -3361,7 +3361,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPrivateSetAccessorTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; var publicClassWithWithPublicSetAccessorTypes = (function () { function publicClassWithWithPublicSetAccessorTypes() { @@ -3391,7 +3391,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithWithPublicSetAccessorTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; var privateClassWithWithPrivateSetAccessorTypes = (function () { function privateClassWithWithPrivateSetAccessorTypes() { @@ -3421,7 +3421,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPrivateSetAccessorTypes; - })(); + }()); var privateClassWithWithPublicSetAccessorTypes = (function () { function privateClassWithWithPublicSetAccessorTypes() { } @@ -3450,7 +3450,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithWithPublicSetAccessorTypes; - })(); + }()); var publicClassWithPrivateModuleGetAccessorTypes = (function () { function publicClassWithPrivateModuleGetAccessorTypes() { } @@ -3483,7 +3483,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithPrivateModuleGetAccessorTypes; - })(); + }()); publicModuleInGlobal.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; var publicClassWithPrivateModuleSetAccessorTypes = (function () { function publicClassWithPrivateModuleSetAccessorTypes() { @@ -3501,7 +3501,7 @@ var publicModuleInGlobal; configurable: true }); return publicClassWithPrivateModuleSetAccessorTypes; - })(); + }()); publicModuleInGlobal.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; var privateClassWithPrivateModuleGetAccessorTypes = (function () { function privateClassWithPrivateModuleGetAccessorTypes() { @@ -3535,7 +3535,7 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithPrivateModuleGetAccessorTypes; - })(); + }()); var privateClassWithPrivateModuleSetAccessorTypes = (function () { function privateClassWithPrivateModuleSetAccessorTypes() { } @@ -3552,5 +3552,5 @@ var publicModuleInGlobal; configurable: true }); return privateClassWithPrivateModuleSetAccessorTypes; - })(); + }()); })(publicModuleInGlobal || (publicModuleInGlobal = {})); diff --git a/tests/baselines/reference/privacyCannotNameAccessorDeclFile.js b/tests/baselines/reference/privacyCannotNameAccessorDeclFile.js index cb6bbc38a7e..4121dbdd51d 100644 --- a/tests/baselines/reference/privacyCannotNameAccessorDeclFile.js +++ b/tests/baselines/reference/privacyCannotNameAccessorDeclFile.js @@ -144,7 +144,7 @@ var Widget1 = (function () { this.name = 'one'; } return Widget1; -})(); +}()); exports.Widget1 = Widget1; function createWidget1() { return new Widget1(); @@ -157,7 +157,7 @@ var SpecializedWidget; this.name = 'one'; } return Widget2; - })(); + }()); SpecializedWidget.Widget2 = Widget2; function createWidget2() { return new Widget2(); @@ -248,7 +248,7 @@ var publicClassWithWithPrivateGetAccessorTypes = (function () { configurable: true }); return publicClassWithWithPrivateGetAccessorTypes; -})(); +}()); exports.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; var privateClassWithWithPrivateGetAccessorTypes = (function () { function privateClassWithWithPrivateGetAccessorTypes() { @@ -310,7 +310,7 @@ var privateClassWithWithPrivateGetAccessorTypes = (function () { configurable: true }); return privateClassWithWithPrivateGetAccessorTypes; -})(); +}()); var publicClassWithPrivateModuleGetAccessorTypes = (function () { function publicClassWithPrivateModuleGetAccessorTypes() { } @@ -343,7 +343,7 @@ var publicClassWithPrivateModuleGetAccessorTypes = (function () { configurable: true }); return publicClassWithPrivateModuleGetAccessorTypes; -})(); +}()); exports.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; var privateClassWithPrivateModuleGetAccessorTypes = (function () { function privateClassWithPrivateModuleGetAccessorTypes() { @@ -377,7 +377,7 @@ var privateClassWithPrivateModuleGetAccessorTypes = (function () { configurable: true }); return privateClassWithPrivateModuleGetAccessorTypes; -})(); +}()); //// [privacyCannotNameAccessorDeclFile_GlobalWidgets.d.ts] diff --git a/tests/baselines/reference/privacyCannotNameVarTypeDeclFile.js b/tests/baselines/reference/privacyCannotNameVarTypeDeclFile.js index b64e813f4ee..6c2dcf304cf 100644 --- a/tests/baselines/reference/privacyCannotNameVarTypeDeclFile.js +++ b/tests/baselines/reference/privacyCannotNameVarTypeDeclFile.js @@ -108,7 +108,7 @@ var Widget1 = (function () { this.name = 'one'; } return Widget1; -})(); +}()); exports.Widget1 = Widget1; function createWidget1() { return new Widget1(); @@ -121,7 +121,7 @@ var SpecializedWidget; this.name = 'one'; } return Widget2; - })(); + }()); SpecializedWidget.Widget2 = Widget2; function createWidget2() { return new Widget2(); @@ -164,7 +164,7 @@ var publicClassWithWithPrivatePropertyTypes = (function () { publicClassWithWithPrivatePropertyTypes.myPublicStaticProperty1 = exporter.createExportedWidget3(); // Error publicClassWithWithPrivatePropertyTypes.myPrivateStaticProperty1 = exporter.createExportedWidget3(); return publicClassWithWithPrivatePropertyTypes; -})(); +}()); exports.publicClassWithWithPrivatePropertyTypes = publicClassWithWithPrivatePropertyTypes; var privateClassWithWithPrivatePropertyTypes = (function () { function privateClassWithWithPrivatePropertyTypes() { @@ -178,7 +178,7 @@ var privateClassWithWithPrivatePropertyTypes = (function () { privateClassWithWithPrivatePropertyTypes.myPublicStaticProperty1 = exporter.createExportedWidget3(); privateClassWithWithPrivatePropertyTypes.myPrivateStaticProperty1 = exporter.createExportedWidget3(); return privateClassWithWithPrivatePropertyTypes; -})(); +}()); exports.publicVarWithPrivatePropertyTypes = exporter.createExportedWidget1(); // Error var privateVarWithPrivatePropertyTypes = exporter.createExportedWidget1(); exports.publicVarWithPrivatePropertyTypes1 = exporter.createExportedWidget3(); // Error @@ -191,7 +191,7 @@ var publicClassWithPrivateModulePropertyTypes = (function () { publicClassWithPrivateModulePropertyTypes.myPublicStaticProperty = exporter.createExportedWidget2(); // Error publicClassWithPrivateModulePropertyTypes.myPublicStaticProperty1 = exporter.createExportedWidget4(); // Error return publicClassWithPrivateModulePropertyTypes; -})(); +}()); exports.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; exports.publicVarWithPrivateModulePropertyTypes = exporter.createExportedWidget2(); // Error exports.publicVarWithPrivateModulePropertyTypes1 = exporter.createExportedWidget4(); // Error @@ -203,7 +203,7 @@ var privateClassWithPrivateModulePropertyTypes = (function () { privateClassWithPrivateModulePropertyTypes.myPublicStaticProperty = exporter.createExportedWidget2(); privateClassWithPrivateModulePropertyTypes.myPublicStaticProperty1 = exporter.createExportedWidget4(); return privateClassWithPrivateModulePropertyTypes; -})(); +}()); var privateVarWithPrivateModulePropertyTypes = exporter.createExportedWidget2(); var privateVarWithPrivateModulePropertyTypes1 = exporter.createExportedWidget4(); diff --git a/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.js b/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.js index 94933d322e6..ff241a726bf 100644 --- a/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.js +++ b/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.js @@ -20,7 +20,7 @@ var Foo = (function () { this.a = a; } return Foo; -})(); +}()); module.exports = Foo; //// [privacyCheckExternalModuleExportAssignmentOfGenericClass_1.js] "use strict"; diff --git a/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.js b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.js index 1788435755a..7d4db36ee99 100644 --- a/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.js +++ b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.js @@ -18,13 +18,13 @@ define(["require", "exports"], function (require, exports) { var child = new B(this); } return A; - })(); + }()); exports.A = A; var B = (function () { function B(parent) { } return B; - })(); + }()); exports.B = B; }); diff --git a/tests/baselines/reference/privacyClass.js b/tests/baselines/reference/privacyClass.js index 74a4234b474..a149aa26f75 100644 --- a/tests/baselines/reference/privacyClass.js +++ b/tests/baselines/reference/privacyClass.js @@ -142,34 +142,34 @@ var m1; m1_c_public.prototype.f1 = function () { }; return m1_c_public; - })(); + }()); m1.m1_c_public = m1_c_public; var m1_c_private = (function () { function m1_c_private() { } return m1_c_private; - })(); + }()); var m1_C1_private = (function (_super) { __extends(m1_C1_private, _super); function m1_C1_private() { _super.apply(this, arguments); } return m1_C1_private; - })(m1_c_public); + }(m1_c_public)); var m1_C2_private = (function (_super) { __extends(m1_C2_private, _super); function m1_C2_private() { _super.apply(this, arguments); } return m1_C2_private; - })(m1_c_private); + }(m1_c_private)); var m1_C3_public = (function (_super) { __extends(m1_C3_public, _super); function m1_C3_public() { _super.apply(this, arguments); } return m1_C3_public; - })(m1_c_public); + }(m1_c_public)); m1.m1_C3_public = m1_C3_public; var m1_C4_public = (function (_super) { __extends(m1_C4_public, _super); @@ -177,29 +177,29 @@ var m1; _super.apply(this, arguments); } return m1_C4_public; - })(m1_c_private); + }(m1_c_private)); m1.m1_C4_public = m1_C4_public; var m1_C5_private = (function () { function m1_C5_private() { } return m1_C5_private; - })(); + }()); var m1_C6_private = (function () { function m1_C6_private() { } return m1_C6_private; - })(); + }()); var m1_C7_public = (function () { function m1_C7_public() { } return m1_C7_public; - })(); + }()); m1.m1_C7_public = m1_C7_public; var m1_C8_public = (function () { function m1_C8_public() { } return m1_C8_public; - })(); + }()); m1.m1_C8_public = m1_C8_public; var m1_C9_private = (function (_super) { __extends(m1_C9_private, _super); @@ -207,21 +207,21 @@ var m1; _super.apply(this, arguments); } return m1_C9_private; - })(m1_c_public); + }(m1_c_public)); var m1_C10_private = (function (_super) { __extends(m1_C10_private, _super); function m1_C10_private() { _super.apply(this, arguments); } return m1_C10_private; - })(m1_c_private); + }(m1_c_private)); var m1_C11_public = (function (_super) { __extends(m1_C11_public, _super); function m1_C11_public() { _super.apply(this, arguments); } return m1_C11_public; - })(m1_c_public); + }(m1_c_public)); m1.m1_C11_public = m1_C11_public; var m1_C12_public = (function (_super) { __extends(m1_C12_public, _super); @@ -229,7 +229,7 @@ var m1; _super.apply(this, arguments); } return m1_C12_public; - })(m1_c_private); + }(m1_c_private)); m1.m1_C12_public = m1_C12_public; })(m1 = exports.m1 || (exports.m1 = {})); var m2; @@ -240,34 +240,34 @@ var m2; m2_c_public.prototype.f1 = function () { }; return m2_c_public; - })(); + }()); m2.m2_c_public = m2_c_public; var m2_c_private = (function () { function m2_c_private() { } return m2_c_private; - })(); + }()); var m2_C1_private = (function (_super) { __extends(m2_C1_private, _super); function m2_C1_private() { _super.apply(this, arguments); } return m2_C1_private; - })(m2_c_public); + }(m2_c_public)); var m2_C2_private = (function (_super) { __extends(m2_C2_private, _super); function m2_C2_private() { _super.apply(this, arguments); } return m2_C2_private; - })(m2_c_private); + }(m2_c_private)); var m2_C3_public = (function (_super) { __extends(m2_C3_public, _super); function m2_C3_public() { _super.apply(this, arguments); } return m2_C3_public; - })(m2_c_public); + }(m2_c_public)); m2.m2_C3_public = m2_C3_public; var m2_C4_public = (function (_super) { __extends(m2_C4_public, _super); @@ -275,29 +275,29 @@ var m2; _super.apply(this, arguments); } return m2_C4_public; - })(m2_c_private); + }(m2_c_private)); m2.m2_C4_public = m2_C4_public; var m2_C5_private = (function () { function m2_C5_private() { } return m2_C5_private; - })(); + }()); var m2_C6_private = (function () { function m2_C6_private() { } return m2_C6_private; - })(); + }()); var m2_C7_public = (function () { function m2_C7_public() { } return m2_C7_public; - })(); + }()); m2.m2_C7_public = m2_C7_public; var m2_C8_public = (function () { function m2_C8_public() { } return m2_C8_public; - })(); + }()); m2.m2_C8_public = m2_C8_public; var m2_C9_private = (function (_super) { __extends(m2_C9_private, _super); @@ -305,21 +305,21 @@ var m2; _super.apply(this, arguments); } return m2_C9_private; - })(m2_c_public); + }(m2_c_public)); var m2_C10_private = (function (_super) { __extends(m2_C10_private, _super); function m2_C10_private() { _super.apply(this, arguments); } return m2_C10_private; - })(m2_c_private); + }(m2_c_private)); var m2_C11_public = (function (_super) { __extends(m2_C11_public, _super); function m2_C11_public() { _super.apply(this, arguments); } return m2_C11_public; - })(m2_c_public); + }(m2_c_public)); m2.m2_C11_public = m2_C11_public; var m2_C12_public = (function (_super) { __extends(m2_C12_public, _super); @@ -327,7 +327,7 @@ var m2; _super.apply(this, arguments); } return m2_C12_public; - })(m2_c_private); + }(m2_c_private)); m2.m2_C12_public = m2_C12_public; })(m2 || (m2 = {})); var glo_c_public = (function () { @@ -336,34 +336,34 @@ var glo_c_public = (function () { glo_c_public.prototype.f1 = function () { }; return glo_c_public; -})(); +}()); exports.glo_c_public = glo_c_public; var glo_c_private = (function () { function glo_c_private() { } return glo_c_private; -})(); +}()); var glo_C1_private = (function (_super) { __extends(glo_C1_private, _super); function glo_C1_private() { _super.apply(this, arguments); } return glo_C1_private; -})(glo_c_public); +}(glo_c_public)); var glo_C2_private = (function (_super) { __extends(glo_C2_private, _super); function glo_C2_private() { _super.apply(this, arguments); } return glo_C2_private; -})(glo_c_private); +}(glo_c_private)); var glo_C3_public = (function (_super) { __extends(glo_C3_public, _super); function glo_C3_public() { _super.apply(this, arguments); } return glo_C3_public; -})(glo_c_public); +}(glo_c_public)); exports.glo_C3_public = glo_C3_public; var glo_C4_public = (function (_super) { __extends(glo_C4_public, _super); @@ -371,29 +371,29 @@ var glo_C4_public = (function (_super) { _super.apply(this, arguments); } return glo_C4_public; -})(glo_c_private); +}(glo_c_private)); exports.glo_C4_public = glo_C4_public; var glo_C5_private = (function () { function glo_C5_private() { } return glo_C5_private; -})(); +}()); var glo_C6_private = (function () { function glo_C6_private() { } return glo_C6_private; -})(); +}()); var glo_C7_public = (function () { function glo_C7_public() { } return glo_C7_public; -})(); +}()); exports.glo_C7_public = glo_C7_public; var glo_C8_public = (function () { function glo_C8_public() { } return glo_C8_public; -})(); +}()); exports.glo_C8_public = glo_C8_public; var glo_C9_private = (function (_super) { __extends(glo_C9_private, _super); @@ -401,21 +401,21 @@ var glo_C9_private = (function (_super) { _super.apply(this, arguments); } return glo_C9_private; -})(glo_c_public); +}(glo_c_public)); var glo_C10_private = (function (_super) { __extends(glo_C10_private, _super); function glo_C10_private() { _super.apply(this, arguments); } return glo_C10_private; -})(glo_c_private); +}(glo_c_private)); var glo_C11_public = (function (_super) { __extends(glo_C11_public, _super); function glo_C11_public() { _super.apply(this, arguments); } return glo_C11_public; -})(glo_c_public); +}(glo_c_public)); exports.glo_C11_public = glo_C11_public; var glo_C12_public = (function (_super) { __extends(glo_C12_public, _super); @@ -423,5 +423,5 @@ var glo_C12_public = (function (_super) { _super.apply(this, arguments); } return glo_C12_public; -})(glo_c_private); +}(glo_c_private)); exports.glo_C12_public = glo_C12_public; diff --git a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js index 4efc6e12b16..e2bb58781de 100644 --- a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js +++ b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js @@ -112,34 +112,34 @@ var publicModule; publicClassInPublicModule.prototype.f1 = function () { }; return publicClassInPublicModule; - })(); + }()); publicModule.publicClassInPublicModule = publicClassInPublicModule; var privateClassInPublicModule = (function () { function privateClassInPublicModule() { } return privateClassInPublicModule; - })(); + }()); var privateClassExtendingPublicClassInModule = (function (_super) { __extends(privateClassExtendingPublicClassInModule, _super); function privateClassExtendingPublicClassInModule() { _super.apply(this, arguments); } return privateClassExtendingPublicClassInModule; - })(publicClassInPublicModule); + }(publicClassInPublicModule)); var privateClassExtendingPrivateClassInModule = (function (_super) { __extends(privateClassExtendingPrivateClassInModule, _super); function privateClassExtendingPrivateClassInModule() { _super.apply(this, arguments); } return privateClassExtendingPrivateClassInModule; - })(privateClassInPublicModule); + }(privateClassInPublicModule)); var publicClassExtendingPublicClassInModule = (function (_super) { __extends(publicClassExtendingPublicClassInModule, _super); function publicClassExtendingPublicClassInModule() { _super.apply(this, arguments); } return publicClassExtendingPublicClassInModule; - })(publicClassInPublicModule); + }(publicClassInPublicModule)); publicModule.publicClassExtendingPublicClassInModule = publicClassExtendingPublicClassInModule; var publicClassExtendingPrivateClassInModule = (function (_super) { __extends(publicClassExtendingPrivateClassInModule, _super); @@ -147,7 +147,7 @@ var publicModule; _super.apply(this, arguments); } return publicClassExtendingPrivateClassInModule; - })(privateClassInPublicModule); + }(privateClassInPublicModule)); publicModule.publicClassExtendingPrivateClassInModule = publicClassExtendingPrivateClassInModule; var privateClassExtendingFromPrivateModuleClass = (function (_super) { __extends(privateClassExtendingFromPrivateModuleClass, _super); @@ -155,14 +155,14 @@ var publicModule; _super.apply(this, arguments); } return privateClassExtendingFromPrivateModuleClass; - })(privateModule.publicClassInPrivateModule); + }(privateModule.publicClassInPrivateModule)); var publicClassExtendingFromPrivateModuleClass = (function (_super) { __extends(publicClassExtendingFromPrivateModuleClass, _super); function publicClassExtendingFromPrivateModuleClass() { _super.apply(this, arguments); } return publicClassExtendingFromPrivateModuleClass; - })(privateModule.publicClassInPrivateModule); + }(privateModule.publicClassInPrivateModule)); publicModule.publicClassExtendingFromPrivateModuleClass = publicClassExtendingFromPrivateModuleClass; })(publicModule = exports.publicModule || (exports.publicModule = {})); var privateModule; @@ -173,34 +173,34 @@ var privateModule; publicClassInPrivateModule.prototype.f1 = function () { }; return publicClassInPrivateModule; - })(); + }()); privateModule.publicClassInPrivateModule = publicClassInPrivateModule; var privateClassInPrivateModule = (function () { function privateClassInPrivateModule() { } return privateClassInPrivateModule; - })(); + }()); var privateClassExtendingPublicClassInModule = (function (_super) { __extends(privateClassExtendingPublicClassInModule, _super); function privateClassExtendingPublicClassInModule() { _super.apply(this, arguments); } return privateClassExtendingPublicClassInModule; - })(publicClassInPrivateModule); + }(publicClassInPrivateModule)); var privateClassExtendingPrivateClassInModule = (function (_super) { __extends(privateClassExtendingPrivateClassInModule, _super); function privateClassExtendingPrivateClassInModule() { _super.apply(this, arguments); } return privateClassExtendingPrivateClassInModule; - })(privateClassInPrivateModule); + }(privateClassInPrivateModule)); var publicClassExtendingPublicClassInModule = (function (_super) { __extends(publicClassExtendingPublicClassInModule, _super); function publicClassExtendingPublicClassInModule() { _super.apply(this, arguments); } return publicClassExtendingPublicClassInModule; - })(publicClassInPrivateModule); + }(publicClassInPrivateModule)); privateModule.publicClassExtendingPublicClassInModule = publicClassExtendingPublicClassInModule; var publicClassExtendingPrivateClassInModule = (function (_super) { __extends(publicClassExtendingPrivateClassInModule, _super); @@ -208,7 +208,7 @@ var privateModule; _super.apply(this, arguments); } return publicClassExtendingPrivateClassInModule; - })(privateClassInPrivateModule); + }(privateClassInPrivateModule)); privateModule.publicClassExtendingPrivateClassInModule = publicClassExtendingPrivateClassInModule; var privateClassExtendingFromPrivateModuleClass = (function (_super) { __extends(privateClassExtendingFromPrivateModuleClass, _super); @@ -216,14 +216,14 @@ var privateModule; _super.apply(this, arguments); } return privateClassExtendingFromPrivateModuleClass; - })(privateModule.publicClassInPrivateModule); + }(privateModule.publicClassInPrivateModule)); var publicClassExtendingFromPrivateModuleClass = (function (_super) { __extends(publicClassExtendingFromPrivateModuleClass, _super); function publicClassExtendingFromPrivateModuleClass() { _super.apply(this, arguments); } return publicClassExtendingFromPrivateModuleClass; - })(privateModule.publicClassInPrivateModule); + }(privateModule.publicClassInPrivateModule)); privateModule.publicClassExtendingFromPrivateModuleClass = publicClassExtendingFromPrivateModuleClass; })(privateModule || (privateModule = {})); var publicClass = (function () { @@ -232,34 +232,34 @@ var publicClass = (function () { publicClass.prototype.f1 = function () { }; return publicClass; -})(); +}()); exports.publicClass = publicClass; var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var privateClassExtendingPublicClass = (function (_super) { __extends(privateClassExtendingPublicClass, _super); function privateClassExtendingPublicClass() { _super.apply(this, arguments); } return privateClassExtendingPublicClass; -})(publicClass); +}(publicClass)); var privateClassExtendingPrivateClassInModule = (function (_super) { __extends(privateClassExtendingPrivateClassInModule, _super); function privateClassExtendingPrivateClassInModule() { _super.apply(this, arguments); } return privateClassExtendingPrivateClassInModule; -})(privateClass); +}(privateClass)); var publicClassExtendingPublicClass = (function (_super) { __extends(publicClassExtendingPublicClass, _super); function publicClassExtendingPublicClass() { _super.apply(this, arguments); } return publicClassExtendingPublicClass; -})(publicClass); +}(publicClass)); exports.publicClassExtendingPublicClass = publicClassExtendingPublicClass; var publicClassExtendingPrivateClass = (function (_super) { __extends(publicClassExtendingPrivateClass, _super); @@ -267,7 +267,7 @@ var publicClassExtendingPrivateClass = (function (_super) { _super.apply(this, arguments); } return publicClassExtendingPrivateClass; -})(privateClass); +}(privateClass)); exports.publicClassExtendingPrivateClass = publicClassExtendingPrivateClass; var privateClassExtendingFromPrivateModuleClass = (function (_super) { __extends(privateClassExtendingFromPrivateModuleClass, _super); @@ -275,14 +275,14 @@ var privateClassExtendingFromPrivateModuleClass = (function (_super) { _super.apply(this, arguments); } return privateClassExtendingFromPrivateModuleClass; -})(privateModule.publicClassInPrivateModule); +}(privateModule.publicClassInPrivateModule)); var publicClassExtendingFromPrivateModuleClass = (function (_super) { __extends(publicClassExtendingFromPrivateModuleClass, _super); function publicClassExtendingFromPrivateModuleClass() { _super.apply(this, arguments); } return publicClassExtendingFromPrivateModuleClass; -})(privateModule.publicClassInPrivateModule); +}(privateModule.publicClassInPrivateModule)); exports.publicClassExtendingFromPrivateModuleClass = publicClassExtendingFromPrivateModuleClass; //// [privacyClassExtendsClauseDeclFile_GlobalFile.js] var __extends = (this && this.__extends) || function (d, b) { @@ -298,34 +298,34 @@ var publicModuleInGlobal; publicClassInPublicModule.prototype.f1 = function () { }; return publicClassInPublicModule; - })(); + }()); publicModuleInGlobal.publicClassInPublicModule = publicClassInPublicModule; var privateClassInPublicModule = (function () { function privateClassInPublicModule() { } return privateClassInPublicModule; - })(); + }()); var privateClassExtendingPublicClassInModule = (function (_super) { __extends(privateClassExtendingPublicClassInModule, _super); function privateClassExtendingPublicClassInModule() { _super.apply(this, arguments); } return privateClassExtendingPublicClassInModule; - })(publicClassInPublicModule); + }(publicClassInPublicModule)); var privateClassExtendingPrivateClassInModule = (function (_super) { __extends(privateClassExtendingPrivateClassInModule, _super); function privateClassExtendingPrivateClassInModule() { _super.apply(this, arguments); } return privateClassExtendingPrivateClassInModule; - })(privateClassInPublicModule); + }(privateClassInPublicModule)); var publicClassExtendingPublicClassInModule = (function (_super) { __extends(publicClassExtendingPublicClassInModule, _super); function publicClassExtendingPublicClassInModule() { _super.apply(this, arguments); } return publicClassExtendingPublicClassInModule; - })(publicClassInPublicModule); + }(publicClassInPublicModule)); publicModuleInGlobal.publicClassExtendingPublicClassInModule = publicClassExtendingPublicClassInModule; var publicClassExtendingPrivateClassInModule = (function (_super) { __extends(publicClassExtendingPrivateClassInModule, _super); @@ -333,18 +333,18 @@ var publicModuleInGlobal; _super.apply(this, arguments); } return publicClassExtendingPrivateClassInModule; - })(privateClassInPublicModule); + }(privateClassInPublicModule)); publicModuleInGlobal.publicClassExtendingPrivateClassInModule = publicClassExtendingPrivateClassInModule; })(publicModuleInGlobal || (publicModuleInGlobal = {})); var publicClassInGlobal = (function () { function publicClassInGlobal() { } return publicClassInGlobal; -})(); +}()); var publicClassExtendingPublicClassInGlobal = (function (_super) { __extends(publicClassExtendingPublicClassInGlobal, _super); function publicClassExtendingPublicClassInGlobal() { _super.apply(this, arguments); } return publicClassExtendingPublicClassInGlobal; -})(publicClassInGlobal); +}(publicClassInGlobal)); diff --git a/tests/baselines/reference/privacyClassImplementsClauseDeclFile.js b/tests/baselines/reference/privacyClassImplementsClauseDeclFile.js index 74f1ec1bec6..15de9a16674 100644 --- a/tests/baselines/reference/privacyClassImplementsClauseDeclFile.js +++ b/tests/baselines/reference/privacyClassImplementsClauseDeclFile.js @@ -102,40 +102,40 @@ var publicModule; function privateClassImplementingPublicInterfaceInModule() { } return privateClassImplementingPublicInterfaceInModule; - })(); + }()); var privateClassImplementingPrivateInterfaceInModule = (function () { function privateClassImplementingPrivateInterfaceInModule() { } return privateClassImplementingPrivateInterfaceInModule; - })(); + }()); var publicClassImplementingPublicInterfaceInModule = (function () { function publicClassImplementingPublicInterfaceInModule() { } return publicClassImplementingPublicInterfaceInModule; - })(); + }()); publicModule.publicClassImplementingPublicInterfaceInModule = publicClassImplementingPublicInterfaceInModule; var publicClassImplementingPrivateInterfaceInModule = (function () { function publicClassImplementingPrivateInterfaceInModule() { } return publicClassImplementingPrivateInterfaceInModule; - })(); + }()); publicModule.publicClassImplementingPrivateInterfaceInModule = publicClassImplementingPrivateInterfaceInModule; var privateClassImplementingFromPrivateModuleInterface = (function () { function privateClassImplementingFromPrivateModuleInterface() { } return privateClassImplementingFromPrivateModuleInterface; - })(); + }()); var publicClassImplementingFromPrivateModuleInterface = (function () { function publicClassImplementingFromPrivateModuleInterface() { } return publicClassImplementingFromPrivateModuleInterface; - })(); + }()); publicModule.publicClassImplementingFromPrivateModuleInterface = publicClassImplementingFromPrivateModuleInterface; var publicClassImplementingPrivateAndPublicInterface = (function () { function publicClassImplementingPrivateAndPublicInterface() { } return publicClassImplementingPrivateAndPublicInterface; - })(); + }()); publicModule.publicClassImplementingPrivateAndPublicInterface = publicClassImplementingPrivateAndPublicInterface; })(publicModule = exports.publicModule || (exports.publicModule = {})); var privateModule; @@ -144,68 +144,68 @@ var privateModule; function privateClassImplementingPublicInterfaceInModule() { } return privateClassImplementingPublicInterfaceInModule; - })(); + }()); var privateClassImplementingPrivateInterfaceInModule = (function () { function privateClassImplementingPrivateInterfaceInModule() { } return privateClassImplementingPrivateInterfaceInModule; - })(); + }()); var publicClassImplementingPublicInterfaceInModule = (function () { function publicClassImplementingPublicInterfaceInModule() { } return publicClassImplementingPublicInterfaceInModule; - })(); + }()); privateModule.publicClassImplementingPublicInterfaceInModule = publicClassImplementingPublicInterfaceInModule; var publicClassImplementingPrivateInterfaceInModule = (function () { function publicClassImplementingPrivateInterfaceInModule() { } return publicClassImplementingPrivateInterfaceInModule; - })(); + }()); privateModule.publicClassImplementingPrivateInterfaceInModule = publicClassImplementingPrivateInterfaceInModule; var privateClassImplementingFromPrivateModuleInterface = (function () { function privateClassImplementingFromPrivateModuleInterface() { } return privateClassImplementingFromPrivateModuleInterface; - })(); + }()); var publicClassImplementingFromPrivateModuleInterface = (function () { function publicClassImplementingFromPrivateModuleInterface() { } return publicClassImplementingFromPrivateModuleInterface; - })(); + }()); privateModule.publicClassImplementingFromPrivateModuleInterface = publicClassImplementingFromPrivateModuleInterface; })(privateModule || (privateModule = {})); var privateClassImplementingPublicInterface = (function () { function privateClassImplementingPublicInterface() { } return privateClassImplementingPublicInterface; -})(); +}()); var privateClassImplementingPrivateInterfaceInModule = (function () { function privateClassImplementingPrivateInterfaceInModule() { } return privateClassImplementingPrivateInterfaceInModule; -})(); +}()); var publicClassImplementingPublicInterface = (function () { function publicClassImplementingPublicInterface() { } return publicClassImplementingPublicInterface; -})(); +}()); exports.publicClassImplementingPublicInterface = publicClassImplementingPublicInterface; var publicClassImplementingPrivateInterface = (function () { function publicClassImplementingPrivateInterface() { } return publicClassImplementingPrivateInterface; -})(); +}()); exports.publicClassImplementingPrivateInterface = publicClassImplementingPrivateInterface; var privateClassImplementingFromPrivateModuleInterface = (function () { function privateClassImplementingFromPrivateModuleInterface() { } return privateClassImplementingFromPrivateModuleInterface; -})(); +}()); var publicClassImplementingFromPrivateModuleInterface = (function () { function publicClassImplementingFromPrivateModuleInterface() { } return publicClassImplementingFromPrivateModuleInterface; -})(); +}()); exports.publicClassImplementingFromPrivateModuleInterface = publicClassImplementingFromPrivateModuleInterface; //// [privacyClassImplementsClauseDeclFile_GlobalFile.js] var publicModuleInGlobal; @@ -214,27 +214,27 @@ var publicModuleInGlobal; function privateClassImplementingPublicInterfaceInModule() { } return privateClassImplementingPublicInterfaceInModule; - })(); + }()); var privateClassImplementingPrivateInterfaceInModule = (function () { function privateClassImplementingPrivateInterfaceInModule() { } return privateClassImplementingPrivateInterfaceInModule; - })(); + }()); var publicClassImplementingPublicInterfaceInModule = (function () { function publicClassImplementingPublicInterfaceInModule() { } return publicClassImplementingPublicInterfaceInModule; - })(); + }()); publicModuleInGlobal.publicClassImplementingPublicInterfaceInModule = publicClassImplementingPublicInterfaceInModule; var publicClassImplementingPrivateInterfaceInModule = (function () { function publicClassImplementingPrivateInterfaceInModule() { } return publicClassImplementingPrivateInterfaceInModule; - })(); + }()); publicModuleInGlobal.publicClassImplementingPrivateInterfaceInModule = publicClassImplementingPrivateInterfaceInModule; })(publicModuleInGlobal || (publicModuleInGlobal = {})); var publicClassImplementingPublicInterfaceInGlobal = (function () { function publicClassImplementingPublicInterfaceInGlobal() { } return publicClassImplementingPublicInterfaceInGlobal; -})(); +}()); diff --git a/tests/baselines/reference/privacyFunc.js b/tests/baselines/reference/privacyFunc.js index d822e496946..b9c0e8e13c9 100644 --- a/tests/baselines/reference/privacyFunc.js +++ b/tests/baselines/reference/privacyFunc.js @@ -237,13 +237,13 @@ var m1; C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); var C3_public = (function () { function C3_public(m1_c3_c1_2) { } @@ -280,7 +280,7 @@ var m1; return new C2_private(); //error }; return C3_public; - })(); + }()); m1.C3_public = C3_public; var C4_private = (function () { function C4_private(m1_c4_c1_2) { @@ -318,29 +318,29 @@ var m1; return new C2_private(); }; return C4_private; - })(); + }()); var C5_public = (function () { function C5_public(m1_c5_c) { } return C5_public; - })(); + }()); m1.C5_public = C5_public; var C6_private = (function () { function C6_private(m1_c6_c) { } return C6_private; - })(); + }()); var C7_public = (function () { function C7_public(m1_c7_c) { } return C7_public; - })(); + }()); m1.C7_public = C7_public; var C8_private = (function () { function C8_private(m1_c8_c) { } return C8_private; - })(); + }()); function f1_public(m1_f1_arg) { } function f2_public(m1_f2_arg) { @@ -384,7 +384,7 @@ var C6_public = (function () { function C6_public() { } return C6_public; -})(); +}()); var C7_public = (function () { function C7_public(c7_c1_2) { } @@ -405,12 +405,12 @@ var C7_public = (function () { return new C6_public(); }; return C7_public; -})(); +}()); var C9_public = (function () { function C9_public(c9_c) { } return C9_public; -})(); +}()); function f4_public(f4_arg) { } function f6_public() { diff --git a/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js b/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js index 6f567ec3bd0..d8bfef7060e 100644 --- a/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js @@ -164,7 +164,7 @@ var Widget1 = (function () { this.name = 'one'; } return Widget1; -})(); +}()); exports.Widget1 = Widget1; function createWidget1() { return new Widget1(); @@ -177,7 +177,7 @@ var SpecializedWidget; this.name = 'one'; } return Widget2; - })(); + }()); SpecializedWidget.Widget2 = Widget2; function createWidget2() { return new Widget2(); @@ -229,7 +229,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { if (param === void 0) { param = exporter.createExportedWidget1(); } }; return publicClassWithWithPrivateParmeterTypes; -})(); +}()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPrivateParmeterTypes1 = (function () { function publicClassWithWithPrivateParmeterTypes1(param, param1, param2) { @@ -252,7 +252,7 @@ var publicClassWithWithPrivateParmeterTypes1 = (function () { if (param === void 0) { param = exporter.createExportedWidget3(); } }; return publicClassWithWithPrivateParmeterTypes1; -})(); +}()); exports.publicClassWithWithPrivateParmeterTypes1 = publicClassWithWithPrivateParmeterTypes1; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -275,7 +275,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { if (param === void 0) { param = exporter.createExportedWidget1(); } }; return privateClassWithWithPrivateParmeterTypes; -})(); +}()); var privateClassWithWithPrivateParmeterTypes2 = (function () { function privateClassWithWithPrivateParmeterTypes2(param, param1, param2) { if (param === void 0) { param = exporter.createExportedWidget3(); } @@ -297,7 +297,7 @@ var privateClassWithWithPrivateParmeterTypes2 = (function () { if (param === void 0) { param = exporter.createExportedWidget3(); } }; return privateClassWithWithPrivateParmeterTypes2; -})(); +}()); function publicFunctionWithPrivateParmeterTypes(param) { if (param === void 0) { param = exporter.createExportedWidget1(); } } @@ -327,7 +327,7 @@ var publicClassWithPrivateModuleParameterTypes = (function () { if (param === void 0) { param = exporter.createExportedWidget2(); } }; return publicClassWithPrivateModuleParameterTypes; -})(); +}()); exports.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; var publicClassWithPrivateModuleParameterTypes2 = (function () { function publicClassWithPrivateModuleParameterTypes2(param, param1, param2) { @@ -344,7 +344,7 @@ var publicClassWithPrivateModuleParameterTypes2 = (function () { if (param === void 0) { param = exporter.createExportedWidget4(); } }; return publicClassWithPrivateModuleParameterTypes2; -})(); +}()); exports.publicClassWithPrivateModuleParameterTypes2 = publicClassWithPrivateModuleParameterTypes2; function publicFunctionWithPrivateModuleParameterTypes(param) { if (param === void 0) { param = exporter.createExportedWidget2(); } @@ -369,7 +369,7 @@ var privateClassWithPrivateModuleParameterTypes = (function () { if (param === void 0) { param = exporter.createExportedWidget2(); } }; return privateClassWithPrivateModuleParameterTypes; -})(); +}()); var privateClassWithPrivateModuleParameterTypes1 = (function () { function privateClassWithPrivateModuleParameterTypes1(param, param1, param2) { if (param === void 0) { param = exporter.createExportedWidget4(); } @@ -385,7 +385,7 @@ var privateClassWithPrivateModuleParameterTypes1 = (function () { if (param === void 0) { param = exporter.createExportedWidget4(); } }; return privateClassWithPrivateModuleParameterTypes1; -})(); +}()); function privateFunctionWithPrivateModuleParameterTypes(param) { if (param === void 0) { param = exporter.createExportedWidget2(); } } diff --git a/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js b/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js index 1de0f2b6642..3b1ffb487ff 100644 --- a/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js @@ -171,7 +171,7 @@ var Widget1 = (function () { this.name = 'one'; } return Widget1; -})(); +}()); exports.Widget1 = Widget1; function createWidget1() { return new Widget1(); @@ -184,7 +184,7 @@ var SpecializedWidget; this.name = 'one'; } return Widget2; - })(); + }()); SpecializedWidget.Widget2 = Widget2; function createWidget2() { return new Widget2(); @@ -249,7 +249,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { ; }; return publicClassWithWithPrivateParmeterTypes; -})(); +}()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes() { @@ -285,7 +285,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { ; }; return privateClassWithWithPrivateParmeterTypes; -})(); +}()); function publicFunctionWithPrivateParmeterTypes() { return exporter.createExportedWidget1(); } @@ -316,7 +316,7 @@ var publicClassWithPrivateModuleReturnTypes = (function () { return exporter.createExportedWidget4(); }; return publicClassWithPrivateModuleReturnTypes; -})(); +}()); exports.publicClassWithPrivateModuleReturnTypes = publicClassWithPrivateModuleReturnTypes; function publicFunctionWithPrivateModuleReturnTypes() { return exporter.createExportedWidget2(); @@ -342,7 +342,7 @@ var privateClassWithPrivateModuleReturnTypes = (function () { return exporter.createExportedWidget4(); }; return privateClassWithPrivateModuleReturnTypes; -})(); +}()); function privateFunctionWithPrivateModuleReturnTypes() { return exporter.createExportedWidget2(); } diff --git a/tests/baselines/reference/privacyFunctionParameterDeclFile.js b/tests/baselines/reference/privacyFunctionParameterDeclFile.js index e02c221d333..e8fff791a0e 100644 --- a/tests/baselines/reference/privacyFunctionParameterDeclFile.js +++ b/tests/baselines/reference/privacyFunctionParameterDeclFile.js @@ -692,12 +692,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -713,7 +713,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPrivateParmeterTypes; -})(); +}()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes(param, param1, param2) { @@ -729,7 +729,7 @@ var publicClassWithWithPublicParmeterTypes = (function () { publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPublicParmeterTypes; -})(); +}()); exports.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -745,7 +745,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPrivateParmeterTypes; -})(); +}()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes(param, param1, param2) { this.param1 = param1; @@ -760,7 +760,7 @@ var privateClassWithWithPublicParmeterTypes = (function () { privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPublicParmeterTypes; -})(); +}()); function publicFunctionWithPrivateParmeterTypes(param) { } exports.publicFunctionWithPrivateParmeterTypes = publicFunctionWithPrivateParmeterTypes; @@ -781,7 +781,7 @@ var publicClassWithPrivateModuleParameterTypes = (function () { publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return publicClassWithPrivateModuleParameterTypes; -})(); +}()); exports.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes(param) { } @@ -796,7 +796,7 @@ var privateClassWithPrivateModuleParameterTypes = (function () { privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return privateClassWithPrivateModuleParameterTypes; -})(); +}()); function privateFunctionWithPrivateModuleParameterTypes(param) { } var publicModule; @@ -805,12 +805,12 @@ var publicModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModule.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -826,7 +826,7 @@ var publicModule; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); publicModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes(param, param1, param2) { @@ -842,7 +842,7 @@ var publicModule; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); publicModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -858,7 +858,7 @@ var publicModule; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes(param, param1, param2) { this.param1 = param1; @@ -873,7 +873,7 @@ var publicModule; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes(param) { } publicModule.publicFunctionWithPrivateParmeterTypes = publicFunctionWithPrivateParmeterTypes; @@ -894,7 +894,7 @@ var publicModule; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); publicModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes(param) { } @@ -909,7 +909,7 @@ var publicModule; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes(param) { } })(publicModule = exports.publicModule || (exports.publicModule = {})); @@ -919,12 +919,12 @@ var privateModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -940,7 +940,7 @@ var privateModule; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes(param, param1, param2) { @@ -956,7 +956,7 @@ var privateModule; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -972,7 +972,7 @@ var privateModule; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes(param, param1, param2) { this.param1 = param1; @@ -987,7 +987,7 @@ var privateModule; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes(param) { } privateModule.publicFunctionWithPrivateParmeterTypes = publicFunctionWithPrivateParmeterTypes; @@ -1008,7 +1008,7 @@ var privateModule; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes(param) { } @@ -1023,7 +1023,7 @@ var privateModule; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes(param) { } })(privateModule || (privateModule = {})); @@ -1032,7 +1032,7 @@ var publicClassInGlobal = (function () { function publicClassInGlobal() { } return publicClassInGlobal; -})(); +}()); var publicClassWithWithPublicParmeterTypesInGlobal = (function () { function publicClassWithWithPublicParmeterTypesInGlobal(param, param1, param2) { this.param1 = param1; @@ -1047,7 +1047,7 @@ var publicClassWithWithPublicParmeterTypesInGlobal = (function () { publicClassWithWithPublicParmeterTypesInGlobal.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPublicParmeterTypesInGlobal; -})(); +}()); function publicFunctionWithPublicParmeterTypesInGlobal(param) { } var publicModuleInGlobal; @@ -1056,12 +1056,12 @@ var publicModuleInGlobal; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModuleInGlobal.publicClass = publicClass; var privateModule; (function (privateModule) { @@ -1069,12 +1069,12 @@ var publicModuleInGlobal; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -1090,7 +1090,7 @@ var publicModuleInGlobal; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes(param, param1, param2) { @@ -1106,7 +1106,7 @@ var publicModuleInGlobal; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -1122,7 +1122,7 @@ var publicModuleInGlobal; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes(param, param1, param2) { this.param1 = param1; @@ -1137,7 +1137,7 @@ var publicModuleInGlobal; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes(param) { } privateModule.publicFunctionWithPrivateParmeterTypes = publicFunctionWithPrivateParmeterTypes; @@ -1158,7 +1158,7 @@ var publicModuleInGlobal; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes(param) { } @@ -1173,7 +1173,7 @@ var publicModuleInGlobal; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes(param) { } })(privateModule || (privateModule = {})); @@ -1191,7 +1191,7 @@ var publicModuleInGlobal; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes(param, param1, param2) { @@ -1207,7 +1207,7 @@ var publicModuleInGlobal; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes(param, param1, param2) { @@ -1223,7 +1223,7 @@ var publicModuleInGlobal; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes(param, param1, param2) { this.param1 = param1; @@ -1238,7 +1238,7 @@ var publicModuleInGlobal; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes(param) { } publicModuleInGlobal.publicFunctionWithPrivateParmeterTypes = publicFunctionWithPrivateParmeterTypes; @@ -1259,7 +1259,7 @@ var publicModuleInGlobal; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); publicModuleInGlobal.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes(param) { } @@ -1274,7 +1274,7 @@ var publicModuleInGlobal; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes(param) { } })(publicModuleInGlobal || (publicModuleInGlobal = {})); diff --git a/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js b/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js index b312578b7a3..d4265b1c352 100644 --- a/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js @@ -1199,12 +1199,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes() { @@ -1234,7 +1234,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { return new privateClass(); }; return publicClassWithWithPrivateParmeterTypes; -})(); +}()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes() { @@ -1264,7 +1264,7 @@ var publicClassWithWithPublicParmeterTypes = (function () { return new publicClass(); }; return publicClassWithWithPublicParmeterTypes; -})(); +}()); exports.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes() { @@ -1294,7 +1294,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { return new privateClass(); }; return privateClassWithWithPrivateParmeterTypes; -})(); +}()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes() { } @@ -1323,7 +1323,7 @@ var privateClassWithWithPublicParmeterTypes = (function () { return new publicClass(); }; return privateClassWithWithPublicParmeterTypes; -})(); +}()); function publicFunctionWithPrivateParmeterTypes() { return null; } @@ -1368,7 +1368,7 @@ var publicClassWithPrivateModuleParameterTypes = (function () { return new privateModule.publicClass(); }; return publicClassWithPrivateModuleParameterTypes; -})(); +}()); exports.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes() { return null; @@ -1394,7 +1394,7 @@ var privateClassWithPrivateModuleParameterTypes = (function () { return new privateModule.publicClass(); }; return privateClassWithPrivateModuleParameterTypes; -})(); +}()); function privateFunctionWithPrivateModuleParameterTypes() { return null; } @@ -1407,12 +1407,12 @@ var publicModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModule.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes() { @@ -1442,7 +1442,7 @@ var publicModule; return new privateClass(); }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); publicModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes() { @@ -1472,7 +1472,7 @@ var publicModule; return new publicClass(); }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); publicModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes() { @@ -1502,7 +1502,7 @@ var publicModule; return new privateClass(); }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes() { } @@ -1531,7 +1531,7 @@ var publicModule; return new publicClass(); }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes() { return null; } @@ -1576,7 +1576,7 @@ var publicModule; return new privateModule.publicClass(); }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); publicModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes() { return null; @@ -1602,7 +1602,7 @@ var publicModule; return new privateModule.publicClass(); }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes() { return null; } @@ -1616,12 +1616,12 @@ var privateModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes() { @@ -1651,7 +1651,7 @@ var privateModule; return new privateClass(); }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes() { @@ -1681,7 +1681,7 @@ var privateModule; return new publicClass(); }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes() { @@ -1711,7 +1711,7 @@ var privateModule; return new privateClass(); }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes() { } @@ -1740,7 +1740,7 @@ var privateModule; return new publicClass(); }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes() { return null; } @@ -1785,7 +1785,7 @@ var privateModule; return new privateModule.publicClass(); }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes() { return null; @@ -1811,7 +1811,7 @@ var privateModule; return new privateModule.publicClass(); }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes() { return null; } @@ -1824,7 +1824,7 @@ var publicClassInGlobal = (function () { function publicClassInGlobal() { } return publicClassInGlobal; -})(); +}()); var publicClassWithWithPublicParmeterTypesInGlobal = (function () { function publicClassWithWithPublicParmeterTypesInGlobal() { } @@ -1853,7 +1853,7 @@ var publicClassWithWithPublicParmeterTypesInGlobal = (function () { return new publicClassInGlobal(); }; return publicClassWithWithPublicParmeterTypesInGlobal; -})(); +}()); function publicFunctionWithPublicParmeterTypesInGlobal() { return null; } @@ -1866,12 +1866,12 @@ var publicModuleInGlobal; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModuleInGlobal.publicClass = publicClass; var privateModule; (function (privateModule) { @@ -1879,12 +1879,12 @@ var publicModuleInGlobal; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivateParmeterTypes = (function () { function publicClassWithWithPrivateParmeterTypes() { @@ -1914,7 +1914,7 @@ var publicModuleInGlobal; return new privateClass(); }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes() { @@ -1944,7 +1944,7 @@ var publicModuleInGlobal; return new publicClass(); }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes() { @@ -1974,7 +1974,7 @@ var publicModuleInGlobal; return new privateClass(); }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes() { } @@ -2003,7 +2003,7 @@ var publicModuleInGlobal; return new publicClass(); }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes() { return null; } @@ -2048,7 +2048,7 @@ var publicModuleInGlobal; return new privateModule.publicClass(); }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes() { return null; @@ -2074,7 +2074,7 @@ var publicModuleInGlobal; return new privateModule.publicClass(); }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes() { return null; } @@ -2110,7 +2110,7 @@ var publicModuleInGlobal; return new privateClass(); }; return publicClassWithWithPrivateParmeterTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; var publicClassWithWithPublicParmeterTypes = (function () { function publicClassWithWithPublicParmeterTypes() { @@ -2140,7 +2140,7 @@ var publicModuleInGlobal; return new publicClass(); }; return publicClassWithWithPublicParmeterTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; var privateClassWithWithPrivateParmeterTypes = (function () { function privateClassWithWithPrivateParmeterTypes() { @@ -2170,7 +2170,7 @@ var publicModuleInGlobal; return new privateClass(); }; return privateClassWithWithPrivateParmeterTypes; - })(); + }()); var privateClassWithWithPublicParmeterTypes = (function () { function privateClassWithWithPublicParmeterTypes() { } @@ -2199,7 +2199,7 @@ var publicModuleInGlobal; return new publicClass(); }; return privateClassWithWithPublicParmeterTypes; - })(); + }()); function publicFunctionWithPrivateParmeterTypes() { return null; } @@ -2244,7 +2244,7 @@ var publicModuleInGlobal; return new privateModule.publicClass(); }; return publicClassWithPrivateModuleParameterTypes; - })(); + }()); publicModuleInGlobal.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; function publicFunctionWithPrivateModuleParameterTypes() { return null; @@ -2270,7 +2270,7 @@ var publicModuleInGlobal; return new privateModule.publicClass(); }; return privateClassWithPrivateModuleParameterTypes; - })(); + }()); function privateFunctionWithPrivateModuleParameterTypes() { return null; } diff --git a/tests/baselines/reference/privacyGetter.js b/tests/baselines/reference/privacyGetter.js index 95e3dda5643..37d89442e62 100644 --- a/tests/baselines/reference/privacyGetter.js +++ b/tests/baselines/reference/privacyGetter.js @@ -218,13 +218,13 @@ define(["require", "exports"], function (require, exports) { C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); var C3_public = (function () { function C3_public() { } @@ -265,7 +265,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C3_public; - })(); + }()); m1.C3_public = C3_public; var C4_private = (function () { function C4_private() { @@ -307,7 +307,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C4_private; - })(); + }()); })(m1 = exports.m1 || (exports.m1 = {})); var m2; (function (m2) { @@ -317,13 +317,13 @@ define(["require", "exports"], function (require, exports) { m2_C1_public.prototype.f1 = function () { }; return m2_C1_public; - })(); + }()); m2.m2_C1_public = m2_C1_public; var m2_C2_private = (function () { function m2_C2_private() { } return m2_C2_private; - })(); + }()); var m2_C3_public = (function () { function m2_C3_public() { } @@ -364,7 +364,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return m2_C3_public; - })(); + }()); m2.m2_C3_public = m2_C3_public; var m2_C4_private = (function () { function m2_C4_private() { @@ -406,7 +406,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return m2_C4_private; - })(); + }()); })(m2 || (m2 = {})); var C5_private = (function () { function C5_private() { @@ -414,12 +414,12 @@ define(["require", "exports"], function (require, exports) { C5_private.prototype.f = function () { }; return C5_private; - })(); + }()); var C6_public = (function () { function C6_public() { } return C6_public; - })(); + }()); exports.C6_public = C6_public; var C7_public = (function () { function C7_public() { @@ -461,7 +461,7 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C7_public; - })(); + }()); exports.C7_public = C7_public; var C8_private = (function () { function C8_private() { @@ -503,5 +503,5 @@ define(["require", "exports"], function (require, exports) { configurable: true }); return C8_private; - })(); + }()); }); diff --git a/tests/baselines/reference/privacyGloClass.js b/tests/baselines/reference/privacyGloClass.js index 01eff312739..e8c8c447cf9 100644 --- a/tests/baselines/reference/privacyGloClass.js +++ b/tests/baselines/reference/privacyGloClass.js @@ -74,34 +74,34 @@ var m1; m1_c_public.prototype.f1 = function () { }; return m1_c_public; - })(); + }()); m1.m1_c_public = m1_c_public; var m1_c_private = (function () { function m1_c_private() { } return m1_c_private; - })(); + }()); var m1_C1_private = (function (_super) { __extends(m1_C1_private, _super); function m1_C1_private() { _super.apply(this, arguments); } return m1_C1_private; - })(m1_c_public); + }(m1_c_public)); var m1_C2_private = (function (_super) { __extends(m1_C2_private, _super); function m1_C2_private() { _super.apply(this, arguments); } return m1_C2_private; - })(m1_c_private); + }(m1_c_private)); var m1_C3_public = (function (_super) { __extends(m1_C3_public, _super); function m1_C3_public() { _super.apply(this, arguments); } return m1_C3_public; - })(m1_c_public); + }(m1_c_public)); m1.m1_C3_public = m1_C3_public; var m1_C4_public = (function (_super) { __extends(m1_C4_public, _super); @@ -109,29 +109,29 @@ var m1; _super.apply(this, arguments); } return m1_C4_public; - })(m1_c_private); + }(m1_c_private)); m1.m1_C4_public = m1_C4_public; var m1_C5_private = (function () { function m1_C5_private() { } return m1_C5_private; - })(); + }()); var m1_C6_private = (function () { function m1_C6_private() { } return m1_C6_private; - })(); + }()); var m1_C7_public = (function () { function m1_C7_public() { } return m1_C7_public; - })(); + }()); m1.m1_C7_public = m1_C7_public; var m1_C8_public = (function () { function m1_C8_public() { } return m1_C8_public; - })(); + }()); m1.m1_C8_public = m1_C8_public; var m1_C9_private = (function (_super) { __extends(m1_C9_private, _super); @@ -139,21 +139,21 @@ var m1; _super.apply(this, arguments); } return m1_C9_private; - })(m1_c_public); + }(m1_c_public)); var m1_C10_private = (function (_super) { __extends(m1_C10_private, _super); function m1_C10_private() { _super.apply(this, arguments); } return m1_C10_private; - })(m1_c_private); + }(m1_c_private)); var m1_C11_public = (function (_super) { __extends(m1_C11_public, _super); function m1_C11_public() { _super.apply(this, arguments); } return m1_C11_public; - })(m1_c_public); + }(m1_c_public)); m1.m1_C11_public = m1_C11_public; var m1_C12_public = (function (_super) { __extends(m1_C12_public, _super); @@ -161,7 +161,7 @@ var m1; _super.apply(this, arguments); } return m1_C12_public; - })(m1_c_private); + }(m1_c_private)); m1.m1_C12_public = m1_C12_public; })(m1 || (m1 = {})); var glo_c_public = (function () { @@ -170,23 +170,23 @@ var glo_c_public = (function () { glo_c_public.prototype.f1 = function () { }; return glo_c_public; -})(); +}()); var glo_C3_public = (function (_super) { __extends(glo_C3_public, _super); function glo_C3_public() { _super.apply(this, arguments); } return glo_C3_public; -})(glo_c_public); +}(glo_c_public)); var glo_C7_public = (function () { function glo_C7_public() { } return glo_C7_public; -})(); +}()); var glo_C11_public = (function (_super) { __extends(glo_C11_public, _super); function glo_C11_public() { _super.apply(this, arguments); } return glo_C11_public; -})(glo_c_public); +}(glo_c_public)); diff --git a/tests/baselines/reference/privacyGloFunc.js b/tests/baselines/reference/privacyGloFunc.js index ff801078df5..153fa57e3d3 100644 --- a/tests/baselines/reference/privacyGloFunc.js +++ b/tests/baselines/reference/privacyGloFunc.js @@ -541,13 +541,13 @@ define(["require", "exports"], function (require, exports) { C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); var C3_public = (function () { function C3_public(m1_c3_c1_2) { } @@ -584,7 +584,7 @@ define(["require", "exports"], function (require, exports) { return new C2_private(); //error }; return C3_public; - })(); + }()); m1.C3_public = C3_public; var C4_private = (function () { function C4_private(m1_c4_c1_2) { @@ -622,29 +622,29 @@ define(["require", "exports"], function (require, exports) { return new C2_private(); }; return C4_private; - })(); + }()); var C5_public = (function () { function C5_public(m1_c5_c) { } return C5_public; - })(); + }()); m1.C5_public = C5_public; var C6_private = (function () { function C6_private(m1_c6_c) { } return C6_private; - })(); + }()); var C7_public = (function () { function C7_public(m1_c7_c) { } return C7_public; - })(); + }()); m1.C7_public = C7_public; var C8_private = (function () { function C8_private(m1_c8_c) { } return C8_private; - })(); + }()); function f1_public(m1_f1_arg) { } function f2_public(m1_f2_arg) { @@ -692,13 +692,13 @@ define(["require", "exports"], function (require, exports) { m2_C1_public.prototype.f = function () { }; return m2_C1_public; - })(); + }()); m2.m2_C1_public = m2_C1_public; var m2_C2_private = (function () { function m2_C2_private() { } return m2_C2_private; - })(); + }()); var m2_C3_public = (function () { function m2_C3_public(m2_c3_c1_2) { } @@ -735,7 +735,7 @@ define(["require", "exports"], function (require, exports) { return new m2_C2_private(); }; return m2_C3_public; - })(); + }()); m2.m2_C3_public = m2_C3_public; var m2_C4_private = (function () { function m2_C4_private(m2_c4_c1_2) { @@ -773,29 +773,29 @@ define(["require", "exports"], function (require, exports) { return new m2_C2_private(); }; return m2_C4_private; - })(); + }()); var m2_C5_public = (function () { function m2_C5_public(m2_c5_c) { } return m2_C5_public; - })(); + }()); m2.m2_C5_public = m2_C5_public; var m2_C6_private = (function () { function m2_C6_private(m2_c6_c) { } return m2_C6_private; - })(); + }()); var m2_C7_public = (function () { function m2_C7_public(m2_c7_c) { } return m2_C7_public; - })(); + }()); m2.m2_C7_public = m2_C7_public; var m2_C8_private = (function () { function m2_C8_private(m2_c8_c) { } return m2_C8_private; - })(); + }()); function f1_public(m2_f1_arg) { } function f2_public(m2_f2_arg) { @@ -841,12 +841,12 @@ define(["require", "exports"], function (require, exports) { C5_private.prototype.f = function () { }; return C5_private; - })(); + }()); var C6_public = (function () { function C6_public() { } return C6_public; - })(); + }()); exports.C6_public = C6_public; var C7_public = (function () { function C7_public(c7_c1_2) { @@ -884,7 +884,7 @@ define(["require", "exports"], function (require, exports) { return new C5_private(); //error }; return C7_public; - })(); + }()); exports.C7_public = C7_public; var C8_private = (function () { function C8_private(c8_c1_2) { @@ -922,29 +922,29 @@ define(["require", "exports"], function (require, exports) { return new C5_private(); }; return C8_private; - })(); + }()); var C9_public = (function () { function C9_public(c9_c) { } return C9_public; - })(); + }()); exports.C9_public = C9_public; var C10_private = (function () { function C10_private(c10_c) { } return C10_private; - })(); + }()); var C11_public = (function () { function C11_public(c11_c) { } return C11_public; - })(); + }()); exports.C11_public = C11_public; var C12_private = (function () { function C12_private(c12_c) { } return C12_private; - })(); + }()); function f1_private(f1_arg) { } function f2_public(f2_arg) { diff --git a/tests/baselines/reference/privacyGloGetter.js b/tests/baselines/reference/privacyGloGetter.js index 34e4b69d392..2ae94a0d321 100644 --- a/tests/baselines/reference/privacyGloGetter.js +++ b/tests/baselines/reference/privacyGloGetter.js @@ -97,13 +97,13 @@ var m1; C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); var C3_public = (function () { function C3_public() { } @@ -144,7 +144,7 @@ var m1; configurable: true }); return C3_public; - })(); + }()); m1.C3_public = C3_public; var C4_private = (function () { function C4_private() { @@ -186,13 +186,13 @@ var m1; configurable: true }); return C4_private; - })(); + }()); })(m1 || (m1 = {})); var C6_public = (function () { function C6_public() { } return C6_public; -})(); +}()); var C7_public = (function () { function C7_public() { } @@ -215,4 +215,4 @@ var C7_public = (function () { configurable: true }); return C7_public; -})(); +}()); diff --git a/tests/baselines/reference/privacyGloImport.js b/tests/baselines/reference/privacyGloImport.js index 7f832ef75fe..407ac5bb8d5 100644 --- a/tests/baselines/reference/privacyGloImport.js +++ b/tests/baselines/reference/privacyGloImport.js @@ -161,7 +161,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M1_public.c1 = c1; function f1() { return new c1; @@ -175,7 +175,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M2_private.c1 = c1; function f1() { return new c1; @@ -242,7 +242,7 @@ var glo_M1_public; function c1() { } return c1; - })(); + }()); glo_M1_public.c1 = c1; function f1() { return new c1; diff --git a/tests/baselines/reference/privacyGloImportParseErrors.js b/tests/baselines/reference/privacyGloImportParseErrors.js index f99fdaca8cc..21175ff068d 100644 --- a/tests/baselines/reference/privacyGloImportParseErrors.js +++ b/tests/baselines/reference/privacyGloImportParseErrors.js @@ -161,7 +161,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M1_public.c1 = c1; function f1() { return new c1; @@ -175,7 +175,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M2_private.c1 = c1; function f1() { return new c1; @@ -226,7 +226,7 @@ var glo_M1_public; function c1() { } return c1; - })(); + }()); glo_M1_public.c1 = c1; function f1() { return new c1; diff --git a/tests/baselines/reference/privacyGloInterface.js b/tests/baselines/reference/privacyGloInterface.js index f4469942b54..671977678a3 100644 --- a/tests/baselines/reference/privacyGloInterface.js +++ b/tests/baselines/reference/privacyGloInterface.js @@ -128,13 +128,13 @@ var m1; C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); })(m1 || (m1 = {})); var C5_public = (function () { function C5_public() { @@ -142,4 +142,4 @@ var C5_public = (function () { C5_public.prototype.f1 = function () { }; return C5_public; -})(); +}()); diff --git a/tests/baselines/reference/privacyGloVar.js b/tests/baselines/reference/privacyGloVar.js index e4bda49698f..678d6cfdc99 100644 --- a/tests/baselines/reference/privacyGloVar.js +++ b/tests/baselines/reference/privacyGloVar.js @@ -89,13 +89,13 @@ var m1; C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); var C3_public = (function () { function C3_public() { this.C3_v11_private = new C1_public(); @@ -108,7 +108,7 @@ var m1; this.C3_v24_public = new C2_private(); // error } return C3_public; - })(); + }()); m1.C3_public = C3_public; var C4_public = (function () { function C4_public() { @@ -122,7 +122,7 @@ var m1; this.C4_v24_public = new C2_private(); } return C4_public; - })(); + }()); var m1_v1_private; var m1_v3_private; var m1_v11_private = new C1_public(); @@ -140,7 +140,7 @@ var glo_C1_public = (function () { glo_C1_public.prototype.f1 = function () { }; return glo_C1_public; -})(); +}()); var glo_C3_public = (function () { function glo_C3_public() { this.glo_C3_v11_private = new glo_C1_public(); @@ -149,7 +149,7 @@ var glo_C3_public = (function () { this.glo_C3_v22_public = new glo_C1_public(); } return glo_C3_public; -})(); +}()); var glo_v2_public; var glo_v12_public = new glo_C1_public(); var glo_v22_public = new glo_C1_public(); diff --git a/tests/baselines/reference/privacyImport.js b/tests/baselines/reference/privacyImport.js index 13a6bc396ea..debb1e3b4bd 100644 --- a/tests/baselines/reference/privacyImport.js +++ b/tests/baselines/reference/privacyImport.js @@ -366,7 +366,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M1_public.c1 = c1; function f1() { return new c1; @@ -380,7 +380,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M2_private.c1 = c1; function f1() { return new c1; @@ -449,7 +449,7 @@ var m2; function c1() { } return c1; - })(); + }()); m2_M1_public.c1 = c1; function f1() { return new c1; @@ -463,7 +463,7 @@ var m2; function c1() { } return c1; - })(); + }()); m2_M2_private.c1 = c1; function f1() { return new c1; @@ -531,7 +531,7 @@ var glo_M1_public; function c1() { } return c1; - })(); + }()); glo_M1_public.c1 = c1; function f1() { return new c1; @@ -552,7 +552,7 @@ var glo_M3_private; function c1() { } return c1; - })(); + }()); glo_M3_private.c1 = c1; function f1() { return new c1; diff --git a/tests/baselines/reference/privacyImportParseErrors.js b/tests/baselines/reference/privacyImportParseErrors.js index 7a7e7141684..25d96b6156e 100644 --- a/tests/baselines/reference/privacyImportParseErrors.js +++ b/tests/baselines/reference/privacyImportParseErrors.js @@ -366,7 +366,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M1_public.c1 = c1; function f1() { return new c1; @@ -380,7 +380,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1_M2_private.c1 = c1; function f1() { return new c1; @@ -433,7 +433,7 @@ var m2; function c1() { } return c1; - })(); + }()); m2_M1_public.c1 = c1; function f1() { return new c1; @@ -447,7 +447,7 @@ var m2; function c1() { } return c1; - })(); + }()); m2_M2_private.c1 = c1; function f1() { return new c1; @@ -499,7 +499,7 @@ var glo_M1_public; function c1() { } return c1; - })(); + }()); glo_M1_public.c1 = c1; function f1() { return new c1; @@ -513,7 +513,7 @@ var glo_M3_private; function c1() { } return c1; - })(); + }()); glo_M3_private.c1 = c1; function f1() { return new c1; diff --git a/tests/baselines/reference/privacyInterface.js b/tests/baselines/reference/privacyInterface.js index 78e87bc22d2..59e10aca7ff 100644 --- a/tests/baselines/reference/privacyInterface.js +++ b/tests/baselines/reference/privacyInterface.js @@ -274,13 +274,13 @@ var m1; C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); })(m1 = exports.m1 || (exports.m1 = {})); var m2; (function (m2) { @@ -290,13 +290,13 @@ var m2; C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m2.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); })(m2 || (m2 = {})); var C5_public = (function () { function C5_public() { @@ -304,10 +304,10 @@ var C5_public = (function () { C5_public.prototype.f1 = function () { }; return C5_public; -})(); +}()); exports.C5_public = C5_public; var C6_private = (function () { function C6_private() { } return C6_private; -})(); +}()); diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js index e5c127272b7..0ab6d3e531e 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithExport.js @@ -161,7 +161,7 @@ var m_private; function c_private() { } return c_private; - })(); + }()); m_private.c_private = c_private; (function (e_private) { e_private[e_private["Happy"] = 0] = "Happy"; @@ -179,7 +179,7 @@ var m_private; function c() { } return c; - })(); + }()); mi_private.c = c; })(mi_private = m_private.mi_private || (m_private.mi_private = {})); })(m_private || (m_private = {})); @@ -190,7 +190,7 @@ var m_public; function c_public() { } return c_public; - })(); + }()); m_public.c_public = c_public; (function (e_public) { e_public[e_public["Happy"] = 0] = "Happy"; @@ -208,7 +208,7 @@ var m_public; function c() { } return c; - })(); + }()); mi_public.c = c; })(mi_public = m_public.mi_public || (m_public.mi_public = {})); })(m_public = exports.m_public || (exports.m_public = {})); diff --git a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js index 9cc4f6a9160..96f7b74b474 100644 --- a/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyLocalInternalReferenceImportWithoutExport.js @@ -162,7 +162,7 @@ define(["require", "exports"], function (require, exports) { function c_private() { } return c_private; - })(); + }()); m_private.c_private = c_private; (function (e_private) { e_private[e_private["Happy"] = 0] = "Happy"; @@ -180,7 +180,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); mi_private.c = c; })(mi_private = m_private.mi_private || (m_private.mi_private = {})); })(m_private || (m_private = {})); @@ -191,7 +191,7 @@ define(["require", "exports"], function (require, exports) { function c_public() { } return c_public; - })(); + }()); m_public.c_public = c_public; (function (e_public) { e_public[e_public["Happy"] = 0] = "Happy"; @@ -209,7 +209,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); mi_public.c = c; })(mi_public = m_public.mi_public || (m_public.mi_public = {})); })(m_public = exports.m_public || (exports.m_public = {})); diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.errors.txt b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.errors.txt new file mode 100644 index 00000000000..52d6c4c0fff --- /dev/null +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.errors.txt @@ -0,0 +1,55 @@ +tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_core.ts(15,12): error TS2323: Cannot redeclare exported variable 'publicUse_im_public_mi_public'. +tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_core.ts(17,12): error TS2323: Cannot redeclare exported variable 'publicUse_im_public_mi_public'. + + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_core.ts (2 errors) ==== + /// + /// + // Privacy errors - importing private elements + export import im_public_mi_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require"); + export import im_public_mu_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require1"); + export import im_public_mi_public = require("m"); + export import im_public_mu_public = require("m2"); + + // Usage of privacy error imports + var privateUse_im_public_mi_private = new im_public_mi_private.c_public(); + export var publicUse_im_public_mi_private = new im_public_mi_private.c_public(); + var privateUse_im_public_mu_private = new im_public_mu_private.c_public(); + export var publicUse_im_public_mu_private = new im_public_mu_private.c_public(); + var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); + export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2323: Cannot redeclare exported variable 'publicUse_im_public_mi_public'. + var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); + export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2323: Cannot redeclare exported variable 'publicUse_im_public_mi_public'. + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require.ts (0 errors) ==== + // Public elements + export class c_public { + foo: string; + } + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts (0 errors) ==== + export class c_public { + bar: string; + } + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts (0 errors) ==== + // private elements + // Export - Error ambient modules allowed only in global + declare module 'm' { + export class c_private { + baz: string; + } + } + + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts (0 errors) ==== + declare module 'm2' { + export class c_private { + bing: string; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js index 5cb455f47bc..d8bf7c85d12 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.js @@ -57,7 +57,7 @@ var c_public = (function () { function c_public() { } return c_public; -})(); +}()); exports.c_public = c_public; //// [privacyTopLevelAmbientExternalModuleImportWithExport_require1.js] "use strict"; @@ -65,7 +65,7 @@ var c_public = (function () { function c_public() { } return c_public; -})(); +}()); exports.c_public = c_public; //// [privacyTopLevelAmbientExternalModuleImportWithExport_core.js] "use strict"; diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.symbols b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.symbols deleted file mode 100644 index 2dcddbbfa06..00000000000 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.symbols +++ /dev/null @@ -1,105 +0,0 @@ -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_core.ts === -/// -/// -// Privacy errors - importing private elements -export import im_public_mi_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require"); ->im_public_mi_private : Symbol(im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 0, 0)) - -export import im_public_mu_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require1"); ->im_public_mu_private : Symbol(im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 3, 111)) - -export import im_public_mi_public = require("m"); ->im_public_mi_public : Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 112)) - -export import im_public_mu_public = require("m2"); ->im_public_mu_public : Symbol(im_public_mu_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 5, 49)) - -// Usage of privacy error imports -var privateUse_im_public_mi_private = new im_public_mi_private.c_public(); ->privateUse_im_public_mi_private : Symbol(privateUse_im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 9, 3)) ->im_public_mi_private.c_public : Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) ->im_public_mi_private : Symbol(im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 0, 0)) ->c_public : Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) - -export var publicUse_im_public_mi_private = new im_public_mi_private.c_public(); ->publicUse_im_public_mi_private : Symbol(publicUse_im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 10, 10)) ->im_public_mi_private.c_public : Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) ->im_public_mi_private : Symbol(im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 0, 0)) ->c_public : Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) - -var privateUse_im_public_mu_private = new im_public_mu_private.c_public(); ->privateUse_im_public_mu_private : Symbol(privateUse_im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 11, 3)) ->im_public_mu_private.c_public : Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) ->im_public_mu_private : Symbol(im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 3, 111)) ->c_public : Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) - -export var publicUse_im_public_mu_private = new im_public_mu_private.c_public(); ->publicUse_im_public_mu_private : Symbol(publicUse_im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 12, 10)) ->im_public_mu_private.c_public : Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) ->im_public_mu_private : Symbol(im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 3, 111)) ->c_public : Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) - -var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); ->privateUse_im_public_mi_public : Symbol(privateUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 15, 3)) ->im_public_mi_public.c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) ->im_public_mi_public : Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 112)) ->c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) - -export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); ->publicUse_im_public_mi_public : Symbol(publicUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 16, 10)) ->im_public_mi_public.c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) ->im_public_mi_public : Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 112)) ->c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) - -var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); ->privateUse_im_public_mi_public : Symbol(privateUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 15, 3)) ->im_public_mi_public.c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) ->im_public_mi_public : Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 112)) ->c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) - -export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); ->publicUse_im_public_mi_public : Symbol(publicUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 16, 10)) ->im_public_mi_public.c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) ->im_public_mi_public : Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 112)) ->c_private : Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require.ts === -// Public elements -export class c_public { ->c_public : Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) - - foo: string; ->foo : Symbol(foo, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 1, 23)) -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts === -export class c_public { ->c_public : Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) - - bar: string; ->bar : Symbol(bar, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 23)) -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts === -// private elements -// Export - Error ambient modules allowed only in global -declare module 'm' { - export class c_private { ->c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) - - baz: string; ->baz : Symbol(baz, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 3, 28)) - } -} - - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts === -declare module 'm2' { - export class c_private { ->c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts, 0, 21)) - - bing: string; ->bing : Symbol(bing, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts, 1, 28)) - } -} - diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.types b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.types deleted file mode 100644 index 5c082bef5de..00000000000 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.types +++ /dev/null @@ -1,113 +0,0 @@ -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_core.ts === -/// -/// -// Privacy errors - importing private elements -export import im_public_mi_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require"); ->im_public_mi_private : typeof im_public_mi_private - -export import im_public_mu_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require1"); ->im_public_mu_private : typeof im_public_mu_private - -export import im_public_mi_public = require("m"); ->im_public_mi_public : typeof im_public_mi_public - -export import im_public_mu_public = require("m2"); ->im_public_mu_public : typeof im_public_mu_public - -// Usage of privacy error imports -var privateUse_im_public_mi_private = new im_public_mi_private.c_public(); ->privateUse_im_public_mi_private : im_public_mi_private.c_public ->new im_public_mi_private.c_public() : im_public_mi_private.c_public ->im_public_mi_private.c_public : typeof im_public_mi_private.c_public ->im_public_mi_private : typeof im_public_mi_private ->c_public : typeof im_public_mi_private.c_public - -export var publicUse_im_public_mi_private = new im_public_mi_private.c_public(); ->publicUse_im_public_mi_private : im_public_mi_private.c_public ->new im_public_mi_private.c_public() : im_public_mi_private.c_public ->im_public_mi_private.c_public : typeof im_public_mi_private.c_public ->im_public_mi_private : typeof im_public_mi_private ->c_public : typeof im_public_mi_private.c_public - -var privateUse_im_public_mu_private = new im_public_mu_private.c_public(); ->privateUse_im_public_mu_private : im_public_mu_private.c_public ->new im_public_mu_private.c_public() : im_public_mu_private.c_public ->im_public_mu_private.c_public : typeof im_public_mu_private.c_public ->im_public_mu_private : typeof im_public_mu_private ->c_public : typeof im_public_mu_private.c_public - -export var publicUse_im_public_mu_private = new im_public_mu_private.c_public(); ->publicUse_im_public_mu_private : im_public_mu_private.c_public ->new im_public_mu_private.c_public() : im_public_mu_private.c_public ->im_public_mu_private.c_public : typeof im_public_mu_private.c_public ->im_public_mu_private : typeof im_public_mu_private ->c_public : typeof im_public_mu_private.c_public - -var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); ->privateUse_im_public_mi_public : im_public_mi_public.c_private ->new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private - -export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); ->publicUse_im_public_mi_public : im_public_mi_public.c_private ->new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private - -var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); ->privateUse_im_public_mi_public : im_public_mi_public.c_private ->new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private - -export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); ->publicUse_im_public_mi_public : im_public_mi_public.c_private ->new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require.ts === -// Public elements -export class c_public { ->c_public : c_public - - foo: string; ->foo : string -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts === -export class c_public { ->c_public : c_public - - bar: string; ->bar : string -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts === -// private elements -// Export - Error ambient modules allowed only in global -declare module 'm' { - export class c_private { ->c_private : c_private - - baz: string; ->baz : string - } -} - - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts === -declare module 'm2' { - export class c_private { ->c_private : c_private - - bing: string; ->bing : string - } -} - diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt new file mode 100644 index 00000000000..cc81762bce3 --- /dev/null +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.errors.txt @@ -0,0 +1,55 @@ +tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts(15,12): error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. +tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts(17,12): error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. + + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts (2 errors) ==== + /// + /// + // Privacy errors - importing private elements + import im_private_mi_private = require("m"); + import im_private_mu_private = require("m2"); + import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); + import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); + + // Usage of privacy error imports + var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); + export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); + var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); + export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); + var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); + export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. + var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); + export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2323: Cannot redeclare exported variable 'publicUse_im_private_mi_public'. + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts (0 errors) ==== + + // Public elements + export class c_public { + foo: string; + } + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts (0 errors) ==== + export class c_public { + bar: string; + } + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts (0 errors) ==== + // private elements + // Export - Error ambient modules allowed only in global + declare module 'm' { + export class c_private { + baz: string + } + } + +==== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts (0 errors) ==== + declare module 'm2' { + export class c_private { + bing: string; + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js index a03c7dcef62..7f44dbe6257 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.js @@ -58,7 +58,7 @@ define(["require", "exports"], function (require, exports) { function c_public() { } return c_public; - })(); + }()); exports.c_public = c_public; }); //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.js] @@ -68,7 +68,7 @@ define(["require", "exports"], function (require, exports) { function c_public() { } return c_public; - })(); + }()); exports.c_public = c_public; }); //// [privacyTopLevelAmbientExternalModuleImportWithoutExport_core.js] diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols deleted file mode 100644 index e366538124f..00000000000 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.symbols +++ /dev/null @@ -1,105 +0,0 @@ -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts === -/// -/// -// Privacy errors - importing private elements -import im_private_mi_private = require("m"); ->im_private_mi_private : Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) - -import im_private_mu_private = require("m2"); ->im_private_mu_private : Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) - -import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); ->im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) - -import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); ->im_private_mu_public : Symbol(im_private_mu_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 5, 105)) - -// Usage of privacy error imports -var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); ->privateUse_im_private_mi_private : Symbol(privateUse_im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 9, 3)) ->im_private_mi_private.c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) ->im_private_mi_private : Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) ->c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) - -export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); ->publicUse_im_private_mi_private : Symbol(publicUse_im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 10, 10)) ->im_private_mi_private.c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) ->im_private_mi_private : Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) ->c_private : Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) - -var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); ->privateUse_im_private_mu_private : Symbol(privateUse_im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 11, 3)) ->im_private_mu_private.c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) ->im_private_mu_private : Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) ->c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) - -export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); ->publicUse_im_private_mu_private : Symbol(publicUse_im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 12, 10)) ->im_private_mu_private.c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) ->im_private_mu_private : Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) ->c_private : Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) - -var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); ->privateUse_im_private_mi_public : Symbol(privateUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 15, 3)) ->im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) ->im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) ->c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) - -export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); ->publicUse_im_private_mi_public : Symbol(publicUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 16, 10)) ->im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) ->im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) ->c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) - -var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); ->privateUse_im_private_mi_public : Symbol(privateUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 15, 3)) ->im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) ->im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) ->c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) - -export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); ->publicUse_im_private_mi_public : Symbol(publicUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 16, 10)) ->im_private_mi_public.c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) ->im_private_mi_public : Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) ->c_public : Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts === - -// Public elements -export class c_public { ->c_public : Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) - - foo: string; ->foo : Symbol(foo, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 2, 23)) -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts === -export class c_public { ->c_public : Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts, 0, 0)) - - bar: string; ->bar : Symbol(bar, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts, 0, 23)) -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts === -// private elements -// Export - Error ambient modules allowed only in global -declare module 'm' { - export class c_private { ->c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) - - baz: string ->baz : Symbol(baz, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 3, 28)) - } -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts === -declare module 'm2' { - export class c_private { ->c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) - - bing: string; ->bing : Symbol(bing, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 1, 28)) - } -} - diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types deleted file mode 100644 index 437d35fb64a..00000000000 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types +++ /dev/null @@ -1,113 +0,0 @@ -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts === -/// -/// -// Privacy errors - importing private elements -import im_private_mi_private = require("m"); ->im_private_mi_private : typeof im_private_mi_private - -import im_private_mu_private = require("m2"); ->im_private_mu_private : typeof im_private_mu_private - -import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); ->im_private_mi_public : typeof im_private_mi_public - -import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); ->im_private_mu_public : typeof im_private_mu_public - -// Usage of privacy error imports -var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); ->privateUse_im_private_mi_private : im_private_mi_private.c_private ->new im_private_mi_private.c_private() : im_private_mi_private.c_private ->im_private_mi_private.c_private : typeof im_private_mi_private.c_private ->im_private_mi_private : typeof im_private_mi_private ->c_private : typeof im_private_mi_private.c_private - -export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); ->publicUse_im_private_mi_private : im_private_mi_private.c_private ->new im_private_mi_private.c_private() : im_private_mi_private.c_private ->im_private_mi_private.c_private : typeof im_private_mi_private.c_private ->im_private_mi_private : typeof im_private_mi_private ->c_private : typeof im_private_mi_private.c_private - -var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); ->privateUse_im_private_mu_private : im_private_mu_private.c_private ->new im_private_mu_private.c_private() : im_private_mu_private.c_private ->im_private_mu_private.c_private : typeof im_private_mu_private.c_private ->im_private_mu_private : typeof im_private_mu_private ->c_private : typeof im_private_mu_private.c_private - -export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); ->publicUse_im_private_mu_private : im_private_mu_private.c_private ->new im_private_mu_private.c_private() : im_private_mu_private.c_private ->im_private_mu_private.c_private : typeof im_private_mu_private.c_private ->im_private_mu_private : typeof im_private_mu_private ->c_private : typeof im_private_mu_private.c_private - -var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); ->privateUse_im_private_mi_public : im_private_mi_public.c_public ->new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public - -export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); ->publicUse_im_private_mi_public : im_private_mi_public.c_public ->new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public - -var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); ->privateUse_im_private_mi_public : im_private_mi_public.c_public ->new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public - -export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); ->publicUse_im_private_mi_public : im_private_mi_public.c_public ->new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts === - -// Public elements -export class c_public { ->c_public : c_public - - foo: string; ->foo : string -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts === -export class c_public { ->c_public : c_public - - bar: string; ->bar : string -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts === -// private elements -// Export - Error ambient modules allowed only in global -declare module 'm' { - export class c_private { ->c_private : c_private - - baz: string ->baz : string - } -} - -=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts === -declare module 'm2' { - export class c_private { ->c_private : c_private - - bing: string; ->bing : string - } -} - diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js index 5daa00d5764..852ae4d3f19 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithExport.js @@ -109,7 +109,7 @@ define(["require", "exports"], function (require, exports) { function c_private() { } return c_private; - })(); + }()); m_private.c_private = c_private; (function (e_private) { e_private[e_private["Happy"] = 0] = "Happy"; @@ -127,7 +127,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); mi_private.c = c; })(mi_private = m_private.mi_private || (m_private.mi_private = {})); })(m_private || (m_private = {})); @@ -138,7 +138,7 @@ define(["require", "exports"], function (require, exports) { function c_public() { } return c_public; - })(); + }()); m_public.c_public = c_public; (function (e_public) { e_public[e_public["Happy"] = 0] = "Happy"; @@ -156,7 +156,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); mi_public.c = c; })(mi_public = m_public.mi_public || (m_public.mi_public = {})); })(m_public = exports.m_public || (exports.m_public = {})); diff --git a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js index 2abc4b11d93..1241165a8dc 100644 --- a/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js +++ b/tests/baselines/reference/privacyTopLevelInternalReferenceImportWithoutExport.js @@ -110,7 +110,7 @@ define(["require", "exports"], function (require, exports) { function c_private() { } return c_private; - })(); + }()); m_private.c_private = c_private; (function (e_private) { e_private[e_private["Happy"] = 0] = "Happy"; @@ -128,7 +128,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); mi_private.c = c; })(mi_private = m_private.mi_private || (m_private.mi_private = {})); })(m_private || (m_private = {})); @@ -139,7 +139,7 @@ define(["require", "exports"], function (require, exports) { function c_public() { } return c_public; - })(); + }()); m_public.c_public = c_public; (function (e_public) { e_public[e_public["Happy"] = 0] = "Happy"; @@ -157,7 +157,7 @@ define(["require", "exports"], function (require, exports) { function c() { } return c; - })(); + }()); mi_public.c = c; })(mi_public = m_public.mi_public || (m_public.mi_public = {})); })(m_public = exports.m_public || (exports.m_public = {})); diff --git a/tests/baselines/reference/privacyTypeParameterOfFunction.js b/tests/baselines/reference/privacyTypeParameterOfFunction.js index ec447d9ccbb..84034362fac 100644 --- a/tests/baselines/reference/privacyTypeParameterOfFunction.js +++ b/tests/baselines/reference/privacyTypeParameterOfFunction.js @@ -138,12 +138,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithWithPrivateTypeParameters = (function () { function publicClassWithWithPrivateTypeParameters() { @@ -159,7 +159,7 @@ var publicClassWithWithPrivateTypeParameters = (function () { publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPrivateTypeParameters; -})(); +}()); exports.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; var publicClassWithWithPublicTypeParameters = (function () { function publicClassWithWithPublicTypeParameters() { @@ -173,7 +173,7 @@ var publicClassWithWithPublicTypeParameters = (function () { publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParameters; -})(); +}()); exports.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; var privateClassWithWithPrivateTypeParameters = (function () { function privateClassWithWithPrivateTypeParameters() { @@ -187,7 +187,7 @@ var privateClassWithWithPrivateTypeParameters = (function () { privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPrivateTypeParameters; -})(); +}()); var privateClassWithWithPublicTypeParameters = (function () { function privateClassWithWithPublicTypeParameters() { } @@ -200,7 +200,7 @@ var privateClassWithWithPublicTypeParameters = (function () { privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParameters; -})(); +}()); // TypeParameter_0_of_exported_function_has_or_is_using_private_type_1 function publicFunctionWithPrivateTypeParameters() { } @@ -224,7 +224,7 @@ var publicClassWithWithPublicTypeParametersWithoutExtends = (function () { publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParametersWithoutExtends; -})(); +}()); exports.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithWithPublicTypeParametersWithoutExtends() { @@ -238,7 +238,7 @@ var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParametersWithoutExtends; -})(); +}()); function publicFunctionWithPublicTypeParametersWithoutExtends() { } exports.publicFunctionWithPublicTypeParametersWithoutExtends = publicFunctionWithPublicTypeParametersWithoutExtends; diff --git a/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js b/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js index 41dbb84a3ff..3eb6027b050 100644 --- a/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js +++ b/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js @@ -444,12 +444,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithWithPrivateTypeParameters = (function () { function publicClassWithWithPrivateTypeParameters() { @@ -463,7 +463,7 @@ var publicClassWithWithPrivateTypeParameters = (function () { publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPrivateTypeParameters; -})(); +}()); exports.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; var publicClassWithWithPublicTypeParameters = (function () { function publicClassWithWithPublicTypeParameters() { @@ -477,7 +477,7 @@ var publicClassWithWithPublicTypeParameters = (function () { publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParameters; -})(); +}()); exports.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; var privateClassWithWithPrivateTypeParameters = (function () { function privateClassWithWithPrivateTypeParameters() { @@ -491,7 +491,7 @@ var privateClassWithWithPrivateTypeParameters = (function () { privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPrivateTypeParameters; -})(); +}()); var privateClassWithWithPublicTypeParameters = (function () { function privateClassWithWithPublicTypeParameters() { } @@ -504,7 +504,7 @@ var privateClassWithWithPublicTypeParameters = (function () { privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParameters; -})(); +}()); function publicFunctionWithPrivateTypeParameters() { } exports.publicFunctionWithPrivateTypeParameters = publicFunctionWithPrivateTypeParameters; @@ -527,7 +527,7 @@ var publicClassWithWithPublicTypeParametersWithoutExtends = (function () { publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParametersWithoutExtends; -})(); +}()); exports.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithWithPublicTypeParametersWithoutExtends() { @@ -541,7 +541,7 @@ var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParametersWithoutExtends; -})(); +}()); function publicFunctionWithPublicTypeParametersWithoutExtends() { } exports.publicFunctionWithPublicTypeParametersWithoutExtends = publicFunctionWithPublicTypeParametersWithoutExtends; @@ -555,7 +555,7 @@ var publicClassWithWithPrivateModuleTypeParameters = (function () { publicClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; return publicClassWithWithPrivateModuleTypeParameters; -})(); +}()); exports.publicClassWithWithPrivateModuleTypeParameters = publicClassWithWithPrivateModuleTypeParameters; function publicFunctionWithPrivateMopduleTypeParameters() { } @@ -568,7 +568,7 @@ var privateClassWithWithPrivateModuleTypeParameters = (function () { privateClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; return privateClassWithWithPrivateModuleTypeParameters; -})(); +}()); function privateFunctionWithPrivateMopduleTypeParameters() { } var publicModule; @@ -577,12 +577,12 @@ var publicModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModule.publicClass = publicClass; var publicClassWithWithPrivateTypeParameters = (function () { function publicClassWithWithPrivateTypeParameters() { @@ -596,7 +596,7 @@ var publicModule; publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPrivateTypeParameters; - })(); + }()); publicModule.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; var publicClassWithWithPublicTypeParameters = (function () { function publicClassWithWithPublicTypeParameters() { @@ -610,7 +610,7 @@ var publicModule; publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParameters; - })(); + }()); publicModule.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; var privateClassWithWithPrivateTypeParameters = (function () { function privateClassWithWithPrivateTypeParameters() { @@ -624,7 +624,7 @@ var publicModule; privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPrivateTypeParameters; - })(); + }()); var privateClassWithWithPublicTypeParameters = (function () { function privateClassWithWithPublicTypeParameters() { } @@ -637,7 +637,7 @@ var publicModule; privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParameters; - })(); + }()); function publicFunctionWithPrivateTypeParameters() { } publicModule.publicFunctionWithPrivateTypeParameters = publicFunctionWithPrivateTypeParameters; @@ -660,7 +660,7 @@ var publicModule; publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParametersWithoutExtends; - })(); + }()); publicModule.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithWithPublicTypeParametersWithoutExtends() { @@ -674,7 +674,7 @@ var publicModule; privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParametersWithoutExtends; - })(); + }()); function publicFunctionWithPublicTypeParametersWithoutExtends() { } publicModule.publicFunctionWithPublicTypeParametersWithoutExtends = publicFunctionWithPublicTypeParametersWithoutExtends; @@ -688,7 +688,7 @@ var publicModule; publicClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; return publicClassWithWithPrivateModuleTypeParameters; - })(); + }()); publicModule.publicClassWithWithPrivateModuleTypeParameters = publicClassWithWithPrivateModuleTypeParameters; function publicFunctionWithPrivateMopduleTypeParameters() { } @@ -701,7 +701,7 @@ var publicModule; privateClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; return privateClassWithWithPrivateModuleTypeParameters; - })(); + }()); function privateFunctionWithPrivateMopduleTypeParameters() { } })(publicModule = exports.publicModule || (exports.publicModule = {})); @@ -711,12 +711,12 @@ var privateModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivateTypeParameters = (function () { function publicClassWithWithPrivateTypeParameters() { @@ -730,7 +730,7 @@ var privateModule; publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPrivateTypeParameters; - })(); + }()); privateModule.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; var publicClassWithWithPublicTypeParameters = (function () { function publicClassWithWithPublicTypeParameters() { @@ -744,7 +744,7 @@ var privateModule; publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParameters; - })(); + }()); privateModule.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; var privateClassWithWithPrivateTypeParameters = (function () { function privateClassWithWithPrivateTypeParameters() { @@ -758,7 +758,7 @@ var privateModule; privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPrivateTypeParameters; - })(); + }()); var privateClassWithWithPublicTypeParameters = (function () { function privateClassWithWithPublicTypeParameters() { } @@ -771,7 +771,7 @@ var privateModule; privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParameters; - })(); + }()); function publicFunctionWithPrivateTypeParameters() { } privateModule.publicFunctionWithPrivateTypeParameters = publicFunctionWithPrivateTypeParameters; @@ -794,7 +794,7 @@ var privateModule; publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return publicClassWithWithPublicTypeParametersWithoutExtends; - })(); + }()); privateModule.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithWithPublicTypeParametersWithoutExtends() { @@ -808,7 +808,7 @@ var privateModule; privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; return privateClassWithWithPublicTypeParametersWithoutExtends; - })(); + }()); function publicFunctionWithPublicTypeParametersWithoutExtends() { } privateModule.publicFunctionWithPublicTypeParametersWithoutExtends = publicFunctionWithPublicTypeParametersWithoutExtends; diff --git a/tests/baselines/reference/privacyTypeParametersOfClass.js b/tests/baselines/reference/privacyTypeParametersOfClass.js index 8118d94ab7d..3d28e145b32 100644 --- a/tests/baselines/reference/privacyTypeParametersOfClass.js +++ b/tests/baselines/reference/privacyTypeParametersOfClass.js @@ -49,12 +49,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; // TypeParameter_0_of_exported_class_1_has_or_is_using_private_type_2 var publicClassWithPrivateTypeParameters = (function () { @@ -64,7 +64,7 @@ var publicClassWithPrivateTypeParameters = (function () { return val; }; return publicClassWithPrivateTypeParameters; -})(); +}()); exports.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; var publicClassWithPublicTypeParameters = (function () { function publicClassWithPublicTypeParameters() { @@ -73,7 +73,7 @@ var publicClassWithPublicTypeParameters = (function () { return val; }; return publicClassWithPublicTypeParameters; -})(); +}()); exports.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; var privateClassWithPrivateTypeParameters = (function () { function privateClassWithPrivateTypeParameters() { @@ -82,7 +82,7 @@ var privateClassWithPrivateTypeParameters = (function () { return val; }; return privateClassWithPrivateTypeParameters; -})(); +}()); var privateClassWithPublicTypeParameters = (function () { function privateClassWithPublicTypeParameters() { } @@ -90,7 +90,7 @@ var privateClassWithPublicTypeParameters = (function () { return val; }; return privateClassWithPublicTypeParameters; -})(); +}()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { function publicClassWithPublicTypeParametersWithoutExtends() { } @@ -98,7 +98,7 @@ var publicClassWithPublicTypeParametersWithoutExtends = (function () { return val; }; return publicClassWithPublicTypeParametersWithoutExtends; -})(); +}()); exports.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; var privateClassWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithPublicTypeParametersWithoutExtends() { @@ -107,4 +107,4 @@ var privateClassWithPublicTypeParametersWithoutExtends = (function () { return val; }; return privateClassWithPublicTypeParametersWithoutExtends; -})(); +}()); diff --git a/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js b/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js index e9e1ad218bd..3ccdec46d7c 100644 --- a/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js +++ b/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js @@ -160,12 +160,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithPrivateTypeParameters = (function () { function publicClassWithPrivateTypeParameters() { @@ -174,7 +174,7 @@ var publicClassWithPrivateTypeParameters = (function () { return val; }; return publicClassWithPrivateTypeParameters; -})(); +}()); exports.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; var publicClassWithPublicTypeParameters = (function () { function publicClassWithPublicTypeParameters() { @@ -183,7 +183,7 @@ var publicClassWithPublicTypeParameters = (function () { return val; }; return publicClassWithPublicTypeParameters; -})(); +}()); exports.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; var privateClassWithPrivateTypeParameters = (function () { function privateClassWithPrivateTypeParameters() { @@ -192,7 +192,7 @@ var privateClassWithPrivateTypeParameters = (function () { return val; }; return privateClassWithPrivateTypeParameters; -})(); +}()); var privateClassWithPublicTypeParameters = (function () { function privateClassWithPublicTypeParameters() { } @@ -200,7 +200,7 @@ var privateClassWithPublicTypeParameters = (function () { return val; }; return privateClassWithPublicTypeParameters; -})(); +}()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { function publicClassWithPublicTypeParametersWithoutExtends() { } @@ -208,7 +208,7 @@ var publicClassWithPublicTypeParametersWithoutExtends = (function () { return val; }; return publicClassWithPublicTypeParametersWithoutExtends; -})(); +}()); exports.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; var privateClassWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithPublicTypeParametersWithoutExtends() { @@ -217,7 +217,7 @@ var privateClassWithPublicTypeParametersWithoutExtends = (function () { return val; }; return privateClassWithPublicTypeParametersWithoutExtends; -})(); +}()); var publicClassWithTypeParametersFromPrivateModule = (function () { function publicClassWithTypeParametersFromPrivateModule() { } @@ -225,7 +225,7 @@ var publicClassWithTypeParametersFromPrivateModule = (function () { return val; }; return publicClassWithTypeParametersFromPrivateModule; -})(); +}()); exports.publicClassWithTypeParametersFromPrivateModule = publicClassWithTypeParametersFromPrivateModule; var privateClassWithTypeParametersFromPrivateModule = (function () { function privateClassWithTypeParametersFromPrivateModule() { @@ -234,19 +234,19 @@ var privateClassWithTypeParametersFromPrivateModule = (function () { return val; }; return privateClassWithTypeParametersFromPrivateModule; -})(); +}()); var publicModule; (function (publicModule) { var privateClassInPublicModule = (function () { function privateClassInPublicModule() { } return privateClassInPublicModule; - })(); + }()); var publicClassInPublicModule = (function () { function publicClassInPublicModule() { } return publicClassInPublicModule; - })(); + }()); publicModule.publicClassInPublicModule = publicClassInPublicModule; var publicClassWithPrivateTypeParameters = (function () { function publicClassWithPrivateTypeParameters() { @@ -255,7 +255,7 @@ var publicModule; return val; }; return publicClassWithPrivateTypeParameters; - })(); + }()); publicModule.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; var publicClassWithPublicTypeParameters = (function () { function publicClassWithPublicTypeParameters() { @@ -264,7 +264,7 @@ var publicModule; return val; }; return publicClassWithPublicTypeParameters; - })(); + }()); publicModule.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; var privateClassWithPrivateTypeParameters = (function () { function privateClassWithPrivateTypeParameters() { @@ -273,7 +273,7 @@ var publicModule; return val; }; return privateClassWithPrivateTypeParameters; - })(); + }()); var privateClassWithPublicTypeParameters = (function () { function privateClassWithPublicTypeParameters() { } @@ -281,7 +281,7 @@ var publicModule; return val; }; return privateClassWithPublicTypeParameters; - })(); + }()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { function publicClassWithPublicTypeParametersWithoutExtends() { } @@ -289,7 +289,7 @@ var publicModule; return val; }; return publicClassWithPublicTypeParametersWithoutExtends; - })(); + }()); publicModule.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; var privateClassWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithPublicTypeParametersWithoutExtends() { @@ -298,7 +298,7 @@ var publicModule; return val; }; return privateClassWithPublicTypeParametersWithoutExtends; - })(); + }()); var publicClassWithTypeParametersFromPrivateModule = (function () { function publicClassWithTypeParametersFromPrivateModule() { } @@ -306,7 +306,7 @@ var publicModule; return val; }; return publicClassWithTypeParametersFromPrivateModule; - })(); + }()); publicModule.publicClassWithTypeParametersFromPrivateModule = publicClassWithTypeParametersFromPrivateModule; var privateClassWithTypeParametersFromPrivateModule = (function () { function privateClassWithTypeParametersFromPrivateModule() { @@ -315,7 +315,7 @@ var publicModule; return val; }; return privateClassWithTypeParametersFromPrivateModule; - })(); + }()); })(publicModule = exports.publicModule || (exports.publicModule = {})); var privateModule; (function (privateModule) { @@ -323,12 +323,12 @@ var privateModule; function privateClassInPrivateModule() { } return privateClassInPrivateModule; - })(); + }()); var publicClassInPrivateModule = (function () { function publicClassInPrivateModule() { } return publicClassInPrivateModule; - })(); + }()); privateModule.publicClassInPrivateModule = publicClassInPrivateModule; var publicClassWithPrivateTypeParameters = (function () { function publicClassWithPrivateTypeParameters() { @@ -337,7 +337,7 @@ var privateModule; return val; }; return publicClassWithPrivateTypeParameters; - })(); + }()); privateModule.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; var publicClassWithPublicTypeParameters = (function () { function publicClassWithPublicTypeParameters() { @@ -346,7 +346,7 @@ var privateModule; return val; }; return publicClassWithPublicTypeParameters; - })(); + }()); privateModule.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; var privateClassWithPrivateTypeParameters = (function () { function privateClassWithPrivateTypeParameters() { @@ -355,7 +355,7 @@ var privateModule; return val; }; return privateClassWithPrivateTypeParameters; - })(); + }()); var privateClassWithPublicTypeParameters = (function () { function privateClassWithPublicTypeParameters() { } @@ -363,7 +363,7 @@ var privateModule; return val; }; return privateClassWithPublicTypeParameters; - })(); + }()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { function publicClassWithPublicTypeParametersWithoutExtends() { } @@ -371,7 +371,7 @@ var privateModule; return val; }; return publicClassWithPublicTypeParametersWithoutExtends; - })(); + }()); privateModule.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; var privateClassWithPublicTypeParametersWithoutExtends = (function () { function privateClassWithPublicTypeParametersWithoutExtends() { @@ -380,5 +380,5 @@ var privateModule; return val; }; return privateClassWithPublicTypeParametersWithoutExtends; - })(); + }()); })(privateModule || (privateModule = {})); diff --git a/tests/baselines/reference/privacyTypeParametersOfInterface.js b/tests/baselines/reference/privacyTypeParametersOfInterface.js index c77da126cb6..a330ea76e13 100644 --- a/tests/baselines/reference/privacyTypeParametersOfInterface.js +++ b/tests/baselines/reference/privacyTypeParametersOfInterface.js @@ -64,21 +64,21 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var privateClassT = (function () { function privateClassT() { } return privateClassT; -})(); +}()); var publicClassT = (function () { function publicClassT() { } return publicClassT; -})(); +}()); exports.publicClassT = publicClassT; diff --git a/tests/baselines/reference/privacyTypeParametersOfInterfaceDeclFile.js b/tests/baselines/reference/privacyTypeParametersOfInterfaceDeclFile.js index ae8ee2d43f3..7c92ed701d9 100644 --- a/tests/baselines/reference/privacyTypeParametersOfInterfaceDeclFile.js +++ b/tests/baselines/reference/privacyTypeParametersOfInterfaceDeclFile.js @@ -196,23 +196,23 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var privateClassT = (function () { function privateClassT() { } return privateClassT; -})(); +}()); var publicClassT = (function () { function publicClassT() { } return publicClassT; -})(); +}()); exports.publicClassT = publicClassT; var publicModule; (function (publicModule) { @@ -220,23 +220,23 @@ var publicModule; function privateClassInPublicModule() { } return privateClassInPublicModule; - })(); + }()); var publicClassInPublicModule = (function () { function publicClassInPublicModule() { } return publicClassInPublicModule; - })(); + }()); publicModule.publicClassInPublicModule = publicClassInPublicModule; var privateClassInPublicModuleT = (function () { function privateClassInPublicModuleT() { } return privateClassInPublicModuleT; - })(); + }()); var publicClassInPublicModuleT = (function () { function publicClassInPublicModuleT() { } return publicClassInPublicModuleT; - })(); + }()); publicModule.publicClassInPublicModuleT = publicClassInPublicModuleT; })(publicModule = exports.publicModule || (exports.publicModule = {})); var privateModule; @@ -245,22 +245,22 @@ var privateModule; function privateClassInPrivateModule() { } return privateClassInPrivateModule; - })(); + }()); var publicClassInPrivateModule = (function () { function publicClassInPrivateModule() { } return publicClassInPrivateModule; - })(); + }()); privateModule.publicClassInPrivateModule = publicClassInPrivateModule; var privateClassInPrivateModuleT = (function () { function privateClassInPrivateModuleT() { } return privateClassInPrivateModuleT; - })(); + }()); var publicClassInPrivateModuleT = (function () { function publicClassInPrivateModuleT() { } return publicClassInPrivateModuleT; - })(); + }()); privateModule.publicClassInPrivateModuleT = publicClassInPrivateModuleT; })(privateModule || (privateModule = {})); diff --git a/tests/baselines/reference/privacyVar.js b/tests/baselines/reference/privacyVar.js index b5a68268074..0d133743709 100644 --- a/tests/baselines/reference/privacyVar.js +++ b/tests/baselines/reference/privacyVar.js @@ -184,13 +184,13 @@ var m1; C1_public.prototype.f1 = function () { }; return C1_public; - })(); + }()); m1.C1_public = C1_public; var C2_private = (function () { function C2_private() { } return C2_private; - })(); + }()); var C3_public = (function () { function C3_public() { this.C3_v11_private = new C1_public(); @@ -203,7 +203,7 @@ var m1; this.C3_v24_public = new C2_private(); // error } return C3_public; - })(); + }()); m1.C3_public = C3_public; var C4_public = (function () { function C4_public() { @@ -217,7 +217,7 @@ var m1; this.C4_v24_public = new C2_private(); } return C4_public; - })(); + }()); var m1_v1_private; var m1_v3_private; var m1_v11_private = new C1_public(); @@ -237,13 +237,13 @@ var m2; m2_C1_public.prototype.f1 = function () { }; return m2_C1_public; - })(); + }()); m2.m2_C1_public = m2_C1_public; var m2_C2_private = (function () { function m2_C2_private() { } return m2_C2_private; - })(); + }()); var m2_C3_public = (function () { function m2_C3_public() { this.m2_C3_v11_private = new m2_C1_public(); @@ -256,7 +256,7 @@ var m2; this.m2_C3_v24_public = new m2_C2_private(); } return m2_C3_public; - })(); + }()); m2.m2_C3_public = m2_C3_public; var m2_C4_public = (function () { function m2_C4_public() { @@ -270,7 +270,7 @@ var m2; this.m2_C4_v24_public = new m2_C2_private(); } return m2_C4_public; - })(); + }()); var m2_v1_private; var m2_v3_private; var m2_v11_private = new m2_C1_public(); @@ -288,13 +288,13 @@ var glo_C1_public = (function () { glo_C1_public.prototype.f1 = function () { }; return glo_C1_public; -})(); +}()); exports.glo_C1_public = glo_C1_public; var glo_C2_private = (function () { function glo_C2_private() { } return glo_C2_private; -})(); +}()); var glo_C3_public = (function () { function glo_C3_public() { this.glo_C3_v11_private = new glo_C1_public(); @@ -307,7 +307,7 @@ var glo_C3_public = (function () { this.glo_C3_v24_public = new glo_C2_private(); //error } return glo_C3_public; -})(); +}()); exports.glo_C3_public = glo_C3_public; var glo_C4_public = (function () { function glo_C4_public() { @@ -321,7 +321,7 @@ var glo_C4_public = (function () { this.glo_C4_v24_public = new glo_C2_private(); } return glo_C4_public; -})(); +}()); var glo_v1_private; var glo_v3_private; var glo_v11_private = new glo_C1_public(); diff --git a/tests/baselines/reference/privacyVarDeclFile.js b/tests/baselines/reference/privacyVarDeclFile.js index 5dd2e611ffb..102aeea58a4 100644 --- a/tests/baselines/reference/privacyVarDeclFile.js +++ b/tests/baselines/reference/privacyVarDeclFile.js @@ -431,48 +431,48 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithWithPrivatePropertyTypes = (function () { function publicClassWithWithPrivatePropertyTypes() { } return publicClassWithWithPrivatePropertyTypes; -})(); +}()); exports.publicClassWithWithPrivatePropertyTypes = publicClassWithWithPrivatePropertyTypes; var publicClassWithWithPublicPropertyTypes = (function () { function publicClassWithWithPublicPropertyTypes() { } return publicClassWithWithPublicPropertyTypes; -})(); +}()); exports.publicClassWithWithPublicPropertyTypes = publicClassWithWithPublicPropertyTypes; var privateClassWithWithPrivatePropertyTypes = (function () { function privateClassWithWithPrivatePropertyTypes() { } return privateClassWithWithPrivatePropertyTypes; -})(); +}()); var privateClassWithWithPublicPropertyTypes = (function () { function privateClassWithWithPublicPropertyTypes() { } return privateClassWithWithPublicPropertyTypes; -})(); +}()); var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { function publicClassWithPrivateModulePropertyTypes() { } return publicClassWithPrivateModulePropertyTypes; -})(); +}()); exports.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } return privateClassWithPrivateModulePropertyTypes; -})(); +}()); var privateVarWithPrivateModulePropertyTypes; var publicModule; (function (publicModule) { @@ -480,48 +480,48 @@ var publicModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModule.publicClass = publicClass; var publicClassWithWithPrivatePropertyTypes = (function () { function publicClassWithWithPrivatePropertyTypes() { } return publicClassWithWithPrivatePropertyTypes; - })(); + }()); publicModule.publicClassWithWithPrivatePropertyTypes = publicClassWithWithPrivatePropertyTypes; var publicClassWithWithPublicPropertyTypes = (function () { function publicClassWithWithPublicPropertyTypes() { } return publicClassWithWithPublicPropertyTypes; - })(); + }()); publicModule.publicClassWithWithPublicPropertyTypes = publicClassWithWithPublicPropertyTypes; var privateClassWithWithPrivatePropertyTypes = (function () { function privateClassWithWithPrivatePropertyTypes() { } return privateClassWithWithPrivatePropertyTypes; - })(); + }()); var privateClassWithWithPublicPropertyTypes = (function () { function privateClassWithWithPublicPropertyTypes() { } return privateClassWithWithPublicPropertyTypes; - })(); + }()); var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { function publicClassWithPrivateModulePropertyTypes() { } return publicClassWithPrivateModulePropertyTypes; - })(); + }()); publicModule.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } return privateClassWithPrivateModulePropertyTypes; - })(); + }()); var privateVarWithPrivateModulePropertyTypes; })(publicModule = exports.publicModule || (exports.publicModule = {})); var privateModule; @@ -530,48 +530,48 @@ var privateModule; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivatePropertyTypes = (function () { function publicClassWithWithPrivatePropertyTypes() { } return publicClassWithWithPrivatePropertyTypes; - })(); + }()); privateModule.publicClassWithWithPrivatePropertyTypes = publicClassWithWithPrivatePropertyTypes; var publicClassWithWithPublicPropertyTypes = (function () { function publicClassWithWithPublicPropertyTypes() { } return publicClassWithWithPublicPropertyTypes; - })(); + }()); privateModule.publicClassWithWithPublicPropertyTypes = publicClassWithWithPublicPropertyTypes; var privateClassWithWithPrivatePropertyTypes = (function () { function privateClassWithWithPrivatePropertyTypes() { } return privateClassWithWithPrivatePropertyTypes; - })(); + }()); var privateClassWithWithPublicPropertyTypes = (function () { function privateClassWithWithPublicPropertyTypes() { } return privateClassWithWithPublicPropertyTypes; - })(); + }()); var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { function publicClassWithPrivateModulePropertyTypes() { } return publicClassWithPrivateModulePropertyTypes; - })(); + }()); privateModule.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } return privateClassWithPrivateModulePropertyTypes; - })(); + }()); var privateVarWithPrivateModulePropertyTypes; })(privateModule || (privateModule = {})); //// [privacyVarDeclFile_GlobalFile.js] @@ -579,12 +579,12 @@ var publicClassInGlobal = (function () { function publicClassInGlobal() { } return publicClassInGlobal; -})(); +}()); var publicClassWithWithPublicPropertyTypesInGlobal = (function () { function publicClassWithWithPublicPropertyTypesInGlobal() { } return publicClassWithWithPublicPropertyTypesInGlobal; -})(); +}()); var publicVarWithPublicPropertyTypesInGlobal; var publicModuleInGlobal; (function (publicModuleInGlobal) { @@ -592,12 +592,12 @@ var publicModuleInGlobal; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); publicModuleInGlobal.publicClass = publicClass; var privateModule; (function (privateModule) { @@ -605,84 +605,84 @@ var publicModuleInGlobal; function privateClass() { } return privateClass; - })(); + }()); var publicClass = (function () { function publicClass() { } return publicClass; - })(); + }()); privateModule.publicClass = publicClass; var publicClassWithWithPrivatePropertyTypes = (function () { function publicClassWithWithPrivatePropertyTypes() { } return publicClassWithWithPrivatePropertyTypes; - })(); + }()); privateModule.publicClassWithWithPrivatePropertyTypes = publicClassWithWithPrivatePropertyTypes; var publicClassWithWithPublicPropertyTypes = (function () { function publicClassWithWithPublicPropertyTypes() { } return publicClassWithWithPublicPropertyTypes; - })(); + }()); privateModule.publicClassWithWithPublicPropertyTypes = publicClassWithWithPublicPropertyTypes; var privateClassWithWithPrivatePropertyTypes = (function () { function privateClassWithWithPrivatePropertyTypes() { } return privateClassWithWithPrivatePropertyTypes; - })(); + }()); var privateClassWithWithPublicPropertyTypes = (function () { function privateClassWithWithPublicPropertyTypes() { } return privateClassWithWithPublicPropertyTypes; - })(); + }()); var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { function publicClassWithPrivateModulePropertyTypes() { } return publicClassWithPrivateModulePropertyTypes; - })(); + }()); privateModule.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } return privateClassWithPrivateModulePropertyTypes; - })(); + }()); var privateVarWithPrivateModulePropertyTypes; })(privateModule || (privateModule = {})); var publicClassWithWithPrivatePropertyTypes = (function () { function publicClassWithWithPrivatePropertyTypes() { } return publicClassWithWithPrivatePropertyTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPrivatePropertyTypes = publicClassWithWithPrivatePropertyTypes; var publicClassWithWithPublicPropertyTypes = (function () { function publicClassWithWithPublicPropertyTypes() { } return publicClassWithWithPublicPropertyTypes; - })(); + }()); publicModuleInGlobal.publicClassWithWithPublicPropertyTypes = publicClassWithWithPublicPropertyTypes; var privateClassWithWithPrivatePropertyTypes = (function () { function privateClassWithWithPrivatePropertyTypes() { } return privateClassWithWithPrivatePropertyTypes; - })(); + }()); var privateClassWithWithPublicPropertyTypes = (function () { function privateClassWithWithPublicPropertyTypes() { } return privateClassWithWithPublicPropertyTypes; - })(); + }()); var privateVarWithPrivatePropertyTypes; var privateVarWithPublicPropertyTypes; var publicClassWithPrivateModulePropertyTypes = (function () { function publicClassWithPrivateModulePropertyTypes() { } return publicClassWithPrivateModulePropertyTypes; - })(); + }()); publicModuleInGlobal.publicClassWithPrivateModulePropertyTypes = publicClassWithPrivateModulePropertyTypes; var privateClassWithPrivateModulePropertyTypes = (function () { function privateClassWithPrivateModulePropertyTypes() { } return privateClassWithPrivateModulePropertyTypes; - })(); + }()); var privateVarWithPrivateModulePropertyTypes; })(publicModuleInGlobal || (publicModuleInGlobal = {})); diff --git a/tests/baselines/reference/privateAccessInSubclass1.js b/tests/baselines/reference/privateAccessInSubclass1.js index b22af20af37..188c3149fd0 100644 --- a/tests/baselines/reference/privateAccessInSubclass1.js +++ b/tests/baselines/reference/privateAccessInSubclass1.js @@ -19,7 +19,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -29,4 +29,4 @@ var D = (function (_super) { this.options; }; return D; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js b/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js index 116b255a921..1a4ac4b1679 100644 --- a/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js @@ -52,7 +52,7 @@ var C = (function () { C.foo = function () { return this.foo; }; C.bar = function () { this.foo(); }; return C; -})(); +}()); // added level of function nesting var C2 = (function () { function C2() { @@ -96,4 +96,4 @@ var C2 = (function () { (function () { return _this.foo(); }); }; return C2; -})(); +}()); diff --git a/tests/baselines/reference/privateIndexer.js b/tests/baselines/reference/privateIndexer.js index 09f0c85ea5b..8e6fefdbc09 100644 --- a/tests/baselines/reference/privateIndexer.js +++ b/tests/baselines/reference/privateIndexer.js @@ -19,14 +19,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var E = (function () { function E() { } return E; -})(); +}()); diff --git a/tests/baselines/reference/privateInstanceMemberAccessibility.js b/tests/baselines/reference/privateInstanceMemberAccessibility.js index 0ba2093a5c7..8fbe5121136 100644 --- a/tests/baselines/reference/privateInstanceMemberAccessibility.js +++ b/tests/baselines/reference/privateInstanceMemberAccessibility.js @@ -23,7 +23,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -35,4 +35,4 @@ var Derived = (function (_super) { return _super.prototype.foo; // error }; return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/privateInstanceVisibility.js b/tests/baselines/reference/privateInstanceVisibility.js index b730a763e1e..86d9d426236 100644 --- a/tests/baselines/reference/privateInstanceVisibility.js +++ b/tests/baselines/reference/privateInstanceVisibility.js @@ -51,7 +51,7 @@ var Test; } }; return Example; - })(); + }()); Test.Example = Example; })(Test || (Test = {})); var C = (function () { @@ -62,4 +62,4 @@ var C = (function () { this.x = other.x; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/privateInterfaceProperties.js b/tests/baselines/reference/privateInterfaceProperties.js index 244f61a98c4..8e1a1ebf5ef 100644 --- a/tests/baselines/reference/privateInterfaceProperties.js +++ b/tests/baselines/reference/privateInterfaceProperties.js @@ -15,10 +15,10 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); // should be ok var c2 = (function () { function c2() { } return c2; -})(); +}()); diff --git a/tests/baselines/reference/privatePropertyUsingObjectType.js b/tests/baselines/reference/privatePropertyUsingObjectType.js index d3a0c1c8764..0c16d8bafff 100644 --- a/tests/baselines/reference/privatePropertyUsingObjectType.js +++ b/tests/baselines/reference/privatePropertyUsingObjectType.js @@ -16,6 +16,6 @@ define(["require", "exports"], function (require, exports) { function FilterManager() { } return FilterManager; - })(); + }()); exports.FilterManager = FilterManager; }); diff --git a/tests/baselines/reference/privateStaticMemberAccessibility.js b/tests/baselines/reference/privateStaticMemberAccessibility.js index 0b9be3b69ff..2074e5aa864 100644 --- a/tests/baselines/reference/privateStaticMemberAccessibility.js +++ b/tests/baselines/reference/privateStaticMemberAccessibility.js @@ -18,7 +18,7 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -27,4 +27,4 @@ var Derived = (function (_super) { } Derived.bar = Base.foo; // error return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/privateStaticNotAccessibleInClodule.js b/tests/baselines/reference/privateStaticNotAccessibleInClodule.js index 47aa08dc71f..cb67a15fb24 100644 --- a/tests/baselines/reference/privateStaticNotAccessibleInClodule.js +++ b/tests/baselines/reference/privateStaticNotAccessibleInClodule.js @@ -16,7 +16,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var C; (function (C) { C.y = C.bar; // error diff --git a/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js b/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js index b67ca77dc26..7ed6f3d6792 100644 --- a/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js +++ b/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js @@ -25,14 +25,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var D; (function (D) { D.y = D.bar; // error diff --git a/tests/baselines/reference/privateVisibility.js b/tests/baselines/reference/privateVisibility.js index d70d7b4756f..71227b9e09b 100644 --- a/tests/baselines/reference/privateVisibility.js +++ b/tests/baselines/reference/privateVisibility.js @@ -35,7 +35,7 @@ var Foo = (function () { Foo.prototype.pubMeth = function () { this.privMeth(); }; Foo.prototype.privMeth = function () { }; return Foo; -})(); +}()); var f = new Foo(); f.privMeth(); // should not work f.privProp; // should not work @@ -49,7 +49,7 @@ var M; this.priv = 1; } return C; - })(); + }()); M.C = C; M.V = 0; })(M || (M = {})); diff --git a/tests/baselines/reference/privateVisibles.js b/tests/baselines/reference/privateVisibles.js index b2cb673c681..4c3736449f1 100644 --- a/tests/baselines/reference/privateVisibles.js +++ b/tests/baselines/reference/privateVisibles.js @@ -17,4 +17,4 @@ var Foo = (function () { } Foo.prototype.meth = function () { var q = this.pvar; }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js b/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js +++ b/tests/baselines/reference/project/declarationsCascadingImports/amd/m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js b/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js +++ b/tests/baselines/reference/project/declarationsCascadingImports/node/m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js b/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js +++ b/tests/baselines/reference/project/declarationsGlobalImport/amd/glo_m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js b/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js +++ b/tests/baselines/reference/project/declarationsGlobalImport/node/glo_m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js b/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js +++ b/tests/baselines/reference/project/declarationsImportedInPrivate/node/private_m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js +++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js +++ b/tests/baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js +++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/amd/m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js +++ b/tests/baselines/reference/project/declarationsIndirectImportShouldResultInError/node/m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/amd/m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesImport/node/m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js +++ b/tests/baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js b/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js index 1d46a3ca302..bb607f4b5b0 100644 --- a/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js +++ b/tests/baselines/reference/project/declarationsSimpleImport/amd/m4.js @@ -4,7 +4,7 @@ define(["require", "exports"], function (require, exports) { function d() { } return d; - })(); + }()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js b/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js index 505e7d74da8..52ecf390373 100644 --- a/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js +++ b/tests/baselines/reference/project/declarationsSimpleImport/node/m4.js @@ -3,7 +3,7 @@ var d = (function () { function d() { } return d; -})(); +}()); exports.d = d; ; function foo() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index baf18502737..6a3d66ff920 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:../../ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:../../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:../../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:../../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:../../ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js index 80c5ac103c9..b27cc353db5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js index fa0eb43e98e..2ccb7d6f77a 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map index 35ab07b71bb..1928d5965fb 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js index c664292eca3..2e104772c57 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map index 1602fe4d4e0..2d046c948af 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index ba1c349340c..90f439ae62e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/mapRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:../../ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:../../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:../../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:../../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:../../ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js index 80c5ac103c9..b27cc353db5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js index 991554b2cb3..b991eda4382 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map index 4dd1893855b..b295037df93 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js index c664292eca3..2e104772c57 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map index 1602fe4d4e0..2d046c948af 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 75464f26d82..5568b3b59cc 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:../../ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:../../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:../../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:../../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:../../ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 80c5ac103c9..b27cc353db5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index fa0eb43e98e..2ccb7d6f77a 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index 35ab07b71bb..1928d5965fb 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index c664292eca3..2e104772c57 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 1602fe4d4e0..2d046c948af 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 5a334744761..146568254f8 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:../../ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:../../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:../../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:../../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:../../ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 80c5ac103c9..b27cc353db5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index 991554b2cb3..b991eda4382 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index 4dd1893855b..b295037df93 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index c664292eca3..2e104772c57 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 1602fe4d4e0..2d046c948af 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index 75f7b767aea..3dd9960df14 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 521e71d3115..04c42ed11d0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 9a119a0b9ab..ac740512f7d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:../ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:../ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index 7ef36232b8d..a857aef135a 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index a580c050d07..b3feff79cab 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 3f16355ad76..3a3cdb547f5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 67d10604405..ccf78301cb1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 70bbc8a159b..babc80c4d26 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index ec3a5b9c640..0dfcd7002be 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:../ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:../ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index fc53d59d7cb..feea00eb8c7 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 2eab0f87324..7813d8d45f1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 963b3f3bb22..4ff78d4d802 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_mixed_subfolder/mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map index 84a82794ca8..383cd93a9db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js index b2d0711042a..d77e78e3751 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt index 9df06b821f5..3d3d83e8604 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:../../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:../../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js index 2285204e0bd..b663057aeff 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map index 85ab08c32f5..df92966a910 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js index d046b77d327..550fa7b9564 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map index 0844c5018a4..6c8ee2b7bf2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map index dcaa1945336..74fc6200ba9 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js index bb70e1342a1..76a761b602d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt index 694d1abdf8c..f9461bb3244 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/mapRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js index 31565374f87..7ad78d4877d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map index 1b7d4d64d0e..a1ba2747bea 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js index 99285ad2e58..033b046cfe0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map index 47b5bfb2a62..7fe59ee242c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index 44026abac0c..672a3d34ea7 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:../../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:../../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 2285204e0bd..b663057aeff 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 85ab08c32f5..df92966a910 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index d046b77d327..550fa7b9564 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index 0844c5018a4..6c8ee2b7bf2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index b2d0711042a..d77e78e3751 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 84a82794ca8..383cd93a9db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index 174f60d93d3..d75a1f63f6c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:../../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index 31565374f87..7ad78d4877d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 1b7d4d64d0e..a1ba2747bea 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 99285ad2e58..033b046cfe0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index 47b5bfb2a62..7fe59ee242c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index bb70e1342a1..76a761b602d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index dcaa1945336..74fc6200ba9 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js index 6c9bb7e5029..29bc22bd61c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index 832025f87dd..bbd9ace39b6 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_module_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_module_multifolder_ref/m2.ts","../test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt index f5d2c1a8625..4358711b5b5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js index 684b6e489f7..3017cac2b88 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map index 68633de02d1..7a239e36dfd 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt index 04d7ecd0604..aea9cbc53b3 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js index 44e408fb39b..81972e29958 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map index 6c402525e4e..70ee8ff61e0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js index 284d58acdad..efdf4bd9a30 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map index 648fd1e599d..ced269a7dca 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt index b7876bdd67c..c62d5b213f7 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/mapRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js index 3a438f0255b..5bc656a7470 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map index c29d3e522fa..1977336ea8e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 3af789a02dd..f2118484993 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 684b6e489f7..3017cac2b88 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 68633de02d1..7a239e36dfd 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 44e408fb39b..81972e29958 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 6c402525e4e..70ee8ff61e0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index cde2e4bfc5c..e650d39612b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 284d58acdad..efdf4bd9a30 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 648fd1e599d..ced269a7dca 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 3a438f0255b..5bc656a7470 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index c29d3e522fa..1977336ea8e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js index 3dc74b12b3d..d3a752a0ee4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 6b99313a154..f8787f0f018 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt index ef4538e91db..019ae2bd0aa 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/mapRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt index 69df918515e..425fd381ad6 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js index 24ff184b236..13158547401 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map index d03127f1634..3875e8cb03a 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js index f1d1c605eb4..cc32d33f88f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map index 6c402525e4e..70ee8ff61e0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt index fc72f7483cd..94024fb5deb 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/mapRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js index 277943cc80d..80d76037a7f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map index d9775d0dc64..eda395c6137 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js index 884fc07b341..69051eba247 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map index bc5165db0e2..9b4031ad9ad 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index d503f9569db..c5eecc3b50f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 24ff184b236..13158547401 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index d03127f1634..3875e8cb03a 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index f1d1c605eb4..cc32d33f88f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 6c402525e4e..70ee8ff61e0 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index fec071a7b25..be825d37963 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 277943cc80d..80d76037a7f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index d9775d0dc64..eda395c6137 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 884fc07b341..69051eba247 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index bc5165db0e2..9b4031ad9ad 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 44b0801e558..d20feb624ba 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 5d8a832b073..f2d94cd0ab2 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt index 54642411b72..3777aaad545 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map index bc33e2f8d72..2b699d27069 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js index 8dc7c506cd6..23caea4d958 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index f630a92b4a9..5ea98f50d2d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js index 77245d4717b..6e43f21bdb1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js index 4ea192ec827..a15b4c334cf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map index 05ee1332d71..cd0afe5bb0f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map index bc33e2f8d72..2b699d27069 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js index 8dc7c506cd6..23caea4d958 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index f630a92b4a9..5ea98f50d2d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/mapRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js index 77245d4717b..6e43f21bdb1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js index 4ea192ec827..a15b4c334cf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map index 05ee1332d71..cd0afe5bb0f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 74b8b777ec3..63c897e4e57 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index 77245d4717b..6e43f21bdb1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 4ea192ec827..a15b4c334cf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 05ee1332d71..cd0afe5bb0f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 8dc7c506cd6..23caea4d958 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index bc33e2f8d72..2b699d27069 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 74b8b777ec3..63c897e4e57 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/mapRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index 77245d4717b..6e43f21bdb1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 4ea192ec827..a15b4c334cf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 05ee1332d71..cd0afe5bb0f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 8dc7c506cd6..23caea4d958 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index bc33e2f8d72..2b699d27069 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js index cbcbe046961..f658a89ca9d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index 37b77beb154..16fc574b9c1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 69830c04b56..e22b9099a6f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js index cbcbe046961..f658a89ca9d 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map index 37b77beb154..16fc574b9c1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 69830c04b56..e22b9099a6f 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/mapRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js index 5139d59fad0..95947305417 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js.map index 9ad95c3cfd4..6bbdb177623 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 86dae9982ec..6aabde30079 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js index 477ab9b9bd5..907727092db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map index 230b0e33817..4556d50eb30 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js index 5139d59fad0..95947305417 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js.map index 9ad95c3cfd4..6bbdb177623 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 86dae9982ec..6aabde30079 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/mapRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js index 477ab9b9bd5..907727092db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map index 230b0e33817..4556d50eb30 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index 84f8b2e886a..65b461791aa 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 5139d59fad0..95947305417 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 9ad95c3cfd4..6bbdb177623 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 477ab9b9bd5..907727092db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 230b0e33817..4556d50eb30 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index 84f8b2e886a..65b461791aa 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/mapRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 5139d59fad0..95947305417 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 9ad95c3cfd4..6bbdb177623 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 477ab9b9bd5..907727092db 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 230b0e33817..4556d50eb30 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js index 54a21de3149..5325afdbd55 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map index b7b29ed1cf8..0f1b26bbb4c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index e020abba5a5..997e0b9d7b4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js index 54a21de3149..5325afdbd55 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map index b7b29ed1cf8..0f1b26bbb4c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index e020abba5a5..997e0b9d7b4 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/mapRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_simple/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt index 4433eb94534..f1b1b6d0916 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_singleFile/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js index c2399b3d024..f299e0d0080 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt index 4433eb94534..f1b1b6d0916 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/mapRootAbsolutePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_singleFile/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js index c2399b3d024..f299e0d0080 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt index 9b92dfb4455..00d6a44bcf5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_singleFile/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index c2399b3d024..f299e0d0080 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt index 9b92dfb4455..00d6a44bcf5 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/mapRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_singleFile/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index c2399b3d024..f299e0d0080 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js index c2399b3d024..f299e0d0080 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt index 85f4115a0ee..35b71a7e999 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_singleFile/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js index c2399b3d024..f299e0d0080 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt index 85f4115a0ee..35b71a7e999 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/mapRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_singleFile/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 702f520b4a6..d4bc9c6831c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js index 02f4c47bdc7..7d09551625e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js index 7661081c85c..2ca0fd71dde 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map index cba32efbabe..bd2470b8ccf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 702f520b4a6..d4bc9c6831c 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/mapRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js index 02f4c47bdc7..7d09551625e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js index 7661081c85c..2ca0fd71dde 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map index cba32efbabe..bd2470b8ccf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index 68ca3d32ac9..f166b50b856 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 02f4c47bdc7..7d09551625e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 7661081c85c..2ca0fd71dde 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index cba32efbabe..bd2470b8ccf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index 68ca3d32ac9..f166b50b856 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/mapRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 02f4c47bdc7..7d09551625e 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 43db599a092..2ec23553c3b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 7661081c85c..2ca0fd71dde 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index cba32efbabe..bd2470b8ccf 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js index 561341ee534..275b5e2116b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index 91ea14b3da4..0b06c404460 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index a82ab38507b..d1e7478e384 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js index 561341ee534..275b5e2116b 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map index 91ea14b3da4..0b06c404460 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index a82ab38507b..d1e7478e384 100644 --- a/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/mapRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=/tests/cases/projects/outputdir_subfolder/mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index d2675a63be5..757c3a44e79 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js index 1317ac6574e..e0e2af2b862 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map index 49da9789ec8..67e8b70639d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js index 22446a62021..d0a6c1f583f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map index 79ee2262fd0..8046b4e56e9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js index 15ea98ef7ed..f6f5af1aced 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map index 3fcfc31e4d1..b142ff216f2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index 13996b5046c..4a0ed5bf5e3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/mapRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js index 1317ac6574e..e0e2af2b862 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map index 49da9789ec8..67e8b70639d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js index 83c26797422..b5c226692a0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map index c580cfcdef6..3d767492427 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js index 15ea98ef7ed..f6f5af1aced 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map index 3fcfc31e4d1..b142ff216f2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 40d5929b13e..210c6a0aad0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 33cf31f7700..e6670e7a300 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 49da9789ec8..67e8b70639d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index 8135743efbb..961737d6acf 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index 79ee2262fd0..8046b4e56e9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index ce180d55323..347c791053c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 3fcfc31e4d1..b142ff216f2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 506f9be4304..2fcffbeed8b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../mapFiles/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:../../outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 33cf31f7700..e6670e7a300 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 49da9789ec8..67e8b70639d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index dd1d86b1336..d078a80e31c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index c580cfcdef6..3d767492427 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index ce180d55323..347c791053c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 3fcfc31e4d1..b142ff216f2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index 75131b50630..043adb3dd6f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 792db4167a2..ad91316934a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 1aa0ea128ce..2d276f75b03 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index c4c79e0454b..c93eed3c7d4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 02be1ec09fb..b54fffed73f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 931a09b3ae6..d93d5e398e1 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/mapRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 52e051d7ba0..b40b056b6d9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 9d14f5266f4..946ba761aef 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index c3a519b1609..1ad479bc3e3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=../../mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index c0138423cae..7ec08c6c0a9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 43710b5f061..c5cc839430f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../outputdir_mixed_subfolder/ref/m1.ts","../outputdir_mixed_subfolder/ref/m2.ts","../outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index eddbc79711c..a593271d041 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:../outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:../outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=../../mapFiles/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map index aa8b2e410a9..319f5bbb7d5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js index efc54df85c4..bbbb972580d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt index 3374eb17aec..5db83dfb530 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js index 0a11d7abb9c..7ecd677009d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map index 13589ceb7d1..07fcee5d5c6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js index e368bc35b24..b40eb0dad12 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map index 8b4ca2668d2..ed3a0f816aa 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map index d0c4586fb02..261053c5b8a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js index d6279c6e1b8..338d724fe93 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt index ec68e0273dc..f0c44f724e6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/mapRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js index 6b59fb6f79c..112ae7e7062 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map index bffb00ffe10..c6fe688528b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js index fbdb77f2d25..2786dcd54f3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js.map index 5deeb559297..9bc78eedda3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index 386510e1790..38204c88261 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 57f34664751..4d721e1be5d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 13589ceb7d1..07fcee5d5c6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index 3431f8ce475..6c23883b7ab 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index 8b4ca2668d2..ed3a0f816aa 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index f6f3df3a777..a654db8e087 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index aa8b2e410a9..319f5bbb7d5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index ed272d5a3f8..f6897055546 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../../projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:../../projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index 69476c5b6ca..a1d86ff1857 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index bffb00ffe10..c6fe688528b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 27d8b15a593..76f1ae7fa80 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index 5deeb559297..9bc78eedda3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 971843479a5..a98ecd6f1c3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index d0c4586fb02..261053c5b8a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js index e39147c6ae1..01c28031d8a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index 31d0025dfdc..692f9bdb8e9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../projects/outputdir_module_multifolder/ref/m1.ts","../projects/outputdir_module_multifolder_ref/m2.ts","../projects/outputdir_module_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../projects/outputdir_module_multifolder/ref/m1.ts","../projects/outputdir_module_multifolder_ref/m2.ts","../projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt index 9ba9ed1055a..55627ab1167 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/mapRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:../projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:../projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:../projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:../projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:../projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:../projects/outputdir_module_multifolder/test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:../projects/outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:../projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:../projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:../projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:../projects/outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js index d34c484207f..826510699a7 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map index 087db19967d..054150c2654 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt index 5fd77f00b8c..f5cf250260f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../outputdir_module_simple/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../outputdir_module_simple/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../outputdir_module_simple/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../outputdir_module_simple/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js index 8205a698b72..f6ab0afdc94 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js.map index ad60483d681..c82c9aa7814 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js index bf342f3a037..123e89b6c81 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js.map index 01f697a5a05..d2943328caf 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt index 63394af9b73..04719a1aae2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/mapRootRelativePathModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../outputdir_module_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../outputdir_module_simple/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../outputdir_module_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../outputdir_module_simple/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js index a5faaf288bb..d96b6cae463 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js.map index cc16e08f0ef..5dec3e818a6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index e3425c6a6a9..3e9d27dcaa3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../outputdir_module_simple/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../outputdir_module_simple/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../outputdir_module_simple/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../outputdir_module_simple/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 119c0d64430..415eb731ee6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 087db19967d..054150c2654 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 0189f9ede63..88661b25d1d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index ad60483d681..c82c9aa7814 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index f27c4c330df..b6dbaeb77b1 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/mapRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../outputdir_module_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../outputdir_module_simple/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../outputdir_module_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../outputdir_module_simple/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index dcf1e846993..4c96696726b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 01f697a5a05..d2943328caf 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 9264af81d31..2e487817c4e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index cc16e08f0ef..5dec3e818a6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js index a682a1f510d..1e43585f281 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 8eb534d2c9e..3f784bfa553 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts","../outputdir_module_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_simple/m1.ts","../outputdir_module_simple/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt index 7aa54e01e30..fd0ca24c30c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/mapRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../outputdir_module_simple/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../outputdir_module_simple/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:../outputdir_module_simple/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:../outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:../outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:../outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:../outputdir_module_simple/test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt index ce04b487c0c..8e75611fa4c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../outputdir_module_subfolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js index 8d3bff9f961..d7fc22ee9b3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map index 6541a3e2401..5c31d767ece 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js index cc3fde39a75..a9c2e2c5462 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map index 7d421dd49d9..2653e1320a0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt index 6c416312324..775700c9f05 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/mapRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../outputdir_module_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js index c9c1fc5a6d1..4423220831b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map index 246d94a0ec8..c0316079a93 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js index d2c56e1b169..291a3630b3e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js.map index 599adcf6467..f057481c9b1 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 1478fd96830..9c72e15b36d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../outputdir_module_subfolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 769504a9af8..447f2cb756d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 6541a3e2401..5c31d767ece 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 529760ec895..bd2c181d29e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 7d421dd49d9..2653e1320a0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index d5358c4da81..d694c5e237b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../outputdir_module_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../outputdir_module_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 34294f368ff..b4b9b2dc7e0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 246d94a0ec8..c0316079a93 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 535ac2c9706..c162eaa3671 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 599adcf6467..f057481c9b1 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 88f1db4f33e..23442cdbfa6 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 5abdaa8f6ba..b8840d8440c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/ref/m1.ts","../outputdir_module_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_module_subfolder/ref/m1.ts","../outputdir_module_subfolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt index fc9b3049fd9..1fcadcb6c3d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/mapRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../outputdir_module_subfolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../outputdir_module_subfolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:../outputdir_module_subfolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:../outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:../outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:../outputdir_module_subfolder/test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map index b94901a1d6e..4065af78119 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile1.js index c257072707f..4e041c379d0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt index f820fb19c65..5d88f4ea1e9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js index 2b547787de6..48efad1d91c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map index be7882c99f6..2d943711749 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js index 3a5f36cd163..5359f020354 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map index ee5a589cb62..2c4b424daf2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map index b94901a1d6e..4065af78119 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile1.js index c257072707f..4e041c379d0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt index f820fb19c65..5d88f4ea1e9 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/mapRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js index 2b547787de6..48efad1d91c 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map index be7882c99f6..2d943711749 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js index 3a5f36cd163..5359f020354 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map index ee5a589cb62..2c4b424daf2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index f9b0d9fd57e..8864cb3a00b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../../../mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../../mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index a135e4b0278..490ac31736b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index be7882c99f6..2d943711749 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 4823d597b6b..36efd820540 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index ee5a589cb62..2c4b424daf2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 500879e7bb9..5e8ad54c27b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index b94901a1d6e..4065af78119 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index f9b0d9fd57e..8864cb3a00b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/mapRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../../../mapFiles/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../../mapFiles/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../../mapFiles/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index a135e4b0278..490ac31736b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index be7882c99f6..2d943711749 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 4823d597b6b..36efd820540 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index ee5a589cb62..2c4b424daf2 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 500879e7bb9..5e8ad54c27b 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index b94901a1d6e..4065af78119 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js index acd2d113c02..52c907e93a8 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index fc3b27ea65c..5fe8191c828 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../projects/outputdir_multifolder/ref/m1.ts","../projects/outputdir_multifolder_ref/m2.ts","../projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../projects/outputdir_multifolder/ref/m1.ts","../projects/outputdir_multifolder_ref/m2.ts","../projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 534e9184f7b..b59dd72c617 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:../projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js index acd2d113c02..52c907e93a8 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map index fc3b27ea65c..5fe8191c828 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../projects/outputdir_multifolder/ref/m1.ts","../projects/outputdir_multifolder_ref/m2.ts","../projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../projects/outputdir_multifolder/ref/m1.ts","../projects/outputdir_multifolder_ref/m2.ts","../projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 534e9184f7b..b59dd72c617 100644 --- a/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/mapRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:../projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:../projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:../projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:../projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:../projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:../projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js index 517ed8f6492..027237fe764 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js.map index 82ae367f41d..06c3d793d00 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt index 880f12ff461..7c35498a07a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/mapRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js index 3eb5d7bae1c..c3a81b7d67d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map index bb435749048..a0304c41f55 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js index 517ed8f6492..027237fe764 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js.map index 82ae367f41d..06c3d793d00 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt index 880f12ff461..7c35498a07a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/mapRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js index 3eb5d7bae1c..c3a81b7d67d 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map index bb435749048..a0304c41f55 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 3ac5b590640..37598978973 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 41150949e29..9f57dc40bbb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 82ae367f41d..06c3d793d00 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index ee8fc06b62f..730a04c3d7f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index bb435749048..a0304c41f55 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 3ac5b590640..37598978973 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/mapRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 41150949e29..9f57dc40bbb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 82ae367f41d..06c3d793d00 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index ee8fc06b62f..730a04c3d7f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index bb435749048..a0304c41f55 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js index 9d6f9d2bb0d..9210e2c4fca 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map index 11bf13c6ac8..c6dac016fa3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index 452ad2eb841..50d88c5b21e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js index 9d6f9d2bb0d..9210e2c4fca 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map index 11bf13c6ac8..c6dac016fa3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_simple/m1.ts","../outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index 452ad2eb841..50d88c5b21e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/mapRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt index b0d16a34e9a..a283a5bc003 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js index 39ea4830920..6888a1e428f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js.map index e3d8cd8c37f..4fd259015f5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt index b0d16a34e9a..a283a5bc003 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/mapRootRelativePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js index 39ea4830920..6888a1e428f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js.map index e3d8cd8c37f..4fd259015f5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt index ade0746d1bf..ac697b960ff 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index ca051a06fbf..2b699a8260f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index e3d8cd8c37f..4fd259015f5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt index ade0746d1bf..ac697b960ff 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/mapRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index ca051a06fbf..2b699a8260f 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index e3d8cd8c37f..4fd259015f5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js index f57e937148e..426a747ed22 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map index e3d8cd8c37f..4fd259015f5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt index b4f76aad2a3..4960a310df0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js index f57e937148e..426a747ed22 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map index e3d8cd8c37f..4fd259015f5 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt index b4f76aad2a3..4960a310df0 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/mapRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt index 87f1e589a12..b3d5b6d2062 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js index 1317ac6574e..e0e2af2b862 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map index 67151dfbad5..d27f0a2f6c3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js index cca8db1b548..6d7f75fbf9a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map index fe7aaf2252b..2e3d358f192 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt index 87f1e589a12..b3d5b6d2062 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/mapRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js index 1317ac6574e..e0e2af2b862 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map index 67151dfbad5..d27f0a2f6c3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js index cca8db1b548..6d7f75fbf9a 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map index fe7aaf2252b..2e3d358f192 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index f68430b295d..c41e06ccfe4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 33cf31f7700..e6670e7a300 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 67151dfbad5..d27f0a2f6c3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 3325bc2ccfb..d48af1d07cc 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index fe7aaf2252b..2e3d358f192 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index f68430b295d..c41e06ccfe4 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/mapRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../../mapFiles/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=../../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 33cf31f7700..e6670e7a300 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 67151dfbad5..d27f0a2f6c3 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 3325bc2ccfb..d48af1d07cc 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index fe7aaf2252b..2e3d358f192 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js index a85935632dd..30156e6cbcb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index 9e7077cbe25..c23b45ac58e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index 8c4bedb4b30..079730ccaea 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js index a85935632dd..30156e6cbcb 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map index 9e7077cbe25..c23b45ac58e 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../outputdir_subfolder/ref/m1.ts","../outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index 8c4bedb4b30..079730ccaea 100644 --- a/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/mapRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=../../mapFiles/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt index cbd6de77fe9..dbfd0344358 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map index 18051b2af91..df653772beb 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js index 2f22bba7566..70911579465 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map index e6dacba2b78..4a3d2534830 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map index 767d260e0b8..bd199ac9a0e 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt index 4eaeab55eff..442540b1d3b 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/maprootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map index 18051b2af91..df653772beb 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js index e542958a410..e4c76ba72e2 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map index e0bf14b5bc4..66453b1e9b4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map index 767d260e0b8..bd199ac9a0e 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 7949c2d5b3c..fe156c8ba30 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 18051b2af91..df653772beb 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index 2f22bba7566..70911579465 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index e6dacba2b78..4a3d2534830 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 767d260e0b8..bd199ac9a0e 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 4a8ba9b2175..f586a84e5e6 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 18051b2af91..df653772beb 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index e542958a410..e4c76ba72e2 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index e0bf14b5bc4..66453b1e9b4 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 767d260e0b8..bd199ac9a0e 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js index 03d1c2fc750..b1f7d5f7329 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 6605d889803..5c82f181545 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index b014323fd24..364a5ead57e 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js index af0071d7e46..ec3309b3b18 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 0b202d40b8c..b322a9dd0bb 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index bfe9f5dff6a..01e66a8b573 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 04fd25336f1..2cf202bd871 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 1500c77b638..41be9779546 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 893609a1c3b..a1c569ca056 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 2ebe138ffda..3e51021ce9b 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 363ef3c21bf..7cf551e7dc0 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m2.ts","file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 14ca884e9f7..18f7ae479e2 100644 --- a/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:file:///tests/cases/projects/outputdir_mixed_subfolder/test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map index 03085b471f5..abf7a2ecd19 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile1.js index 3a0f016c568..1e006b165b9 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt index 0e5a6dcb688..71d04d54105 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js index 0014eb3163c..2141ed5cbb8 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map index 52ccb1efa3d..fa40ecf4816 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js index 40f17b7a6cc..149e213901a 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js.map index e7a34469cf3..3fe49d9c7af 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map index fc01377571d..165dd78d6c9 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile1.js index 94c4edd0289..2e93a073415 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt index e8553f1185b..b30960959e0 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/maprootUrlModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js index e50be801bbf..651782fa421 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map index b1bab885710..40ad29ac6e6 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js index 866997ceee0..99135b7b275 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js.map index 2735840bdd7..386c14e8731 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index d4ced7ae277..15e3b5d99f3 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 0014eb3163c..2141ed5cbb8 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 52ccb1efa3d..fa40ecf4816 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index 40f17b7a6cc..149e213901a 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index e7a34469cf3..3fe49d9c7af 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index 3a0f016c568..1e006b165b9 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 03085b471f5..abf7a2ecd19 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index bd6c5fe69ae..87c6c9341d1 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index e50be801bbf..651782fa421 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index b1bab885710..40ad29ac6e6 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 866997ceee0..99135b7b275 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index 2735840bdd7..386c14e8731 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 94c4edd0289..2e93a073415 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index fc01377571d..165dd78d6c9 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js index 621d7634ee1..99da107dfa8 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index 79898c4e3e9..e5b77da53eb 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt index 87ecee2d007..c6dd4570b29 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js index b2136c5cb5e..b85ad9ab5b1 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js.map index c27af9c0c27..f794e0c5d09 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.sourcemap.txt index 4dd2bbd8ab1..e61a7e39edf 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/maprootUrlModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js index e5120428e51..c3300bc7998 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js.map index 062cb7a8c2e..9cf904bdb36 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js index c8cf74001a8..9e79b0167c6 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js.map index 9a7bceb490a..546a52762dc 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.sourcemap.txt index 4b5038260ac..7b3b27278b2 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/maprootUrlModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js index 2e158a0284f..29b6fee1d66 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js.map index 70225dcf918..2a6e8fef128 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 67c6f8a9501..b47d83c6920 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index b2136c5cb5e..b85ad9ab5b1 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index c27af9c0c27..f794e0c5d09 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index e5120428e51..c3300bc7998 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 062cb7a8c2e..9cf904bdb36 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt index bd53b11f4b7..bc75a6972d5 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index c8cf74001a8..9e79b0167c6 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 9a7bceb490a..546a52762dc 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 2e158a0284f..29b6fee1d66 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 70225dcf918..2a6e8fef128 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js index b04aa2d4d46..4b21632bd6c 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 81c38ed7def..6aaa713e8f4 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts","file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_simple/m1.ts","file:///tests/cases/projects/outputdir_module_simple/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt index 107ecea85be..a571162721b 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt index bfd54370663..6af7d974bc4 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js index 1819603381c..c3d36f22356 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map index 283556019d7..b21a6141b7c 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js index 9ff0c2c90ff..5ec4a043557 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js.map index ce10313e9f4..527dcc9a33d 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt index 6cd516d176c..9b43f0d35d0 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/maprootUrlModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js index b594cf79eb2..8fe6d174601 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map index 95a20adfaf2..00d7fafd83c 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js index 1a8413b6601..0b258a0b620 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js.map index 1f95d8892c2..b8f2b007951 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index e8d959e801a..80882be8d58 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 1819603381c..c3d36f22356 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 283556019d7..b21a6141b7c 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 9ff0c2c90ff..5ec4a043557 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index ce10313e9f4..527dcc9a33d 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index c81c5ed9b0a..ba8c64ade19 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index b594cf79eb2..8fe6d174601 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 95a20adfaf2..00d7fafd83c 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 1a8413b6601..0b258a0b620 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 1f95d8892c2..b8f2b007951 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 37aaeb4ecda..a58fc69531f 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 30926365155..130a41cfbba 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_module_subfolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt index 94eda1f9ae8..084f7eb3bf0 100644 --- a/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile0.js.map index dd02f14d4a1..21fcb42a117 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile1.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt index ceda6b4c058..ad9f973f729 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/maprootUrlMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js.map index 57ced088c41..51aa3088c8e 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map index 04ab805bfcb..c5bffb75041 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile0.js.map index dd02f14d4a1..21fcb42a117 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile1.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt index ceda6b4c058..ad9f973f729 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/maprootUrlMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js.map index 57ced088c41..51aa3088c8e 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map index 04ab805bfcb..c5bffb75041 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 2bf3e659118..c75dab52c24 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index 57ced088c41..51aa3088c8e 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 04ab805bfcb..c5bffb75041 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index dd02f14d4a1..21fcb42a117 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 2bf3e659118..c75dab52c24 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index 57ced088c41..51aa3088c8e 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 04ab805bfcb..c5bffb75041 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index dd02f14d4a1..21fcb42a117 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js index b5641a2b2bd..51bd53679fa 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map index aecd97d5136..fa2ace48603 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 344b620620d..3a2f01dd5e4 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js index b5641a2b2bd..51bd53679fa 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map index aecd97d5136..fa2ace48603 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts","file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts","file:///tests/cases/projects/outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 344b620620d..3a2f01dd5e4 100644 --- a/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/maprootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:file:///tests/cases/projects/outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js.map index 0fc2c621e0a..811549fe24b 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt index f13225988bd..52784c4e840 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/maprootUrlSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map index ede8f059f00..d11bc79cf03 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js.map index 0fc2c621e0a..811549fe24b 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt index f13225988bd..52784c4e840 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/maprootUrlSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map index ede8f059f00..d11bc79cf03 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index c5c7205d894..ab1c1686d84 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 0fc2c621e0a..811549fe24b 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index ede8f059f00..d11bc79cf03 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index c5c7205d894..ab1c1686d84 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/maprootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 0fc2c621e0a..811549fe24b 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index ede8f059f00..d11bc79cf03 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js index 869f4f5971a..2a35fde20dc 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map index 29ba590802a..141dd1ad654 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt index 27d691b2b10..4bc337647db 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js index 869f4f5971a..2a35fde20dc 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map index 29ba590802a..141dd1ad654 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_simple/m1.ts","file:///tests/cases/projects/outputdir_simple/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt index 27d691b2b10..4bc337647db 100644 --- a/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/maprootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:file:///tests/cases/projects/outputdir_simple/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.sourcemap.txt index a0eb693f753..f1c0f5ef4c7 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/maprootUrlSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js.map index 420452cddcf..ee286c89ca6 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.sourcemap.txt index a0eb693f753..f1c0f5ef4c7 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/maprootUrlSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js.map index 420452cddcf..ee286c89ca6 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt index 22edc6e923d..62e13fc2153 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 420452cddcf..ee286c89ca6 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt index 22edc6e923d..62e13fc2153 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index 420452cddcf..ee286c89ca6 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map index 420452cddcf..ee286c89ca6 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt index b7c18ea6cd1..d731ec71ca2 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map index 420452cddcf..ee286c89ca6 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_singleFile/test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt index b7c18ea6cd1..d731ec71ca2 100644 --- a/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/maprootUrlSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:file:///tests/cases/projects/outputdir_singleFile/test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt index 7f311cb64ee..17e2a4ed7a2 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/maprootUrlSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js.map index 74b0608f236..3f248eb9a9f 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map index 5883b6aac3f..4b826d6120d 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt index 7f311cb64ee..17e2a4ed7a2 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/maprootUrlSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js.map index 74b0608f236..3f248eb9a9f 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map index 5883b6aac3f..4b826d6120d 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index 5f992db6323..c9a20be7073 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 74b0608f236..3f248eb9a9f 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 5883b6aac3f..4b826d6120d 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index 5f992db6323..c9a20be7073 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 74b0608f236..3f248eb9a9f 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 5883b6aac3f..4b826d6120d 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js index 632070dbd64..4b9e91859bf 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map index 25ed0e8fc92..b9dedfdcff0 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt index b8a52baa41e..4df5a29dcd8 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js index 632070dbd64..4b9e91859bf 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map index 25ed0e8fc92..b9dedfdcff0 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts","file:///tests/cases/projects/outputdir_subfolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt index b8a52baa41e..4df5a29dcd8 100644 --- a/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/maprootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:file:///tests/cases/projects/outputdir_subfolder/test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index 0dfbd650bcc..bc8f23fea5c 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js index 2f22bba7566..70911579465 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map index b5ad7ba171b..830a328e144 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index 31d496eaf78..e5fd32b0435 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/maprootUrlsourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js index e542958a410..e4c76ba72e2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map index adcafe34075..790459b963d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 4f491eac30e..bf37aa3d93e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index 2f22bba7566..70911579465 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index b5ad7ba171b..830a328e144 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index a747e9cc864..9cfe0389ad8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index e542958a410..e4c76ba72e2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index adcafe34075..790459b963d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index d346b13ac18..a7248649dc7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js index 03d1c2fc750..b1f7d5f7329 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index cccdce4c320..38ee6987e2c 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 61e9fc62b6d..3f458619441 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js index af0071d7e46..ec3309b3b18 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index a6626039aa2..facd1d09335 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index d1ab16ddf2b..800d3c15dbe 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 04fd25336f1..2cf202bd871 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 7132f822160..d2eeb5074b5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 144c780957a..580e372ac3b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 2ebe138ffda..3e51021ce9b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index ba9f4ee590c..f3f77743f87 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index da3d501acb7..68c732520a1 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map index 7ee88b5a860..aedc29a2978 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js index 3a0f016c568..1e006b165b9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt index 990eb941b4e..c170dad96cc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js index 0014eb3163c..2141ed5cbb8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map index 496137bf2d9..312d2f052cc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js index 40f17b7a6cc..149e213901a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map index cf581e3162e..2330fbc104b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map index 20f3ab69400..0b0599e7f62 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js index 94c4edd0289..2e93a073415 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt index e8f7704fcdf..21398ede2af 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/maprootUrlsourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js index e50be801bbf..651782fa421 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map index cd11e38f17e..f53f427de90 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js index 866997ceee0..99135b7b275 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js.map index 40c202a4bd5..fc3dfdd8306 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index b476277976e..7b857161a31 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 0014eb3163c..2141ed5cbb8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 496137bf2d9..312d2f052cc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index 40f17b7a6cc..149e213901a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index cf581e3162e..2330fbc104b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index 3a0f016c568..1e006b165b9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 7ee88b5a860..aedc29a2978 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index cf0aabf1c48..4b01b1f5ad6 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index e50be801bbf..651782fa421 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index cd11e38f17e..f53f427de90 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 866997ceee0..99135b7b275 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index 40c202a4bd5..fc3dfdd8306 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 94c4edd0289..2e93a073415 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 20f3ab69400..0b0599e7f62 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js index 621d7634ee1..99da107dfa8 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index 35d74f3b185..f142c1edf9b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt index 4b4904130d7..dd28288d8e0 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:outputdir_module_multifolder/test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js index b2136c5cb5e..b85ad9ab5b1 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map index e0d61ffec8b..7e292316432 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt index ef80095c414..d3608640de2 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js index e5120428e51..c3300bc7998 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js index c8cf74001a8..9e79b0167c6 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js.map index cd7a2b2b590..3bb503f2c26 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt index 1e24fe0eba7..8fa7e43f3d4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/maprootUrlsourcerootUrlModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js index 2e158a0284f..29b6fee1d66 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js.map index fa0024536d8..13298067344 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 55d4683ae6c..dca2248f649 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index b2136c5cb5e..b85ad9ab5b1 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index e0d61ffec8b..7e292316432 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index e5120428e51..c3300bc7998 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 0aab28818cd..02c7fe0328c 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index c8cf74001a8..9e79b0167c6 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index cd7a2b2b590..3bb503f2c26 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 2e158a0284f..29b6fee1d66 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index fa0024536d8..13298067344 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js index b04aa2d4d46..4b21632bd6c 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 5052e3d3972..c324029a742 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt index e8257321254..fec4c012c2b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt index e890b5ab95e..6f0d5455099 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js index 1819603381c..c3d36f22356 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map index ee2b86c4e41..422fe41a79d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js index 9ff0c2c90ff..5ec4a043557 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt index 16acdea18a8..48628ba399b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/maprootUrlsourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js index b594cf79eb2..8fe6d174601 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map index fbaa84744b3..bee1ea97f83 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js index 1a8413b6601..0b258a0b620 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js.map index 868219f88c1..f851a615aef 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 1a942a4a1ad..cd2a9a86995 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 1819603381c..c3d36f22356 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index ee2b86c4e41..422fe41a79d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 9ff0c2c90ff..5ec4a043557 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 277733317c5..0572281f779 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index b594cf79eb2..8fe6d174601 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index fbaa84744b3..bee1ea97f83 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 1a8413b6601..0b258a0b620 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 868219f88c1..f851a615aef 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 37aaeb4ecda..a58fc69531f 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 3e3afaaac13..ade8b34024d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt index 01b8b2237ff..e720aaa9215 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile1.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt index 8bcabc44e3a..e470a39f235 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile1.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt index 8bcabc44e3a..e470a39f235 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/maprootUrlsourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index e2d9eaa8dda..a1c7bf50c47 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index e2d9eaa8dda..a1c7bf50c47 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/ref/m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder_ref/m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_multifolder/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index da8ac1cb063..cf896426681 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index ea17b21a537..c41870d0f8f 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 8c28bf7d9ab..d8a933fca96 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js index b5641a2b2bd..51bd53679fa 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map index 2e0ee57fe05..429ef42162b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index f64fa277957..5e3fe895b88 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js index b5641a2b2bd..51bd53679fa 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map index 2e0ee57fe05..429ef42162b 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index f64fa277957..5e3fe895b88 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt index a3179d120d8..b1ce5150ad1 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt index a3179d120d8..b1ce5150ad1 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/maprootUrlsourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 232cdca7916..7b17d980416 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 232cdca7916..7b17d980416 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 24b75dc1a7e..9f5ca0320c9 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 168ab13ecd8..300e7663c47 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js index 869f4f5971a..2a35fde20dc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map index f1c6e3bd1b7..d876a9633b4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index 8d22ea01f16..23ba392bf3a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js index 869f4f5971a..2a35fde20dc 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map index f1c6e3bd1b7..d876a9633b4 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index 8d22ea01f16..23ba392bf3a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/maprootUrlsourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt index 13e178f926c..c39a0fba501 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt index 13e178f926c..c39a0fba501 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/maprootUrlsourcerootUrlSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt index 3fe9cb43cbd..e04f1bbe9c7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt index 3fe9cb43cbd..e04f1bbe9c7 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt index 8fff42e6b47..7e18311cc3d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js index bc0f3007e6a..73eb738e590 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt index 8fff42e6b47..7e18311cc3d 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt index e697e24c64d..9391f8b0649 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt index e697e24c64d..9391f8b0649 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/maprootUrlsourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index 50bebc38cbe..c5760f4bd67 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index 50bebc38cbe..c5760f4bd67 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/ref/m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f01a67c7277..ac9c9fc5839 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 78b49c056c9..b268cd98e41 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js index 632070dbd64..4b9e91859bf 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map index e80a550275c..386fdffa417 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index b885327d186..86c45fec178 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js index 632070dbd64..4b9e91859bf 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map index e80a550275c..386fdffa417 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index b885327d186..86c45fec178 100644 --- a/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m2.js index 67db806ee95..125abe99f0e 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js index 57200235601..82a3d031fce 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m2.js index 818f4c9dd06..9fdf5b0ad0f 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js index 57200235601..82a3d031fce 100644 --- a/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index 67db806ee95..125abe99f0e 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 57200235601..82a3d031fce 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index 818f4c9dd06..9fdf5b0ad0f 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 57200235601..82a3d031fce 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js index c7642c55d72..7898180c050 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js index ad3b4896eec..d10738c12a6 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index c7642c55d72..7898180c050 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index ad3b4896eec..d10738c12a6 100644 --- a/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/diskFile0.js b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/diskFile0.js index 67db806ee95..125abe99f0e 100644 --- a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/diskFile0.js +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/diskFile0.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/ref/m1.js index 469ba2c199f..34936dca125 100644 --- a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/test.js index 02ee3e86a3a..ddda2e19133 100644 --- a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/diskFile0.js b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/diskFile0.js index 818f4c9dd06..9fdf5b0ad0f 100644 --- a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/diskFile0.js +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/diskFile0.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/ref/m1.js index 01ed51fe662..5854acba9e2 100644 --- a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/test.js index f06fba81955..77e6fbe68c1 100644 --- a/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 469ba2c199f..34936dca125 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index 02ee3e86a3a..ddda2e19133 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index 67db806ee95..125abe99f0e 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index 01ed51fe662..5854acba9e2 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index f06fba81955..77e6fbe68c1 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 818f4c9dd06..9fdf5b0ad0f 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.js index 132e408c648..ea6ae0a3cd7 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/outModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/m1.js index 469ba2c199f..34936dca125 100644 --- a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/test.js index bc5eaec25e0..cd107bb32f2 100644 --- a/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/m1.js index 01ed51fe662..5854acba9e2 100644 --- a/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/test.js index 147125b61c1..912480b74ce 100644 --- a/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 469ba2c199f..34936dca125 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index bc5eaec25e0..cd107bb32f2 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 01ed51fe662..5854acba9e2 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 147125b61c1..912480b74ce 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/bin/test.js index 30a7145ab87..04f9d32831e 100644 --- a/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/ref/m1.js index 469ba2c199f..34936dca125 100644 --- a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/test.js index fca6f6bc913..67c8fedf898 100644 --- a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/ref/m1.js index 01ed51fe662..5854acba9e2 100644 --- a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/test.js index e4389a9467b..0dea10818b9 100644 --- a/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 469ba2c199f..34936dca125 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index fca6f6bc913..67c8fedf898 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 01ed51fe662..5854acba9e2 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index e4389a9467b..0dea10818b9 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 78afb5215e3..05ee275fc15 100644 --- a/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/diskFile0.js b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/diskFile0.js index d9e010cbef7..f5e38ab560c 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/diskFile0.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/diskFile0.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js index 693aed69734..4a38b6ddd4d 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/node/diskFile0.js b/tests/baselines/reference/project/outMultifolderNoOutdir/node/diskFile0.js index d9e010cbef7..f5e38ab560c 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/node/diskFile0.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/node/diskFile0.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/outMultifolderNoOutdir/node/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js index 693aed69734..4a38b6ddd4d 100644 --- a/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 693aed69734..4a38b6ddd4d 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index d9e010cbef7..f5e38ab560c 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 693aed69734..4a38b6ddd4d 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index d9e010cbef7..f5e38ab560c 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js index b6fc6ea83ff..283a721170c 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js index b6fc6ea83ff..283a721170c 100644 --- a/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/outSimpleNoOutdir/amd/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js index 6b3e0bddbbb..eb02f7a013a 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/outSimpleNoOutdir/node/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js index 6b3e0bddbbb..eb02f7a013a 100644 --- a/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 6b3e0bddbbb..eb02f7a013a 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 6b3e0bddbbb..eb02f7a013a 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js index 725379f28cc..d739de3142b 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js index 725379f28cc..d739de3142b 100644 --- a/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/test.js index ced5641081b..c3f455a08ce 100644 --- a/tests/baselines/reference/project/outSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/outSingleFileNoOutdir/node/test.js index ced5641081b..c3f455a08ce 100644 --- a/tests/baselines/reference/project/outSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index ced5641081b..c3f455a08ce 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index ced5641081b..c3f455a08ce 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/bin/test.js index ced5641081b..c3f455a08ce 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/bin/test.js index ced5641081b..c3f455a08ce 100644 --- a/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js index 38f1692117a..d93a6707fdf 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/outSubfolderNoOutdir/node/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js index 38f1692117a..d93a6707fdf 100644 --- a/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/outSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 38f1692117a..d93a6707fdf 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 2a78be9bc07..a9ac9819faa 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 38f1692117a..d93a6707fdf 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js index 8b15a01fa01..0e00e79ca1f 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js index 8b15a01fa01..0e00e79ca1f 100644 --- a/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js index bab996e07a4..3b6e407d045 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js @@ -17,7 +17,7 @@ var m2; _super.apply(this, arguments); } return class1; - })(m2.mExported.me.class1); + }(m2.mExported.me.class1)); m2.class1 = class1; var c2 = new m2.mExported.me.class1; function f2() { @@ -30,7 +30,7 @@ var m2; _super.apply(this, arguments); } return class2; - })(m2.mExported.me.class1); + }(m2.mExported.me.class1)); m2.c3 = new mNonExported.mne.class1; function f3() { return new mNonExported.mne.class1(); @@ -43,7 +43,7 @@ var m2; _super.apply(this, arguments); } return class3; - })(mNonExported.mne.class1); + }(mNonExported.mne.class1)); m2.class3 = class3; var c4 = new mNonExported.mne.class1; function f4() { @@ -56,5 +56,5 @@ var m2; _super.apply(this, arguments); } return class4; - })(mNonExported.mne.class1); + }(mNonExported.mne.class1)); })(m2 || (m2 = {})); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js index bab996e07a4..3b6e407d045 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js @@ -17,7 +17,7 @@ var m2; _super.apply(this, arguments); } return class1; - })(m2.mExported.me.class1); + }(m2.mExported.me.class1)); m2.class1 = class1; var c2 = new m2.mExported.me.class1; function f2() { @@ -30,7 +30,7 @@ var m2; _super.apply(this, arguments); } return class2; - })(m2.mExported.me.class1); + }(m2.mExported.me.class1)); m2.c3 = new mNonExported.mne.class1; function f3() { return new mNonExported.mne.class1(); @@ -43,7 +43,7 @@ var m2; _super.apply(this, arguments); } return class3; - })(mNonExported.mne.class1); + }(mNonExported.mne.class1)); m2.class3 = class3; var c4 = new mNonExported.mne.class1; function f4() { @@ -56,5 +56,5 @@ var m2; _super.apply(this, arguments); } return class4; - })(mNonExported.mne.class1); + }(mNonExported.mne.class1)); })(m2 || (m2 = {})); diff --git a/tests/baselines/reference/project/prologueEmit/amd/out.js b/tests/baselines/reference/project/prologueEmit/amd/out.js index 42313b7ce64..6a07c9a92ca 100644 --- a/tests/baselines/reference/project/prologueEmit/amd/out.js +++ b/tests/baselines/reference/project/prologueEmit/amd/out.js @@ -13,7 +13,7 @@ var m; function base() { } return base; - })(); + }()); m.base = base; var child = (function (_super) { __extends(child, _super); @@ -21,6 +21,6 @@ var m; _super.apply(this, arguments); } return child; - })(base); + }(base)); m.child = child; })(m || (m = {})); diff --git a/tests/baselines/reference/project/prologueEmit/node/out.js b/tests/baselines/reference/project/prologueEmit/node/out.js index 42313b7ce64..6a07c9a92ca 100644 --- a/tests/baselines/reference/project/prologueEmit/node/out.js +++ b/tests/baselines/reference/project/prologueEmit/node/out.js @@ -13,7 +13,7 @@ var m; function base() { } return base; - })(); + }()); m.base = base; var child = (function (_super) { __extends(child, _super); @@ -21,6 +21,6 @@ var m; _super.apply(this, arguments); } return child; - })(base); + }(base)); m.child = child; })(m || (m = {})); diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js index 115b5fff25f..5b3941738db 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js @@ -5,6 +5,6 @@ var test; } ClassA.prototype.method = function () { }; return ClassA; - })(); + }()); test.ClassA = ClassA; })(test || (test = {})); diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js index bdf2edefcb0..64a207a7cad 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js @@ -10,4 +10,4 @@ var ClassC = (function (_super) { _super.apply(this, arguments); } return ClassC; -})(test.ClassA); +}(test.ClassA)); diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js index 115b5fff25f..5b3941738db 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js @@ -5,6 +5,6 @@ var test; } ClassA.prototype.method = function () { }; return ClassA; - })(); + }()); test.ClassA = ClassA; })(test || (test = {})); diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js index bdf2edefcb0..64a207a7cad 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js @@ -10,4 +10,4 @@ var ClassC = (function (_super) { _super.apply(this, arguments); } return ClassC; -})(test.ClassA); +}(test.ClassA)); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/diskFile0.js b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/diskFile0.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/diskFile0.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/diskFile0.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/amd/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/node/diskFile0.js b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/diskFile0.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePaths/node/diskFile0.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/diskFile0.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePaths/node/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePaths/node/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePaths/node/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/bar/bar.js b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/bar/bar.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/bar/bar.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/bar/bar.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/src/ts/foo/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/src/ts/foo/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/src/ts/foo/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/src/ts/foo/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/bar/bar.js b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/bar/bar.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/bar/bar.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/bar/bar.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/src/ts/foo/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/src/ts/foo/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/src/ts/foo/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/src/ts/foo/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/diskFile0.js b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/diskFile0.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/diskFile0.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/diskFile0.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/diskFile0.js b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/diskFile0.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/diskFile0.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/diskFile0.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/diskFile0.js b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/diskFile0.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/diskFile0.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/diskFile0.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/diskFile0.js b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/diskFile0.js index ae9742b492f..080f95401b3 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/diskFile0.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/diskFile0.js @@ -4,4 +4,4 @@ var bar = (function () { function bar() { } return bar; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/foo.js b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/foo.js index 20440d5c62b..4a01207bfce 100644 --- a/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/foo.js +++ b/tests/baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/foo.js @@ -3,4 +3,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/test.js b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/test.js index c82f04ec515..1d436a9e57b 100644 --- a/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/test.js +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwice/amd/test.js @@ -2,4 +2,4 @@ var test = (function () { function test() { } return test; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/test.js b/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/test.js index c82f04ec515..1d436a9e57b 100644 --- a/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/test.js +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwice/node/test.js @@ -2,4 +2,4 @@ var test = (function () { function test() { } return test; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/test.js b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/test.js index c82f04ec515..1d436a9e57b 100644 --- a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/test.js +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/test.js @@ -2,4 +2,4 @@ var test = (function () { function test() { } return test; -})(); +}()); diff --git a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/test.js b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/test.js index c82f04ec515..1d436a9e57b 100644 --- a/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/test.js +++ b/tests/baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/test.js @@ -2,4 +2,4 @@ var test = (function () { function test() { } return test; -})(); +}()); diff --git a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js index 8840c2117cf..f5e6c21e37c 100644 --- a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js +++ b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js @@ -2,5 +2,5 @@ var C = (function () { function C() { } return C; -})(); +}()); //# sourceMappingURL=fileC.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js.map b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js.map index de54805ee54..d67fd5861cf 100644 --- a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js.map +++ b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.js.map @@ -1 +1 @@ -{"version":3,"file":"fileC.js","sourceRoot":"","sources":["../../../../FolderA/FolderB/FolderC/fileC.ts"],"names":["C","C.constructor"],"mappings":"AAAA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"fileC.js","sourceRoot":"","sources":["../../../../FolderA/FolderB/FolderC/fileC.ts"],"names":[],"mappings":"AAAA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js index 84af55d2d89..aff1446877c 100644 --- a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js +++ b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js @@ -3,5 +3,5 @@ var B = (function () { function B() { } return B; -})(); +}()); //# sourceMappingURL=fileB.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js.map b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js.map index 79496de73d9..161ad8891f6 100644 --- a/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js.map +++ b/tests/baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.js.map @@ -1 +1 @@ -{"version":3,"file":"fileB.js","sourceRoot":"","sources":["../../../FolderA/FolderB/fileB.ts"],"names":["B","B.constructor"],"mappings":"AAAA,wCAAwC;AACxC;IAAAA;IAEAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAFD,IAEC"} \ No newline at end of file +{"version":3,"file":"fileB.js","sourceRoot":"","sources":["../../../FolderA/FolderB/fileB.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC;IAAA;IAEA,CAAC;IAAD,QAAC;AAAD,CAAC,AAFD,IAEC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.sourcemap.txt b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.sourcemap.txt index 0833854ab17..73cf17e69f8 100644 --- a/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/rootDirectory/amd/rootDirectory.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:../../../../FolderA/FolderB/FolderC/fileC.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (C) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -27,18 +27,18 @@ sourceFile:../../../../FolderA/FolderB/FolderC/fileC.ts 1->class C { > 2 > } -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (C.constructor) -2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) name (C.constructor) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) --- >>> return C; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) name (C) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -49,8 +49,8 @@ sourceFile:../../../../FolderA/FolderB/FolderC/fileC.ts 3 > 4 > class C { > } -1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) name (C) +1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(2, 2) + SourceIndex(0) --- @@ -83,7 +83,7 @@ sourceFile:../../../FolderA/FolderB/fileB.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (B) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -93,18 +93,18 @@ sourceFile:../../../FolderA/FolderB/fileB.ts > public c: C; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (B.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (B.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return B; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) name (B) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -116,8 +116,8 @@ sourceFile:../../../FolderA/FolderB/fileB.ts 4 > class B { > public c: C; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (B) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js index 8840c2117cf..f5e6c21e37c 100644 --- a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js +++ b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js @@ -2,5 +2,5 @@ var C = (function () { function C() { } return C; -})(); +}()); //# sourceMappingURL=fileC.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js.map b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js.map index de54805ee54..d67fd5861cf 100644 --- a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js.map +++ b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.js.map @@ -1 +1 @@ -{"version":3,"file":"fileC.js","sourceRoot":"","sources":["../../../../FolderA/FolderB/FolderC/fileC.ts"],"names":["C","C.constructor"],"mappings":"AAAA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"fileC.js","sourceRoot":"","sources":["../../../../FolderA/FolderB/FolderC/fileC.ts"],"names":[],"mappings":"AAAA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js index 84af55d2d89..aff1446877c 100644 --- a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js +++ b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js @@ -3,5 +3,5 @@ var B = (function () { function B() { } return B; -})(); +}()); //# sourceMappingURL=fileB.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js.map b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js.map index 79496de73d9..161ad8891f6 100644 --- a/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js.map +++ b/tests/baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.js.map @@ -1 +1 @@ -{"version":3,"file":"fileB.js","sourceRoot":"","sources":["../../../FolderA/FolderB/fileB.ts"],"names":["B","B.constructor"],"mappings":"AAAA,wCAAwC;AACxC;IAAAA;IAEAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAFD,IAEC"} \ No newline at end of file +{"version":3,"file":"fileB.js","sourceRoot":"","sources":["../../../FolderA/FolderB/fileB.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC;IAAA;IAEA,CAAC;IAAD,QAAC;AAAD,CAAC,AAFD,IAEC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectory/node/rootDirectory.sourcemap.txt b/tests/baselines/reference/project/rootDirectory/node/rootDirectory.sourcemap.txt index 0833854ab17..73cf17e69f8 100644 --- a/tests/baselines/reference/project/rootDirectory/node/rootDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/rootDirectory/node/rootDirectory.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:../../../../FolderA/FolderB/FolderC/fileC.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (C) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -27,18 +27,18 @@ sourceFile:../../../../FolderA/FolderB/FolderC/fileC.ts 1->class C { > 2 > } -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (C.constructor) -2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) name (C.constructor) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) --- >>> return C; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) name (C) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -49,8 +49,8 @@ sourceFile:../../../../FolderA/FolderB/FolderC/fileC.ts 3 > 4 > class C { > } -1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) name (C) +1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(2, 2) + SourceIndex(0) --- @@ -83,7 +83,7 @@ sourceFile:../../../FolderA/FolderB/fileB.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (B) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -93,18 +93,18 @@ sourceFile:../../../FolderA/FolderB/fileB.ts > public c: C; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (B.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (B.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return B; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) name (B) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -116,8 +116,8 @@ sourceFile:../../../FolderA/FolderB/fileB.ts 4 > class B { > public c: C; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (B) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/FolderC/fileC.js b/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/FolderC/fileC.js index 325ac60ee32..87b76821b97 100644 --- a/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/FolderC/fileC.js +++ b/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/FolderC/fileC.js @@ -2,4 +2,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/fileB.js b/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/fileB.js index 99199ca1742..486a6bb87a5 100644 --- a/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/fileB.js +++ b/tests/baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/fileB.js @@ -3,4 +3,4 @@ var B = (function () { function B() { } return B; -})(); +}()); diff --git a/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/FolderC/fileC.js b/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/FolderC/fileC.js index 325ac60ee32..87b76821b97 100644 --- a/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/FolderC/fileC.js +++ b/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/FolderC/fileC.js @@ -2,4 +2,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/fileB.js b/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/fileB.js index 99199ca1742..486a6bb87a5 100644 --- a/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/fileB.js +++ b/tests/baselines/reference/project/rootDirectoryErrors/node/outdir/simple/fileB.js @@ -3,4 +3,4 @@ var B = (function () { function B() { } return B; -})(); +}()); diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js index 8840c2117cf..f5e6c21e37c 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js @@ -2,5 +2,5 @@ var C = (function () { function C() { } return C; -})(); +}()); //# sourceMappingURL=fileC.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js.map b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js.map index 9a35f3fbc3e..45953aa1384 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js.map +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/FolderC/fileC.js.map @@ -1 +1 @@ -{"version":3,"file":"fileC.js","sourceRoot":"SourceRootPath/","sources":["FolderB/FolderC/fileC.ts"],"names":["C","C.constructor"],"mappings":"AAAA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"fileC.js","sourceRoot":"SourceRootPath/","sources":["FolderB/FolderC/fileC.ts"],"names":[],"mappings":"AAAA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js index 84af55d2d89..aff1446877c 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js @@ -3,5 +3,5 @@ var B = (function () { function B() { } return B; -})(); +}()); //# sourceMappingURL=fileB.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js.map b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js.map index 41ef9567648..bf8cdf04972 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js.map +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/outdir/simple/FolderB/fileB.js.map @@ -1 +1 @@ -{"version":3,"file":"fileB.js","sourceRoot":"SourceRootPath/","sources":["FolderB/fileB.ts"],"names":["B","B.constructor"],"mappings":"AAAA,wCAAwC;AACxC;IAAAA;IAEAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAFD,IAEC"} \ No newline at end of file +{"version":3,"file":"fileB.js","sourceRoot":"SourceRootPath/","sources":["FolderB/fileB.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC;IAAA;IAEA,CAAC;IAAD,QAAC;AAAD,CAAC,AAFD,IAEC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.sourcemap.txt b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.sourcemap.txt index c0f24c52650..633462db829 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.sourcemap.txt +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/amd/rootDirectoryWithSourceRoot.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:FolderB/FolderC/fileC.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (C) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -27,18 +27,18 @@ sourceFile:FolderB/FolderC/fileC.ts 1->class C { > 2 > } -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (C.constructor) -2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) name (C.constructor) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) --- >>> return C; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) name (C) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -49,8 +49,8 @@ sourceFile:FolderB/FolderC/fileC.ts 3 > 4 > class C { > } -1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) name (C) +1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(2, 2) + SourceIndex(0) --- @@ -83,7 +83,7 @@ sourceFile:FolderB/fileB.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (B) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -93,18 +93,18 @@ sourceFile:FolderB/fileB.ts > public c: C; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (B.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (B.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return B; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) name (B) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -116,8 +116,8 @@ sourceFile:FolderB/fileB.ts 4 > class B { > public c: C; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (B) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js index 8840c2117cf..f5e6c21e37c 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js @@ -2,5 +2,5 @@ var C = (function () { function C() { } return C; -})(); +}()); //# sourceMappingURL=fileC.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js.map b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js.map index 9a35f3fbc3e..45953aa1384 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js.map +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/FolderC/fileC.js.map @@ -1 +1 @@ -{"version":3,"file":"fileC.js","sourceRoot":"SourceRootPath/","sources":["FolderB/FolderC/fileC.ts"],"names":["C","C.constructor"],"mappings":"AAAA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"fileC.js","sourceRoot":"SourceRootPath/","sources":["FolderB/FolderC/fileC.ts"],"names":[],"mappings":"AAAA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js index 84af55d2d89..aff1446877c 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js @@ -3,5 +3,5 @@ var B = (function () { function B() { } return B; -})(); +}()); //# sourceMappingURL=fileB.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js.map b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js.map index 41ef9567648..bf8cdf04972 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js.map +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/outdir/simple/FolderB/fileB.js.map @@ -1 +1 @@ -{"version":3,"file":"fileB.js","sourceRoot":"SourceRootPath/","sources":["FolderB/fileB.ts"],"names":["B","B.constructor"],"mappings":"AAAA,wCAAwC;AACxC;IAAAA;IAEAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAFD,IAEC"} \ No newline at end of file +{"version":3,"file":"fileB.js","sourceRoot":"SourceRootPath/","sources":["FolderB/fileB.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC;IAAA;IAEA,CAAC;IAAD,QAAC;AAAD,CAAC,AAFD,IAEC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.sourcemap.txt b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.sourcemap.txt index c0f24c52650..633462db829 100644 --- a/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.sourcemap.txt +++ b/tests/baselines/reference/project/rootDirectoryWithSourceRoot/node/rootDirectoryWithSourceRoot.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:FolderB/FolderC/fileC.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (C) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -27,18 +27,18 @@ sourceFile:FolderB/FolderC/fileC.ts 1->class C { > 2 > } -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (C.constructor) -2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) name (C.constructor) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) --- >>> return C; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) name (C) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -49,8 +49,8 @@ sourceFile:FolderB/FolderC/fileC.ts 3 > 4 > class C { > } -1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) name (C) -2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) name (C) +1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(2, 2) + SourceIndex(0) --- @@ -83,7 +83,7 @@ sourceFile:FolderB/fileB.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (B) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -93,18 +93,18 @@ sourceFile:FolderB/fileB.ts > public c: C; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (B.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (B.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return B; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) name (B) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -116,8 +116,8 @@ sourceFile:FolderB/fileB.ts 4 > class B { > public c: C; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (B) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (B) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map index ec4f3128e18..f0aa7384842 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map index 9f1a3b7cdab..a62495f753a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index 4e7eeccf52c..bbf106066ce 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map index b5e6eec3623..d795c3d1f0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map index ec4f3128e18..f0aa7384842 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map index 6c2b1041f37..1dea57986d9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt index ff8cee9612b..2f8982c734b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/sourceRootAbsolutePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map index b5e6eec3623..d795c3d1f0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index ec4f3128e18..f0aa7384842 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index 9f1a3b7cdab..a62495f753a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index b5e6eec3623..d795c3d1f0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index f7f008db1a1..4850ffcc02c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index ec4f3128e18..f0aa7384842 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index 6c2b1041f37..1dea57986d9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index b5e6eec3623..d795c3d1f0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 37197425fe4..bc0e71c54a8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index a480aa83e80..25cfe0fccb5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 97675cadfb3..5ff4ba61874 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 24c086e4e89..f56fd16938c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index 5af28cf8560..5d63d624329 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index cf4a14ae9e9..11f204cc242 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 7330eac1399..b8f92c4674f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 1ebe03468c7..de21b030c35 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index a88d1a915a7..98d50582c81 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 9ba6e2f6f81..7bf07c6a514 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 1750a5975ae..da6a2015143 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index f7d00d1aff9..a4bacca9ebe 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"/tests/cases/projects/outputdir_mixed_subfolder/src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 71a33c01806..933fb217fd2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map index 675e006596e..8bf3ef49561 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map index 44fdde7bc0a..0fc51f5e341 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt index bd5760752ea..4c90a092c72 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map index ffc9b194248..f0be560aaaf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map index b27838737a4..ab5f17a63ea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map index f6b72ad687f..cec71625f40 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt index 58a0821c6bf..ee780cef09b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/sourceRootAbsolutePathModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map index c6974f2fad4..4bdb1bfdb51 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 44fdde7bc0a..0fc51f5e341 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index ffc9b194248..f0be560aaaf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 675e006596e..8bf3ef49561 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index 6e74e50fac1..4a874b3ffde 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index f6b72ad687f..cec71625f40 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index c6974f2fad4..4bdb1bfdb51 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index b27838737a4..ab5f17a63ea 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index 9f3f95db163..fe6d3b5b4cc 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js index aa75fa33169..37064fb583b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index 25f6cd89f8a..4e1b085eb4c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_multifolder/src/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt index 2d50a37cd8f..b0755e21b7e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:outputdir_module_multifolder/test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map index fb868d3d530..3d65f47e63a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt index c13ebe54358..051c81cae40 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map index 7f1ef33fb22..fb10b5b1de9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map index 61c62cd49e8..1ba37ab45d0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt index 1e9dc1a90dd..91b3bdf8910 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/sourceRootAbsolutePathModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map index fefaceea6fa..7611cfa9649 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index fb868d3d530..3d65f47e63a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 7f1ef33fb22..fb10b5b1de9 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 8fe0b795041..aabfdcda958 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 61c62cd49e8..1ba37ab45d0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index fefaceea6fa..7611cfa9649 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 3f15739b645..8fd46afab66 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js index cc73ea698fe..d650b20ae5f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 8fa40d29d21..c94ffed292f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_simple/src/","sources":["m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt index a1d2dad8083..eae02f5f5c0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map index 9e4b4e0562a..9a60e0b6f5d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt index aca288cf1c6..8dc074fd8b7 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map index 408e36ba6e3..5a25b5d4656 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map index 6076465420c..a40c4244c47 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt index 73a462e3858..31c1b28d081 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/sourceRootAbsolutePathModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map index 0fc1a3b2b97..fd5f31062e0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 9e4b4e0562a..9a60e0b6f5d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 408e36ba6e3..5a25b5d4656 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 673d151169d..72c00cd5f7a 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 6076465420c..a40c4244c47 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 0fc1a3b2b97..fd5f31062e0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 322e0b7a232..235470a3907 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 93a25f7ef19..f55492f4b49 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 7b492567422..3910a6170d3 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_module_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt index 2999011a7c1..4a0e300da47 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map index c41bb345581..6d8889bab50 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map index e43074326e0..1ed71a40f78 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index b7293d81f54..837d9525df0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map index da7206b4e32..02d8fb800bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map index c41bb345581..6d8889bab50 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map index e43074326e0..1ed71a40f78 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt index b7293d81f54..837d9525df0 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/sourceRootAbsolutePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map index da7206b4e32..02d8fb800bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index e43074326e0..1ed71a40f78 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index da7206b4e32..02d8fb800bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index c41bb345581..6d8889bab50 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index a76377a99e4..b09f90daa8f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index e43074326e0..1ed71a40f78 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index da7206b4e32..02d8fb800bf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index c41bb345581..6d8889bab50 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt index a76377a99e4..b09f90daa8f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index 9ce443017eb..35b866d6488 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 23f41f64947..dcbb570728b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map index 9ce443017eb..35b866d6488 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_multifolder/src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt index 23f41f64947..dcbb570728b 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/sourceRootAbsolutePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js.map index 166a894f9bc..9443bade403 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 0087d5d6716..49736d31a0f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map index 68302f9245b..e0b6ac94e0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js.map index 166a894f9bc..9443bade403 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt index 0087d5d6716..49736d31a0f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/sourceRootAbsolutePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map index 68302f9245b..e0b6ac94e0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 166a894f9bc..9443bade403 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 68302f9245b..e0b6ac94e0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index a0c7d8cd976..1cef37db0ad 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 166a894f9bc..9443bade403 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 68302f9245b..e0b6ac94e0d 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt index a0c7d8cd976..1cef37db0ad 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/sourceRootAbsolutePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map index 28168d6c0ce..7156ba8dc54 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index f4897f2cd52..c9e8934ba27 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map index 28168d6c0ce..7156ba8dc54 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_simple/src/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt index f4897f2cd52..c9e8934ba27 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/sourceRootAbsolutePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt index 8a378aeb633..5df64d65dda 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js.map index d4b7f1b88c6..9b57a17d7b8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt index 8a378aeb633..5df64d65dda 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/sourceRootAbsolutePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js.map index d4b7f1b88c6..9b57a17d7b8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index d4b7f1b88c6..9b57a17d7b8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt index d7ecfe75c35..fb45c5ce2a5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index d4b7f1b88c6..9b57a17d7b8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt index d7ecfe75c35..fb45c5ce2a5 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map index d4b7f1b88c6..9b57a17d7b8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt index ab2d0e10bd3..70172cbcfcf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map index d4b7f1b88c6..9b57a17d7b8 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_singleFile/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt index ab2d0e10bd3..70172cbcfcf 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/sourceRootAbsolutePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map index 0cd3d17ea8f..3f9a2d1663c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 9d5c143cfd4..04278e4304f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map index 9979f6eb7d5..624510e0e30 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map index 0cd3d17ea8f..3f9a2d1663c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt index 9d5c143cfd4..04278e4304f 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/sourceRootAbsolutePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map index 9979f6eb7d5..624510e0e30 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 0cd3d17ea8f..3f9a2d1663c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 9979f6eb7d5..624510e0e30 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index 63af6359f7e..eb461863ded 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 0cd3d17ea8f..3f9a2d1663c 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 9979f6eb7d5..624510e0e30 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt index 63af6359f7e..eb461863ded 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index d11b23b98c4..38a56a19d6e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index 6a0176bdacd..5e0522712ed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map index d11b23b98c4..38a56a19d6e 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"/tests/cases/projects/outputdir_subfolder/src/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt index 6a0176bdacd..5e0522712ed 100644 --- a/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/sourceRootAbsolutePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map index c7461e844d4..06b2a8b3dfc 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index fb47e534263..489e78d9fde 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map index 6014ca91598..d1d1c89c2d0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map index 924ae001231..43700cb4537 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt index d06f563cdf0..baef829e57b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/sourceRootRelativePathMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map index 6014ca91598..d1d1c89c2d0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index c7461e844d4..06b2a8b3dfc 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 6014ca91598..d1d1c89c2d0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 0fdb98ad308..81ab0390e62 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index 924ae001231..43700cb4537 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 6014ca91598..d1d1c89c2d0 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index c2afb0a087e..2c1bc766f13 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js index a480aa83e80..25cfe0fccb5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 39977ec1020..5005743418e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index 302148b3c90..b38b33e3161 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js index 5af28cf8560..5d63d624329 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index 03976e6a8d6..f406d61a6f1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt index b71c21b5b99..44b5904f085 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 1ebe03468c7..de21b030c35 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index f6c5a9b6018..0cefe1f1642 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 1310d81a6ba..0236ff46b03 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 1750a5975ae..da6a2015143 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 23957761470..6bd9a36c15d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"../src/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 2a0cc630cc0..31f4457f565 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map index e7cf3357f0c..d14f89c2c6e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map index 2cb429e6d93..0a78c398416 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt index ad373e76358..a82b4bfaabe 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map index 151c1f3d4b0..bb03821c385 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map index 5d29465b3a0..e173a64c64d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map index 4743ee4fb4a..daef8ad6d4e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt index 24666ed2fed..c110e9cbd87 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/sourceRootRelativePathModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js.map index b3b2cf9c48c..530c3cb016c 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 2cb429e6d93..0a78c398416 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index 151c1f3d4b0..bb03821c385 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index e7cf3357f0c..d14f89c2c6e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index a20e8da5706..27786349283 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 4743ee4fb4a..daef8ad6d4e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index b3b2cf9c48c..530c3cb016c 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 5d29465b3a0..e173a64c64d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index b29ca636cc0..f21172cd798 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js index aa75fa33169..37064fb583b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index e2ecc6d797d..38fef635f82 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt index 3b3fc39eeb7..6e350e166a9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/sourceRootRelativePathModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:outputdir_module_multifolder/test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map index 0b1acf67061..c8f4d72f22f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt index b45bccec375..adef47fb19e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js.map index c69ed562a08..a87178e07e2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js.map index d5af38a63f9..87446d16463 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt index d6e6f6b50fa..53d5f7aae84 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/sourceRootRelativePathModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js.map index d0d53962b6c..f8ad3c6a445 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 0b1acf67061..c8f4d72f22f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index c69ed562a08..a87178e07e2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index f95ad8fde86..404c165ed4f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index d5af38a63f9..87446d16463 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index d0d53962b6c..f8ad3c6a445 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 0696d7e2e95..419535bbff4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js index cc73ea698fe..d650b20ae5f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 93ac6474877..a8a3b1c51da 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt index 1f65e84c04e..8c581023df2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/sourceRootRelativePathModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map index dc7a0122e7e..934216cc931 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt index 16db3752a64..9e9e1aad878 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map index c69ed562a08..a87178e07e2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map index a00de348e73..d7788bd6bb9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt index 5cff0400089..8700999ae53 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/sourceRootRelativePathModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js.map index 90432dd42b0..f5191f2dd02 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index dc7a0122e7e..934216cc931 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index c69ed562a08..a87178e07e2 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index b757eda32d8..196de117349 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index a00de348e73..d7788bd6bb9 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 90432dd42b0..f5191f2dd02 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 4f85ae98584..8913576d745 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 93a25f7ef19..f55492f4b49 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 34fe5e07833..209b545b609 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt index bd8cf272170..e1c9ad562b4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/sourceRootRelativePathModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map index dfe53a2f98c..b0102393a6d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map index ebf5d6bc886..8b0aa0b151b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt index 20c4a628b79..445dc0b3d7b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map index 1c3b0105b5f..52a842ad8ea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map index dfe53a2f98c..b0102393a6d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map index ebf5d6bc886..8b0aa0b151b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt index 20c4a628b79..445dc0b3d7b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/sourceRootRelativePathMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map index 1c3b0105b5f..52a842ad8ea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index ebf5d6bc886..8b0aa0b151b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 1c3b0105b5f..52a842ad8ea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index dfe53a2f98c..b0102393a6d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 325718e37e1..4f66a91c563 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index ebf5d6bc886..8b0aa0b151b 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 1c3b0105b5f..52a842ad8ea 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index dfe53a2f98c..b0102393a6d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"../src/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt index 325718e37e1..4f66a91c563 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/sourceRootRelativePathMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map index d7eeef9ca49..57f6637b4f4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 46af9b6678b..95b3a8d15b1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map index d7eeef9ca49..57f6637b4f4 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt index 46af9b6678b..95b3a8d15b1 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/sourceRootRelativePathMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js.map index 66ee2527678..7cd5a10b95d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt index 181dcd2d8c6..3257fb566ef 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map index eb9e3b663f1..5e5a862e511 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js.map index 66ee2527678..7cd5a10b95d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt index 181dcd2d8c6..3257fb566ef 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/sourceRootRelativePathSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map index eb9e3b663f1..5e5a862e511 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 66ee2527678..7cd5a10b95d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index eb9e3b663f1..5e5a862e511 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 3a97d4540e2..bede164b9dc 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index 66ee2527678..7cd5a10b95d 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index eb9e3b663f1..5e5a862e511 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt index 3a97d4540e2..bede164b9dc 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/sourceRootRelativePathSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map index cc3b3971208..b1adff8db7e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index c85101c0026..84caf2a5209 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map index cc3b3971208..b1adff8db7e 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt index c85101c0026..84caf2a5209 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/sourceRootRelativePathSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt index 17acf414c6d..e08628e78a5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js.map index d6fa9b1eda6..ce0e3492048 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt index 17acf414c6d..e08628e78a5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/sourceRootRelativePathSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js.map index d6fa9b1eda6..ce0e3492048 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index d6fa9b1eda6..ce0e3492048 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt index 161f1a1befb..ea92fb80cf5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index d6fa9b1eda6..ce0e3492048 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt index 161f1a1befb..ea92fb80cf5 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/sourceRootRelativePathSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map index d6fa9b1eda6..ce0e3492048 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt index b282a6db091..a61409263fc 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map index d6fa9b1eda6..ce0e3492048 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt index b282a6db091..a61409263fc 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/sourceRootRelativePathSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt index e3643a7e1e4..a986dda9056 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map index 7792f8a3df6..0fee1b5aff7 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt index e3643a7e1e4..a986dda9056 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/sourceRootRelativePathSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map index 7792f8a3df6..0fee1b5aff7 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 7792f8a3df6..0fee1b5aff7 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index c76e3a2c05c..e90f9f14521 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 17c695312b3..003271f6730 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"../src/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 7792f8a3df6..0fee1b5aff7 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt index c76e3a2c05c..e90f9f14521 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/sourceRootRelativePathSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map index ef39d6c5cdb..2b18772f2d6 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index c0ad748bf2b..3ef8bd4d658 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map index ef39d6c5cdb..2b18772f2d6 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"../src/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt index c0ad748bf2b..3ef8bd4d658 100644 --- a/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/sourceRootRelativePathSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js.map index 37d9f97b2e6..37d956756ce 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt index e680cdb3244..cffb2cc9397 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/sourcemapMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map index c9a79b35d3c..6be8dbd2c2f 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js.map index a46677d1d0f..107c53778e2 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt index 5fd4cafa956..d13bb52d152 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/sourcemapMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map index c9a79b35d3c..6be8dbd2c2f 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index 3ec717007cf..01d0cee6543 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index bad31ecf8d2..6e310b886d4 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 9c55b29820e..787127afb9c 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:../../../ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:../../../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:../../../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:../../../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:../../../ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index 381e2d8c1a5..ac0b3d2dc48 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index bad31ecf8d2..6e310b886d4 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 687772a4eaa..f4599748e77 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:../../../ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:../../../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:../../../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:../../../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:../../../ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js index a480aa83e80..25cfe0fccb5 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index 521e71d3115..04c42ed11d0 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt index 9e02e711ab6..c8992c0f939 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:../ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:../ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js index 5af28cf8560..5d63d624329 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index a580c050d07..b3feff79cab 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt index e37948398a3..3cdd70b7404 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/sourcemapMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 1ebe03468c7..de21b030c35 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 70bbc8a159b..babc80c4d26 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 7f46671ac14..986e49e04c5 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:../ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:../ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:../ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:../ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:../ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 1750a5975ae..da6a2015143 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index 2eab0f87324..7813d8d45f1 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"","sources":["../ref/m1.ts","../ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 9486ad5e3a7..76d937730eb 100644 --- a/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile0.js.map index 37d9f97b2e6..37d956756ce 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile1.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js.map index 601543b6213..7613820ab99 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.sourcemap.txt index d014b6cdaf2..9547f1b0342 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/sourcemapModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js.map index 8208e52b6bb..02d734d6a23 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile0.js.map index a46677d1d0f..107c53778e2 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile1.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js.map index 04a71341b2e..d3e8930bf4e 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.sourcemap.txt index 2d96b317a10..943ec822c5b 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/sourcemapModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js.map index 3d07465c89b..63de9801efe 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index abc573e7f3e..2655f2c655e 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index 52b252629f6..05f63e35111 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index f447cf9c4dc..8bc0b5d0e4c 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index 3d074d558ca..36d7531c895 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../../../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../../../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:../../../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:../../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:../../../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index d7f92759b6a..4a4c8a4ab2e 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index 9c9a8436190..efe375c82cc 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 1972e164b05..213e3024d61 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index cd11cb3f3b6..6e680ecfa65 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/sourcemapModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:../../../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:../../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:../../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:../../../test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js index aa75fa33169..37064fb583b 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index 832025f87dd..bbd9ace39b6 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_module_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_module_multifolder_ref/m2.ts","../test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.sourcemap.txt index f6f039906b9..5b31e410aaf 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/sourcemapModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:../../outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:../test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js.map index 601543b6213..7613820ab99 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.sourcemap.txt index 101ed41087d..56b251ecb62 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/sourcemapModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js.map index 22cda93f71d..1e9d1cc6ddf 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js.map index 04a71341b2e..d3e8930bf4e 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.sourcemap.txt index 28f51b4edd2..412e5a18c8e 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/sourcemapModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js.map index 37c34d1d75f..0af52e5facd 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index 7458559ae94..c93393fadd7 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index a5b6833d47b..3ee95c75c95 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 79523a01114..beebbe16454 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index f5e8e736e67..d9691d43fc2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 7c9dafaaf0d..814caa426d9 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 9ba11de0484..8afcfe6117a 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/sourcemapModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js index cc73ea698fe..d650b20ae5f 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 6b99313a154..f8787f0f018 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.sourcemap.txt index ba4fa8a9415..2d14a8364a9 100644 --- a/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/sourcemapModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js.map index 601543b6213..7613820ab99 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.sourcemap.txt index 91e9b4a8d42..3a561ae023a 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/sourcemapModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js.map index 22cda93f71d..1e9d1cc6ddf 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js.map index 04a71341b2e..d3e8930bf4e 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.sourcemap.txt index a567cfc4117..4565660454d 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/sourcemapModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js.map index af52ca8f3c6..bbd1ffd7b98 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index 85ab08c32f5..df92966a910 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index a5b6833d47b..3ee95c75c95 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 1bfc8f2e82e..4b55b597fc6 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:../../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:../../test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index 1b7d4d64d0e..a1ba2747bea 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 2eb1e64288c..1ea6b49a9b9 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index e62a090d473..d0115edec0c 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/sourcemapModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:../../../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:../../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 93a25f7ef19..f55492f4b49 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 5d8a832b073..f2d94cd0ab2 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.sourcemap.txt index 2320fb0091b..8ed04c04575 100644 --- a/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/sourcemapModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:../ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:../ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:../ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:../test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:../test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:../test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile0.js.map index 5511f8eed7a..ffa9f9f8801 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt index 9f8f5856ae8..10eebf86ef0 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/sourcemapMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map index 38fe91174ea..e267093ff28 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile0.js.map index 5511f8eed7a..ffa9f9f8801 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt index 9f8f5856ae8..10eebf86ef0 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/sourcemapMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map index 38fe91174ea..e267093ff28 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index b9e02d04348..3a3e660ebb5 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 4c7bad4f920..5fecc97d364 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index 8bb6ed14650..909bc0e42ef 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt index cb0659450da..d7d0942b868 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index b9e02d04348..3a3e660ebb5 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 4c7bad4f920..5fecc97d364 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index 8bb6ed14650..909bc0e42ef 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"","sources":["../../../../outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt index cb0659450da..d7d0942b868 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/sourcemapMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:../../../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:../../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:../../../test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:../../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:../../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:../../../test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map index 37b77beb154..16fc574b9c1 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt index fa9ebc580e6..c4c69a0ea78 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map index 37b77beb154..16fc574b9c1 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../../outputdir_multifolder_ref/m2.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt index fa9ebc580e6..c4c69a0ea78 100644 --- a/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/sourcemapMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:../../outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt index 17bbd902b96..1a11ea635c6 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/sourcemapSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map index 69f4d8bbfc1..432c227c72b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt index 17bbd902b96..1a11ea635c6 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/sourcemapSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map index 69f4d8bbfc1..432c227c72b 100644 --- a/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index dcba20cf66a..d3339c99f19 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 5ec3a45d1bd..9026931ffe9 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt index 0a6c6e15aa1..66616a905f2 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index dcba20cf66a..d3339c99f19 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index 5ec3a45d1bd..9026931ffe9 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt index 0a6c6e15aa1..66616a905f2 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/sourcemapSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map index b7b29ed1cf8..0f1b26bbb4c 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt index 6343dcc34c6..d61cb327bd4 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/sourcemapSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map index b7b29ed1cf8..0f1b26bbb4c 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt index 6343dcc34c6..d61cb327bd4 100644 --- a/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/sourcemapSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.sourcemap.txt index 0b09b971bcb..a46d487d932 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/sourcemapSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js.map index 3cb3f00b46d..27d7a9ee733 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.sourcemap.txt index 0b09b971bcb..a46d487d932 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/sourcemapSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js.map index 3cb3f00b46d..27d7a9ee733 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index d2bb04b2226..9b9740e3555 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt index dffdc150f71..e408c9f1014 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index d2bb04b2226..9b9740e3555 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt index dffdc150f71..e408c9f1014 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/sourcemapSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt index 127f06d960e..abee977af4c 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js.map index c15b0f9ed70..1ea77ceaed1 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt index 127f06d960e..abee977af4c 100644 --- a/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/sourcemapSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt index 6bdf8e8ef31..13e2e393c73 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/sourcemapSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map index ef084bb2128..ec2e68648b7 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js.map index da83de7ea2e..fa208c79390 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt index 6bdf8e8ef31..13e2e393c73 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/sourcemapSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map index ef084bb2128..ec2e68648b7 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 22a81dc63bc..21d3e73474e 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt index 2de709b09ab..661399a1d42 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index b8be5eb8e01..1733ce01719 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"","sources":["../../../ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 22a81dc63bc..21d3e73474e 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt index 2de709b09ab..661399a1d42 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/sourcemapSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../../../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../../../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../../../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../../../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../../../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:../../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:../../test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:../../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:../../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:../../test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map index 91ea14b3da4..0b06c404460 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt index 9ca0493ff41..4aec10765d4 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map index 91ea14b3da4..0b06c404460 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"","sources":["../ref/m1.ts","../test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt index 9ca0493ff41..4aec10765d4 100644 --- a/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/sourcemapSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:../ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:../ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:../ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:../ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:../ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:../test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:../test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:../test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:../test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:../test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map index b5ad7ba171b..830a328e144 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index 749fb23fba2..7c7845dc4d7 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map index adcafe34075..790459b963d 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt index 1e8a61767b2..dacb09a48ca 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/sourcerootUrlMixedSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map index b5ad7ba171b..830a328e144 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index c4090583fd8..c5dc52b94a3 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -182,7 +182,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -192,18 +192,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -215,8 +215,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -281,11 +281,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -294,8 +294,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -375,7 +375,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -385,18 +385,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -408,8 +408,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -460,11 +460,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -473,7 +473,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map index adcafe34075..790459b963d 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index 8b8abfc1aed..78426750a82 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index e425f41290b..ba0f9afb820 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt index 39d19f41c05..21a6509ddd4 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -181,7 +181,7 @@ sourceFile:ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -191,18 +191,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -214,8 +214,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -280,11 +280,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -293,8 +293,8 @@ sourceFile:ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -374,7 +374,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -384,18 +384,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -407,8 +407,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -459,11 +459,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -472,7 +472,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js index a480aa83e80..25cfe0fccb5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map index cccdce4c320..38ee6987e2c 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 254c4216a67..007af88a26a 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js index 5af28cf8560..5d63d624329 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map index a6626039aa2..facd1d09335 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt index 38aecc15857..507fc843895 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/sourcerootUrlMixedSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js index 1ebe03468c7..de21b030c35 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ define("ref/m2", ["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -30,7 +30,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map index 7132f822160..d2eeb5074b5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;ACRD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index 47272d72094..22bd3570486 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -176,7 +176,7 @@ sourceFile:ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -186,18 +186,18 @@ sourceFile:ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(16, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(17, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(17, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -209,8 +209,8 @@ sourceFile:ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(18, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(18, 10) Source(4, 2) + SourceIndex(1) --- @@ -275,11 +275,11 @@ sourceFile:ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(22, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(22, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(22, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(22, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(22, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -288,8 +288,8 @@ sourceFile:ref/m2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(23, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -363,7 +363,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(30, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -373,18 +373,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(31, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(31, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(32, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(32, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -396,8 +396,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(33, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(33, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(33, 6) Source(6, 2) + SourceIndex(2) --- @@ -448,11 +448,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(36, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(36, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(36, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(36, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(36, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -461,7 +461,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(37, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(37, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js index 1750a5975ae..da6a2015143 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -15,7 +15,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map index ba9f4ee590c..f3f77743f87 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.js.map @@ -1 +1 @@ -{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"outAndOutDirFile.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","ref/m2.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;AERD,iCAAiC;AACjC,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt index c8507ca7df8..1b656424d2c 100644 --- a/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/outAndOutDirFile.js @@ -196,7 +196,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -206,18 +206,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(16, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(16, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(17, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(17, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -229,8 +229,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(18, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(18, 6) Source(6, 2) + SourceIndex(2) --- @@ -281,11 +281,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(21, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(21, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(21, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(21, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(21, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -294,7 +294,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=outAndOutDirFile.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map index 7ee88b5a860..aedc29a2978 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map index 496137bf2d9..312d2f052cc 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt index 211811b2a38..a7a75d094b0 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map index cf581e3162e..2330fbc104b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map index 20f3ab69400..0b0599e7f62 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile1.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map index cd11e38f17e..f53f427de90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt index 6e576f3d799..657327684ad 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/sourcerootUrlModuleMultifolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js.map index 40c202a4bd5..fc3dfdd8306 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index 496137bf2d9..312d2f052cc 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js index bf3f6e48267..efa0bc948ed 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1", "../outputdir_module_multifolder_ref/m2" function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map index cf581e3162e..2330fbc104b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAEW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js index dd1c532b6df..41f4a4e2521 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 7ee88b5a860..aedc29a2978 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index f02aa603acc..a3aaf686945 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -212,7 +212,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -222,18 +222,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -245,8 +245,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -311,11 +311,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -324,8 +324,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -387,7 +387,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -397,18 +397,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(6, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -420,8 +420,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(6, 2) + SourceIndex(0) --- @@ -486,11 +486,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(10, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(10, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(10, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(10, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -499,8 +499,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(11, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map index cd11e38f17e..f53f427de90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js index 67406a9e410..84731dff566 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js @@ -6,7 +6,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map index 40c202a4bd5..fc3dfdd8306 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AAC9B,IAAO,EAAE,WAAW,wCAAwC,CAAC,CAAC;AACnD,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;AACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js index 1646fd608ea..eae1115846a 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js @@ -4,7 +4,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map index 20f3ab69400..0b0599e7f62 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder_ref/m2.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt index b823a010c78..5b61d42875b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/sourcerootUrlModuleMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -210,7 +210,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -220,18 +220,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -243,8 +243,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -309,11 +309,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -322,8 +322,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m2_f1 = m2_f1; 1-> @@ -431,7 +431,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -441,18 +441,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(8, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -464,8 +464,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(9, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(9, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(9, 6) Source(6, 2) + SourceIndex(0) --- @@ -530,11 +530,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(13, 29) Source(10, 21) + SourceIndex(0) +5 >Emitted(13, 30) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -543,8 +543,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(14, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js index aa75fa33169..37064fb583b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("outputdir_module_multifolder/ref/m1", ["require", "exports"], function ( function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( function m2_c1() { } return m2_c1; - })(); + }()); exports.m2_c1 = m2_c1; exports.m2_instance1 = new m2_c1(); function m2_f1() { @@ -28,14 +28,14 @@ define("outputdir_module_multifolder_ref/m2", ["require", "exports"], function ( } exports.m2_f1 = m2_f1; }); -define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { "use strict"; exports.a1 = 10; var c1 = (function () { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map index 35d74f3b185..f142c1edf9b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAC;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_module_multifolder/ref/m1.ts","outputdir_module_multifolder_ref/m2.ts","outputdir_module_multifolder/test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICRU,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICNU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACd,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt index eb7aaf08a13..ee3c5a5ca71 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/sourcerootUrlModuleMultifolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:outputdir_module_multifolder/ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -206,7 +206,7 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(20, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -216,18 +216,18 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(21, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(22, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(22, 21) Source(4, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -239,8 +239,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 4 > export class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(23, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(4, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(2, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(4, 2) + SourceIndex(1) --- @@ -305,11 +305,11 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(27, 9) Source(8, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(8, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(8, 12) + SourceIndex(1) +4 >Emitted(27, 36) Source(8, 24) + SourceIndex(1) +5 >Emitted(27, 37) Source(8, 25) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -318,8 +318,8 @@ sourceFile:outputdir_module_multifolder_ref/m2.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(28, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(9, 2) + SourceIndex(1) --- >>> exports.m2_f1 = m2_f1; 1->^^^^ @@ -342,7 +342,7 @@ emittedFile:bin/test.js sourceFile:outputdir_module_multifolder/test.ts ------------------------------------------------------------------- >>>}); ->>>define("test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { +>>>define("outputdir_module_multifolder/test", ["require", "exports", "outputdir_module_multifolder/ref/m1", "outputdir_module_multifolder_ref/m2"], function (require, exports, m1, m2) { >>> "use strict"; >>> exports.a1 = 10; 1 >^^^^ @@ -375,7 +375,7 @@ sourceFile:outputdir_module_multifolder/test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(35, 9) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^^^^^ @@ -385,18 +385,18 @@ sourceFile:outputdir_module_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(36, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(37, 9) Source(6, 1) + SourceIndex(2) +2 >Emitted(37, 18) Source(6, 2) + SourceIndex(2) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -408,8 +408,8 @@ sourceFile:outputdir_module_multifolder/test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(38, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(38, 6) Source(6, 2) + SourceIndex(2) 3 >Emitted(38, 6) Source(4, 1) + SourceIndex(2) 4 >Emitted(38, 10) Source(6, 2) + SourceIndex(2) --- @@ -474,11 +474,11 @@ sourceFile:outputdir_module_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(42, 9) Source(10, 5) + SourceIndex(2) +2 >Emitted(42, 15) Source(10, 11) + SourceIndex(2) +3 >Emitted(42, 16) Source(10, 12) + SourceIndex(2) +4 >Emitted(42, 33) Source(10, 21) + SourceIndex(2) +5 >Emitted(42, 34) Source(10, 22) + SourceIndex(2) --- >>> } 1 >^^^^ @@ -487,8 +487,8 @@ sourceFile:outputdir_module_multifolder/test.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(43, 5) Source(11, 1) + SourceIndex(2) +2 >Emitted(43, 6) Source(11, 2) + SourceIndex(2) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts index d42fc1cd136..b66a73a7c90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts +++ b/tests/baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/node/bin/test.d.ts @@ -14,7 +14,7 @@ declare module "outputdir_module_multifolder_ref/m2" { export var m2_instance1: m2_c1; export function m2_f1(): m2_c1; } -declare module "test" { +declare module "outputdir_module_multifolder/test" { import m1 = require("outputdir_module_multifolder/ref/m1"); import m2 = require("outputdir_module_multifolder_ref/m2"); export var a1: number; diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map index e0d61ffec8b..7e292316432 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt index f9423ff0754..ac92d511dce 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js.map index cd7a2b2b590..3bb503f2c26 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt index 739e15d2983..6ab1c1d6310 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/sourcerootUrlModuleSimpleNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js.map index fa0024536d8..13298067344 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index e0d61ffec8b..7e292316432 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 4e5ad232cc3..c4b7f56d76a 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 4577731e2f7..c29900cfdc9 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index cd7a2b2b590..3bb503f2c26 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index bbc39c25431..fea4b619aa2 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index fa0024536d8..13298067344 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,IAAI,CAAC,CAAC;AACf,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt index 415542f779d..f4c1f40d95b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/sourcerootUrlModuleSimpleSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js index cc73ea698fe..d650b20ae5f 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map index 5052e3d3972..c324029a742 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt index 138176f4d55..adb1e2c76b3 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/sourcerootUrlModuleSimpleSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map index ee2b86c4e41..422fe41a79d 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt index cda805f1182..cb3f179fd1b 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map index fbaa84744b3..bee1ea97f83 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt index 36982bf658b..5073fc7ce1c 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/sourcerootUrlModuleSubfolderNoOutdir.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js.map index 868219f88c1..f851a615aef 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index 25001d63d84..bb59c6fbd90 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -5,7 +5,7 @@ define(["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index ee2b86c4e41..422fe41a79d 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index 081c888ee02..0ad51aeb02e 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -5,7 +5,7 @@ define(["require", "exports", "ref/m1"], function (require, exports, m1) { function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 234f375dd72..67f4a8faf60 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAA;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";;IACW,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index 1ba537e095b..6c57ae57e72 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -213,7 +213,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -223,18 +223,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 9) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 18) Source(5, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -246,8 +246,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(5, 2) + SourceIndex(0) --- @@ -312,11 +312,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 9) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 33) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 34) Source(9, 22) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -325,8 +325,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 5) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(10, 2) + SourceIndex(0) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index 3bc07083900..121a089af23 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -4,7 +4,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index fbaa84744b3..bee1ea97f83 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACIE,MAAMA,CAACA,oBAAYA,CAACA;AACxBA,CAACA;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":";AAAW,aAAK,GAAG,EAAE,CAAC;AACtB;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAFY,aAAK,QAEjB,CAAA;AAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AACtC;IACI,MAAM,CAAC,oBAAY,CAAC;AACxB,CAAC;AAFe,aAAK,QAEpB,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdc33590853..ebd5fdb3b3f 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 868219f88c1..f851a615aef 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACIE,MAAMA,CAACA,iBAASA,CAACA;AACrBA,CAACA;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":";AAAA,IAAO,EAAE,WAAW,QAAQ,CAAC,CAAC;AACnB,UAAE,GAAG,EAAE,CAAC;AACnB;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAFY,UAAE,KAEd,CAAA;AAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AAChC;IACI,MAAM,CAAC,iBAAS,CAAC;AACrB,CAAC;AAFe,UAAE,KAEjB,CAAA;AAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt index b3b492bbb98..db57e7cba0c 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/sourcerootUrlModuleSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -38,7 +38,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -48,18 +48,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -71,8 +71,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -137,11 +137,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(11, 32) Source(8, 24) + SourceIndex(0) +5 >Emitted(11, 33) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -150,8 +150,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(12, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(9, 2) + SourceIndex(0) --- >>>exports.m1_f1 = m1_f1; 1-> @@ -234,7 +234,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -244,18 +244,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -267,8 +267,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(5, 2) + SourceIndex(0) --- @@ -333,11 +333,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(12, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(12, 29) Source(9, 21) + SourceIndex(0) +5 >Emitted(12, 30) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -346,8 +346,8 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(13, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(10, 2) + SourceIndex(0) --- >>>exports.f1 = f1; 1-> diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js index 93a25f7ef19..f55492f4b49 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js @@ -5,7 +5,7 @@ define("ref/m1", ["require", "exports"], function (require, exports) { function m1_c1() { } return m1_c1; - })(); + }()); exports.m1_c1 = m1_c1; exports.m1_instance1 = new m1_c1(); function m1_f1() { @@ -20,7 +20,7 @@ define("test", ["require", "exports", "ref/m1"], function (require, exports, m1) function c1() { } return c1; - })(); + }()); exports.c1 = c1; exports.instance1 = new c1(); function f1() { diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map index 3e3afaaac13..ade8b34024d 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAAA;QAEAC,CAACA;QAADD,YAACA;IAADA,CAACA,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACIE,MAAMA,CAACA,oBAAYA,CAACA;IACxBA,CAACA;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAAC;QAEAC,CAACA;QAADD,SAACA;IAADA,CAACA,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACIE,MAAMA,CAACA,iBAASA,CAACA;IACrBA,CAACA;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":";;IAAW,aAAK,GAAG,EAAE,CAAC;IACtB;QAAA;QAEA,CAAC;QAAD,YAAC;IAAD,CAAC,AAFD,IAEC;IAFY,aAAK,QAEjB,CAAA;IAEU,oBAAY,GAAG,IAAI,KAAK,EAAE,CAAC;IACtC;QACI,MAAM,CAAC,oBAAY,CAAC;IACxB,CAAC;IAFe,aAAK,QAEpB,CAAA;;;;ICPU,UAAE,GAAG,EAAE,CAAC;IACnB;QAAA;QAEA,CAAC;QAAD,SAAC;IAAD,CAAC,AAFD,IAEC;IAFY,UAAE,KAEd,CAAA;IAEU,iBAAS,GAAG,IAAI,EAAE,EAAE,CAAC;IAChC;QACI,MAAM,CAAC,iBAAS,CAAC;IACrB,CAAC;IAFe,UAAE,KAEjB,CAAA;IAEU,UAAE,GAAG,EAAE,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt index 21fc54a2dc4..edca6852f84 100644 --- a/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/sourcerootUrlModuleSubfolderSpecifyOutputFile.sourcemap.txt @@ -39,7 +39,7 @@ sourceFile:ref/m1.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 9) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -49,18 +49,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(6, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(7, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 21) Source(4, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -72,8 +72,8 @@ sourceFile:ref/m1.ts 4 > export class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(8, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 6) Source(2, 1) + SourceIndex(0) 4 >Emitted(8, 10) Source(4, 2) + SourceIndex(0) --- @@ -138,11 +138,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(12, 9) Source(8, 5) + SourceIndex(0) +2 >Emitted(12, 15) Source(8, 11) + SourceIndex(0) +3 >Emitted(12, 16) Source(8, 12) + SourceIndex(0) +4 >Emitted(12, 36) Source(8, 24) + SourceIndex(0) +5 >Emitted(12, 37) Source(8, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -151,8 +151,8 @@ sourceFile:ref/m1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(13, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(13, 6) Source(9, 2) + SourceIndex(0) --- >>> exports.m1_f1 = m1_f1; 1->^^^^ @@ -207,7 +207,7 @@ sourceFile:test.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(20, 9) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -217,18 +217,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(21, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 10) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(22, 9) Source(5, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(5, 2) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -240,8 +240,8 @@ sourceFile:test.ts 4 > export class c1 { > public p1: number; > } -1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(23, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 2) + SourceIndex(1) 3 >Emitted(23, 6) Source(3, 1) + SourceIndex(1) 4 >Emitted(23, 10) Source(5, 2) + SourceIndex(1) --- @@ -306,11 +306,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(27, 9) Source(9, 5) + SourceIndex(1) +2 >Emitted(27, 15) Source(9, 11) + SourceIndex(1) +3 >Emitted(27, 16) Source(9, 12) + SourceIndex(1) +4 >Emitted(27, 33) Source(9, 21) + SourceIndex(1) +5 >Emitted(27, 34) Source(9, 22) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -319,8 +319,8 @@ sourceFile:test.ts 1 > > 2 > } -1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(28, 5) Source(10, 1) + SourceIndex(1) +2 >Emitted(28, 6) Source(10, 2) + SourceIndex(1) --- >>> exports.f1 = f1; 1->^^^^ diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile1.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile1.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt index a70e80c9c1a..97837265fad 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/sourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile0.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile1.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile1.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile1.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile1.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt index a70e80c9c1a..97837265fad 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/sourcerootUrlMultifolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 4f4f068056f..66f7557a512 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map index 64aafef0915..97e0d452dba 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js index 87d3f006993..088a77f3f25 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js @@ -5,7 +5,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map index 859053b5510..d668056049e 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js index 9f44db1fad5..a1041b6d258 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js @@ -3,7 +3,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map index e652c011c17..02fe5ddcde5 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.js.map @@ -1 +1 @@ -{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":["m2_c1","m2_c1.constructor","m2_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m2.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder_ref/m2.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt index 4f4f068056f..66f7557a512 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/sourcerootUrlMultifolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: m2.js @@ -183,7 +183,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m2_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -193,18 +193,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m2_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m2_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m2_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -216,8 +216,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m2_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m2_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -268,11 +268,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m2_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m2_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m2_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m2_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m2_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -281,8 +281,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m2_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m2_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m2.js.map=================================================================== JsFile: test.js @@ -345,7 +345,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -355,18 +355,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(6, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(6, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) name (c1) +1->Emitted(7, 5) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 14) Source(6, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -378,8 +378,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) name (c1) -2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) name (c1) +1 >Emitted(8, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(4, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(6, 2) + SourceIndex(0) --- @@ -430,11 +430,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) name (f1) -2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) name (f1) -3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) name (f1) -4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) name (f1) -5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) name (f1) +1->Emitted(11, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(11, 11) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 21) Source(10, 21) + SourceIndex(0) +5 >Emitted(11, 22) Source(10, 22) + SourceIndex(0) --- >>>} 1 > @@ -443,7 +443,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) name (f1) -2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) name (f1) +1 >Emitted(12, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(12, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map index 2e0ee57fe05..429ef42162b 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 823af8d1bc3..6d3d1d19d8e 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js index e6b143a110a..ad96cca3d79 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -13,7 +13,7 @@ var m2_c1 = (function () { function m2_c1() { } return m2_c1; -})(); +}()); var m2_instance1 = new m2_c1(); function m2_f1() { return m2_instance1; @@ -25,7 +25,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map index 2e0ee57fe05..429ef42162b 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","m2_c1","m2_c1.constructor","m2_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAC;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["outputdir_multifolder/ref/m1.ts","outputdir_multifolder_ref/m2.ts","outputdir_multifolder/test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,0DAA0D;AAC1D,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt index 823af8d1bc3..6d3d1d19d8e 100644 --- a/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/sourcerootUrlMultifolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:outputdir_multifolder/ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:outputdir_multifolder/ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:outputdir_multifolder/ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -177,7 +177,7 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) name (m2_c1) +1->Emitted(13, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -187,18 +187,18 @@ sourceFile:outputdir_multifolder_ref/m2.ts > public m2_c1_p1: number; > 2 > } -1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) name (m2_c1.constructor) -2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) name (m2_c1.constructor) +1->Emitted(14, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 2) + SourceIndex(1) --- >>> return m2_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) name (m2_c1) +1->Emitted(15, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(15, 17) Source(4, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -210,8 +210,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 4 > class m2_c1 { > public m2_c1_p1: number; > } -1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) name (m2_c1) -2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) name (m2_c1) +1 >Emitted(16, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(16, 2) Source(2, 1) + SourceIndex(1) 4 >Emitted(16, 6) Source(4, 2) + SourceIndex(1) --- @@ -262,11 +262,11 @@ sourceFile:outputdir_multifolder_ref/m2.ts 3 > 4 > m2_instance1 5 > ; -1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) name (m2_f1) -2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) name (m2_f1) -3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) name (m2_f1) -4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) name (m2_f1) -5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) name (m2_f1) +1->Emitted(19, 5) Source(8, 5) + SourceIndex(1) +2 >Emitted(19, 11) Source(8, 11) + SourceIndex(1) +3 >Emitted(19, 12) Source(8, 12) + SourceIndex(1) +4 >Emitted(19, 24) Source(8, 24) + SourceIndex(1) +5 >Emitted(19, 25) Source(8, 25) + SourceIndex(1) --- >>>} 1 > @@ -275,8 +275,8 @@ sourceFile:outputdir_multifolder_ref/m2.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) name (m2_f1) -2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) name (m2_f1) +1 >Emitted(20, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 2) Source(9, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -333,7 +333,7 @@ sourceFile:outputdir_multifolder/test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) name (c1) +1->Emitted(25, 5) Source(4, 1) + SourceIndex(2) --- >>> } 1->^^^^ @@ -343,18 +343,18 @@ sourceFile:outputdir_multifolder/test.ts > public p1: number; > 2 > } -1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) name (c1.constructor) -2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) name (c1.constructor) +1->Emitted(26, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) name (c1) +1->Emitted(27, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(27, 14) Source(6, 2) + SourceIndex(2) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -366,8 +366,8 @@ sourceFile:outputdir_multifolder/test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) name (c1) -2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) name (c1) +1 >Emitted(28, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(6, 2) + SourceIndex(2) 3 >Emitted(28, 2) Source(4, 1) + SourceIndex(2) 4 >Emitted(28, 6) Source(6, 2) + SourceIndex(2) --- @@ -418,11 +418,11 @@ sourceFile:outputdir_multifolder/test.ts 3 > 4 > instance1 5 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) name (f1) -2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) name (f1) -3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) name (f1) -4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) name (f1) -5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) name (f1) +1->Emitted(31, 5) Source(10, 5) + SourceIndex(2) +2 >Emitted(31, 11) Source(10, 11) + SourceIndex(2) +3 >Emitted(31, 12) Source(10, 12) + SourceIndex(2) +4 >Emitted(31, 21) Source(10, 21) + SourceIndex(2) +5 >Emitted(31, 22) Source(10, 22) + SourceIndex(2) --- >>>} 1 > @@ -431,7 +431,7 @@ sourceFile:outputdir_multifolder/test.ts 1 > > 2 >} -1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) name (f1) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) name (f1) +1 >Emitted(32, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(32, 2) Source(11, 2) + SourceIndex(2) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt index e9ff85f6fe6..8613693d6fd 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/sourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt index e9ff85f6fe6..8613693d6fd 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/sourcerootUrlSimpleNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 411004d82a3..6b974c689f5 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map index d920bbe078d..43b7b9cb126 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js index 218d8fcf05d..679b65b5733 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map index ad9ad3d5ce0..83557b43a86 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt index 411004d82a3..6b974c689f5 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/sourcerootUrlSimpleSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map index f1c6e3bd1b7..d876a9633b4 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index 10e2e3700c1..1b93109c406 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js index 10bcbf92a21..481c10d1a06 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map index f1c6e3bd1b7..d876a9633b4 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,6BAA6B;AAC7B,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt index 10e2e3700c1..1b93109c406 100644 --- a/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/sourcerootUrlSimpleSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.sourcemap.txt index ac21898e23f..4c207cb647b 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/sourcerootUrlSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.sourcemap.txt index ac21898e23f..4c207cb647b 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/sourcerootUrlSingleFileNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt index cdd78604f75..04204fceadc 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt index cdd78604f75..04204fceadc 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/sourcerootUrlSingleFileSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt index 54961a153f9..2f5fa2e9cbd 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js index 335d79c01c6..e5a1c12a732 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map index a1be429da80..9dc5e9c0cae 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt index 54961a153f9..2f5fa2e9cbd 100644 --- a/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/sourcerootUrlSingleFileSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) name (c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 14) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (f1) -4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) name (f1) -5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) name (f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(9, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -138,7 +138,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt index c8b19a1227f..2e2cd5bb0c9 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/sourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt index c8b19a1227f..2e2cd5bb0c9 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/sourcerootUrlSubfolderNoOutdir.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index 31798101a57..4ca0340ebfd 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js index f6b169662c9..b7283f7fd88 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map index b8fe7026610..48ee93efbeb 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.js.map @@ -1 +1 @@ -{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA"} \ No newline at end of file +{"version":3,"file":"m1.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js index bdb90297aea..408b7e46f61 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js @@ -4,7 +4,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map index 014979baf03..f43236fa96a 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":["c1","c1.constructor","f1"],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAA;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["test.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt index 31798101a57..4ca0340ebfd 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/sourcerootUrlSubfolderSpecifyOutputDirectory.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=m1.js.map=================================================================== JsFile: test.js @@ -192,7 +192,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c1) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -202,18 +202,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) name (c1.constructor) -2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) name (c1.constructor) +1->Emitted(5, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(5, 2) + SourceIndex(0) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) name (c1) +1->Emitted(6, 5) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 14) Source(5, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -225,8 +225,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) name (c1) -2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) name (c1) +1 >Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(5, 2) + SourceIndex(0) --- @@ -277,11 +277,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) name (f1) -2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) name (f1) -3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) name (f1) -4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) name (f1) -5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) name (f1) +1->Emitted(10, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(10, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(10, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(10, 21) Source(9, 21) + SourceIndex(0) +5 >Emitted(10, 22) Source(9, 22) + SourceIndex(0) --- >>>} 1 > @@ -290,7 +290,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) name (f1) -2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) name (f1) +1 >Emitted(11, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(11, 2) Source(10, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map index e80a550275c..386fdffa417 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index 791b3dbcecb..14787fa8576 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js index c82993389bf..a4566036746 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js @@ -3,7 +3,7 @@ var m1_c1 = (function () { function m1_c1() { } return m1_c1; -})(); +}()); var m1_instance1 = new m1_c1(); function m1_f1() { return m1_instance1; @@ -14,7 +14,7 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var instance1 = new c1(); function f1() { return instance1; diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map index e80a550275c..386fdffa417 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":["m1_c1","m1_c1.constructor","m1_f1","c1","c1.constructor","f1"],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAAA;IAEAC,CAACA;IAADD,YAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACIE,MAAMA,CAACA,YAAYA,CAACA;AACxBA,CAACA;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAAC;IAEAC,CAACA;IAADD,SAACA;AAADA,CAACA,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACIE,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA"} \ No newline at end of file +{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":["ref/m1.ts","test.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAG,EAAE,CAAC;AACf;IAAA;IAEA,CAAC;IAAD,YAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC;AAC/B;IACI,MAAM,CAAC,YAAY,CAAC;AACxB,CAAC;ACRD,iCAAiC;AACjC,IAAI,EAAE,GAAG,EAAE,CAAC;AACZ;IAAA;IAEA,CAAC;IAAD,SAAC;AAAD,CAAC,AAFD,IAEC;AAED,IAAI,SAAS,GAAG,IAAI,EAAE,EAAE,CAAC;AACzB;IACI,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt index 791b3dbcecb..14787fa8576 100644 --- a/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt +++ b/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/sourcerootUrlSubfolderSpecifyOutputFile.sourcemap.txt @@ -40,7 +40,7 @@ sourceFile:ref/m1.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (m1_c1) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -50,18 +50,18 @@ sourceFile:ref/m1.ts > public m1_c1_p1: number; > 2 > } -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) name (m1_c1.constructor) -2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) name (m1_c1.constructor) +1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(4, 2) + SourceIndex(0) --- >>> return m1_c1; 1->^^^^ 2 > ^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) name (m1_c1) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 17) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -73,8 +73,8 @@ sourceFile:ref/m1.ts 4 > class m1_c1 { > public m1_c1_p1: number; > } -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) name (m1_c1) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) name (m1_c1) +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- @@ -125,11 +125,11 @@ sourceFile:ref/m1.ts 3 > 4 > m1_instance1 5 > ; -1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) name (m1_f1) -2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) name (m1_f1) -3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) name (m1_f1) -4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) name (m1_f1) -5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) name (m1_f1) +1->Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(9, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(9, 24) Source(8, 24) + SourceIndex(0) +5 >Emitted(9, 25) Source(8, 25) + SourceIndex(0) --- >>>} 1 > @@ -138,8 +138,8 @@ sourceFile:ref/m1.ts 1 > > 2 >} -1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) name (m1_f1) -2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) name (m1_f1) +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:bin/test.js @@ -186,7 +186,7 @@ sourceFile:test.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) name (c1) +1->Emitted(14, 5) Source(3, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -196,18 +196,18 @@ sourceFile:test.ts > public p1: number; > 2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) name (c1.constructor) -2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) name (c1.constructor) +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) --- >>> return c1; 1->^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) name (c1) +1->Emitted(16, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 14) Source(5, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -219,8 +219,8 @@ sourceFile:test.ts 4 > class c1 { > public p1: number; > } -1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) name (c1) -2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) name (c1) +1 >Emitted(17, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(5, 2) + SourceIndex(1) 3 >Emitted(17, 2) Source(3, 1) + SourceIndex(1) 4 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- @@ -271,11 +271,11 @@ sourceFile:test.ts 3 > 4 > instance1 5 > ; -1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) name (f1) -2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) name (f1) -3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) name (f1) -4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) name (f1) -5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) name (f1) +1->Emitted(20, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(20, 11) Source(9, 11) + SourceIndex(1) +3 >Emitted(20, 12) Source(9, 12) + SourceIndex(1) +4 >Emitted(20, 21) Source(9, 21) + SourceIndex(1) +5 >Emitted(20, 22) Source(9, 22) + SourceIndex(1) --- >>>} 1 > @@ -284,7 +284,7 @@ sourceFile:test.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) name (f1) -2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) name (f1) +1 >Emitted(21, 1) Source(10, 1) + SourceIndex(1) +2 >Emitted(21, 2) Source(10, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js index 63344d14b54..a40f7b2f9cd 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js @@ -13,6 +13,6 @@ define(["require", "exports"], function (require, exports) { var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server); }; return RM; - })(); + }()); exports.RM = RM; }); diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js index b238334b7be..c537ef54352 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js @@ -12,5 +12,5 @@ var RM = (function () { var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server); }; return RM; -})(); +}()); exports.RM = RM; diff --git a/tests/baselines/reference/promiseChaining.js b/tests/baselines/reference/promiseChaining.js index ce15e2d44c1..3f0900f7748 100644 --- a/tests/baselines/reference/promiseChaining.js +++ b/tests/baselines/reference/promiseChaining.js @@ -23,4 +23,4 @@ var Chain = (function () { return new Chain(result); }; return Chain; -})(); +}()); diff --git a/tests/baselines/reference/promiseChaining1.js b/tests/baselines/reference/promiseChaining1.js index 001f1ffc1a6..b396261a59e 100644 --- a/tests/baselines/reference/promiseChaining1.js +++ b/tests/baselines/reference/promiseChaining1.js @@ -23,4 +23,4 @@ var Chain2 = (function () { return new Chain2(result); }; return Chain2; -})(); +}()); diff --git a/tests/baselines/reference/promiseChaining2.js b/tests/baselines/reference/promiseChaining2.js index ed03ab2c97a..d9ae5e8099c 100644 --- a/tests/baselines/reference/promiseChaining2.js +++ b/tests/baselines/reference/promiseChaining2.js @@ -23,4 +23,4 @@ var Chain2 = (function () { return new Chain2(result); }; return Chain2; -})(); +}()); diff --git a/tests/baselines/reference/properties.js b/tests/baselines/reference/properties.js index 67bfc0d9903..fc103423529 100644 --- a/tests/baselines/reference/properties.js +++ b/tests/baselines/reference/properties.js @@ -28,7 +28,7 @@ var MyClass = (function () { configurable: true }); return MyClass; -})(); +}()); //# sourceMappingURL=properties.js.map //// [properties.d.ts] diff --git a/tests/baselines/reference/properties.js.map b/tests/baselines/reference/properties.js.map index 6e68d36e346..b9820ddba7c 100644 --- a/tests/baselines/reference/properties.js.map +++ b/tests/baselines/reference/properties.js.map @@ -1,2 +1,2 @@ //// [properties.js.map] -{"version":3,"file":"properties.js","sourceRoot":"","sources":["properties.ts"],"names":["MyClass","MyClass.constructor","MyClass.Count"],"mappings":"AACA;IAAAA;IAWAC,CAACA;IATGD,sBAAWA,0BAAKA;aAAhBA;YAEIE,MAAMA,CAACA,EAAEA,CAACA;QACdA,CAACA;aAEDF,UAAiBA,KAAaA;YAE1BE,EAAEA;QACNA,CAACA;;;OALAF;IAMLA,cAACA;AAADA,CAACA,AAXD,IAWC"} \ No newline at end of file +{"version":3,"file":"properties.js","sourceRoot":"","sources":["properties.ts"],"names":[],"mappings":"AACA;IAAA;IAWA,CAAC;IATG,sBAAW,0BAAK;aAAhB;YAEI,MAAM,CAAC,EAAE,CAAC;QACd,CAAC;aAED,UAAiB,KAAa;YAE1B,EAAE;QACN,CAAC;;;OALA;IAML,cAAC;AAAD,CAAC,AAXD,IAWC"} \ No newline at end of file diff --git a/tests/baselines/reference/properties.sourcemap.txt b/tests/baselines/reference/properties.sourcemap.txt index 9ff77cc2c5d..8c99154125a 100644 --- a/tests/baselines/reference/properties.sourcemap.txt +++ b/tests/baselines/reference/properties.sourcemap.txt @@ -19,7 +19,7 @@ sourceFile:properties.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) name (MyClass) +1->Emitted(2, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -38,8 +38,8 @@ sourceFile:properties.ts > } > 2 > } -1->Emitted(3, 5) Source(13, 1) + SourceIndex(0) name (MyClass.constructor) -2 >Emitted(3, 6) Source(13, 2) + SourceIndex(0) name (MyClass.constructor) +1->Emitted(3, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(13, 2) + SourceIndex(0) --- >>> Object.defineProperty(MyClass.prototype, "Count", { 1->^^^^ @@ -48,15 +48,15 @@ sourceFile:properties.ts 1-> 2 > public get 3 > Count -1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (MyClass) -2 >Emitted(4, 27) Source(4, 16) + SourceIndex(0) name (MyClass) -3 >Emitted(4, 53) Source(4, 21) + SourceIndex(0) name (MyClass) +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 27) Source(4, 16) + SourceIndex(0) +3 >Emitted(4, 53) Source(4, 21) + SourceIndex(0) --- >>> get: function () { 1 >^^^^^^^^^^^^^ 2 > ^^^^^^^^^^-> 1 > -1 >Emitted(5, 14) Source(4, 5) + SourceIndex(0) name (MyClass) +1 >Emitted(5, 14) Source(4, 5) + SourceIndex(0) --- >>> return 42; 1->^^^^^^^^^^^^ @@ -71,11 +71,11 @@ sourceFile:properties.ts 3 > 4 > 42 5 > ; -1->Emitted(6, 13) Source(6, 9) + SourceIndex(0) name (MyClass.Count) -2 >Emitted(6, 19) Source(6, 15) + SourceIndex(0) name (MyClass.Count) -3 >Emitted(6, 20) Source(6, 16) + SourceIndex(0) name (MyClass.Count) -4 >Emitted(6, 22) Source(6, 18) + SourceIndex(0) name (MyClass.Count) -5 >Emitted(6, 23) Source(6, 19) + SourceIndex(0) name (MyClass.Count) +1->Emitted(6, 13) Source(6, 9) + SourceIndex(0) +2 >Emitted(6, 19) Source(6, 15) + SourceIndex(0) +3 >Emitted(6, 20) Source(6, 16) + SourceIndex(0) +4 >Emitted(6, 22) Source(6, 18) + SourceIndex(0) +5 >Emitted(6, 23) Source(6, 19) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -84,8 +84,8 @@ sourceFile:properties.ts 1 > > 2 > } -1 >Emitted(7, 9) Source(7, 5) + SourceIndex(0) name (MyClass.Count) -2 >Emitted(7, 10) Source(7, 6) + SourceIndex(0) name (MyClass.Count) +1 >Emitted(7, 9) Source(7, 5) + SourceIndex(0) +2 >Emitted(7, 10) Source(7, 6) + SourceIndex(0) --- >>> set: function (value) { 1->^^^^^^^^^^^^^ @@ -96,9 +96,9 @@ sourceFile:properties.ts > 2 > public set Count( 3 > value: number -1->Emitted(8, 14) Source(9, 5) + SourceIndex(0) name (MyClass) -2 >Emitted(8, 24) Source(9, 22) + SourceIndex(0) name (MyClass) -3 >Emitted(8, 29) Source(9, 35) + SourceIndex(0) name (MyClass) +1->Emitted(8, 14) Source(9, 5) + SourceIndex(0) +2 >Emitted(8, 24) Source(9, 22) + SourceIndex(0) +3 >Emitted(8, 29) Source(9, 35) + SourceIndex(0) --- >>> // 1 >^^^^^^^^^^^^ @@ -107,8 +107,8 @@ sourceFile:properties.ts > { > 2 > // -1 >Emitted(9, 13) Source(11, 9) + SourceIndex(0) name (MyClass.Count) -2 >Emitted(9, 15) Source(11, 11) + SourceIndex(0) name (MyClass.Count) +1 >Emitted(9, 13) Source(11, 9) + SourceIndex(0) +2 >Emitted(9, 15) Source(11, 11) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -117,8 +117,8 @@ sourceFile:properties.ts 1 > > 2 > } -1 >Emitted(10, 9) Source(12, 5) + SourceIndex(0) name (MyClass.Count) -2 >Emitted(10, 10) Source(12, 6) + SourceIndex(0) name (MyClass.Count) +1 >Emitted(10, 9) Source(12, 5) + SourceIndex(0) +2 >Emitted(10, 10) Source(12, 6) + SourceIndex(0) --- >>> enumerable: true, >>> configurable: true @@ -126,7 +126,7 @@ sourceFile:properties.ts 1->^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1-> -1->Emitted(13, 8) Source(7, 6) + SourceIndex(0) name (MyClass) +1->Emitted(13, 8) Source(7, 6) + SourceIndex(0) --- >>> return MyClass; 1->^^^^ @@ -139,10 +139,10 @@ sourceFile:properties.ts > } > 2 > } -1->Emitted(14, 5) Source(13, 1) + SourceIndex(0) name (MyClass) -2 >Emitted(14, 19) Source(13, 2) + SourceIndex(0) name (MyClass) +1->Emitted(14, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(14, 19) Source(13, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -163,8 +163,8 @@ sourceFile:properties.ts > // > } > } -1 >Emitted(15, 1) Source(13, 1) + SourceIndex(0) name (MyClass) -2 >Emitted(15, 2) Source(13, 2) + SourceIndex(0) name (MyClass) +1 >Emitted(15, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 2) Source(13, 2) + SourceIndex(0) 3 >Emitted(15, 2) Source(2, 1) + SourceIndex(0) 4 >Emitted(15, 6) Source(13, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/propertiesAndIndexers.js b/tests/baselines/reference/propertiesAndIndexers.js index b7a39ae2330..591c4760e58 100644 --- a/tests/baselines/reference/propertiesAndIndexers.js +++ b/tests/baselines/reference/propertiesAndIndexers.js @@ -61,12 +61,12 @@ var P = (function () { function P() { } return P; -})(); +}()); var Q = (function (_super) { __extends(Q, _super); function Q() { _super.apply(this, arguments); } return Q; -})(P); +}(P)); var c; diff --git a/tests/baselines/reference/propertiesAndIndexersForNumericNames.js b/tests/baselines/reference/propertiesAndIndexersForNumericNames.js index 975abdc00ec..409107960b3 100644 --- a/tests/baselines/reference/propertiesAndIndexersForNumericNames.js +++ b/tests/baselines/reference/propertiesAndIndexersForNumericNames.js @@ -81,4 +81,4 @@ var C = (function () { this["0.000000000000000000012"] = "should've been in exponential form"; // No error } return C; -})(); +}()); diff --git a/tests/baselines/reference/propertyAccess.js b/tests/baselines/reference/propertyAccess.js index ed004b332cb..2dbb316d848 100644 --- a/tests/baselines/reference/propertyAccess.js +++ b/tests/baselines/reference/propertyAccess.js @@ -160,14 +160,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var Compass; (function (Compass) { Compass[Compass["North"] = 0] = "North"; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js index c76ad3a1165..63f91ae4f44 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js @@ -46,7 +46,7 @@ var C = (function () { return a + x.getDate(); }; return C; -})(); +}()); var r = (new C()).f(); var i; var r2 = i.foo.getDate(); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js index 35c279ba0ed..bbd2def2206 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js @@ -93,7 +93,7 @@ var A = (function () { } A.prototype.foo = function () { return ''; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -103,7 +103,7 @@ var B = (function (_super) { return ''; }; return B; -})(A); +}(A)); var C = (function () { function C() { } @@ -117,7 +117,7 @@ var C = (function () { return a + x.foo(); }; return C; -})(); +}()); //class C { // f() { // var x: U; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.errors.txt b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.errors.txt deleted file mode 100644 index 89d6c4dcf2b..00000000000 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.errors.txt +++ /dev/null @@ -1,77 +0,0 @@ -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts(13,22): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts(31,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts(39,19): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts(40,6): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts(42,14): error TS2339: Property 'foo' does not exist on type '{}'. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts(49,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts (6 errors) ==== - // generic types should behave as if they have properties of their constraint type - - class A { - foo(): string { return ''; } - } - - class B extends A { - bar(): string { - return ''; - } - } - - class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - f() { - var x: T; - // BUG 823818 - var a = x['foo'](); // should be string - return a + x.foo(); - } - - g(x: U) { - // BUG 823818 - var a = x['foo'](); // should be string - return a + x.foo(); - } - } - - var r1a = (new C()).f(); - var r1b = (new C()).g(new B()); - - interface I { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo: T; - } - var i: I; - var r2 = i.foo.foo(); - var r2b = i.foo['foo'](); - - var a: { - (): T; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - (x: U): U; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } - var r3 = a().foo(); // error, no inferences for U so it doesn't satisfy constraint - ~~~ -!!! error TS2339: Property 'foo' does not exist on type '{}'. - var r3b = a()['foo'](); - // parameter supplied for type argument inference for U - var r3c = a(new B()).foo(); // valid call to an invalid function, U is inferred as B, which has a foo - var r3d = a(new B())['foo'](); // valid call to an invalid function, U is inferred as B, which has a foo - - var b = { - foo: (x: T) => { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - // BUG 823818 - var a = x['foo'](); // should be string - return a + x.foo(); - } - } - - var r4 = b.foo(new B()); // valid call to an invalid function \ No newline at end of file diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js index 24c3fc50501..76da06166d4 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js @@ -68,7 +68,7 @@ var A = (function () { } A.prototype.foo = function () { return ''; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -78,7 +78,7 @@ var B = (function (_super) { return ''; }; return B; -})(A); +}(A)); var C = (function () { function C() { } @@ -94,7 +94,7 @@ var C = (function () { return a + x.foo(); }; return C; -})(); +}()); var r1a = (new C()).f(); var r1b = (new C()).g(new B()); var i; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.symbols b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.symbols new file mode 100644 index 00000000000..6d1074b14f6 --- /dev/null +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.symbols @@ -0,0 +1,193 @@ +=== tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts === +// generic types should behave as if they have properties of their constraint type + +class A { +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) + + foo(): string { return ''; } +>foo : Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) +} + +class B extends A { +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) + + bar(): string { +>bar : Symbol(bar, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 6, 19)) + + return ''; + } +} + +class C { +>C : Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 10, 1)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 8)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 20)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 8)) + + f() { +>f : Symbol(f, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 35)) + + var x: T; +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 14, 11)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 20)) + + // BUG 823818 + var a = x['foo'](); // should be string +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 16, 11)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 14, 11)) +>'foo' : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + + return a + x.foo(); +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 16, 11)) +>x.foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 14, 11)) +>foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + } + + g(x: U) { +>g : Symbol(g, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 18, 5)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 20, 6)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 8)) + + // BUG 823818 + var a = x['foo'](); // should be string +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 22, 11)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 20, 6)) +>'foo' : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + + return a + x.foo(); +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 22, 11)) +>x.foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 20, 6)) +>foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + } +} + +var r1a = (new C()).f(); +>r1a : Symbol(r1a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 27, 3)) +>(new C()).f : Symbol(C.f, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 35)) +>C : Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 10, 1)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) +>f : Symbol(C.f, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 12, 35)) + +var r1b = (new C()).g(new B()); +>r1b : Symbol(r1b, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 28, 3)) +>(new C()).g : Symbol(C.g, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 18, 5)) +>C : Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 10, 1)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) +>g : Symbol(C.g, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 18, 5)) +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) + +interface I { +>I : Symbol(I, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 28, 37)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 12)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 24)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 12)) + + foo: T; +>foo : Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 39)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 24)) +} +var i: I; +>i : Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 33, 3)) +>I : Symbol(I, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 28, 37)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) + +var r2 = i.foo.foo(); +>r2 : Symbol(r2, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 34, 3)) +>i.foo.foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) +>i.foo : Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 39)) +>i : Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 33, 3)) +>foo : Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 39)) +>foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + +var r2b = i.foo['foo'](); +>r2b : Symbol(r2b, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 35, 3)) +>i.foo : Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 39)) +>i : Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 33, 3)) +>foo : Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 30, 39)) +>'foo' : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + +var a: { +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 37, 3)) + + (): T; +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 38, 5)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 38, 17)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 38, 5)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 38, 17)) + + (x: U): U; +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 39, 5)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 39, 17)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 39, 17)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 39, 31)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 39, 5)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 39, 5)) +} +var r3 = a().foo(); // error, no inferences for U so it doesn't satisfy constraint +>r3 : Symbol(r3, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 41, 3)) +>a().foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 37, 3)) +>foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + +var r3b = a()['foo'](); +>r3b : Symbol(r3b, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 42, 3)) +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 37, 3)) +>'foo' : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + +// parameter supplied for type argument inference for U +var r3c = a(new B()).foo(); // valid call to an invalid function, U is inferred as B, which has a foo +>r3c : Symbol(r3c, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 44, 3)) +>a(new B()).foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 37, 3)) +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) +>foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + +var r3d = a(new B())['foo'](); // valid call to an invalid function, U is inferred as B, which has a foo +>r3d : Symbol(r3d, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 45, 3)) +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 37, 3)) +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) +>'foo' : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + +var b = { +>b : Symbol(b, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 47, 3)) + + foo: (x: T) => { +>foo : Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 47, 9)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 48, 10)) +>A : Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 0, 0)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 48, 22)) +>U : Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 48, 10)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 48, 36)) +>T : Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 48, 22)) + + // BUG 823818 + var a = x['foo'](); // should be string +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 50, 11)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 48, 36)) +>'foo' : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + + return a + x.foo(); +>a : Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 50, 11)) +>x.foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) +>x : Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 48, 36)) +>foo : Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 2, 9)) + } +} + +var r4 = b.foo(new B()); // valid call to an invalid function +>r4 : Symbol(r4, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 55, 3)) +>b.foo : Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 47, 9)) +>b : Symbol(b, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 47, 3)) +>foo : Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 47, 9)) +>B : Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints3.ts, 4, 1)) + diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.types b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.types new file mode 100644 index 00000000000..f2423f2bff8 --- /dev/null +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.types @@ -0,0 +1,233 @@ +=== tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts === +// generic types should behave as if they have properties of their constraint type + +class A { +>A : A + + foo(): string { return ''; } +>foo : () => string +>'' : string +} + +class B extends A { +>B : B +>A : A + + bar(): string { +>bar : () => string + + return ''; +>'' : string + } +} + +class C { +>C : C +>U : U +>A : A +>T : T +>U : U + + f() { +>f : () => string + + var x: T; +>x : T +>T : T + + // BUG 823818 + var a = x['foo'](); // should be string +>a : string +>x['foo']() : string +>x['foo'] : () => string +>x : T +>'foo' : string + + return a + x.foo(); +>a + x.foo() : string +>a : string +>x.foo() : string +>x.foo : () => string +>x : T +>foo : () => string + } + + g(x: U) { +>g : (x: U) => string +>x : U +>U : U + + // BUG 823818 + var a = x['foo'](); // should be string +>a : string +>x['foo']() : string +>x['foo'] : () => string +>x : U +>'foo' : string + + return a + x.foo(); +>a + x.foo() : string +>a : string +>x.foo() : string +>x.foo : () => string +>x : U +>foo : () => string + } +} + +var r1a = (new C()).f(); +>r1a : string +>(new C()).f() : string +>(new C()).f : () => string +>(new C()) : C +>new C() : C +>C : typeof C +>A : A +>B : B +>f : () => string + +var r1b = (new C()).g(new B()); +>r1b : string +>(new C()).g(new B()) : string +>(new C()).g : (x: A) => string +>(new C()) : C +>new C() : C +>C : typeof C +>A : A +>B : B +>g : (x: A) => string +>new B() : B +>B : typeof B + +interface I { +>I : I +>U : U +>A : A +>T : T +>U : U + + foo: T; +>foo : T +>T : T +} +var i: I; +>i : I +>I : I +>A : A +>B : B + +var r2 = i.foo.foo(); +>r2 : string +>i.foo.foo() : string +>i.foo.foo : () => string +>i.foo : B +>i : I +>foo : B +>foo : () => string + +var r2b = i.foo['foo'](); +>r2b : string +>i.foo['foo']() : string +>i.foo['foo'] : () => string +>i.foo : B +>i : I +>foo : B +>'foo' : string + +var a: { +>a : { (): T; (x: U): U; } + + (): T; +>U : U +>A : A +>T : T +>U : U +>T : T + + (x: U): U; +>U : U +>T : T +>T : T +>A : A +>x : U +>U : U +>U : U +} +var r3 = a().foo(); // error, no inferences for U so it doesn't satisfy constraint +>r3 : string +>a().foo() : string +>a().foo : () => string +>a() : A +>a : { (): T; (x: U): U; } +>foo : () => string + +var r3b = a()['foo'](); +>r3b : string +>a()['foo']() : string +>a()['foo'] : () => string +>a() : A +>a : { (): T; (x: U): U; } +>'foo' : string + +// parameter supplied for type argument inference for U +var r3c = a(new B()).foo(); // valid call to an invalid function, U is inferred as B, which has a foo +>r3c : string +>a(new B()).foo() : string +>a(new B()).foo : () => string +>a(new B()) : B +>a : { (): T; (x: U): U; } +>new B() : B +>B : typeof B +>foo : () => string + +var r3d = a(new B())['foo'](); // valid call to an invalid function, U is inferred as B, which has a foo +>r3d : string +>a(new B())['foo']() : string +>a(new B())['foo'] : () => string +>a(new B()) : B +>a : { (): T; (x: U): U; } +>new B() : B +>B : typeof B +>'foo' : string + +var b = { +>b : { foo: (x: T) => string; } +>{ foo: (x: T) => { // BUG 823818 var a = x['foo'](); // should be string return a + x.foo(); }} : { foo: (x: T) => string; } + + foo: (x: T) => { +>foo : (x: T) => string +>(x: T) => { // BUG 823818 var a = x['foo'](); // should be string return a + x.foo(); } : (x: T) => string +>U : U +>A : A +>T : T +>U : U +>x : T +>T : T + + // BUG 823818 + var a = x['foo'](); // should be string +>a : string +>x['foo']() : string +>x['foo'] : () => string +>x : T +>'foo' : string + + return a + x.foo(); +>a + x.foo() : string +>a : string +>x.foo() : string +>x.foo : () => string +>x : T +>foo : () => string + } +} + +var r4 = b.foo(new B()); // valid call to an invalid function +>r4 : string +>b.foo(new B()) : string +>b.foo : (x: T) => string +>b : { foo: (x: T) => string; } +>foo : (x: T) => string +>new B() : B +>B : typeof B + diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js index e1209fbfe84..3c5a87e4d06 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js @@ -42,7 +42,7 @@ var C = (function () { return a + x.notHere(); }; return C; -})(); +}()); var r = (new C()).f(); var i; var r2 = i.foo.notHere(); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.errors.txt b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.errors.txt index bf45f90564b..fd012d0e5a5 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.errors.txt +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.errors.txt @@ -1,12 +1,11 @@ -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(11,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(21,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(15,32): error TS2339: Property 'notHere' does not exist on type 'U'. tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(25,16): error TS2339: Property 'notHere' does not exist on type 'B'. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(29,6): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(32,22): error TS2339: Property 'notHere' does not exist on type '{}'. -tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(36,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(32,22): error TS2339: Property 'notHere' does not exist on type 'A'. +tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(38,16): error TS2322: Type 'string' is not assignable to type 'U'. +tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts(38,22): error TS2339: Property 'notHere' does not exist on type 'U'. -==== tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts (6 errors) ==== +==== tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts (5 errors) ==== class A { foo(): string { return ''; } } @@ -18,20 +17,18 @@ tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOn } class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. f() { var x: U; var a = x['foo'](); // should be string return a + x.foo() + x.notHere(); + ~~~~~~~ +!!! error TS2339: Property 'notHere' does not exist on type 'U'. } } var r = (new C()).f(); interface I { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo: U; } var i: I; @@ -42,21 +39,21 @@ tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOn var a: { (): U; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. } // BUG 794164 var r3: string = a().notHere(); ~~~~~~~ -!!! error TS2339: Property 'notHere' does not exist on type '{}'. +!!! error TS2339: Property 'notHere' does not exist on type 'A'. var r3b: string = a()['foo'](); var b = { foo: (x: U): U => { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var a = x['foo'](); // should be string return a + x.notHere(); + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'string' is not assignable to type 'U'. + ~~~~~~~ +!!! error TS2339: Property 'notHere' does not exist on type 'U'. }, // BUG 794164 bar: b.foo(1).notHere() diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js index 37b8240b9ac..c49153c59b0 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js @@ -55,7 +55,7 @@ var A = (function () { } A.prototype.foo = function () { return ''; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -65,7 +65,7 @@ var B = (function (_super) { return ''; }; return B; -})(A); +}(A)); var C = (function () { function C() { } @@ -75,7 +75,7 @@ var C = (function () { return a + x.foo() + x.notHere(); }; return C; -})(); +}()); var r = (new C()).f(); var i; var r2 = i.foo.notHere(); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js index bed3e685dcf..0e5a1ee7bae 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js @@ -41,7 +41,7 @@ var C = (function () { return a + x.toString(); }; return C; -})(); +}()); var r = (new C()).f(); var i; var r2 = i.foo.toString(); diff --git a/tests/baselines/reference/propertyAccessibility1.js b/tests/baselines/reference/propertyAccessibility1.js index 9c4d0eb0582..3ba7b297ced 100644 --- a/tests/baselines/reference/propertyAccessibility1.js +++ b/tests/baselines/reference/propertyAccessibility1.js @@ -12,6 +12,6 @@ var Foo = (function () { this.privProp = 0; } return Foo; -})(); +}()); var f = new Foo(); f.privProp; diff --git a/tests/baselines/reference/propertyAccessibility2.js b/tests/baselines/reference/propertyAccessibility2.js index 3009a984186..afce6c4c24a 100644 --- a/tests/baselines/reference/propertyAccessibility2.js +++ b/tests/baselines/reference/propertyAccessibility2.js @@ -11,5 +11,5 @@ var C = (function () { } C.x = 1; return C; -})(); +}()); var c = C.x; diff --git a/tests/baselines/reference/propertyAndAccessorWithSameName.js b/tests/baselines/reference/propertyAndAccessorWithSameName.js index f8978ac4d18..ece999fac54 100644 --- a/tests/baselines/reference/propertyAndAccessorWithSameName.js +++ b/tests/baselines/reference/propertyAndAccessorWithSameName.js @@ -31,7 +31,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function () { function D() { } @@ -42,7 +42,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); var E = (function () { function E() { } @@ -55,4 +55,4 @@ var E = (function () { configurable: true }); return E; -})(); +}()); diff --git a/tests/baselines/reference/propertyAndFunctionWithSameName.js b/tests/baselines/reference/propertyAndFunctionWithSameName.js index eb0b437fd5c..bb979735172 100644 --- a/tests/baselines/reference/propertyAndFunctionWithSameName.js +++ b/tests/baselines/reference/propertyAndFunctionWithSameName.js @@ -19,10 +19,10 @@ var C = (function () { return 1; }; return C; -})(); +}()); var D = (function () { function D() { } D.prototype.x = function (v) { }; // error return D; -})(); +}()); diff --git a/tests/baselines/reference/propertyAssignment.errors.txt b/tests/baselines/reference/propertyAssignment.errors.txt index 47359caf9c2..815d0a44d53 100644 --- a/tests/baselines/reference/propertyAssignment.errors.txt +++ b/tests/baselines/reference/propertyAssignment.errors.txt @@ -1,7 +1,9 @@ tests/cases/compiler/propertyAssignment.ts(6,13): error TS1170: A computed property name in a type literal must directly refer to a built-in symbol. tests/cases/compiler/propertyAssignment.ts(6,14): error TS2304: Cannot find name 'index'. tests/cases/compiler/propertyAssignment.ts(14,1): error TS2322: Type '{ x: number; }' is not assignable to type 'new () => any'. + Type '{ x: number; }' provides no match for the signature 'new (): any' tests/cases/compiler/propertyAssignment.ts(16,1): error TS2322: Type '{ x: number; }' is not assignable to type '() => void'. + Type '{ x: number; }' provides no match for the signature '(): void' ==== tests/cases/compiler/propertyAssignment.ts (4 errors) ==== @@ -25,7 +27,9 @@ tests/cases/compiler/propertyAssignment.ts(16,1): error TS2322: Type '{ x: numbe foo1 = bar1; // should be an error ~~~~ !!! error TS2322: Type '{ x: number; }' is not assignable to type 'new () => any'. +!!! error TS2322: Type '{ x: number; }' provides no match for the signature 'new (): any' foo2 = bar2; foo3 = bar3; // should be an error ~~~~ -!!! error TS2322: Type '{ x: number; }' is not assignable to type '() => void'. \ No newline at end of file +!!! error TS2322: Type '{ x: number; }' is not assignable to type '() => void'. +!!! error TS2322: Type '{ x: number; }' provides no match for the signature '(): void' \ No newline at end of file diff --git a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js index b87147d11ce..f62acb89dfd 100644 --- a/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js +++ b/tests/baselines/reference/propertyIdentityWithPrivacyMismatch.js @@ -37,12 +37,12 @@ define(["require", "exports"], function (require, exports) { function Foo1() { } return Foo1; - })(); + }()); var Foo2 = (function () { function Foo2() { } return Foo2; - })(); + }()); var y; var y; }); diff --git a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js index ffbc946a368..f9e106a3786 100644 --- a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js +++ b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.js @@ -26,7 +26,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { foo: null diff --git a/tests/baselines/reference/propertyNamedPrototype.js b/tests/baselines/reference/propertyNamedPrototype.js index 2af5e01de19..34a967a0c91 100644 --- a/tests/baselines/reference/propertyNamedPrototype.js +++ b/tests/baselines/reference/propertyNamedPrototype.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/propertyNamesOfReservedWords.js b/tests/baselines/reference/propertyNamesOfReservedWords.js index b2332345712..4c333f48cbb 100644 --- a/tests/baselines/reference/propertyNamesOfReservedWords.js +++ b/tests/baselines/reference/propertyNamesOfReservedWords.js @@ -281,7 +281,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r1 = c.abstract; var r2 = c.as; diff --git a/tests/baselines/reference/propertyNamesWithStringLiteral.js b/tests/baselines/reference/propertyNamesWithStringLiteral.js index 1474847723f..f17ddb84dc3 100644 --- a/tests/baselines/reference/propertyNamesWithStringLiteral.js +++ b/tests/baselines/reference/propertyNamesWithStringLiteral.js @@ -21,7 +21,7 @@ var _Color = (function () { function _Color() { } return _Color; -})(); +}()); var Color; (function (Color) { })(Color || (Color = {})); diff --git a/tests/baselines/reference/propertyOrdering.js b/tests/baselines/reference/propertyOrdering.js index f0f4644a983..190117b66f4 100644 --- a/tests/baselines/reference/propertyOrdering.js +++ b/tests/baselines/reference/propertyOrdering.js @@ -33,7 +33,7 @@ var Foo = (function () { }; Foo.prototype.bar = function () { return this.store; }; // should be an error return Foo; -})(); +}()); var Bar = (function () { function Bar(store) { this._store = store; @@ -42,4 +42,4 @@ var Bar = (function () { return this._store.length; // shouldn't be an error }; return Bar; -})(); +}()); diff --git a/tests/baselines/reference/propertyOrdering2.js b/tests/baselines/reference/propertyOrdering2.js index 4c1cfc63d5c..783e7c8d000 100644 --- a/tests/baselines/reference/propertyOrdering2.js +++ b/tests/baselines/reference/propertyOrdering2.js @@ -18,4 +18,4 @@ var Foo = (function () { return this.y; }; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/propertyParameterWithQuestionMark.js b/tests/baselines/reference/propertyParameterWithQuestionMark.js index e3b6bd153c2..511062663e8 100644 --- a/tests/baselines/reference/propertyParameterWithQuestionMark.js +++ b/tests/baselines/reference/propertyParameterWithQuestionMark.js @@ -15,7 +15,7 @@ var C = (function () { this.x = x; } return C; -})(); +}()); // x should not be an optional property var v = {}; // Should fail var v2; diff --git a/tests/baselines/reference/propertyWrappedInTry.js b/tests/baselines/reference/propertyWrappedInTry.js index e7f8a28d688..96684f2b453 100644 --- a/tests/baselines/reference/propertyWrappedInTry.js +++ b/tests/baselines/reference/propertyWrappedInTry.js @@ -24,7 +24,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); try { bar = someInitThatMightFail(); } diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js index 19ec9f50d27..85f63e11c68 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js @@ -52,7 +52,7 @@ var C = (function () { C.foo = function () { return this.foo; }; C.bar = function () { this.foo(); }; return C; -})(); +}()); // added level of function nesting var C2 = (function () { function C2() { @@ -96,4 +96,4 @@ var C2 = (function () { (function () { return _this.foo(); }); }; return C2; -})(); +}()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js index ce7bc5d0b40..a87f67e15f2 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js @@ -30,7 +30,7 @@ var B = (function () { function B() { } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -53,4 +53,4 @@ var C = (function (_super) { C.foo = function () { return this.x; }; C.bar = function () { this.foo(); }; return C; -})(B); +}(B)); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js index e47e7e5a7d5..05dc85e251e 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js @@ -116,7 +116,7 @@ var Base = (function () { d4.x; // OK, accessed within their declaring class }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -135,7 +135,7 @@ var Derived1 = (function (_super) { d4.x; // Error, isn't accessed through an instance of the enclosing class }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -154,7 +154,7 @@ var Derived2 = (function (_super) { d4.x; // OK, accessed within a class derived from their declaring class, and through an instance of the enclosing class or one of its subclasses }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { @@ -173,7 +173,7 @@ var Derived3 = (function (_super) { d4.x; // Error, isn't accessed through an instance of the enclosing class }; return Derived3; -})(Derived1); +}(Derived1)); var Derived4 = (function (_super) { __extends(Derived4, _super); function Derived4() { @@ -192,7 +192,7 @@ var Derived4 = (function (_super) { d4.x; // OK, accessed within a class derived from their declaring class, and through an instance of the enclosing class }; return Derived4; -})(Derived2); +}(Derived2)); var b; var d1; var d2; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js index 0140e61406c..6675589226e 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js @@ -26,7 +26,7 @@ var Base = (function () { this.x; // OK, accessed within their declaring class }; return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -37,4 +37,4 @@ var Derived = (function (_super) { _super.prototype.x; // Error, x is not public }; return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/protectedInstanceMemberAccessibility.js b/tests/baselines/reference/protectedInstanceMemberAccessibility.js index ff4ae952249..eba89aac28e 100644 --- a/tests/baselines/reference/protectedInstanceMemberAccessibility.js +++ b/tests/baselines/reference/protectedInstanceMemberAccessibility.js @@ -57,7 +57,7 @@ var A = (function () { return "hello"; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -89,11 +89,11 @@ var B = (function (_super) { var c4 = c.z; // error }; return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/protectedMembers.js b/tests/baselines/reference/protectedMembers.js index f86818b6e65..e541f697f44 100644 --- a/tests/baselines/reference/protectedMembers.js +++ b/tests/baselines/reference/protectedMembers.js @@ -133,7 +133,7 @@ var C1 = (function () { return this.sx; }; return C1; -})(); +}()); // Derived class accessing protected members var C2 = (function (_super) { __extends(C2, _super); @@ -147,7 +147,7 @@ var C2 = (function (_super) { return _super.sf.call(this) + this.sx; }; return C2; -})(C1); +}(C1)); // Derived class making protected members public var C3 = (function (_super) { __extends(C3, _super); @@ -161,7 +161,7 @@ var C3 = (function (_super) { return _super.sf.call(this); }; return C3; -})(C2); +}(C2)); var c1; var c2; var c3; @@ -184,14 +184,14 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -205,30 +205,30 @@ var C = (function (_super) { e.x = 1; }; return C; -})(A); +}(A)); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); var CC = (function () { // Error, constructor cannot be protected function CC() { } return CC; -})(); +}()); var A1 = (function () { function A1() { } return A1; -})(); +}()); var B1 = (function () { function B1() { } return B1; -})(); +}()); var a1; var b1; a1 = b1; // Error, B1 doesn't derive from A1 @@ -237,19 +237,19 @@ var A2 = (function () { function A2() { } return A2; -})(); +}()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A2); +}(A2)); var A3 = (function () { function A3() { } return A3; -})(); +}()); // Error x is protected in B3 but public in A3 var B3 = (function (_super) { __extends(B3, _super); @@ -257,4 +257,4 @@ var B3 = (function (_super) { _super.apply(this, arguments); } return B3; -})(A3); +}(A3)); diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js index 9edd43ad52e..323a5a2f2b6 100644 --- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js +++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js @@ -59,7 +59,7 @@ var Base = (function () { Derived3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -72,7 +72,7 @@ var Derived1 = (function (_super) { Derived3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -85,7 +85,7 @@ var Derived2 = (function (_super) { Derived3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses }; return Derived2; -})(Base); +}(Base)); var Derived3 = (function (_super) { __extends(Derived3, _super); function Derived3() { @@ -98,7 +98,7 @@ var Derived3 = (function (_super) { Derived3.x; // OK, accessed within their declaring class }; return Derived3; -})(Derived1); +}(Derived1)); Base.x; // Error, neither within their declaring class nor classes derived from their declaring class Derived1.x; // Error, neither within their declaring class nor classes derived from their declaring class Derived2.x; // Error, neither within their declaring class nor classes derived from their declaring class diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js index 5a8b07df371..1295dc7448e 100644 --- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js @@ -34,7 +34,7 @@ var Base = (function () { this.x; // OK, accessed within their declaring class }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -45,7 +45,7 @@ var Derived1 = (function (_super) { _super.x; // Error, x is not public }; return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { @@ -56,4 +56,4 @@ var Derived2 = (function (_super) { _super.x; // Error, x is not public }; return Derived2; -})(Derived1); +}(Derived1)); diff --git a/tests/baselines/reference/protectedStaticNotAccessibleInClodule.js b/tests/baselines/reference/protectedStaticNotAccessibleInClodule.js index 7534850b34f..91776654692 100644 --- a/tests/baselines/reference/protectedStaticNotAccessibleInClodule.js +++ b/tests/baselines/reference/protectedStaticNotAccessibleInClodule.js @@ -17,7 +17,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var C; (function (C) { C.f = C.foo; // OK diff --git a/tests/baselines/reference/protoAsIndexInIndexExpression.js b/tests/baselines/reference/protoAsIndexInIndexExpression.js index 715ac2c1007..2c9b0f7a7c7 100644 --- a/tests/baselines/reference/protoAsIndexInIndexExpression.js +++ b/tests/baselines/reference/protoAsIndexInIndexExpression.js @@ -37,4 +37,4 @@ var C = (function () { this["__proto__"] = 0; } return C; -})(); +}()); diff --git a/tests/baselines/reference/protoInIndexer.js b/tests/baselines/reference/protoInIndexer.js index 08e1fbc931c..d1d47681e0c 100644 --- a/tests/baselines/reference/protoInIndexer.js +++ b/tests/baselines/reference/protoInIndexer.js @@ -11,4 +11,4 @@ var X = (function () { this['__proto__'] = null; // used to cause ICE } return X; -})(); +}()); diff --git a/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.js b/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.js index 7267d2dad29..3dd3a503213 100644 --- a/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.js +++ b/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.js @@ -10,5 +10,5 @@ var C = (function () { function C() { } return C; -})(); +}()); C.prototype.x.boo; // No error, prototype is instantiated to any diff --git a/tests/baselines/reference/publicIndexer.js b/tests/baselines/reference/publicIndexer.js index 6fc5d81b62f..e55a6ace2c4 100644 --- a/tests/baselines/reference/publicIndexer.js +++ b/tests/baselines/reference/publicIndexer.js @@ -19,14 +19,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var E = (function () { function E() { } return E; -})(); +}()); diff --git a/tests/baselines/reference/publicMemberImplementedAsPrivateInDerivedClass.js b/tests/baselines/reference/publicMemberImplementedAsPrivateInDerivedClass.js index 7c6202eec30..fc8b07a52bd 100644 --- a/tests/baselines/reference/publicMemberImplementedAsPrivateInDerivedClass.js +++ b/tests/baselines/reference/publicMemberImplementedAsPrivateInDerivedClass.js @@ -12,4 +12,4 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js b/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js index b0079c2f45b..f396c2483e8 100644 --- a/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js +++ b/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js @@ -22,4 +22,4 @@ var Beta = (function (_super) { _super.apply(this, arguments); } return Beta; -})(Alpha.x); +}(Alpha.x)); diff --git a/tests/baselines/reference/qualify.errors.txt b/tests/baselines/reference/qualify.errors.txt index c7679a0a0f8..f38fc93ccde 100644 --- a/tests/baselines/reference/qualify.errors.txt +++ b/tests/baselines/reference/qualify.errors.txt @@ -7,7 +7,9 @@ tests/cases/compiler/qualify.ts(45,13): error TS2322: Type 'I4' is not assignabl tests/cases/compiler/qualify.ts(46,13): error TS2322: Type 'I4' is not assignable to type 'I3[]'. Property 'length' is missing in type 'I4'. tests/cases/compiler/qualify.ts(47,13): error TS2322: Type 'I4' is not assignable to type '() => I3'. + Type 'I4' provides no match for the signature '(): I3' tests/cases/compiler/qualify.ts(48,13): error TS2322: Type 'I4' is not assignable to type '(k: I3) => void'. + Type 'I4' provides no match for the signature '(k: I3): void' tests/cases/compiler/qualify.ts(49,13): error TS2322: Type 'I4' is not assignable to type '{ k: I3; }'. Property 'k' is missing in type 'I4'. tests/cases/compiler/qualify.ts(58,5): error TS2322: Type 'I' is not assignable to type 'T.I'. @@ -76,9 +78,11 @@ tests/cases/compiler/qualify.ts(58,5): error TS2322: Type 'I' is not assignable var v4:()=>K1.I3=v1; ~~ !!! error TS2322: Type 'I4' is not assignable to type '() => I3'. +!!! error TS2322: Type 'I4' provides no match for the signature '(): I3' var v5:(k:K1.I3)=>void=v1; ~~ !!! error TS2322: Type 'I4' is not assignable to type '(k: I3) => void'. +!!! error TS2322: Type 'I4' provides no match for the signature '(k: I3): void' var v6:{k:K1.I3;}=v1; ~~ !!! error TS2322: Type 'I4' is not assignable to type '{ k: I3; }'. diff --git a/tests/baselines/reference/quotedAccessorName1.js b/tests/baselines/reference/quotedAccessorName1.js index 69e0fdb2c8e..fbc47ae18d2 100644 --- a/tests/baselines/reference/quotedAccessorName1.js +++ b/tests/baselines/reference/quotedAccessorName1.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/quotedAccessorName2.js b/tests/baselines/reference/quotedAccessorName2.js index 5d2d4861550..a5a3cb3f598 100644 --- a/tests/baselines/reference/quotedAccessorName2.js +++ b/tests/baselines/reference/quotedAccessorName2.js @@ -13,4 +13,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/quotedFunctionName1.js b/tests/baselines/reference/quotedFunctionName1.js index 69f4f2cfaa3..f58d154bc7f 100644 --- a/tests/baselines/reference/quotedFunctionName1.js +++ b/tests/baselines/reference/quotedFunctionName1.js @@ -9,4 +9,4 @@ var Test1 = (function () { } Test1.prototype["prop1"] = function () { }; return Test1; -})(); +}()); diff --git a/tests/baselines/reference/quotedFunctionName2.js b/tests/baselines/reference/quotedFunctionName2.js index 3173ec29f13..1508305c969 100644 --- a/tests/baselines/reference/quotedFunctionName2.js +++ b/tests/baselines/reference/quotedFunctionName2.js @@ -9,4 +9,4 @@ var Test1 = (function () { } Test1["prop1"] = function () { }; return Test1; -})(); +}()); diff --git a/tests/baselines/reference/quotedPropertyName1.js b/tests/baselines/reference/quotedPropertyName1.js index 2b4176fc492..91c0c2256e2 100644 --- a/tests/baselines/reference/quotedPropertyName1.js +++ b/tests/baselines/reference/quotedPropertyName1.js @@ -9,4 +9,4 @@ var Test1 = (function () { this["prop1"] = 0; } return Test1; -})(); +}()); diff --git a/tests/baselines/reference/quotedPropertyName2.js b/tests/baselines/reference/quotedPropertyName2.js index ebff9f5fca0..1c4d85076ea 100644 --- a/tests/baselines/reference/quotedPropertyName2.js +++ b/tests/baselines/reference/quotedPropertyName2.js @@ -9,4 +9,4 @@ var Test1 = (function () { } Test1["prop1"] = 0; return Test1; -})(); +}()); diff --git a/tests/baselines/reference/quotedPropertyName3.js b/tests/baselines/reference/quotedPropertyName3.js index 4191418e42a..0b837addf25 100644 --- a/tests/baselines/reference/quotedPropertyName3.js +++ b/tests/baselines/reference/quotedPropertyName3.js @@ -17,4 +17,4 @@ var Test = (function () { var y = x(); }; return Test; -})(); +}()); diff --git a/tests/baselines/reference/raiseErrorOnParameterProperty.js b/tests/baselines/reference/raiseErrorOnParameterProperty.js index 600e1916231..437da6c948f 100644 --- a/tests/baselines/reference/raiseErrorOnParameterProperty.js +++ b/tests/baselines/reference/raiseErrorOnParameterProperty.js @@ -13,5 +13,5 @@ var C1 = (function () { this.x = x; } return C1; -})(); +}()); var c1 = new C1(0); diff --git a/tests/baselines/reference/reachabilityChecks1.js b/tests/baselines/reference/reachabilityChecks1.js index dcbfbe89de4..97b914fc104 100644 --- a/tests/baselines/reference/reachabilityChecks1.js +++ b/tests/baselines/reference/reachabilityChecks1.js @@ -130,7 +130,7 @@ function f2() { function A() { } return A; - })(); + }()); } var B; (function (B) { diff --git a/tests/baselines/reference/reachabilityChecks6.errors.txt b/tests/baselines/reference/reachabilityChecks6.errors.txt index 5b78891afb3..38e72def8c6 100644 --- a/tests/baselines/reference/reachabilityChecks6.errors.txt +++ b/tests/baselines/reference/reachabilityChecks6.errors.txt @@ -1,5 +1,4 @@ tests/cases/compiler/reachabilityChecks6.ts(6,10): error TS7030: Not all code paths return a value. -tests/cases/compiler/reachabilityChecks6.ts(19,10): error TS7030: Not all code paths return a value. tests/cases/compiler/reachabilityChecks6.ts(31,10): error TS7030: Not all code paths return a value. tests/cases/compiler/reachabilityChecks6.ts(41,10): error TS7030: Not all code paths return a value. tests/cases/compiler/reachabilityChecks6.ts(52,10): error TS7030: Not all code paths return a value. @@ -10,7 +9,7 @@ tests/cases/compiler/reachabilityChecks6.ts(116,10): error TS7030: Not all code tests/cases/compiler/reachabilityChecks6.ts(123,13): error TS7027: Unreachable code detected. -==== tests/cases/compiler/reachabilityChecks6.ts (10 errors) ==== +==== tests/cases/compiler/reachabilityChecks6.ts (9 errors) ==== function f0(x) { while (true); @@ -32,8 +31,6 @@ tests/cases/compiler/reachabilityChecks6.ts(123,13): error TS7027: Unreachable c } function f3(x) { - ~~ -!!! error TS7030: Not all code paths return a value. while (x) { throw new Error(); } diff --git a/tests/baselines/reference/reachabilityChecks7.errors.txt b/tests/baselines/reference/reachabilityChecks7.errors.txt index 9e8f803f957..1596c7d9a3b 100644 --- a/tests/baselines/reference/reachabilityChecks7.errors.txt +++ b/tests/baselines/reference/reachabilityChecks7.errors.txt @@ -1,21 +1,39 @@ -tests/cases/compiler/reachabilityChecks7.ts(3,16): error TS7030: Not all code paths return a value. -tests/cases/compiler/reachabilityChecks7.ts(6,9): error TS7030: Not all code paths return a value. +tests/cases/compiler/reachabilityChecks7.ts(14,16): error TS7030: Not all code paths return a value. +tests/cases/compiler/reachabilityChecks7.ts(18,22): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value. ==== tests/cases/compiler/reachabilityChecks7.ts (2 errors) ==== // async function without return type annotation - error async function f1() { - ~~ -!!! error TS7030: Not all code paths return a value. } let x = async function() { - ~~~~~ -!!! error TS7030: Not all code paths return a value. } // async function with which promised type is void - return can be omitted async function f2(): Promise { - } \ No newline at end of file + } + + async function f3(x) { + ~~ +!!! error TS7030: Not all code paths return a value. + if (x) return 10; + } + + async function f4(): Promise { + ~~~~~~~~~~~~~~~ +!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value. + + } + + function voidFunc(): void { + } + + function calltoVoidFunc(x) { + if (x) return voidFunc(); + } + + declare function use(s: string): void; + let x1 = () => { use("Test"); } \ No newline at end of file diff --git a/tests/baselines/reference/reachabilityChecks7.js b/tests/baselines/reference/reachabilityChecks7.js index f9579d5828d..c78f99953e9 100644 --- a/tests/baselines/reference/reachabilityChecks7.js +++ b/tests/baselines/reference/reachabilityChecks7.js @@ -10,7 +10,25 @@ let x = async function() { // async function with which promised type is void - return can be omitted async function f2(): Promise { -} +} + +async function f3(x) { + if (x) return 10; +} + +async function f4(): Promise { + +} + +function voidFunc(): void { +} + +function calltoVoidFunc(x) { + if (x) return voidFunc(); +} + +declare function use(s: string): void; +let x1 = () => { use("Test"); } //// [reachabilityChecks7.js] var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promise, generator) { @@ -40,3 +58,20 @@ function f2() { return __awaiter(this, void 0, Promise, function* () { }); } +function f3(x) { + return __awaiter(this, void 0, Promise, function* () { + if (x) + return 10; + }); +} +function f4() { + return __awaiter(this, void 0, Promise, function* () { + }); +} +function voidFunc() { +} +function calltoVoidFunc(x) { + if (x) + return voidFunc(); +} +let x1 = () => { use("Test"); }; diff --git a/tests/baselines/reference/reassignStaticProp.js b/tests/baselines/reference/reassignStaticProp.js index 4c8d1178855..2bf2bafa128 100644 --- a/tests/baselines/reference/reassignStaticProp.js +++ b/tests/baselines/reference/reassignStaticProp.js @@ -17,4 +17,4 @@ var foo = (function () { } foo.bar = 1; return foo; -})(); +}()); diff --git a/tests/baselines/reference/recursiveBaseCheck3.js b/tests/baselines/reference/recursiveBaseCheck3.js index aeb0d70240f..b032ce6774d 100644 --- a/tests/baselines/reference/recursiveBaseCheck3.js +++ b/tests/baselines/reference/recursiveBaseCheck3.js @@ -16,12 +16,12 @@ var A = (function (_super) { _super.apply(this, arguments); } return A; -})(C); +}(C)); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); (new C).blah; diff --git a/tests/baselines/reference/recursiveBaseCheck4.js b/tests/baselines/reference/recursiveBaseCheck4.js index 2e4a745a703..07ba40c68b1 100644 --- a/tests/baselines/reference/recursiveBaseCheck4.js +++ b/tests/baselines/reference/recursiveBaseCheck4.js @@ -14,5 +14,5 @@ var M = (function (_super) { _super.apply(this, arguments); } return M; -})(M); +}(M)); (new M).blah; diff --git a/tests/baselines/reference/recursiveBaseCheck5.js b/tests/baselines/reference/recursiveBaseCheck5.js index a27e8403e2a..ac07ae9df4d 100644 --- a/tests/baselines/reference/recursiveBaseCheck5.js +++ b/tests/baselines/reference/recursiveBaseCheck5.js @@ -9,5 +9,5 @@ var X = (function () { function X() { } return X; -})(); +}()); (new X).blah; diff --git a/tests/baselines/reference/recursiveBaseCheck6.js b/tests/baselines/reference/recursiveBaseCheck6.js index 13b4944e96f..5b880c294b7 100644 --- a/tests/baselines/reference/recursiveBaseCheck6.js +++ b/tests/baselines/reference/recursiveBaseCheck6.js @@ -14,5 +14,5 @@ var S18 = (function (_super) { _super.apply(this, arguments); } return S18; -})(S18); +}(S18)); (new S18()).blah; diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation1.js b/tests/baselines/reference/recursiveBaseConstructorCreation1.js index d14a78ed908..dd79ba068bb 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation1.js +++ b/tests/baselines/reference/recursiveBaseConstructorCreation1.js @@ -17,12 +17,12 @@ var C1 = (function () { } C1.prototype.func = function (param) { }; return C1; -})(); +}()); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(C1); +}(C1)); var x = new C2(); // Valid diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation3.errors.txt b/tests/baselines/reference/recursiveBaseConstructorCreation3.errors.txt index b8429be5ea0..bd392492899 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation3.errors.txt +++ b/tests/baselines/reference/recursiveBaseConstructorCreation3.errors.txt @@ -1,5 +1,5 @@ tests/cases/compiler/recursiveBaseConstructorCreation3.ts(6,27): error TS2314: Generic type 'abc' requires 1 type argument(s). -tests/cases/compiler/recursiveBaseConstructorCreation3.ts(10,18): error TS2339: Property 'foo' does not exist on type 'xyz'. +tests/cases/compiler/recursiveBaseConstructorCreation3.ts(9,11): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature. ==== tests/cases/compiler/recursiveBaseConstructorCreation3.ts (2 errors) ==== @@ -14,6 +14,6 @@ tests/cases/compiler/recursiveBaseConstructorCreation3.ts(10,18): error TS2339: } var bar = new xyz(); // Error: Invalid 'new' expression. - var r: xyz = bar.foo; - ~~~ -!!! error TS2339: Property 'foo' does not exist on type 'xyz'. \ No newline at end of file + ~~~~~~~~~ +!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature. + var r: xyz = bar.foo; \ No newline at end of file diff --git a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js index 224c13e7765..62e5958715e 100644 --- a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js +++ b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js @@ -23,7 +23,7 @@ var TypeScript2; this.prefix = ""; } return MemberName; - })(); + }()); TypeScript2.MemberName = MemberName; var MemberNameArray = (function (_super) { __extends(MemberNameArray, _super); @@ -31,6 +31,6 @@ var TypeScript2; _super.apply(this, arguments); } return MemberNameArray; - })(MemberName); + }(MemberName)); TypeScript2.MemberNameArray = MemberNameArray; })(TypeScript2 || (TypeScript2 = {})); diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js b/tests/baselines/reference/recursiveClassReferenceTest.js index 0e884b94e8e..3aa066d158d 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.js +++ b/tests/baselines/reference/recursiveClassReferenceTest.js @@ -126,7 +126,7 @@ var Sample; return true; }; return StartFindAction; - })(); + }()); Find.StartFindAction = StartFindAction; })(Find = Thing_1.Find || (Thing_1.Find = {})); })(Thing = Actions.Thing || (Actions.Thing = {})); @@ -154,7 +154,7 @@ var Sample; FindWidget.prototype.destroy = function () { }; return FindWidget; - })(); + }()); Widgets.FindWidget = FindWidget; })(Widgets = Thing.Widgets || (Thing.Widgets = {})); })(Thing = Sample.Thing || (Sample.Thing = {})); @@ -164,7 +164,7 @@ var AbstractMode = (function () { } AbstractMode.prototype.getInitialState = function () { return null; }; return AbstractMode; -})(); +}()); var Sample; (function (Sample) { var Thing; @@ -185,7 +185,7 @@ var Sample; }; State.prototype.getMode = function () { return mode; }; return State; - })(); + }()); PlainText.State = State; var Mode = (function (_super) { __extends(Mode, _super); @@ -197,7 +197,7 @@ var Sample; return new State(self); }; return Mode; - })(AbstractMode); + }(AbstractMode)); PlainText.Mode = Mode; })(PlainText = Languages.PlainText || (Languages.PlainText = {})); })(Languages = Thing.Languages || (Thing.Languages = {})); diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js.map b/tests/baselines/reference/recursiveClassReferenceTest.js.map index 90ab021de59..40f720effce 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.js.map +++ b/tests/baselines/reference/recursiveClassReferenceTest.js.map @@ -1,2 +1,2 @@ //// [recursiveClassReferenceTest.js.map] -{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":["Sample","Sample.Actions","Sample.Actions.Thing","Sample.Actions.Thing.Find","Sample.Actions.Thing.Find.StartFindAction","Sample.Actions.Thing.Find.StartFindAction.constructor","Sample.Actions.Thing.Find.StartFindAction.getId","Sample.Actions.Thing.Find.StartFindAction.run","Sample.Thing","Sample.Thing.Widgets","Sample.Thing.Widgets.FindWidget","Sample.Thing.Widgets.FindWidget.constructor","Sample.Thing.Widgets.FindWidget.gar","Sample.Thing.Widgets.FindWidget.getDomNode","Sample.Thing.Widgets.FindWidget.destroy","AbstractMode","AbstractMode.constructor","AbstractMode.getInitialState","Sample.Thing.Languages","Sample.Thing.Languages.PlainText","Sample.Thing.Languages.PlainText.State","Sample.Thing.Languages.PlainText.State.constructor","Sample.Thing.Languages.PlainText.State.clone","Sample.Thing.Languages.PlainText.State.equals","Sample.Thing.Languages.PlainText.State.getMode","Sample.Thing.Languages.PlainText.Mode","Sample.Thing.Languages.PlainText.Mode.constructor","Sample.Thing.Languages.PlainText.Mode.getInitialState"],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAACA,IAAAA,OAAOA,CAUpBA;IAVaA,WAAAA,OAAOA;QAACC,IAAAA,KAAKA,CAU1BA;QAVqBA,WAAAA,OAAKA;YAACC,IAAAA,IAAIA,CAU/BA;YAV2BA,WAAAA,IAAIA,EAACA,CAACA;gBACjCC;oBAAAC;oBAQAC,CAACA;oBANOD,+BAAKA,GAAZA,cAAiBE,MAAMA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBAExBF,6BAAGA,GAAVA,UAAWA,KAA6BA;wBAEvCG,MAAMA,CAACA,IAAIA,CAACA;oBACbA,CAACA;oBACFH,sBAACA;gBAADA,CAACA,AARDD,IAQCA;gBARYA,oBAAeA,kBAQ3BA,CAAAA;YACFA,CAACA,EAV2BD,IAAIA,GAAJA,YAAIA,KAAJA,YAAIA,QAU/BA;QAADA,CAACA,EAVqBD,KAAKA,GAALA,aAAKA,KAALA,aAAKA,QAU1BA;IAADA,CAACA,EAVaD,OAAOA,GAAPA,cAAOA,KAAPA,cAAOA,QAUpBA;AAADA,CAACA,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,IAAO,MAAM,CAoBZ;AApBD,WAAO,MAAM;IAACA,IAAAA,KAAKA,CAoBlBA;IApBaA,WAAAA,KAAKA;QAACQ,IAAAA,OAAOA,CAoB1BA;QApBmBA,WAAAA,OAAOA,EAACA,CAACA;YAC5BC;gBAKCC,oBAAoBA,SAAkCA;oBAAlCC,cAASA,GAATA,SAASA,CAAyBA;oBAD9CA,YAAOA,GAAOA,IAAIA,CAACA;oBAEvBA,aAAaA;oBACbA,SAASA,CAACA,SAASA,CAACA,WAAWA,EAAEA,IAAIA,CAACA,CAACA;gBAC3CA,CAACA;gBANMD,wBAAGA,GAAVA,UAAWA,MAAyCA,IAAIE,EAAEA,CAACA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBAAAA,MAAMA,CAACA,MAAMA,CAACA,IAAIA,CAACA,CAACA;gBAAAA,CAACA,CAAAA,CAACA;gBAQlFF,+BAAUA,GAAjBA;oBACCG,MAAMA,CAACA,OAAOA,CAACA;gBAChBA,CAACA;gBAEMH,4BAAOA,GAAdA;gBAEAI,CAACA;gBAEFJ,iBAACA;YAADA,CAACA,AAlBDD,IAkBCA;YAlBYA,kBAAUA,aAkBtBA,CAAAA;QACFA,CAACA,EApBmBD,OAAOA,GAAPA,aAAOA,KAAPA,aAAOA,QAoB1BA;IAADA,CAACA,EApBaR,KAAKA,GAALA,YAAKA,KAALA,YAAKA,QAoBlBA;AAADA,CAACA,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD;IAAAe;IAAuFC,CAACA;IAA3CD,sCAAeA,GAAtBA,cAAmCE,MAAMA,CAACA,IAAIA,CAACA,CAAAA,CAACA;IAACF,mBAACA;AAADA,CAACA,AAAxF,IAAwF;AASxF,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM;IAACf,IAAAA,KAAKA,CAwBlBA;IAxBaA,WAAAA,KAAKA;QAACQ,IAAAA,SAASA,CAwB5BA;QAxBmBA,WAAAA,SAASA;YAACU,IAAAA,SAASA,CAwBtCA;YAxB6BA,WAAAA,SAASA,EAACA,CAACA;gBAExCC;oBACOC,eAAoBA,IAAWA;wBAAXC,SAAIA,GAAJA,IAAIA,CAAOA;oBAAIA,CAACA;oBACnCD,qBAAKA,GAAZA;wBACCE,MAAMA,CAACA,IAAIA,CAACA;oBACbA,CAACA;oBAEMF,sBAAMA,GAAbA,UAAcA,KAAYA;wBACzBG,MAAMA,CAACA,IAAIA,KAAKA,KAAKA,CAACA;oBACvBA,CAACA;oBAEMH,uBAAOA,GAAdA,cAA0BI,MAAMA,CAACA,IAAIA,CAACA,CAACA,CAACA;oBACzCJ,YAACA;gBAADA,CAACA,AAXDD,IAWCA;gBAXYA,eAAKA,QAWjBA,CAAAA;gBAEDA;oBAA0BM,wBAAYA;oBAAtCA;wBAA0BC,8BAAYA;oBAQtCA,CAACA;oBANAD,aAAaA;oBACNA,8BAAeA,GAAtBA;wBACCE,MAAMA,CAACA,IAAIA,KAAKA,CAACA,IAAIA,CAACA,CAACA;oBACxBA,CAACA;oBAGFF,WAACA;gBAADA,CAACA,AARDN,EAA0BA,YAAYA,EAQrCA;gBARYA,cAAIA,OAQhBA,CAAAA;YACFA,CAACA,EAxB6BD,SAASA,GAATA,mBAASA,KAATA,mBAASA,QAwBtCA;QAADA,CAACA,EAxBmBV,SAASA,GAATA,eAASA,KAATA,eAASA,QAwB5BA;IAADA,CAACA,EAxBaR,KAAKA,GAALA,YAAKA,KAALA,YAAKA,QAwBlBA;AAADA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ"} \ No newline at end of file +{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAAC,IAAA,OAAO,CAUpB;IAVa,WAAA,OAAO;QAAC,IAAA,KAAK,CAU1B;QAVqB,WAAA,OAAK;YAAC,IAAA,IAAI,CAU/B;YAV2B,WAAA,IAAI,EAAC,CAAC;gBACjC;oBAAA;oBAQA,CAAC;oBANO,+BAAK,GAAZ,cAAiB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;oBAExB,6BAAG,GAAV,UAAW,KAA6B;wBAEvC,MAAM,CAAC,IAAI,CAAC;oBACb,CAAC;oBACF,sBAAC;gBAAD,CAAC,AARD,IAQC;gBARY,oBAAe,kBAQ3B,CAAA;YACF,CAAC,EAV2B,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAU/B;QAAD,CAAC,EAVqB,KAAK,GAAL,aAAK,KAAL,aAAK,QAU1B;IAAD,CAAC,EAVa,OAAO,GAAP,cAAO,KAAP,cAAO,QAUpB;AAAD,CAAC,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,IAAO,MAAM,CAoBZ;AApBD,WAAO,MAAM;IAAC,IAAA,KAAK,CAoBlB;IApBa,WAAA,KAAK;QAAC,IAAA,OAAO,CAoB1B;QApBmB,WAAA,OAAO,EAAC,CAAC;YAC5B;gBAKC,oBAAoB,SAAkC;oBAAlC,cAAS,GAAT,SAAS,CAAyB;oBAD9C,YAAO,GAAO,IAAI,CAAC;oBAEvB,aAAa;oBACb,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;gBAC3C,CAAC;gBANM,wBAAG,GAAV,UAAW,MAAyC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;oBAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAAA,CAAC,CAAA,CAAC;gBAQlF,+BAAU,GAAjB;oBACC,MAAM,CAAC,OAAO,CAAC;gBAChB,CAAC;gBAEM,4BAAO,GAAd;gBAEA,CAAC;gBAEF,iBAAC;YAAD,CAAC,AAlBD,IAkBC;YAlBY,kBAAU,aAkBtB,CAAA;QACF,CAAC,EApBmB,OAAO,GAAP,aAAO,KAAP,aAAO,QAoB1B;IAAD,CAAC,EApBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAoBlB;AAAD,CAAC,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD;IAAA;IAAuF,CAAC;IAA3C,sCAAe,GAAtB,cAAmC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAC;IAAC,mBAAC;AAAD,CAAC,AAAxF,IAAwF;AASxF,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM;IAAC,IAAA,KAAK,CAwBlB;IAxBa,WAAA,KAAK;QAAC,IAAA,SAAS,CAwB5B;QAxBmB,WAAA,SAAS;YAAC,IAAA,SAAS,CAwBtC;YAxB6B,WAAA,SAAS,EAAC,CAAC;gBAExC;oBACO,eAAoB,IAAW;wBAAX,SAAI,GAAJ,IAAI,CAAO;oBAAI,CAAC;oBACnC,qBAAK,GAAZ;wBACC,MAAM,CAAC,IAAI,CAAC;oBACb,CAAC;oBAEM,sBAAM,GAAb,UAAc,KAAY;wBACzB,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC;oBACvB,CAAC;oBAEM,uBAAO,GAAd,cAA0B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;oBACzC,YAAC;gBAAD,CAAC,AAXD,IAWC;gBAXY,eAAK,QAWjB,CAAA;gBAED;oBAA0B,wBAAY;oBAAtC;wBAA0B,8BAAY;oBAQtC,CAAC;oBANA,aAAa;oBACN,8BAAe,GAAtB;wBACC,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;oBACxB,CAAC;oBAGF,WAAC;gBAAD,CAAC,AARD,CAA0B,YAAY,GAQrC;gBARY,cAAI,OAQhB,CAAA;YACF,CAAC,EAxB6B,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAwBtC;QAAD,CAAC,EAxBmB,SAAS,GAAT,eAAS,KAAT,eAAS,QAwB5B;IAAD,CAAC,EAxBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAwBlB;AAAD,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ"} \ No newline at end of file diff --git a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt index 3b693f7c282..25dc6a1900d 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt +++ b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt @@ -117,10 +117,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(10, 5) Source(32, 15) + SourceIndex(0) name (Sample) -2 >Emitted(10, 9) Source(32, 15) + SourceIndex(0) name (Sample) -3 >Emitted(10, 16) Source(32, 22) + SourceIndex(0) name (Sample) -4 >Emitted(10, 17) Source(42, 2) + SourceIndex(0) name (Sample) +1 >Emitted(10, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(10, 9) Source(32, 15) + SourceIndex(0) +3 >Emitted(10, 16) Source(32, 22) + SourceIndex(0) +4 >Emitted(10, 17) Source(42, 2) + SourceIndex(0) --- >>> (function (Actions) { 1->^^^^ @@ -129,9 +129,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Actions -1->Emitted(11, 5) Source(32, 15) + SourceIndex(0) name (Sample) -2 >Emitted(11, 16) Source(32, 15) + SourceIndex(0) name (Sample) -3 >Emitted(11, 23) Source(32, 22) + SourceIndex(0) name (Sample) +1->Emitted(11, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(11, 16) Source(32, 15) + SourceIndex(0) +3 >Emitted(11, 23) Source(32, 22) + SourceIndex(0) --- >>> var Thing; 1 >^^^^^^^^ @@ -153,10 +153,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(12, 9) Source(32, 23) + SourceIndex(0) name (Sample.Actions) -2 >Emitted(12, 13) Source(32, 23) + SourceIndex(0) name (Sample.Actions) -3 >Emitted(12, 18) Source(32, 28) + SourceIndex(0) name (Sample.Actions) -4 >Emitted(12, 19) Source(42, 2) + SourceIndex(0) name (Sample.Actions) +1 >Emitted(12, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(12, 13) Source(32, 23) + SourceIndex(0) +3 >Emitted(12, 18) Source(32, 28) + SourceIndex(0) +4 >Emitted(12, 19) Source(42, 2) + SourceIndex(0) --- >>> (function (Thing_1) { 1->^^^^^^^^ @@ -165,9 +165,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(13, 9) Source(32, 23) + SourceIndex(0) name (Sample.Actions) -2 >Emitted(13, 20) Source(32, 23) + SourceIndex(0) name (Sample.Actions) -3 >Emitted(13, 27) Source(32, 28) + SourceIndex(0) name (Sample.Actions) +1->Emitted(13, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(13, 20) Source(32, 23) + SourceIndex(0) +3 >Emitted(13, 27) Source(32, 28) + SourceIndex(0) --- >>> var Find; 1 >^^^^^^^^^^^^ @@ -189,10 +189,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(14, 13) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing) -2 >Emitted(14, 17) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing) -3 >Emitted(14, 21) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing) -4 >Emitted(14, 22) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing) +1 >Emitted(14, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(14, 17) Source(32, 29) + SourceIndex(0) +3 >Emitted(14, 21) Source(32, 33) + SourceIndex(0) +4 >Emitted(14, 22) Source(42, 2) + SourceIndex(0) --- >>> (function (Find) { 1->^^^^^^^^^^^^ @@ -206,24 +206,24 @@ sourceFile:recursiveClassReferenceTest.ts 3 > Find 4 > 5 > { -1->Emitted(15, 13) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing) -2 >Emitted(15, 24) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing) -3 >Emitted(15, 28) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing) -4 >Emitted(15, 30) Source(32, 34) + SourceIndex(0) name (Sample.Actions.Thing) -5 >Emitted(15, 31) Source(32, 35) + SourceIndex(0) name (Sample.Actions.Thing) +1->Emitted(15, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(15, 24) Source(32, 29) + SourceIndex(0) +3 >Emitted(15, 28) Source(32, 33) + SourceIndex(0) +4 >Emitted(15, 30) Source(32, 34) + SourceIndex(0) +5 >Emitted(15, 31) Source(32, 35) + SourceIndex(0) --- >>> var StartFindAction = (function () { 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(16, 17) Source(33, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find) +1->Emitted(16, 17) Source(33, 2) + SourceIndex(0) --- >>> function StartFindAction() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(17, 21) Source(33, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) +1->Emitted(17, 21) Source(33, 2) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -239,8 +239,8 @@ sourceFile:recursiveClassReferenceTest.ts > } > 2 > } -1->Emitted(18, 21) Source(41, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.constructor) -2 >Emitted(18, 22) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.constructor) +1->Emitted(18, 21) Source(41, 2) + SourceIndex(0) +2 >Emitted(18, 22) Source(41, 3) + SourceIndex(0) --- >>> StartFindAction.prototype.getId = function () { return "yo"; }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -263,16 +263,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > ; 9 > 10> } -1->Emitted(19, 21) Source(35, 10) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -2 >Emitted(19, 52) Source(35, 15) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -3 >Emitted(19, 55) Source(35, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -4 >Emitted(19, 69) Source(35, 20) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.getId) -5 >Emitted(19, 75) Source(35, 26) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.getId) -6 >Emitted(19, 76) Source(35, 27) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.getId) -7 >Emitted(19, 80) Source(35, 31) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.getId) -8 >Emitted(19, 81) Source(35, 32) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.getId) -9 >Emitted(19, 82) Source(35, 33) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.getId) -10>Emitted(19, 83) Source(35, 34) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.getId) +1->Emitted(19, 21) Source(35, 10) + SourceIndex(0) +2 >Emitted(19, 52) Source(35, 15) + SourceIndex(0) +3 >Emitted(19, 55) Source(35, 3) + SourceIndex(0) +4 >Emitted(19, 69) Source(35, 20) + SourceIndex(0) +5 >Emitted(19, 75) Source(35, 26) + SourceIndex(0) +6 >Emitted(19, 76) Source(35, 27) + SourceIndex(0) +7 >Emitted(19, 80) Source(35, 31) + SourceIndex(0) +8 >Emitted(19, 81) Source(35, 32) + SourceIndex(0) +9 >Emitted(19, 82) Source(35, 33) + SourceIndex(0) +10>Emitted(19, 83) Source(35, 34) + SourceIndex(0) --- >>> StartFindAction.prototype.run = function (Thing) { 1 >^^^^^^^^^^^^^^^^^^^^ @@ -287,11 +287,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > public run( 5 > Thing:Sample.Thing.ICodeThing -1 >Emitted(20, 21) Source(37, 10) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -2 >Emitted(20, 50) Source(37, 13) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -3 >Emitted(20, 53) Source(37, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -4 >Emitted(20, 63) Source(37, 14) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -5 >Emitted(20, 68) Source(37, 43) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) +1 >Emitted(20, 21) Source(37, 10) + SourceIndex(0) +2 >Emitted(20, 50) Source(37, 13) + SourceIndex(0) +3 >Emitted(20, 53) Source(37, 3) + SourceIndex(0) +4 >Emitted(20, 63) Source(37, 14) + SourceIndex(0) +5 >Emitted(20, 68) Source(37, 43) + SourceIndex(0) --- >>> return true; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -306,11 +306,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > true 5 > ; -1 >Emitted(21, 25) Source(39, 4) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.run) -2 >Emitted(21, 31) Source(39, 10) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.run) -3 >Emitted(21, 32) Source(39, 11) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.run) -4 >Emitted(21, 36) Source(39, 15) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.run) -5 >Emitted(21, 37) Source(39, 16) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.run) +1 >Emitted(21, 25) Source(39, 4) + SourceIndex(0) +2 >Emitted(21, 31) Source(39, 10) + SourceIndex(0) +3 >Emitted(21, 32) Source(39, 11) + SourceIndex(0) +4 >Emitted(21, 36) Source(39, 15) + SourceIndex(0) +5 >Emitted(21, 37) Source(39, 16) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -319,8 +319,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(22, 21) Source(40, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.run) -2 >Emitted(22, 22) Source(40, 4) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction.run) +1 >Emitted(22, 21) Source(40, 3) + SourceIndex(0) +2 >Emitted(22, 22) Source(40, 4) + SourceIndex(0) --- >>> return StartFindAction; 1->^^^^^^^^^^^^^^^^^^^^ @@ -328,10 +328,10 @@ sourceFile:recursiveClassReferenceTest.ts 1-> > 2 > } -1->Emitted(23, 21) Source(41, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -2 >Emitted(23, 43) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) +1->Emitted(23, 21) Source(41, 2) + SourceIndex(0) +2 >Emitted(23, 43) Source(41, 3) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -349,10 +349,10 @@ sourceFile:recursiveClassReferenceTest.ts > return true; > } > } -1 >Emitted(24, 17) Source(41, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -2 >Emitted(24, 18) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find.StartFindAction) -3 >Emitted(24, 18) Source(33, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find) -4 >Emitted(24, 22) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find) +1 >Emitted(24, 17) Source(41, 2) + SourceIndex(0) +2 >Emitted(24, 18) Source(41, 3) + SourceIndex(0) +3 >Emitted(24, 18) Source(33, 2) + SourceIndex(0) +4 >Emitted(24, 22) Source(41, 3) + SourceIndex(0) --- >>> Find.StartFindAction = StartFindAction; 1->^^^^^^^^^^^^^^^^ @@ -372,10 +372,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } 4 > -1->Emitted(25, 17) Source(33, 15) + SourceIndex(0) name (Sample.Actions.Thing.Find) -2 >Emitted(25, 37) Source(33, 30) + SourceIndex(0) name (Sample.Actions.Thing.Find) -3 >Emitted(25, 55) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find) -4 >Emitted(25, 56) Source(41, 3) + SourceIndex(0) name (Sample.Actions.Thing.Find) +1->Emitted(25, 17) Source(33, 15) + SourceIndex(0) +2 >Emitted(25, 37) Source(33, 30) + SourceIndex(0) +3 >Emitted(25, 55) Source(41, 3) + SourceIndex(0) +4 >Emitted(25, 56) Source(41, 3) + SourceIndex(0) --- >>> })(Find = Thing_1.Find || (Thing_1.Find = {})); 1->^^^^^^^^^^^^ @@ -407,15 +407,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(26, 13) Source(42, 1) + SourceIndex(0) name (Sample.Actions.Thing.Find) -2 >Emitted(26, 14) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing.Find) -3 >Emitted(26, 16) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing) -4 >Emitted(26, 20) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing) -5 >Emitted(26, 23) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing) -6 >Emitted(26, 35) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing) -7 >Emitted(26, 40) Source(32, 29) + SourceIndex(0) name (Sample.Actions.Thing) -8 >Emitted(26, 52) Source(32, 33) + SourceIndex(0) name (Sample.Actions.Thing) -9 >Emitted(26, 60) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing) +1->Emitted(26, 13) Source(42, 1) + SourceIndex(0) +2 >Emitted(26, 14) Source(42, 2) + SourceIndex(0) +3 >Emitted(26, 16) Source(32, 29) + SourceIndex(0) +4 >Emitted(26, 20) Source(32, 33) + SourceIndex(0) +5 >Emitted(26, 23) Source(32, 29) + SourceIndex(0) +6 >Emitted(26, 35) Source(32, 33) + SourceIndex(0) +7 >Emitted(26, 40) Source(32, 29) + SourceIndex(0) +8 >Emitted(26, 52) Source(32, 33) + SourceIndex(0) +9 >Emitted(26, 60) Source(42, 2) + SourceIndex(0) --- >>> })(Thing = Actions.Thing || (Actions.Thing = {})); 1 >^^^^^^^^ @@ -447,15 +447,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(27, 9) Source(42, 1) + SourceIndex(0) name (Sample.Actions.Thing) -2 >Emitted(27, 10) Source(42, 2) + SourceIndex(0) name (Sample.Actions.Thing) -3 >Emitted(27, 12) Source(32, 23) + SourceIndex(0) name (Sample.Actions) -4 >Emitted(27, 17) Source(32, 28) + SourceIndex(0) name (Sample.Actions) -5 >Emitted(27, 20) Source(32, 23) + SourceIndex(0) name (Sample.Actions) -6 >Emitted(27, 33) Source(32, 28) + SourceIndex(0) name (Sample.Actions) -7 >Emitted(27, 38) Source(32, 23) + SourceIndex(0) name (Sample.Actions) -8 >Emitted(27, 51) Source(32, 28) + SourceIndex(0) name (Sample.Actions) -9 >Emitted(27, 59) Source(42, 2) + SourceIndex(0) name (Sample.Actions) +1 >Emitted(27, 9) Source(42, 1) + SourceIndex(0) +2 >Emitted(27, 10) Source(42, 2) + SourceIndex(0) +3 >Emitted(27, 12) Source(32, 23) + SourceIndex(0) +4 >Emitted(27, 17) Source(32, 28) + SourceIndex(0) +5 >Emitted(27, 20) Source(32, 23) + SourceIndex(0) +6 >Emitted(27, 33) Source(32, 28) + SourceIndex(0) +7 >Emitted(27, 38) Source(32, 23) + SourceIndex(0) +8 >Emitted(27, 51) Source(32, 28) + SourceIndex(0) +9 >Emitted(27, 59) Source(42, 2) + SourceIndex(0) --- >>> })(Actions = Sample.Actions || (Sample.Actions = {})); 1->^^^^ @@ -486,15 +486,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(28, 5) Source(42, 1) + SourceIndex(0) name (Sample.Actions) -2 >Emitted(28, 6) Source(42, 2) + SourceIndex(0) name (Sample.Actions) -3 >Emitted(28, 8) Source(32, 15) + SourceIndex(0) name (Sample) -4 >Emitted(28, 15) Source(32, 22) + SourceIndex(0) name (Sample) -5 >Emitted(28, 18) Source(32, 15) + SourceIndex(0) name (Sample) -6 >Emitted(28, 32) Source(32, 22) + SourceIndex(0) name (Sample) -7 >Emitted(28, 37) Source(32, 15) + SourceIndex(0) name (Sample) -8 >Emitted(28, 51) Source(32, 22) + SourceIndex(0) name (Sample) -9 >Emitted(28, 59) Source(42, 2) + SourceIndex(0) name (Sample) +1->Emitted(28, 5) Source(42, 1) + SourceIndex(0) +2 >Emitted(28, 6) Source(42, 2) + SourceIndex(0) +3 >Emitted(28, 8) Source(32, 15) + SourceIndex(0) +4 >Emitted(28, 15) Source(32, 22) + SourceIndex(0) +5 >Emitted(28, 18) Source(32, 15) + SourceIndex(0) +6 >Emitted(28, 32) Source(32, 22) + SourceIndex(0) +7 >Emitted(28, 37) Source(32, 15) + SourceIndex(0) +8 >Emitted(28, 51) Source(32, 22) + SourceIndex(0) +9 >Emitted(28, 59) Source(42, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -521,8 +521,8 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(29, 1) Source(42, 1) + SourceIndex(0) name (Sample) -2 >Emitted(29, 2) Source(42, 2) + SourceIndex(0) name (Sample) +1 >Emitted(29, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(29, 2) Source(42, 2) + SourceIndex(0) 3 >Emitted(29, 4) Source(32, 8) + SourceIndex(0) 4 >Emitted(29, 10) Source(32, 14) + SourceIndex(0) 5 >Emitted(29, 15) Source(32, 8) + SourceIndex(0) @@ -607,10 +607,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(32, 5) Source(44, 15) + SourceIndex(0) name (Sample) -2 >Emitted(32, 9) Source(44, 15) + SourceIndex(0) name (Sample) -3 >Emitted(32, 14) Source(44, 20) + SourceIndex(0) name (Sample) -4 >Emitted(32, 15) Source(64, 2) + SourceIndex(0) name (Sample) +1 >Emitted(32, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(32, 9) Source(44, 15) + SourceIndex(0) +3 >Emitted(32, 14) Source(44, 20) + SourceIndex(0) +4 >Emitted(32, 15) Source(64, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -620,9 +620,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(33, 5) Source(44, 15) + SourceIndex(0) name (Sample) -2 >Emitted(33, 16) Source(44, 15) + SourceIndex(0) name (Sample) -3 >Emitted(33, 21) Source(44, 20) + SourceIndex(0) name (Sample) +1->Emitted(33, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(33, 16) Source(44, 15) + SourceIndex(0) +3 >Emitted(33, 21) Source(44, 20) + SourceIndex(0) --- >>> var Widgets; 1->^^^^^^^^ @@ -654,10 +654,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(34, 9) Source(44, 21) + SourceIndex(0) name (Sample.Thing) -2 >Emitted(34, 13) Source(44, 21) + SourceIndex(0) name (Sample.Thing) -3 >Emitted(34, 20) Source(44, 28) + SourceIndex(0) name (Sample.Thing) -4 >Emitted(34, 21) Source(64, 2) + SourceIndex(0) name (Sample.Thing) +1->Emitted(34, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(34, 13) Source(44, 21) + SourceIndex(0) +3 >Emitted(34, 20) Source(44, 28) + SourceIndex(0) +4 >Emitted(34, 21) Source(64, 2) + SourceIndex(0) --- >>> (function (Widgets) { 1->^^^^^^^^ @@ -671,18 +671,18 @@ sourceFile:recursiveClassReferenceTest.ts 3 > Widgets 4 > 5 > { -1->Emitted(35, 9) Source(44, 21) + SourceIndex(0) name (Sample.Thing) -2 >Emitted(35, 20) Source(44, 21) + SourceIndex(0) name (Sample.Thing) -3 >Emitted(35, 27) Source(44, 28) + SourceIndex(0) name (Sample.Thing) -4 >Emitted(35, 29) Source(44, 29) + SourceIndex(0) name (Sample.Thing) -5 >Emitted(35, 30) Source(44, 30) + SourceIndex(0) name (Sample.Thing) +1->Emitted(35, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(35, 20) Source(44, 21) + SourceIndex(0) +3 >Emitted(35, 27) Source(44, 28) + SourceIndex(0) +4 >Emitted(35, 29) Source(44, 29) + SourceIndex(0) +5 >Emitted(35, 30) Source(44, 30) + SourceIndex(0) --- >>> var FindWidget = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(36, 13) Source(45, 2) + SourceIndex(0) name (Sample.Thing.Widgets) +1->Emitted(36, 13) Source(45, 2) + SourceIndex(0) --- >>> function FindWidget(codeThing) { 1->^^^^^^^^^^^^^^^^ @@ -697,9 +697,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > constructor(private 3 > codeThing: Sample.Thing.ICodeThing -1->Emitted(37, 17) Source(50, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -2 >Emitted(37, 37) Source(50, 23) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -3 >Emitted(37, 46) Source(50, 57) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) +1->Emitted(37, 17) Source(50, 3) + SourceIndex(0) +2 >Emitted(37, 37) Source(50, 23) + SourceIndex(0) +3 >Emitted(37, 46) Source(50, 57) + SourceIndex(0) --- >>> this.codeThing = codeThing; 1->^^^^^^^^^^^^^^^^^^^^ @@ -712,11 +712,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > codeThing 5 > : Sample.Thing.ICodeThing -1->Emitted(38, 21) Source(50, 23) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -2 >Emitted(38, 35) Source(50, 32) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -3 >Emitted(38, 38) Source(50, 23) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -4 >Emitted(38, 47) Source(50, 32) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -5 >Emitted(38, 48) Source(50, 57) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) +1->Emitted(38, 21) Source(50, 23) + SourceIndex(0) +2 >Emitted(38, 35) Source(50, 32) + SourceIndex(0) +3 >Emitted(38, 38) Source(50, 23) + SourceIndex(0) +4 >Emitted(38, 47) Source(50, 32) + SourceIndex(0) +5 >Emitted(38, 48) Source(50, 57) + SourceIndex(0) --- >>> this.domNode = null; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -729,11 +729,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > :any = 4 > null 5 > ; -1 >Emitted(39, 21) Source(49, 11) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -2 >Emitted(39, 33) Source(49, 18) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -3 >Emitted(39, 36) Source(49, 25) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -4 >Emitted(39, 40) Source(49, 29) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -5 >Emitted(39, 41) Source(49, 30) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) +1 >Emitted(39, 21) Source(49, 11) + SourceIndex(0) +2 >Emitted(39, 33) Source(49, 18) + SourceIndex(0) +3 >Emitted(39, 36) Source(49, 25) + SourceIndex(0) +4 >Emitted(39, 40) Source(49, 29) + SourceIndex(0) +5 >Emitted(39, 41) Source(49, 30) + SourceIndex(0) --- >>> // scenario 1 1 >^^^^^^^^^^^^^^^^^^^^ @@ -743,8 +743,8 @@ sourceFile:recursiveClassReferenceTest.ts > constructor(private codeThing: Sample.Thing.ICodeThing) { > 2 > // scenario 1 -1 >Emitted(40, 21) Source(51, 7) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -2 >Emitted(40, 34) Source(51, 20) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) +1 >Emitted(40, 21) Source(51, 7) + SourceIndex(0) +2 >Emitted(40, 34) Source(51, 20) + SourceIndex(0) --- >>> codeThing.addWidget("addWidget", this); 1->^^^^^^^^^^^^^^^^^^^^ @@ -768,16 +768,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > this 9 > ) 10> ; -1->Emitted(41, 21) Source(52, 7) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -2 >Emitted(41, 30) Source(52, 16) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -3 >Emitted(41, 31) Source(52, 17) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -4 >Emitted(41, 40) Source(52, 26) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -5 >Emitted(41, 41) Source(52, 27) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -6 >Emitted(41, 52) Source(52, 38) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -7 >Emitted(41, 54) Source(52, 40) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -8 >Emitted(41, 58) Source(52, 44) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -9 >Emitted(41, 59) Source(52, 45) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -10>Emitted(41, 60) Source(52, 46) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) +1->Emitted(41, 21) Source(52, 7) + SourceIndex(0) +2 >Emitted(41, 30) Source(52, 16) + SourceIndex(0) +3 >Emitted(41, 31) Source(52, 17) + SourceIndex(0) +4 >Emitted(41, 40) Source(52, 26) + SourceIndex(0) +5 >Emitted(41, 41) Source(52, 27) + SourceIndex(0) +6 >Emitted(41, 52) Source(52, 38) + SourceIndex(0) +7 >Emitted(41, 54) Source(52, 40) + SourceIndex(0) +8 >Emitted(41, 58) Source(52, 44) + SourceIndex(0) +9 >Emitted(41, 59) Source(52, 45) + SourceIndex(0) +10>Emitted(41, 60) Source(52, 46) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -786,8 +786,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(42, 17) Source(53, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) -2 >Emitted(42, 18) Source(53, 4) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.constructor) +1 >Emitted(42, 17) Source(53, 3) + SourceIndex(0) +2 >Emitted(42, 18) Source(53, 4) + SourceIndex(0) --- >>> FindWidget.prototype.gar = function (runner) { if (true) { 1->^^^^^^^^^^^^^^^^ @@ -816,19 +816,19 @@ sourceFile:recursiveClassReferenceTest.ts 11> ) 12> 13> { -1->Emitted(43, 17) Source(47, 10) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -2 >Emitted(43, 41) Source(47, 13) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -3 >Emitted(43, 44) Source(47, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -4 >Emitted(43, 54) Source(47, 14) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -5 >Emitted(43, 60) Source(47, 55) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -6 >Emitted(43, 64) Source(47, 59) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -7 >Emitted(43, 66) Source(47, 61) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -8 >Emitted(43, 67) Source(47, 62) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -9 >Emitted(43, 68) Source(47, 63) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -10>Emitted(43, 72) Source(47, 67) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -11>Emitted(43, 73) Source(47, 68) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -12>Emitted(43, 74) Source(47, 69) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -13>Emitted(43, 75) Source(47, 70) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) +1->Emitted(43, 17) Source(47, 10) + SourceIndex(0) +2 >Emitted(43, 41) Source(47, 13) + SourceIndex(0) +3 >Emitted(43, 44) Source(47, 3) + SourceIndex(0) +4 >Emitted(43, 54) Source(47, 14) + SourceIndex(0) +5 >Emitted(43, 60) Source(47, 55) + SourceIndex(0) +6 >Emitted(43, 64) Source(47, 59) + SourceIndex(0) +7 >Emitted(43, 66) Source(47, 61) + SourceIndex(0) +8 >Emitted(43, 67) Source(47, 62) + SourceIndex(0) +9 >Emitted(43, 68) Source(47, 63) + SourceIndex(0) +10>Emitted(43, 72) Source(47, 67) + SourceIndex(0) +11>Emitted(43, 73) Source(47, 68) + SourceIndex(0) +12>Emitted(43, 74) Source(47, 69) + SourceIndex(0) +13>Emitted(43, 75) Source(47, 70) + SourceIndex(0) --- >>> return runner(this); 1 >^^^^^^^^^^^^^^^^^^^^ @@ -847,14 +847,14 @@ sourceFile:recursiveClassReferenceTest.ts 6 > this 7 > ) 8 > ; -1 >Emitted(44, 21) Source(47, 70) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -2 >Emitted(44, 27) Source(47, 76) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -3 >Emitted(44, 28) Source(47, 77) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -4 >Emitted(44, 34) Source(47, 83) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -5 >Emitted(44, 35) Source(47, 84) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -6 >Emitted(44, 39) Source(47, 88) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -7 >Emitted(44, 40) Source(47, 89) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -8 >Emitted(44, 41) Source(47, 90) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) +1 >Emitted(44, 21) Source(47, 70) + SourceIndex(0) +2 >Emitted(44, 27) Source(47, 76) + SourceIndex(0) +3 >Emitted(44, 28) Source(47, 77) + SourceIndex(0) +4 >Emitted(44, 34) Source(47, 83) + SourceIndex(0) +5 >Emitted(44, 35) Source(47, 84) + SourceIndex(0) +6 >Emitted(44, 39) Source(47, 88) + SourceIndex(0) +7 >Emitted(44, 40) Source(47, 89) + SourceIndex(0) +8 >Emitted(44, 41) Source(47, 90) + SourceIndex(0) --- >>> } }; 1 >^^^^^^^^^^^^^^^^ @@ -866,10 +866,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > } 3 > 4 > } -1 >Emitted(45, 17) Source(47, 90) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -2 >Emitted(45, 18) Source(47, 91) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -3 >Emitted(45, 19) Source(47, 91) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) -4 >Emitted(45, 20) Source(47, 92) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.gar) +1 >Emitted(45, 17) Source(47, 90) + SourceIndex(0) +2 >Emitted(45, 18) Source(47, 91) + SourceIndex(0) +3 >Emitted(45, 19) Source(47, 91) + SourceIndex(0) +4 >Emitted(45, 20) Source(47, 92) + SourceIndex(0) --- >>> FindWidget.prototype.getDomNode = function () { 1->^^^^^^^^^^^^^^^^ @@ -886,9 +886,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getDomNode 3 > -1->Emitted(46, 17) Source(55, 10) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -2 >Emitted(46, 48) Source(55, 20) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -3 >Emitted(46, 51) Source(55, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) +1->Emitted(46, 17) Source(55, 10) + SourceIndex(0) +2 >Emitted(46, 48) Source(55, 20) + SourceIndex(0) +3 >Emitted(46, 51) Source(55, 3) + SourceIndex(0) --- >>> return domNode; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -902,11 +902,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > domNode 5 > ; -1 >Emitted(47, 21) Source(56, 4) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.getDomNode) -2 >Emitted(47, 27) Source(56, 10) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.getDomNode) -3 >Emitted(47, 28) Source(56, 11) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.getDomNode) -4 >Emitted(47, 35) Source(56, 18) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.getDomNode) -5 >Emitted(47, 36) Source(56, 19) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.getDomNode) +1 >Emitted(47, 21) Source(56, 4) + SourceIndex(0) +2 >Emitted(47, 27) Source(56, 10) + SourceIndex(0) +3 >Emitted(47, 28) Source(56, 11) + SourceIndex(0) +4 >Emitted(47, 35) Source(56, 18) + SourceIndex(0) +5 >Emitted(47, 36) Source(56, 19) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^ @@ -915,8 +915,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(48, 17) Source(57, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.getDomNode) -2 >Emitted(48, 18) Source(57, 4) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.getDomNode) +1 >Emitted(48, 17) Source(57, 3) + SourceIndex(0) +2 >Emitted(48, 18) Source(57, 4) + SourceIndex(0) --- >>> FindWidget.prototype.destroy = function () { 1->^^^^^^^^^^^^^^^^ @@ -927,9 +927,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > destroy 3 > -1->Emitted(49, 17) Source(59, 10) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -2 >Emitted(49, 45) Source(59, 17) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -3 >Emitted(49, 48) Source(59, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) +1->Emitted(49, 17) Source(59, 10) + SourceIndex(0) +2 >Emitted(49, 45) Source(59, 17) + SourceIndex(0) +3 >Emitted(49, 48) Source(59, 3) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^ @@ -939,8 +939,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1 >Emitted(50, 17) Source(61, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.destroy) -2 >Emitted(50, 18) Source(61, 4) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget.destroy) +1 >Emitted(50, 17) Source(61, 3) + SourceIndex(0) +2 >Emitted(50, 18) Source(61, 4) + SourceIndex(0) --- >>> return FindWidget; 1->^^^^^^^^^^^^^^^^ @@ -949,10 +949,10 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(51, 17) Source(63, 2) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -2 >Emitted(51, 34) Source(63, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) +1->Emitted(51, 17) Source(63, 2) + SourceIndex(0) +2 >Emitted(51, 34) Source(63, 3) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^ 2 > ^ 3 > @@ -980,10 +980,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > > } -1 >Emitted(52, 13) Source(63, 2) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -2 >Emitted(52, 14) Source(63, 3) + SourceIndex(0) name (Sample.Thing.Widgets.FindWidget) -3 >Emitted(52, 14) Source(45, 2) + SourceIndex(0) name (Sample.Thing.Widgets) -4 >Emitted(52, 18) Source(63, 3) + SourceIndex(0) name (Sample.Thing.Widgets) +1 >Emitted(52, 13) Source(63, 2) + SourceIndex(0) +2 >Emitted(52, 14) Source(63, 3) + SourceIndex(0) +3 >Emitted(52, 14) Source(45, 2) + SourceIndex(0) +4 >Emitted(52, 18) Source(63, 3) + SourceIndex(0) --- >>> Widgets.FindWidget = FindWidget; 1->^^^^^^^^^^^^ @@ -1013,10 +1013,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } 4 > -1->Emitted(53, 13) Source(45, 15) + SourceIndex(0) name (Sample.Thing.Widgets) -2 >Emitted(53, 31) Source(45, 25) + SourceIndex(0) name (Sample.Thing.Widgets) -3 >Emitted(53, 44) Source(63, 3) + SourceIndex(0) name (Sample.Thing.Widgets) -4 >Emitted(53, 45) Source(63, 3) + SourceIndex(0) name (Sample.Thing.Widgets) +1->Emitted(53, 13) Source(45, 15) + SourceIndex(0) +2 >Emitted(53, 31) Source(45, 25) + SourceIndex(0) +3 >Emitted(53, 44) Source(63, 3) + SourceIndex(0) +4 >Emitted(53, 45) Source(63, 3) + SourceIndex(0) --- >>> })(Widgets = Thing.Widgets || (Thing.Widgets = {})); 1->^^^^^^^^ @@ -1058,15 +1058,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(54, 9) Source(64, 1) + SourceIndex(0) name (Sample.Thing.Widgets) -2 >Emitted(54, 10) Source(64, 2) + SourceIndex(0) name (Sample.Thing.Widgets) -3 >Emitted(54, 12) Source(44, 21) + SourceIndex(0) name (Sample.Thing) -4 >Emitted(54, 19) Source(44, 28) + SourceIndex(0) name (Sample.Thing) -5 >Emitted(54, 22) Source(44, 21) + SourceIndex(0) name (Sample.Thing) -6 >Emitted(54, 35) Source(44, 28) + SourceIndex(0) name (Sample.Thing) -7 >Emitted(54, 40) Source(44, 21) + SourceIndex(0) name (Sample.Thing) -8 >Emitted(54, 53) Source(44, 28) + SourceIndex(0) name (Sample.Thing) -9 >Emitted(54, 61) Source(64, 2) + SourceIndex(0) name (Sample.Thing) +1->Emitted(54, 9) Source(64, 1) + SourceIndex(0) +2 >Emitted(54, 10) Source(64, 2) + SourceIndex(0) +3 >Emitted(54, 12) Source(44, 21) + SourceIndex(0) +4 >Emitted(54, 19) Source(44, 28) + SourceIndex(0) +5 >Emitted(54, 22) Source(44, 21) + SourceIndex(0) +6 >Emitted(54, 35) Source(44, 28) + SourceIndex(0) +7 >Emitted(54, 40) Source(44, 21) + SourceIndex(0) +8 >Emitted(54, 53) Source(44, 28) + SourceIndex(0) +9 >Emitted(54, 61) Source(64, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -1107,15 +1107,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(55, 5) Source(64, 1) + SourceIndex(0) name (Sample.Thing) -2 >Emitted(55, 6) Source(64, 2) + SourceIndex(0) name (Sample.Thing) -3 >Emitted(55, 8) Source(44, 15) + SourceIndex(0) name (Sample) -4 >Emitted(55, 13) Source(44, 20) + SourceIndex(0) name (Sample) -5 >Emitted(55, 16) Source(44, 15) + SourceIndex(0) name (Sample) -6 >Emitted(55, 28) Source(44, 20) + SourceIndex(0) name (Sample) -7 >Emitted(55, 33) Source(44, 15) + SourceIndex(0) name (Sample) -8 >Emitted(55, 45) Source(44, 20) + SourceIndex(0) name (Sample) -9 >Emitted(55, 53) Source(64, 2) + SourceIndex(0) name (Sample) +1 >Emitted(55, 5) Source(64, 1) + SourceIndex(0) +2 >Emitted(55, 6) Source(64, 2) + SourceIndex(0) +3 >Emitted(55, 8) Source(44, 15) + SourceIndex(0) +4 >Emitted(55, 13) Source(44, 20) + SourceIndex(0) +5 >Emitted(55, 16) Source(44, 15) + SourceIndex(0) +6 >Emitted(55, 28) Source(44, 20) + SourceIndex(0) +7 >Emitted(55, 33) Source(44, 15) + SourceIndex(0) +8 >Emitted(55, 45) Source(44, 20) + SourceIndex(0) +9 >Emitted(55, 53) Source(64, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -1153,8 +1153,8 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(56, 1) Source(64, 1) + SourceIndex(0) name (Sample) -2 >Emitted(56, 2) Source(64, 2) + SourceIndex(0) name (Sample) +1 >Emitted(56, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(56, 2) Source(64, 2) + SourceIndex(0) 3 >Emitted(56, 4) Source(44, 8) + SourceIndex(0) 4 >Emitted(56, 10) Source(44, 14) + SourceIndex(0) 5 >Emitted(56, 15) Source(44, 8) + SourceIndex(0) @@ -1174,7 +1174,7 @@ sourceFile:recursiveClassReferenceTest.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(58, 5) Source(67, 1) + SourceIndex(0) name (AbstractMode) +1->Emitted(58, 5) Source(67, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1182,8 +1182,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->class AbstractMode implements IMode { public getInitialState(): IState { return null;} 2 > } -1->Emitted(59, 5) Source(67, 88) + SourceIndex(0) name (AbstractMode.constructor) -2 >Emitted(59, 6) Source(67, 89) + SourceIndex(0) name (AbstractMode.constructor) +1->Emitted(59, 5) Source(67, 88) + SourceIndex(0) +2 >Emitted(59, 6) Source(67, 89) + SourceIndex(0) --- >>> AbstractMode.prototype.getInitialState = function () { return null; }; 1->^^^^ @@ -1206,26 +1206,26 @@ sourceFile:recursiveClassReferenceTest.ts 8 > ; 9 > 10> } -1->Emitted(60, 5) Source(67, 46) + SourceIndex(0) name (AbstractMode) -2 >Emitted(60, 43) Source(67, 61) + SourceIndex(0) name (AbstractMode) -3 >Emitted(60, 46) Source(67, 39) + SourceIndex(0) name (AbstractMode) -4 >Emitted(60, 60) Source(67, 74) + SourceIndex(0) name (AbstractMode.getInitialState) -5 >Emitted(60, 66) Source(67, 80) + SourceIndex(0) name (AbstractMode.getInitialState) -6 >Emitted(60, 67) Source(67, 81) + SourceIndex(0) name (AbstractMode.getInitialState) -7 >Emitted(60, 71) Source(67, 85) + SourceIndex(0) name (AbstractMode.getInitialState) -8 >Emitted(60, 72) Source(67, 86) + SourceIndex(0) name (AbstractMode.getInitialState) -9 >Emitted(60, 73) Source(67, 86) + SourceIndex(0) name (AbstractMode.getInitialState) -10>Emitted(60, 74) Source(67, 87) + SourceIndex(0) name (AbstractMode.getInitialState) +1->Emitted(60, 5) Source(67, 46) + SourceIndex(0) +2 >Emitted(60, 43) Source(67, 61) + SourceIndex(0) +3 >Emitted(60, 46) Source(67, 39) + SourceIndex(0) +4 >Emitted(60, 60) Source(67, 74) + SourceIndex(0) +5 >Emitted(60, 66) Source(67, 80) + SourceIndex(0) +6 >Emitted(60, 67) Source(67, 81) + SourceIndex(0) +7 >Emitted(60, 71) Source(67, 85) + SourceIndex(0) +8 >Emitted(60, 72) Source(67, 86) + SourceIndex(0) +9 >Emitted(60, 73) Source(67, 86) + SourceIndex(0) +10>Emitted(60, 74) Source(67, 87) + SourceIndex(0) --- >>> return AbstractMode; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(61, 5) Source(67, 88) + SourceIndex(0) name (AbstractMode) -2 >Emitted(61, 24) Source(67, 89) + SourceIndex(0) name (AbstractMode) +1 >Emitted(61, 5) Source(67, 88) + SourceIndex(0) +2 >Emitted(61, 24) Source(67, 89) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -1235,8 +1235,8 @@ sourceFile:recursiveClassReferenceTest.ts 2 >} 3 > 4 > class AbstractMode implements IMode { public getInitialState(): IState { return null;} } -1 >Emitted(62, 1) Source(67, 88) + SourceIndex(0) name (AbstractMode) -2 >Emitted(62, 2) Source(67, 89) + SourceIndex(0) name (AbstractMode) +1 >Emitted(62, 1) Source(67, 88) + SourceIndex(0) +2 >Emitted(62, 2) Source(67, 89) + SourceIndex(0) 3 >Emitted(62, 2) Source(67, 1) + SourceIndex(0) 4 >Emitted(62, 6) Source(67, 89) + SourceIndex(0) --- @@ -1333,10 +1333,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(65, 5) Source(76, 15) + SourceIndex(0) name (Sample) -2 >Emitted(65, 9) Source(76, 15) + SourceIndex(0) name (Sample) -3 >Emitted(65, 14) Source(76, 20) + SourceIndex(0) name (Sample) -4 >Emitted(65, 15) Source(100, 2) + SourceIndex(0) name (Sample) +1 >Emitted(65, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(65, 9) Source(76, 15) + SourceIndex(0) +3 >Emitted(65, 14) Source(76, 20) + SourceIndex(0) +4 >Emitted(65, 15) Source(100, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -1346,9 +1346,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(66, 5) Source(76, 15) + SourceIndex(0) name (Sample) -2 >Emitted(66, 16) Source(76, 15) + SourceIndex(0) name (Sample) -3 >Emitted(66, 21) Source(76, 20) + SourceIndex(0) name (Sample) +1->Emitted(66, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(66, 16) Source(76, 15) + SourceIndex(0) +3 >Emitted(66, 21) Source(76, 20) + SourceIndex(0) --- >>> var Languages; 1->^^^^^^^^ @@ -1384,10 +1384,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(67, 9) Source(76, 21) + SourceIndex(0) name (Sample.Thing) -2 >Emitted(67, 13) Source(76, 21) + SourceIndex(0) name (Sample.Thing) -3 >Emitted(67, 22) Source(76, 30) + SourceIndex(0) name (Sample.Thing) -4 >Emitted(67, 23) Source(100, 2) + SourceIndex(0) name (Sample.Thing) +1->Emitted(67, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(67, 13) Source(76, 21) + SourceIndex(0) +3 >Emitted(67, 22) Source(76, 30) + SourceIndex(0) +4 >Emitted(67, 23) Source(100, 2) + SourceIndex(0) --- >>> (function (Languages) { 1->^^^^^^^^ @@ -1396,9 +1396,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Languages -1->Emitted(68, 9) Source(76, 21) + SourceIndex(0) name (Sample.Thing) -2 >Emitted(68, 20) Source(76, 21) + SourceIndex(0) name (Sample.Thing) -3 >Emitted(68, 29) Source(76, 30) + SourceIndex(0) name (Sample.Thing) +1->Emitted(68, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(68, 20) Source(76, 21) + SourceIndex(0) +3 >Emitted(68, 29) Source(76, 30) + SourceIndex(0) --- >>> var PlainText; 1 >^^^^^^^^^^^^ @@ -1434,10 +1434,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(69, 13) Source(76, 31) + SourceIndex(0) name (Sample.Thing.Languages) -2 >Emitted(69, 17) Source(76, 31) + SourceIndex(0) name (Sample.Thing.Languages) -3 >Emitted(69, 26) Source(76, 40) + SourceIndex(0) name (Sample.Thing.Languages) -4 >Emitted(69, 27) Source(100, 2) + SourceIndex(0) name (Sample.Thing.Languages) +1 >Emitted(69, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(69, 17) Source(76, 31) + SourceIndex(0) +3 >Emitted(69, 26) Source(76, 40) + SourceIndex(0) +4 >Emitted(69, 27) Source(100, 2) + SourceIndex(0) --- >>> (function (PlainText) { 1->^^^^^^^^^^^^ @@ -1451,11 +1451,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > PlainText 4 > 5 > { -1->Emitted(70, 13) Source(76, 31) + SourceIndex(0) name (Sample.Thing.Languages) -2 >Emitted(70, 24) Source(76, 31) + SourceIndex(0) name (Sample.Thing.Languages) -3 >Emitted(70, 33) Source(76, 40) + SourceIndex(0) name (Sample.Thing.Languages) -4 >Emitted(70, 35) Source(76, 41) + SourceIndex(0) name (Sample.Thing.Languages) -5 >Emitted(70, 36) Source(76, 42) + SourceIndex(0) name (Sample.Thing.Languages) +1->Emitted(70, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(70, 24) Source(76, 31) + SourceIndex(0) +3 >Emitted(70, 33) Source(76, 40) + SourceIndex(0) +4 >Emitted(70, 35) Source(76, 41) + SourceIndex(0) +5 >Emitted(70, 36) Source(76, 42) + SourceIndex(0) --- >>> var State = (function () { 1->^^^^^^^^^^^^^^^^ @@ -1463,7 +1463,7 @@ sourceFile:recursiveClassReferenceTest.ts 1-> > > -1->Emitted(71, 17) Source(78, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) +1->Emitted(71, 17) Source(78, 2) + SourceIndex(0) --- >>> function State(mode) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1474,9 +1474,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > constructor(private 3 > mode: IMode -1->Emitted(72, 21) Source(79, 9) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -2 >Emitted(72, 36) Source(79, 29) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -3 >Emitted(72, 40) Source(79, 40) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) +1->Emitted(72, 21) Source(79, 9) + SourceIndex(0) +2 >Emitted(72, 36) Source(79, 29) + SourceIndex(0) +3 >Emitted(72, 40) Source(79, 40) + SourceIndex(0) --- >>> this.mode = mode; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1489,11 +1489,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > mode 5 > : IMode -1->Emitted(73, 25) Source(79, 29) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.constructor) -2 >Emitted(73, 34) Source(79, 33) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.constructor) -3 >Emitted(73, 37) Source(79, 29) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.constructor) -4 >Emitted(73, 41) Source(79, 33) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.constructor) -5 >Emitted(73, 42) Source(79, 40) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.constructor) +1->Emitted(73, 25) Source(79, 29) + SourceIndex(0) +2 >Emitted(73, 34) Source(79, 33) + SourceIndex(0) +3 >Emitted(73, 37) Source(79, 29) + SourceIndex(0) +4 >Emitted(73, 41) Source(79, 33) + SourceIndex(0) +5 >Emitted(73, 42) Source(79, 40) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1501,8 +1501,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 > } -1 >Emitted(74, 21) Source(79, 44) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.constructor) -2 >Emitted(74, 22) Source(79, 45) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.constructor) +1 >Emitted(74, 21) Source(79, 44) + SourceIndex(0) +2 >Emitted(74, 22) Source(79, 45) + SourceIndex(0) --- >>> State.prototype.clone = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1512,9 +1512,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > clone 3 > -1->Emitted(75, 21) Source(80, 10) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -2 >Emitted(75, 42) Source(80, 15) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -3 >Emitted(75, 45) Source(80, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) +1->Emitted(75, 21) Source(80, 10) + SourceIndex(0) +2 >Emitted(75, 42) Source(80, 15) + SourceIndex(0) +3 >Emitted(75, 45) Source(80, 3) + SourceIndex(0) --- >>> return this; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1528,11 +1528,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > this 5 > ; -1 >Emitted(76, 25) Source(81, 4) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.clone) -2 >Emitted(76, 31) Source(81, 10) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.clone) -3 >Emitted(76, 32) Source(81, 11) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.clone) -4 >Emitted(76, 36) Source(81, 15) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.clone) -5 >Emitted(76, 37) Source(81, 16) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.clone) +1 >Emitted(76, 25) Source(81, 4) + SourceIndex(0) +2 >Emitted(76, 31) Source(81, 10) + SourceIndex(0) +3 >Emitted(76, 32) Source(81, 11) + SourceIndex(0) +4 >Emitted(76, 36) Source(81, 15) + SourceIndex(0) +5 >Emitted(76, 37) Source(81, 16) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1541,8 +1541,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(77, 21) Source(82, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.clone) -2 >Emitted(77, 22) Source(82, 4) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.clone) +1 >Emitted(77, 21) Source(82, 3) + SourceIndex(0) +2 >Emitted(77, 22) Source(82, 4) + SourceIndex(0) --- >>> State.prototype.equals = function (other) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1557,11 +1557,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > public equals( 5 > other:IState -1->Emitted(78, 21) Source(84, 10) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -2 >Emitted(78, 43) Source(84, 16) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -3 >Emitted(78, 46) Source(84, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -4 >Emitted(78, 56) Source(84, 17) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -5 >Emitted(78, 61) Source(84, 29) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) +1->Emitted(78, 21) Source(84, 10) + SourceIndex(0) +2 >Emitted(78, 43) Source(84, 16) + SourceIndex(0) +3 >Emitted(78, 46) Source(84, 3) + SourceIndex(0) +4 >Emitted(78, 56) Source(84, 17) + SourceIndex(0) +5 >Emitted(78, 61) Source(84, 29) + SourceIndex(0) --- >>> return this === other; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1579,13 +1579,13 @@ sourceFile:recursiveClassReferenceTest.ts 5 > === 6 > other 7 > ; -1 >Emitted(79, 25) Source(85, 4) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) -2 >Emitted(79, 31) Source(85, 10) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) -3 >Emitted(79, 32) Source(85, 11) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) -4 >Emitted(79, 36) Source(85, 15) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) -5 >Emitted(79, 41) Source(85, 20) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) -6 >Emitted(79, 46) Source(85, 25) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) -7 >Emitted(79, 47) Source(85, 26) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) +1 >Emitted(79, 25) Source(85, 4) + SourceIndex(0) +2 >Emitted(79, 31) Source(85, 10) + SourceIndex(0) +3 >Emitted(79, 32) Source(85, 11) + SourceIndex(0) +4 >Emitted(79, 36) Source(85, 15) + SourceIndex(0) +5 >Emitted(79, 41) Source(85, 20) + SourceIndex(0) +6 >Emitted(79, 46) Source(85, 25) + SourceIndex(0) +7 >Emitted(79, 47) Source(85, 26) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1594,8 +1594,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(80, 21) Source(86, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) -2 >Emitted(80, 22) Source(86, 4) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.equals) +1 >Emitted(80, 21) Source(86, 3) + SourceIndex(0) +2 >Emitted(80, 22) Source(86, 4) + SourceIndex(0) --- >>> State.prototype.getMode = function () { return mode; }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1620,16 +1620,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > ; 9 > 10> } -1->Emitted(81, 21) Source(88, 10) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -2 >Emitted(81, 44) Source(88, 17) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -3 >Emitted(81, 47) Source(88, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -4 >Emitted(81, 61) Source(88, 29) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.getMode) -5 >Emitted(81, 67) Source(88, 35) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.getMode) -6 >Emitted(81, 68) Source(88, 36) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.getMode) -7 >Emitted(81, 72) Source(88, 40) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.getMode) -8 >Emitted(81, 73) Source(88, 41) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.getMode) -9 >Emitted(81, 74) Source(88, 42) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.getMode) -10>Emitted(81, 75) Source(88, 43) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State.getMode) +1->Emitted(81, 21) Source(88, 10) + SourceIndex(0) +2 >Emitted(81, 44) Source(88, 17) + SourceIndex(0) +3 >Emitted(81, 47) Source(88, 3) + SourceIndex(0) +4 >Emitted(81, 61) Source(88, 29) + SourceIndex(0) +5 >Emitted(81, 67) Source(88, 35) + SourceIndex(0) +6 >Emitted(81, 68) Source(88, 36) + SourceIndex(0) +7 >Emitted(81, 72) Source(88, 40) + SourceIndex(0) +8 >Emitted(81, 73) Source(88, 41) + SourceIndex(0) +9 >Emitted(81, 74) Source(88, 42) + SourceIndex(0) +10>Emitted(81, 75) Source(88, 43) + SourceIndex(0) --- >>> return State; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1637,10 +1637,10 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(82, 21) Source(89, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -2 >Emitted(82, 33) Source(89, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) +1 >Emitted(82, 21) Source(89, 2) + SourceIndex(0) +2 >Emitted(82, 33) Source(89, 3) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -1661,10 +1661,10 @@ sourceFile:recursiveClassReferenceTest.ts > > public getMode(): IMode { return mode; } > } -1 >Emitted(83, 17) Source(89, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -2 >Emitted(83, 18) Source(89, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.State) -3 >Emitted(83, 18) Source(78, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -4 >Emitted(83, 22) Source(89, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) +1 >Emitted(83, 17) Source(89, 2) + SourceIndex(0) +2 >Emitted(83, 18) Source(89, 3) + SourceIndex(0) +3 >Emitted(83, 18) Source(78, 2) + SourceIndex(0) +4 >Emitted(83, 22) Source(89, 3) + SourceIndex(0) --- >>> PlainText.State = State; 1->^^^^^^^^^^^^^^^^ @@ -1687,10 +1687,10 @@ sourceFile:recursiveClassReferenceTest.ts > public getMode(): IMode { return mode; } > } 4 > -1->Emitted(84, 17) Source(78, 15) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -2 >Emitted(84, 32) Source(78, 20) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -3 >Emitted(84, 40) Source(89, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -4 >Emitted(84, 41) Source(89, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) +1->Emitted(84, 17) Source(78, 15) + SourceIndex(0) +2 >Emitted(84, 32) Source(78, 20) + SourceIndex(0) +3 >Emitted(84, 40) Source(89, 3) + SourceIndex(0) +4 >Emitted(84, 41) Source(89, 3) + SourceIndex(0) --- >>> var Mode = (function (_super) { 1->^^^^^^^^^^^^^^^^ @@ -1698,29 +1698,29 @@ sourceFile:recursiveClassReferenceTest.ts 1-> > > -1->Emitted(85, 17) Source(91, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) +1->Emitted(85, 17) Source(91, 2) + SourceIndex(0) --- >>> __extends(Mode, _super); 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1->export class Mode extends 2 > AbstractMode -1->Emitted(86, 21) Source(91, 28) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) -2 >Emitted(86, 45) Source(91, 40) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) +1->Emitted(86, 21) Source(91, 28) + SourceIndex(0) +2 >Emitted(86, 45) Source(91, 40) + SourceIndex(0) --- >>> function Mode() { 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(87, 21) Source(91, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) +1 >Emitted(87, 21) Source(91, 2) + SourceIndex(0) --- >>> _super.apply(this, arguments); 1->^^^^^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->export class Mode extends 2 > AbstractMode -1->Emitted(88, 25) Source(91, 28) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.constructor) -2 >Emitted(88, 55) Source(91, 40) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.constructor) +1->Emitted(88, 25) Source(91, 28) + SourceIndex(0) +2 >Emitted(88, 55) Source(91, 40) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1736,8 +1736,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1 >Emitted(89, 21) Source(99, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.constructor) -2 >Emitted(89, 22) Source(99, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.constructor) +1 >Emitted(89, 21) Source(99, 2) + SourceIndex(0) +2 >Emitted(89, 22) Source(99, 3) + SourceIndex(0) --- >>> // scenario 2 1->^^^^^^^^^^^^^^^^^^^^ @@ -1745,8 +1745,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > // scenario 2 -1->Emitted(90, 21) Source(93, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) -2 >Emitted(90, 34) Source(93, 16) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) +1->Emitted(90, 21) Source(93, 3) + SourceIndex(0) +2 >Emitted(90, 34) Source(93, 16) + SourceIndex(0) --- >>> Mode.prototype.getInitialState = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1756,9 +1756,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getInitialState 3 > -1->Emitted(91, 21) Source(94, 10) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) -2 >Emitted(91, 51) Source(94, 25) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) -3 >Emitted(91, 54) Source(94, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) +1->Emitted(91, 21) Source(94, 10) + SourceIndex(0) +2 >Emitted(91, 51) Source(94, 25) + SourceIndex(0) +3 >Emitted(91, 54) Source(94, 3) + SourceIndex(0) --- >>> return new State(self); 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1780,15 +1780,15 @@ sourceFile:recursiveClassReferenceTest.ts 7 > self 8 > ) 9 > ; -1 >Emitted(92, 25) Source(95, 4) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -2 >Emitted(92, 31) Source(95, 10) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -3 >Emitted(92, 32) Source(95, 11) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -4 >Emitted(92, 36) Source(95, 15) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -5 >Emitted(92, 41) Source(95, 20) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -6 >Emitted(92, 42) Source(95, 21) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -7 >Emitted(92, 46) Source(95, 25) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -8 >Emitted(92, 47) Source(95, 26) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -9 >Emitted(92, 48) Source(95, 27) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) +1 >Emitted(92, 25) Source(95, 4) + SourceIndex(0) +2 >Emitted(92, 31) Source(95, 10) + SourceIndex(0) +3 >Emitted(92, 32) Source(95, 11) + SourceIndex(0) +4 >Emitted(92, 36) Source(95, 15) + SourceIndex(0) +5 >Emitted(92, 41) Source(95, 20) + SourceIndex(0) +6 >Emitted(92, 42) Source(95, 21) + SourceIndex(0) +7 >Emitted(92, 46) Source(95, 25) + SourceIndex(0) +8 >Emitted(92, 47) Source(95, 26) + SourceIndex(0) +9 >Emitted(92, 48) Source(95, 27) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1797,8 +1797,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(93, 21) Source(96, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) -2 >Emitted(93, 22) Source(96, 4) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode.getInitialState) +1 >Emitted(93, 21) Source(96, 3) + SourceIndex(0) +2 >Emitted(93, 22) Source(96, 4) + SourceIndex(0) --- >>> return Mode; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1809,37 +1809,37 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(94, 21) Source(99, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) -2 >Emitted(94, 32) Source(99, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) +1->Emitted(94, 21) Source(99, 2) + SourceIndex(0) +2 >Emitted(94, 32) Source(99, 3) + SourceIndex(0) --- ->>> })(AbstractMode); +>>> }(AbstractMode)); 1->^^^^^^^^^^^^^^^^ 2 > ^ 3 > -4 > ^^ -5 > ^^^^^^^^^^^^ -6 > ^^ +4 > ^ +5 > ^^^^^^^^^^^^ +6 > ^^^ 7 > ^^^^^^-> 1-> 2 > } 3 > 4 > export class Mode extends -5 > AbstractMode -6 > { - > - > // scenario 2 - > public getInitialState(): IState { - > return new State(self); - > } - > - > - > } -1->Emitted(95, 17) Source(99, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) -2 >Emitted(95, 18) Source(99, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText.Mode) -3 >Emitted(95, 18) Source(91, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -4 >Emitted(95, 20) Source(91, 28) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -5 >Emitted(95, 32) Source(91, 40) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -6 >Emitted(95, 34) Source(99, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) +5 > AbstractMode +6 > { + > + > // scenario 2 + > public getInitialState(): IState { + > return new State(self); + > } + > + > + > } +1->Emitted(95, 17) Source(99, 2) + SourceIndex(0) +2 >Emitted(95, 18) Source(99, 3) + SourceIndex(0) +3 >Emitted(95, 18) Source(91, 2) + SourceIndex(0) +4 >Emitted(95, 19) Source(91, 28) + SourceIndex(0) +5 >Emitted(95, 31) Source(91, 40) + SourceIndex(0) +6 >Emitted(95, 34) Source(99, 3) + SourceIndex(0) --- >>> PlainText.Mode = Mode; 1->^^^^^^^^^^^^^^^^ @@ -1859,10 +1859,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } 4 > -1->Emitted(96, 17) Source(91, 15) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -2 >Emitted(96, 31) Source(91, 19) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -3 >Emitted(96, 38) Source(99, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -4 >Emitted(96, 39) Source(99, 3) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) +1->Emitted(96, 17) Source(91, 15) + SourceIndex(0) +2 >Emitted(96, 31) Source(91, 19) + SourceIndex(0) +3 >Emitted(96, 38) Source(99, 3) + SourceIndex(0) +4 >Emitted(96, 39) Source(99, 3) + SourceIndex(0) --- >>> })(PlainText = Languages.PlainText || (Languages.PlainText = {})); 1->^^^^^^^^^^^^ @@ -1908,15 +1908,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(97, 13) Source(100, 1) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -2 >Emitted(97, 14) Source(100, 2) + SourceIndex(0) name (Sample.Thing.Languages.PlainText) -3 >Emitted(97, 16) Source(76, 31) + SourceIndex(0) name (Sample.Thing.Languages) -4 >Emitted(97, 25) Source(76, 40) + SourceIndex(0) name (Sample.Thing.Languages) -5 >Emitted(97, 28) Source(76, 31) + SourceIndex(0) name (Sample.Thing.Languages) -6 >Emitted(97, 47) Source(76, 40) + SourceIndex(0) name (Sample.Thing.Languages) -7 >Emitted(97, 52) Source(76, 31) + SourceIndex(0) name (Sample.Thing.Languages) -8 >Emitted(97, 71) Source(76, 40) + SourceIndex(0) name (Sample.Thing.Languages) -9 >Emitted(97, 79) Source(100, 2) + SourceIndex(0) name (Sample.Thing.Languages) +1->Emitted(97, 13) Source(100, 1) + SourceIndex(0) +2 >Emitted(97, 14) Source(100, 2) + SourceIndex(0) +3 >Emitted(97, 16) Source(76, 31) + SourceIndex(0) +4 >Emitted(97, 25) Source(76, 40) + SourceIndex(0) +5 >Emitted(97, 28) Source(76, 31) + SourceIndex(0) +6 >Emitted(97, 47) Source(76, 40) + SourceIndex(0) +7 >Emitted(97, 52) Source(76, 31) + SourceIndex(0) +8 >Emitted(97, 71) Source(76, 40) + SourceIndex(0) +9 >Emitted(97, 79) Source(100, 2) + SourceIndex(0) --- >>> })(Languages = Thing.Languages || (Thing.Languages = {})); 1 >^^^^^^^^ @@ -1961,15 +1961,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(98, 9) Source(100, 1) + SourceIndex(0) name (Sample.Thing.Languages) -2 >Emitted(98, 10) Source(100, 2) + SourceIndex(0) name (Sample.Thing.Languages) -3 >Emitted(98, 12) Source(76, 21) + SourceIndex(0) name (Sample.Thing) -4 >Emitted(98, 21) Source(76, 30) + SourceIndex(0) name (Sample.Thing) -5 >Emitted(98, 24) Source(76, 21) + SourceIndex(0) name (Sample.Thing) -6 >Emitted(98, 39) Source(76, 30) + SourceIndex(0) name (Sample.Thing) -7 >Emitted(98, 44) Source(76, 21) + SourceIndex(0) name (Sample.Thing) -8 >Emitted(98, 59) Source(76, 30) + SourceIndex(0) name (Sample.Thing) -9 >Emitted(98, 67) Source(100, 2) + SourceIndex(0) name (Sample.Thing) +1 >Emitted(98, 9) Source(100, 1) + SourceIndex(0) +2 >Emitted(98, 10) Source(100, 2) + SourceIndex(0) +3 >Emitted(98, 12) Source(76, 21) + SourceIndex(0) +4 >Emitted(98, 21) Source(76, 30) + SourceIndex(0) +5 >Emitted(98, 24) Source(76, 21) + SourceIndex(0) +6 >Emitted(98, 39) Source(76, 30) + SourceIndex(0) +7 >Emitted(98, 44) Source(76, 21) + SourceIndex(0) +8 >Emitted(98, 59) Source(76, 30) + SourceIndex(0) +9 >Emitted(98, 67) Source(100, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -2014,15 +2014,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(99, 5) Source(100, 1) + SourceIndex(0) name (Sample.Thing) -2 >Emitted(99, 6) Source(100, 2) + SourceIndex(0) name (Sample.Thing) -3 >Emitted(99, 8) Source(76, 15) + SourceIndex(0) name (Sample) -4 >Emitted(99, 13) Source(76, 20) + SourceIndex(0) name (Sample) -5 >Emitted(99, 16) Source(76, 15) + SourceIndex(0) name (Sample) -6 >Emitted(99, 28) Source(76, 20) + SourceIndex(0) name (Sample) -7 >Emitted(99, 33) Source(76, 15) + SourceIndex(0) name (Sample) -8 >Emitted(99, 45) Source(76, 20) + SourceIndex(0) name (Sample) -9 >Emitted(99, 53) Source(100, 2) + SourceIndex(0) name (Sample) +1 >Emitted(99, 5) Source(100, 1) + SourceIndex(0) +2 >Emitted(99, 6) Source(100, 2) + SourceIndex(0) +3 >Emitted(99, 8) Source(76, 15) + SourceIndex(0) +4 >Emitted(99, 13) Source(76, 20) + SourceIndex(0) +5 >Emitted(99, 16) Source(76, 15) + SourceIndex(0) +6 >Emitted(99, 28) Source(76, 20) + SourceIndex(0) +7 >Emitted(99, 33) Source(76, 15) + SourceIndex(0) +8 >Emitted(99, 45) Source(76, 20) + SourceIndex(0) +9 >Emitted(99, 53) Source(100, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -2064,8 +2064,8 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(100, 1) Source(100, 1) + SourceIndex(0) name (Sample) -2 >Emitted(100, 2) Source(100, 2) + SourceIndex(0) name (Sample) +1 >Emitted(100, 1) Source(100, 1) + SourceIndex(0) +2 >Emitted(100, 2) Source(100, 2) + SourceIndex(0) 3 >Emitted(100, 4) Source(76, 8) + SourceIndex(0) 4 >Emitted(100, 10) Source(76, 14) + SourceIndex(0) 5 >Emitted(100, 15) Source(76, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/recursiveCloduleReference.js b/tests/baselines/reference/recursiveCloduleReference.js index 74072e653ef..07d80e6011a 100644 --- a/tests/baselines/reference/recursiveCloduleReference.js +++ b/tests/baselines/reference/recursiveCloduleReference.js @@ -17,7 +17,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; var C; (function (C_1) { diff --git a/tests/baselines/reference/recursiveComplicatedClasses.js b/tests/baselines/reference/recursiveComplicatedClasses.js index e35931008b2..a5756024458 100644 --- a/tests/baselines/reference/recursiveComplicatedClasses.js +++ b/tests/baselines/reference/recursiveComplicatedClasses.js @@ -35,7 +35,7 @@ var Signature = (function () { this.parameters = null; } return Signature; -})(); +}()); function aEnclosesB(a) { return true; } @@ -47,25 +47,25 @@ var Symbol = (function () { return aEnclosesB(b); }; return Symbol; -})(); +}()); var InferenceSymbol = (function (_super) { __extends(InferenceSymbol, _super); function InferenceSymbol() { _super.apply(this, arguments); } return InferenceSymbol; -})(Symbol); +}(Symbol)); var ParameterSymbol = (function (_super) { __extends(ParameterSymbol, _super); function ParameterSymbol() { _super.apply(this, arguments); } return ParameterSymbol; -})(InferenceSymbol); +}(InferenceSymbol)); var TypeSymbol = (function (_super) { __extends(TypeSymbol, _super); function TypeSymbol() { _super.apply(this, arguments); } return TypeSymbol; -})(InferenceSymbol); +}(InferenceSymbol)); diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js index 2cc10db27c0..d759bc2f296 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType1.js @@ -23,7 +23,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } return ClassB; - })(); + }()); return ClassB; }); //// [recursiveExportAssignmentAndFindAliasedType1_moduleA.js] diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js index f1e5753360f..7704b38f68d 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType2.js @@ -27,7 +27,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } return ClassB; - })(); + }()); return ClassB; }); //// [recursiveExportAssignmentAndFindAliasedType2_moduleA.js] diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js index c195f13a5ed..a46be3bdafc 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType3.js @@ -31,7 +31,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } return ClassB; - })(); + }()); return ClassB; }); //// [recursiveExportAssignmentAndFindAliasedType3_moduleA.js] diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js index 59726c68c25..55f89491bf8 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType4.js @@ -24,7 +24,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } return ClassB; - })(); + }()); return ClassB; }); //// [recursiveExportAssignmentAndFindAliasedType4_moduleA.js] diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js index 7bd4b7dce4a..44464fd300e 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType5.js @@ -32,7 +32,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } return ClassB; - })(); + }()); return ClassB; }); //// [recursiveExportAssignmentAndFindAliasedType5_moduleA.js] diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js index 268352c001a..a457802041b 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType6.js @@ -40,7 +40,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } return ClassB; - })(); + }()); return ClassB; }); //// [recursiveExportAssignmentAndFindAliasedType6_moduleA.js] diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js index be43b42e75f..9a29c2bf949 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.js @@ -45,7 +45,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } return ClassB; - })(); + }()); return ClassB; }); //// [recursiveExportAssignmentAndFindAliasedType7_moduleA.js] diff --git a/tests/baselines/reference/recursiveFunctionTypes.js b/tests/baselines/reference/recursiveFunctionTypes.js index 040c323066d..6ff9e4eb997 100644 --- a/tests/baselines/reference/recursiveFunctionTypes.js +++ b/tests/baselines/reference/recursiveFunctionTypes.js @@ -60,7 +60,7 @@ var C = (function () { } C.g = function (t) { }; return C; -})(); +}()); C.g(3); // error var f4; f4 = 3; // error diff --git a/tests/baselines/reference/recursiveFunctionTypes1.js b/tests/baselines/reference/recursiveFunctionTypes1.js index c4c255d5e44..d219c741625 100644 --- a/tests/baselines/reference/recursiveFunctionTypes1.js +++ b/tests/baselines/reference/recursiveFunctionTypes1.js @@ -9,4 +9,4 @@ var C = (function () { } C.g = function (t) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/recursiveGenericTypeHierarchy.errors.txt b/tests/baselines/reference/recursiveGenericTypeHierarchy.errors.txt deleted file mode 100644 index 3c1e6e2017c..00000000000 --- a/tests/baselines/reference/recursiveGenericTypeHierarchy.errors.txt +++ /dev/null @@ -1,18 +0,0 @@ -tests/cases/compiler/recursiveGenericTypeHierarchy.ts(2,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/recursiveGenericTypeHierarchy.ts(2,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/recursiveGenericTypeHierarchy.ts(3,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/recursiveGenericTypeHierarchy.ts(3,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/recursiveGenericTypeHierarchy.ts (4 errors) ==== - // used to ICE - interface A, S extends A> { } - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface B, S extends B> extends A, B> { } - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. \ No newline at end of file diff --git a/tests/baselines/reference/recursiveGenericTypeHierarchy.symbols b/tests/baselines/reference/recursiveGenericTypeHierarchy.symbols new file mode 100644 index 00000000000..c46174c1e04 --- /dev/null +++ b/tests/baselines/reference/recursiveGenericTypeHierarchy.symbols @@ -0,0 +1,31 @@ +=== tests/cases/compiler/recursiveGenericTypeHierarchy.ts === +// used to ICE +interface A, S extends A> { } +>A : Symbol(A, Decl(recursiveGenericTypeHierarchy.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 1, 12)) +>A : Symbol(A, Decl(recursiveGenericTypeHierarchy.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 1, 12)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 1, 30)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 1, 30)) +>A : Symbol(A, Decl(recursiveGenericTypeHierarchy.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 1, 12)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 1, 30)) + +interface B, S extends B> extends A, B> { } +>B : Symbol(B, Decl(recursiveGenericTypeHierarchy.ts, 1, 53)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 2, 12)) +>B : Symbol(B, Decl(recursiveGenericTypeHierarchy.ts, 1, 53)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 2, 12)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 2, 30)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 2, 30)) +>B : Symbol(B, Decl(recursiveGenericTypeHierarchy.ts, 1, 53)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 2, 12)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 2, 30)) +>A : Symbol(A, Decl(recursiveGenericTypeHierarchy.ts, 0, 0)) +>B : Symbol(B, Decl(recursiveGenericTypeHierarchy.ts, 1, 53)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 2, 12)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 2, 30)) +>B : Symbol(B, Decl(recursiveGenericTypeHierarchy.ts, 1, 53)) +>T : Symbol(T, Decl(recursiveGenericTypeHierarchy.ts, 2, 12)) +>S : Symbol(S, Decl(recursiveGenericTypeHierarchy.ts, 2, 30)) + diff --git a/tests/baselines/reference/recursiveGenericTypeHierarchy.types b/tests/baselines/reference/recursiveGenericTypeHierarchy.types new file mode 100644 index 00000000000..72936b93299 --- /dev/null +++ b/tests/baselines/reference/recursiveGenericTypeHierarchy.types @@ -0,0 +1,31 @@ +=== tests/cases/compiler/recursiveGenericTypeHierarchy.ts === +// used to ICE +interface A, S extends A> { } +>A : A +>T : T +>A : A +>T : T +>S : S +>S : S +>A : A +>T : T +>S : S + +interface B, S extends B> extends A, B> { } +>B : B +>T : T +>B : B +>T : T +>S : S +>S : S +>B : B +>T : T +>S : S +>A : A +>B : B +>T : T +>S : S +>B : B +>T : T +>S : S + diff --git a/tests/baselines/reference/recursiveGetterAccess.js b/tests/baselines/reference/recursiveGetterAccess.js index 1dea2e02d3a..efb9dda3b31 100644 --- a/tests/baselines/reference/recursiveGetterAccess.js +++ b/tests/baselines/reference/recursiveGetterAccess.js @@ -15,4 +15,4 @@ var MyClass = (function () { configurable: true }); return MyClass; -})(); +}()); diff --git a/tests/baselines/reference/recursiveIdenticalAssignment.errors.txt b/tests/baselines/reference/recursiveIdenticalAssignment.errors.txt deleted file mode 100644 index e33515f9378..00000000000 --- a/tests/baselines/reference/recursiveIdenticalAssignment.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -tests/cases/compiler/recursiveIdenticalAssignment.ts(5,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/recursiveIdenticalAssignment.ts (1 errors) ==== - interface A { - x: A - } - - interface B>> { // error, constraint referencing itself - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x: B - } - - var a: A> - var b: B> = a // Error, any does not satisfy constraint B> - \ No newline at end of file diff --git a/tests/baselines/reference/recursiveIdenticalAssignment.symbols b/tests/baselines/reference/recursiveIdenticalAssignment.symbols new file mode 100644 index 00000000000..b82fe1d9d17 --- /dev/null +++ b/tests/baselines/reference/recursiveIdenticalAssignment.symbols @@ -0,0 +1,35 @@ +=== tests/cases/compiler/recursiveIdenticalAssignment.ts === +interface A { +>A : Symbol(A, Decl(recursiveIdenticalAssignment.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveIdenticalAssignment.ts, 0, 12)) + + x: A +>x : Symbol(x, Decl(recursiveIdenticalAssignment.ts, 0, 16)) +>A : Symbol(A, Decl(recursiveIdenticalAssignment.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveIdenticalAssignment.ts, 0, 12)) +} + +interface B>> { // error, constraint referencing itself +>B : Symbol(B, Decl(recursiveIdenticalAssignment.ts, 2, 1)) +>T : Symbol(T, Decl(recursiveIdenticalAssignment.ts, 4, 12)) +>B : Symbol(B, Decl(recursiveIdenticalAssignment.ts, 2, 1)) +>B : Symbol(B, Decl(recursiveIdenticalAssignment.ts, 2, 1)) +>T : Symbol(T, Decl(recursiveIdenticalAssignment.ts, 4, 12)) + + x: B +>x : Symbol(x, Decl(recursiveIdenticalAssignment.ts, 4, 32)) +>B : Symbol(B, Decl(recursiveIdenticalAssignment.ts, 2, 1)) +>T : Symbol(T, Decl(recursiveIdenticalAssignment.ts, 4, 12)) +} + +var a: A> +>a : Symbol(a, Decl(recursiveIdenticalAssignment.ts, 8, 3)) +>A : Symbol(A, Decl(recursiveIdenticalAssignment.ts, 0, 0)) +>A : Symbol(A, Decl(recursiveIdenticalAssignment.ts, 0, 0)) + +var b: B> = a // Error, any does not satisfy constraint B> +>b : Symbol(b, Decl(recursiveIdenticalAssignment.ts, 9, 3)) +>B : Symbol(B, Decl(recursiveIdenticalAssignment.ts, 2, 1)) +>B : Symbol(B, Decl(recursiveIdenticalAssignment.ts, 2, 1)) +>a : Symbol(a, Decl(recursiveIdenticalAssignment.ts, 8, 3)) + diff --git a/tests/baselines/reference/recursiveIdenticalAssignment.types b/tests/baselines/reference/recursiveIdenticalAssignment.types new file mode 100644 index 00000000000..aa7bf70bb00 --- /dev/null +++ b/tests/baselines/reference/recursiveIdenticalAssignment.types @@ -0,0 +1,35 @@ +=== tests/cases/compiler/recursiveIdenticalAssignment.ts === +interface A { +>A : A +>T : T + + x: A +>x : A +>A : A +>T : T +} + +interface B>> { // error, constraint referencing itself +>B : B +>T : T +>B : B +>B : B +>T : T + + x: B +>x : B +>B : B +>T : T +} + +var a: A> +>a : A> +>A : A +>A : A + +var b: B> = a // Error, any does not satisfy constraint B> +>b : B> +>B : B +>B : B +>a : A> + diff --git a/tests/baselines/reference/recursiveInheritance3.js b/tests/baselines/reference/recursiveInheritance3.js index bc9fb6cb4f9..564d4fe6f3c 100644 --- a/tests/baselines/reference/recursiveInheritance3.js +++ b/tests/baselines/reference/recursiveInheritance3.js @@ -15,4 +15,4 @@ var C = (function () { } C.prototype.foo = function (x) { return x; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/recursiveMods.js b/tests/baselines/reference/recursiveMods.js index b25daa169ca..86b3d47a48e 100644 --- a/tests/baselines/reference/recursiveMods.js +++ b/tests/baselines/reference/recursiveMods.js @@ -32,7 +32,7 @@ var Foo; function C() { } return C; - })(); + }()); Foo.C = C; })(Foo = exports.Foo || (exports.Foo = {})); var Foo; diff --git a/tests/baselines/reference/recursiveProperties.js b/tests/baselines/reference/recursiveProperties.js index 84d9ebcd27c..35a284dac89 100644 --- a/tests/baselines/reference/recursiveProperties.js +++ b/tests/baselines/reference/recursiveProperties.js @@ -17,7 +17,7 @@ var A = (function () { configurable: true }); return A; -})(); +}()); var B = (function () { function B() { } @@ -27,4 +27,4 @@ var B = (function () { configurable: true }); return B; -})(); +}()); diff --git a/tests/baselines/reference/recursiveSpecializationOfSignatures.js b/tests/baselines/reference/recursiveSpecializationOfSignatures.js index 7542e85616a..496a74f8983 100644 --- a/tests/baselines/reference/recursiveSpecializationOfSignatures.js +++ b/tests/baselines/reference/recursiveSpecializationOfSignatures.js @@ -18,4 +18,4 @@ var S0 = (function () { configurable: true }); return S0; -})(); +}()); diff --git a/tests/baselines/reference/recursiveTypeInGenericConstraint.errors.txt b/tests/baselines/reference/recursiveTypeInGenericConstraint.errors.txt deleted file mode 100644 index c3cf7227308..00000000000 --- a/tests/baselines/reference/recursiveTypeInGenericConstraint.errors.txt +++ /dev/null @@ -1,19 +0,0 @@ -tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeInGenericConstraint.ts(5,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeInGenericConstraint.ts (1 errors) ==== - class G { - x: G>; // infinitely expanding type reference - } - - class Foo> { // error, constraint referencing itself - ~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - bar: T; - } - - class D { - x: G>; - } - - var c1 = new Foo>(); // ok, circularity in assignment compat check causes success \ No newline at end of file diff --git a/tests/baselines/reference/recursiveTypeInGenericConstraint.js b/tests/baselines/reference/recursiveTypeInGenericConstraint.js index 16ebdd2f6d9..2fb45e1b9e3 100644 --- a/tests/baselines/reference/recursiveTypeInGenericConstraint.js +++ b/tests/baselines/reference/recursiveTypeInGenericConstraint.js @@ -18,15 +18,15 @@ var G = (function () { function G() { } return G; -})(); +}()); var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var c1 = new Foo(); // ok, circularity in assignment compat check causes success diff --git a/tests/baselines/reference/recursiveTypeInGenericConstraint.symbols b/tests/baselines/reference/recursiveTypeInGenericConstraint.symbols new file mode 100644 index 00000000000..d23245e2187 --- /dev/null +++ b/tests/baselines/reference/recursiveTypeInGenericConstraint.symbols @@ -0,0 +1,39 @@ +=== tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeInGenericConstraint.ts === +class G { +>G : Symbol(G, Decl(recursiveTypeInGenericConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypeInGenericConstraint.ts, 0, 8)) + + x: G>; // infinitely expanding type reference +>x : Symbol(x, Decl(recursiveTypeInGenericConstraint.ts, 0, 12)) +>G : Symbol(G, Decl(recursiveTypeInGenericConstraint.ts, 0, 0)) +>G : Symbol(G, Decl(recursiveTypeInGenericConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypeInGenericConstraint.ts, 0, 8)) +} + +class Foo> { // error, constraint referencing itself +>Foo : Symbol(Foo, Decl(recursiveTypeInGenericConstraint.ts, 2, 1)) +>T : Symbol(T, Decl(recursiveTypeInGenericConstraint.ts, 4, 10)) +>G : Symbol(G, Decl(recursiveTypeInGenericConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypeInGenericConstraint.ts, 4, 10)) + + bar: T; +>bar : Symbol(bar, Decl(recursiveTypeInGenericConstraint.ts, 4, 27)) +>T : Symbol(T, Decl(recursiveTypeInGenericConstraint.ts, 4, 10)) +} + +class D { +>D : Symbol(D, Decl(recursiveTypeInGenericConstraint.ts, 6, 1)) +>T : Symbol(T, Decl(recursiveTypeInGenericConstraint.ts, 8, 8)) + + x: G>; +>x : Symbol(x, Decl(recursiveTypeInGenericConstraint.ts, 8, 12)) +>G : Symbol(G, Decl(recursiveTypeInGenericConstraint.ts, 0, 0)) +>G : Symbol(G, Decl(recursiveTypeInGenericConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypeInGenericConstraint.ts, 8, 8)) +} + +var c1 = new Foo>(); // ok, circularity in assignment compat check causes success +>c1 : Symbol(c1, Decl(recursiveTypeInGenericConstraint.ts, 12, 3)) +>Foo : Symbol(Foo, Decl(recursiveTypeInGenericConstraint.ts, 2, 1)) +>D : Symbol(D, Decl(recursiveTypeInGenericConstraint.ts, 6, 1)) + diff --git a/tests/baselines/reference/recursiveTypeInGenericConstraint.types b/tests/baselines/reference/recursiveTypeInGenericConstraint.types new file mode 100644 index 00000000000..97f48aa64e5 --- /dev/null +++ b/tests/baselines/reference/recursiveTypeInGenericConstraint.types @@ -0,0 +1,40 @@ +=== tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypeInGenericConstraint.ts === +class G { +>G : G +>T : T + + x: G>; // infinitely expanding type reference +>x : G> +>G : G +>G : G +>T : T +} + +class Foo> { // error, constraint referencing itself +>Foo : Foo +>T : T +>G : G +>T : T + + bar: T; +>bar : T +>T : T +} + +class D { +>D : D +>T : T + + x: G>; +>x : G> +>G : G +>G : G +>T : T +} + +var c1 = new Foo>(); // ok, circularity in assignment compat check causes success +>c1 : Foo> +>new Foo>() : Foo> +>Foo : typeof Foo +>D : D + diff --git a/tests/baselines/reference/recursiveTypeParameterConstraintReferenceLacksTypeArgs.js b/tests/baselines/reference/recursiveTypeParameterConstraintReferenceLacksTypeArgs.js index 45761b9bc28..7a889a8a62a 100644 --- a/tests/baselines/reference/recursiveTypeParameterConstraintReferenceLacksTypeArgs.js +++ b/tests/baselines/reference/recursiveTypeParameterConstraintReferenceLacksTypeArgs.js @@ -6,4 +6,4 @@ var A = (function () { function A() { } return A; -})(); +}()); diff --git a/tests/baselines/reference/recursiveTypeParameterReferenceError1.js b/tests/baselines/reference/recursiveTypeParameterReferenceError1.js index 4bc466bc6cf..a866b4fc78c 100644 --- a/tests/baselines/reference/recursiveTypeParameterReferenceError1.js +++ b/tests/baselines/reference/recursiveTypeParameterReferenceError1.js @@ -22,13 +22,13 @@ var X = (function () { function X() { } return X; -})(); +}()); var f; var r = f.z; var C2 = (function () { function C2() { } return C2; -})(); +}()); var f2; var r2 = f2.ofC4; diff --git a/tests/baselines/reference/recursiveTypes1.errors.txt b/tests/baselines/reference/recursiveTypes1.errors.txt deleted file mode 100644 index 62d4938ef1e..00000000000 --- a/tests/baselines/reference/recursiveTypes1.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -tests/cases/compiler/recursiveTypes1.ts(1,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/recursiveTypes1.ts(6,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/recursiveTypes1.ts (2 errors) ==== - interface Entity> { - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - X: T; - Y: T; - } - - interface Person> extends Entity { - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - n: number; - } - - interface Customer extends Person { - s: string; - } - \ No newline at end of file diff --git a/tests/baselines/reference/recursiveTypes1.symbols b/tests/baselines/reference/recursiveTypes1.symbols new file mode 100644 index 00000000000..8ced51db0dc --- /dev/null +++ b/tests/baselines/reference/recursiveTypes1.symbols @@ -0,0 +1,37 @@ +=== tests/cases/compiler/recursiveTypes1.ts === +interface Entity> { +>Entity : Symbol(Entity, Decl(recursiveTypes1.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypes1.ts, 0, 17)) +>Entity : Symbol(Entity, Decl(recursiveTypes1.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypes1.ts, 0, 17)) + + X: T; +>X : Symbol(X, Decl(recursiveTypes1.ts, 0, 39)) +>T : Symbol(T, Decl(recursiveTypes1.ts, 0, 17)) + + Y: T; +>Y : Symbol(Y, Decl(recursiveTypes1.ts, 1, 8)) +>T : Symbol(T, Decl(recursiveTypes1.ts, 0, 17)) +} + +interface Person> extends Entity { +>Person : Symbol(Person, Decl(recursiveTypes1.ts, 3, 1)) +>U : Symbol(U, Decl(recursiveTypes1.ts, 5, 17)) +>Person : Symbol(Person, Decl(recursiveTypes1.ts, 3, 1)) +>U : Symbol(U, Decl(recursiveTypes1.ts, 5, 17)) +>Entity : Symbol(Entity, Decl(recursiveTypes1.ts, 0, 0)) +>U : Symbol(U, Decl(recursiveTypes1.ts, 5, 17)) + + n: number; +>n : Symbol(n, Decl(recursiveTypes1.ts, 5, 57)) +} + +interface Customer extends Person { +>Customer : Symbol(Customer, Decl(recursiveTypes1.ts, 7, 1)) +>Person : Symbol(Person, Decl(recursiveTypes1.ts, 3, 1)) +>Customer : Symbol(Customer, Decl(recursiveTypes1.ts, 7, 1)) + + s: string; +>s : Symbol(s, Decl(recursiveTypes1.ts, 9, 45)) +} + diff --git a/tests/baselines/reference/recursiveTypes1.types b/tests/baselines/reference/recursiveTypes1.types new file mode 100644 index 00000000000..803c965e471 --- /dev/null +++ b/tests/baselines/reference/recursiveTypes1.types @@ -0,0 +1,37 @@ +=== tests/cases/compiler/recursiveTypes1.ts === +interface Entity> { +>Entity : Entity +>T : T +>Entity : Entity +>T : T + + X: T; +>X : T +>T : T + + Y: T; +>Y : T +>T : T +} + +interface Person> extends Entity { +>Person : Person +>U : U +>Person : Person +>U : U +>Entity : Entity +>U : U + + n: number; +>n : number +} + +interface Customer extends Person { +>Customer : Customer +>Person : Person +>Customer : Customer + + s: string; +>s : string +} + diff --git a/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.errors.txt b/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.errors.txt deleted file mode 100644 index 577debaed4e..00000000000 --- a/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.errors.txt +++ /dev/null @@ -1,49 +0,0 @@ -tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts(21,16): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts (1 errors) ==== - class List { - data: T; - next: List>; - } - - class MyList { - data: T; - next: MyList>; - } - - function foo(x: List); - function foo(x: List); // error, duplicate - function foo(x: List) { - } - - function foo2(x: List); - function foo2(x: MyList); // ok, nominally compared with first overload - function foo2(x: any) { - } - - function other, U>() { - ~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - // error but wrong error - // BUG 838247 - function foo3(x: T); - function foo3(x: MyList) { } - - // should be error - // BUG 838247 - function foo4(x: T); - function foo4(x: List) { } - - // ok - function foo5(x: T): string; - function foo5(x: List): number; - function foo5(x: MyList): boolean; - function foo5(x: any): any { return null; } - - var list: List; - var myList: MyList; - - var r = foo5(list); - var r2 = foo5(myList); - } \ No newline at end of file diff --git a/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.js b/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.js index 0cef9be47ab..c2286901a29 100644 --- a/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.js +++ b/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.js @@ -48,12 +48,12 @@ var List = (function () { function List() { } return List; -})(); +}()); var MyList = (function () { function MyList() { } return MyList; -})(); +}()); function foo(x) { } function foo2(x) { diff --git a/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.symbols b/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.symbols new file mode 100644 index 00000000000..9894c6acd45 --- /dev/null +++ b/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.symbols @@ -0,0 +1,154 @@ +=== tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts === +class List { +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 11)) + + data: T; +>data : Symbol(data, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 15)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 11)) + + next: List>; +>next : Symbol(next, Decl(recursiveTypesUsedAsFunctionParameters.ts, 1, 12)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 11)) +} + +class MyList { +>MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 5, 13)) + + data: T; +>data : Symbol(data, Decl(recursiveTypesUsedAsFunctionParameters.ts, 5, 17)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 5, 13)) + + next: MyList>; +>next : Symbol(next, Decl(recursiveTypesUsedAsFunctionParameters.ts, 6, 12)) +>MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) +>MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 5, 13)) +} + +function foo(x: List); +>foo : Symbol(foo, Decl(recursiveTypesUsedAsFunctionParameters.ts, 8, 1), Decl(recursiveTypesUsedAsFunctionParameters.ts, 10, 28), Decl(recursiveTypesUsedAsFunctionParameters.ts, 11, 28)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 10, 13)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 10, 16)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 10, 13)) + +function foo(x: List); // error, duplicate +>foo : Symbol(foo, Decl(recursiveTypesUsedAsFunctionParameters.ts, 8, 1), Decl(recursiveTypesUsedAsFunctionParameters.ts, 10, 28), Decl(recursiveTypesUsedAsFunctionParameters.ts, 11, 28)) +>U : Symbol(U, Decl(recursiveTypesUsedAsFunctionParameters.ts, 11, 13)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 11, 16)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>U : Symbol(U, Decl(recursiveTypesUsedAsFunctionParameters.ts, 11, 13)) + +function foo(x: List) { +>foo : Symbol(foo, Decl(recursiveTypesUsedAsFunctionParameters.ts, 8, 1), Decl(recursiveTypesUsedAsFunctionParameters.ts, 10, 28), Decl(recursiveTypesUsedAsFunctionParameters.ts, 11, 28)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 12, 13)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 12, 16)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 12, 13)) +} + +function foo2(x: List); +>foo2 : Symbol(foo2, Decl(recursiveTypesUsedAsFunctionParameters.ts, 13, 1), Decl(recursiveTypesUsedAsFunctionParameters.ts, 15, 29), Decl(recursiveTypesUsedAsFunctionParameters.ts, 16, 31)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 15, 14)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 15, 17)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 15, 14)) + +function foo2(x: MyList); // ok, nominally compared with first overload +>foo2 : Symbol(foo2, Decl(recursiveTypesUsedAsFunctionParameters.ts, 13, 1), Decl(recursiveTypesUsedAsFunctionParameters.ts, 15, 29), Decl(recursiveTypesUsedAsFunctionParameters.ts, 16, 31)) +>U : Symbol(U, Decl(recursiveTypesUsedAsFunctionParameters.ts, 16, 14)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 16, 17)) +>MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) +>U : Symbol(U, Decl(recursiveTypesUsedAsFunctionParameters.ts, 16, 14)) + +function foo2(x: any) { +>foo2 : Symbol(foo2, Decl(recursiveTypesUsedAsFunctionParameters.ts, 13, 1), Decl(recursiveTypesUsedAsFunctionParameters.ts, 15, 29), Decl(recursiveTypesUsedAsFunctionParameters.ts, 16, 31)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 17, 14)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 17, 17)) +} + +function other, U>() { +>other : Symbol(other, Decl(recursiveTypesUsedAsFunctionParameters.ts, 18, 1)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 15)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>U : Symbol(U, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 33)) +>U : Symbol(U, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 33)) + + // error but wrong error + // BUG 838247 + function foo3(x: T); +>foo3 : Symbol(foo3, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 40), Decl(recursiveTypesUsedAsFunctionParameters.ts, 23, 27)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 23, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 23, 21)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 15)) + + function foo3(x: MyList) { } +>foo3 : Symbol(foo3, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 40), Decl(recursiveTypesUsedAsFunctionParameters.ts, 23, 27)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 24, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 24, 21)) +>MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 24, 18)) + + // should be error + // BUG 838247 + function foo4(x: T); +>foo4 : Symbol(foo4, Decl(recursiveTypesUsedAsFunctionParameters.ts, 24, 38), Decl(recursiveTypesUsedAsFunctionParameters.ts, 28, 27)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 28, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 28, 21)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 15)) + + function foo4(x: List) { } +>foo4 : Symbol(foo4, Decl(recursiveTypesUsedAsFunctionParameters.ts, 24, 38), Decl(recursiveTypesUsedAsFunctionParameters.ts, 28, 27)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 21)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 18)) + + // ok + function foo5(x: T): string; +>foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 35), Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 41), Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 44)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 21)) +>T : Symbol(T, Decl(recursiveTypesUsedAsFunctionParameters.ts, 20, 15)) + + function foo5(x: List): number; +>foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 35), Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 41), Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 44)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 21)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 18)) + + function foo5(x: MyList): boolean; +>foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 35), Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 41), Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 44)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 21)) +>MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 18)) + + function foo5(x: any): any { return null; } +>foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 35), Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 41), Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 44)) +>V : Symbol(V, Decl(recursiveTypesUsedAsFunctionParameters.ts, 35, 18)) +>x : Symbol(x, Decl(recursiveTypesUsedAsFunctionParameters.ts, 35, 21)) + + var list: List; +>list : Symbol(list, Decl(recursiveTypesUsedAsFunctionParameters.ts, 37, 7)) +>List : Symbol(List, Decl(recursiveTypesUsedAsFunctionParameters.ts, 0, 0)) + + var myList: MyList; +>myList : Symbol(myList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 38, 7)) +>MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) + + var r = foo5(list); +>r : Symbol(r, Decl(recursiveTypesUsedAsFunctionParameters.ts, 40, 7)) +>foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 35), Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 41), Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 44)) +>list : Symbol(list, Decl(recursiveTypesUsedAsFunctionParameters.ts, 37, 7)) + + var r2 = foo5(myList); +>r2 : Symbol(r2, Decl(recursiveTypesUsedAsFunctionParameters.ts, 41, 7)) +>foo5 : Symbol(foo5, Decl(recursiveTypesUsedAsFunctionParameters.ts, 29, 36), Decl(recursiveTypesUsedAsFunctionParameters.ts, 32, 35), Decl(recursiveTypesUsedAsFunctionParameters.ts, 33, 41), Decl(recursiveTypesUsedAsFunctionParameters.ts, 34, 44)) +>myList : Symbol(myList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 38, 7)) +} diff --git a/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.types b/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.types new file mode 100644 index 00000000000..b800b2641fe --- /dev/null +++ b/tests/baselines/reference/recursiveTypesUsedAsFunctionParameters.types @@ -0,0 +1,157 @@ +=== tests/cases/conformance/types/typeRelationships/recursiveTypes/recursiveTypesUsedAsFunctionParameters.ts === +class List { +>List : List +>T : T + + data: T; +>data : T +>T : T + + next: List>; +>next : List> +>List : List +>List : List +>T : T +} + +class MyList { +>MyList : MyList +>T : T + + data: T; +>data : T +>T : T + + next: MyList>; +>next : MyList> +>MyList : MyList +>MyList : MyList +>T : T +} + +function foo(x: List); +>foo : { (x: List): any; (x: List): any; } +>T : T +>x : List +>List : List +>T : T + +function foo(x: List); // error, duplicate +>foo : { (x: List): any; (x: List): any; } +>U : U +>x : List +>List : List +>U : U + +function foo(x: List) { +>foo : { (x: List): any; (x: List): any; } +>T : T +>x : List +>List : List +>T : T +} + +function foo2(x: List); +>foo2 : { (x: List): any; (x: MyList): any; } +>T : T +>x : List +>List : List +>T : T + +function foo2(x: MyList); // ok, nominally compared with first overload +>foo2 : { (x: List): any; (x: MyList): any; } +>U : U +>x : MyList +>MyList : MyList +>U : U + +function foo2(x: any) { +>foo2 : { (x: List): any; (x: MyList): any; } +>T : T +>x : any +} + +function other, U>() { +>other : , U>() => void +>T : T +>List : List +>U : U +>U : U + + // error but wrong error + // BUG 838247 + function foo3(x: T); +>foo3 : (x: T) => any +>V : V +>x : T +>T : T + + function foo3(x: MyList) { } +>foo3 : (x: T) => any +>V : V +>x : MyList +>MyList : MyList +>V : V + + // should be error + // BUG 838247 + function foo4(x: T); +>foo4 : (x: T) => any +>V : V +>x : T +>T : T + + function foo4(x: List) { } +>foo4 : (x: T) => any +>V : V +>x : List +>List : List +>V : V + + // ok + function foo5(x: T): string; +>foo5 : { (x: T): string; (x: List): number; (x: MyList): boolean; } +>V : V +>x : T +>T : T + + function foo5(x: List): number; +>foo5 : { (x: T): string; (x: List): number; (x: MyList): boolean; } +>V : V +>x : List +>List : List +>V : V + + function foo5(x: MyList): boolean; +>foo5 : { (x: T): string; (x: List): number; (x: MyList): boolean; } +>V : V +>x : MyList +>MyList : MyList +>V : V + + function foo5(x: any): any { return null; } +>foo5 : { (x: T): string; (x: List): number; (x: MyList): boolean; } +>V : V +>x : any +>null : null + + var list: List; +>list : List +>List : List + + var myList: MyList; +>myList : MyList +>MyList : MyList + + var r = foo5(list); +>r : number +>foo5(list) : number +>foo5 : { (x: T): string; (x: List): number; (x: MyList): boolean; } +>list : List + + var r2 = foo5(myList); +>r2 : number +>foo5(myList) : number +>foo5 : { (x: T): string; (x: List): number; (x: MyList): boolean; } +>myList : MyList +} diff --git a/tests/baselines/reference/recursiveUnionTypeInference.js b/tests/baselines/reference/recursiveUnionTypeInference.js new file mode 100644 index 00000000000..580a6bf83e5 --- /dev/null +++ b/tests/baselines/reference/recursiveUnionTypeInference.js @@ -0,0 +1,14 @@ +//// [recursiveUnionTypeInference.ts] +interface Foo { + x: T; +} + +function bar(x: Foo | string): T { + return bar(x); +} + + +//// [recursiveUnionTypeInference.js] +function bar(x) { + return bar(x); +} diff --git a/tests/baselines/reference/recursiveUnionTypeInference.symbols b/tests/baselines/reference/recursiveUnionTypeInference.symbols new file mode 100644 index 00000000000..88233573941 --- /dev/null +++ b/tests/baselines/reference/recursiveUnionTypeInference.symbols @@ -0,0 +1,23 @@ +=== tests/cases/compiler/recursiveUnionTypeInference.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(recursiveUnionTypeInference.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveUnionTypeInference.ts, 0, 14)) + + x: T; +>x : Symbol(x, Decl(recursiveUnionTypeInference.ts, 0, 18)) +>T : Symbol(T, Decl(recursiveUnionTypeInference.ts, 0, 14)) +} + +function bar(x: Foo | string): T { +>bar : Symbol(bar, Decl(recursiveUnionTypeInference.ts, 2, 1)) +>T : Symbol(T, Decl(recursiveUnionTypeInference.ts, 4, 13)) +>x : Symbol(x, Decl(recursiveUnionTypeInference.ts, 4, 16)) +>Foo : Symbol(Foo, Decl(recursiveUnionTypeInference.ts, 0, 0)) +>T : Symbol(T, Decl(recursiveUnionTypeInference.ts, 4, 13)) +>T : Symbol(T, Decl(recursiveUnionTypeInference.ts, 4, 13)) + + return bar(x); +>bar : Symbol(bar, Decl(recursiveUnionTypeInference.ts, 2, 1)) +>x : Symbol(x, Decl(recursiveUnionTypeInference.ts, 4, 16)) +} + diff --git a/tests/baselines/reference/recursiveUnionTypeInference.types b/tests/baselines/reference/recursiveUnionTypeInference.types new file mode 100644 index 00000000000..e5d62a051a5 --- /dev/null +++ b/tests/baselines/reference/recursiveUnionTypeInference.types @@ -0,0 +1,24 @@ +=== tests/cases/compiler/recursiveUnionTypeInference.ts === +interface Foo { +>Foo : Foo +>T : T + + x: T; +>x : T +>T : T +} + +function bar(x: Foo | string): T { +>bar : (x: Foo | string) => T +>T : T +>x : Foo | string +>Foo : Foo +>T : T +>T : T + + return bar(x); +>bar(x) : T +>bar : (x: Foo | string) => T +>x : Foo | string +} + diff --git a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js index 48e8b1c4eba..92cc2f72cac 100644 --- a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js +++ b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js @@ -47,7 +47,7 @@ var MsPortal; function ItemValue(value) { } return ItemValue; - })(); + }()); ItemList.ItemValue = ItemValue; var ViewModel = (function (_super) { __extends(ViewModel, _super); @@ -55,7 +55,7 @@ var MsPortal; _super.apply(this, arguments); } return ViewModel; - })(ItemValue); + }(ItemValue)); ItemList.ViewModel = ViewModel; })(ItemList = Base.ItemList || (Base.ItemList = {})); })(Base = Controls.Base || (Controls.Base = {})); diff --git a/tests/baselines/reference/reexportClassDefinition.js b/tests/baselines/reference/reexportClassDefinition.js index 7c836e056e4..ab5279d1d47 100644 --- a/tests/baselines/reference/reexportClassDefinition.js +++ b/tests/baselines/reference/reexportClassDefinition.js @@ -23,7 +23,7 @@ var x = (function () { function x() { } return x; -})(); +}()); module.exports = x; //// [foo2.js] "use strict"; @@ -45,4 +45,4 @@ var x = (function (_super) { _super.apply(this, arguments); } return x; -})(foo2.x); +}(foo2.x)); diff --git a/tests/baselines/reference/relativePathToDeclarationFile.errors.txt b/tests/baselines/reference/relativePathToDeclarationFile.errors.txt index 041dd5c3a8f..0431c3a5bfa 100644 --- a/tests/baselines/reference/relativePathToDeclarationFile.errors.txt +++ b/tests/baselines/reference/relativePathToDeclarationFile.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/externalModules/test/foo.d.ts(1,23): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/externalModules/test/foo.d.ts(1,23): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/externalModules/test/file1.ts (0 errors) ==== @@ -13,7 +13,7 @@ tests/cases/conformance/externalModules/test/foo.d.ts(1,23): error TS1148: Canno ==== tests/cases/conformance/externalModules/test/foo.d.ts (1 errors) ==== export declare module M2 { ~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export var x: boolean; } diff --git a/tests/baselines/reference/requireEmitSemicolon.js b/tests/baselines/reference/requireEmitSemicolon.js index ea0b4243ff4..7ac73b6f3df 100644 --- a/tests/baselines/reference/requireEmitSemicolon.js +++ b/tests/baselines/reference/requireEmitSemicolon.js @@ -28,7 +28,7 @@ define(["require", "exports"], function (require, exports) { function Person(name) { } return Person; - })(); + }()); Models.Person = Person; })(Models = exports.Models || (exports.Models = {})); }); @@ -44,7 +44,7 @@ define(["require", "exports", "requireEmitSemicolon_0"], function (require, expo return new P.Models.Person("Rock"); }; return DB; - })(); + }()); Database.DB = DB; })(Database = exports.Database || (exports.Database = {})); }); diff --git a/tests/baselines/reference/requiredInitializedParameter2.js b/tests/baselines/reference/requiredInitializedParameter2.js index 3c69d54e1d9..b46a6edfeb0 100644 --- a/tests/baselines/reference/requiredInitializedParameter2.js +++ b/tests/baselines/reference/requiredInitializedParameter2.js @@ -15,4 +15,4 @@ var C1 = (function () { if (a === void 0) { a = 0; } }; return C1; -})(); +}()); diff --git a/tests/baselines/reference/requiredInitializedParameter3.js b/tests/baselines/reference/requiredInitializedParameter3.js index 68e1aa696ea..983955b79e8 100644 --- a/tests/baselines/reference/requiredInitializedParameter3.js +++ b/tests/baselines/reference/requiredInitializedParameter3.js @@ -15,7 +15,7 @@ var C1 = (function () { if (a === void 0) { a = 0; } }; return C1; -})(); +}()); //// [requiredInitializedParameter3.d.ts] diff --git a/tests/baselines/reference/requiredInitializedParameter4.js b/tests/baselines/reference/requiredInitializedParameter4.js index 3b23f119391..11abdc20f41 100644 --- a/tests/baselines/reference/requiredInitializedParameter4.js +++ b/tests/baselines/reference/requiredInitializedParameter4.js @@ -11,7 +11,7 @@ var C1 = (function () { if (a === void 0) { a = 0; } }; return C1; -})(); +}()); //// [requiredInitializedParameter4.d.ts] diff --git a/tests/baselines/reference/reservedWords2.errors.txt b/tests/baselines/reference/reservedWords2.errors.txt index d6e2d04073d..fa89df3af7a 100644 --- a/tests/baselines/reference/reservedWords2.errors.txt +++ b/tests/baselines/reference/reservedWords2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/reservedWords2.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/compiler/reservedWords2.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/compiler/reservedWords2.ts(1,8): error TS1109: Expression expected. tests/cases/compiler/reservedWords2.ts(1,14): error TS1005: '(' expected. tests/cases/compiler/reservedWords2.ts(1,16): error TS2304: Cannot find name 'require'. @@ -35,7 +35,7 @@ tests/cases/compiler/reservedWords2.ts(10,6): error TS1003: Identifier expected. ==== tests/cases/compiler/reservedWords2.ts (32 errors) ==== import while = require("dfdf"); ~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~ !!! error TS1109: Expression expected. ~ diff --git a/tests/baselines/reference/resolveTypeAliasWithSameLetDeclarationName1.js b/tests/baselines/reference/resolveTypeAliasWithSameLetDeclarationName1.js index ac73145ee50..7793fc6c650 100644 --- a/tests/baselines/reference/resolveTypeAliasWithSameLetDeclarationName1.js +++ b/tests/baselines/reference/resolveTypeAliasWithSameLetDeclarationName1.js @@ -9,5 +9,5 @@ var C = (function () { function C() { } return C; -})(); +}()); var baz; diff --git a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js index 3ba03a1e03c..6e621a18805 100644 --- a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js +++ b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js @@ -1063,7 +1063,7 @@ var rionegrensis; return x; }; return caniventer; - })(Lanthanum.nitidus); + }(Lanthanum.nitidus)); rionegrensis.caniventer = caniventer; var veraecrucis = (function (_super) { __extends(veraecrucis, _super); @@ -1101,7 +1101,7 @@ var rionegrensis; return x; }; return veraecrucis; - })(trivirgatus.mixtus); + }(trivirgatus.mixtus)); rionegrensis.veraecrucis = veraecrucis; })(rionegrensis || (rionegrensis = {})); var julianae; @@ -1110,7 +1110,7 @@ var julianae; function steerii() { } return steerii; - })(); + }()); julianae.steerii = steerii; var nudicaudus = (function () { function nudicaudus() { @@ -1146,7 +1146,7 @@ var julianae; return x; }; return nudicaudus; - })(); + }()); julianae.nudicaudus = nudicaudus; var galapagoensis = (function () { function galapagoensis() { @@ -1194,7 +1194,7 @@ var julianae; return x; }; return galapagoensis; - })(); + }()); julianae.galapagoensis = galapagoensis; var albidens = (function () { function albidens() { @@ -1242,7 +1242,7 @@ var julianae; return x; }; return albidens; - })(); + }()); julianae.albidens = albidens; var oralis = (function (_super) { __extends(oralis, _super); @@ -1328,7 +1328,7 @@ var julianae; return x; }; return oralis; - })(caurinus.psilurus); + }(caurinus.psilurus)); julianae.oralis = oralis; var sumatrana = (function (_super) { __extends(sumatrana, _super); @@ -1378,7 +1378,7 @@ var julianae; return x; }; return sumatrana; - })(Lanthanum.jugularis); + }(Lanthanum.jugularis)); julianae.sumatrana = sumatrana; var gerbillus = (function () { function gerbillus() { @@ -1450,7 +1450,7 @@ var julianae; return x; }; return gerbillus; - })(); + }()); julianae.gerbillus = gerbillus; var acariensis = (function () { function acariensis() { @@ -1528,7 +1528,7 @@ var julianae; return x; }; return acariensis; - })(); + }()); julianae.acariensis = acariensis; var durangae = (function (_super) { __extends(durangae, _super); @@ -1554,7 +1554,7 @@ var julianae; return x; }; return durangae; - })(dogramacii.aurata); + }(dogramacii.aurata)); julianae.durangae = durangae; })(julianae || (julianae = {})); var ruatanica; @@ -1575,7 +1575,7 @@ var ruatanica; return x; }; return hector; - })(); + }()); ruatanica.hector = hector; })(ruatanica || (ruatanica = {})); var Lanthanum; @@ -1602,7 +1602,7 @@ var Lanthanum; return x; }; return suillus; - })(); + }()); Lanthanum.suillus = suillus; var nitidus = (function (_super) { __extends(nitidus, _super); @@ -1670,7 +1670,7 @@ var Lanthanum; return x; }; return nitidus; - })(argurus.gilbertii); + }(argurus.gilbertii)); Lanthanum.nitidus = nitidus; var megalonyx = (function (_super) { __extends(megalonyx, _super); @@ -1726,7 +1726,7 @@ var Lanthanum; return x; }; return megalonyx; - })(caurinus.johorensis); + }(caurinus.johorensis)); Lanthanum.megalonyx = megalonyx; var jugularis = (function () { function jugularis() { @@ -1816,7 +1816,7 @@ var Lanthanum; return x; }; return jugularis; - })(); + }()); Lanthanum.jugularis = jugularis; })(Lanthanum || (Lanthanum = {})); var rendalli; @@ -1911,7 +1911,7 @@ var rendalli; return x; }; return zuluensis; - })(julianae.steerii); + }(julianae.steerii)); rendalli.zuluensis = zuluensis; var moojeni = (function () { function moojeni() { @@ -1977,7 +1977,7 @@ var rendalli; return x; }; return moojeni; - })(); + }()); rendalli.moojeni = moojeni; var crenulata = (function (_super) { __extends(crenulata, _super); @@ -2003,7 +2003,7 @@ var rendalli; return x; }; return crenulata; - })(trivirgatus.falconeri); + }(trivirgatus.falconeri)); rendalli.crenulata = crenulata; })(rendalli || (rendalli = {})); var trivirgatus; @@ -2060,7 +2060,7 @@ var trivirgatus; return x; }; return tumidifrons; - })(); + }()); trivirgatus.tumidifrons = tumidifrons; var mixtus = (function (_super) { __extends(mixtus, _super); @@ -2110,7 +2110,7 @@ var trivirgatus; return x; }; return mixtus; - })(argurus.pygmaea); + }(argurus.pygmaea)); trivirgatus.mixtus = mixtus; var lotor = (function () { function lotor() { @@ -2128,7 +2128,7 @@ var trivirgatus; return x; }; return lotor; - })(); + }()); trivirgatus.lotor = lotor; var falconeri = (function () { function falconeri() { @@ -2176,7 +2176,7 @@ var trivirgatus; return x; }; return falconeri; - })(); + }()); trivirgatus.falconeri = falconeri; var oconnelli = (function () { function oconnelli() { @@ -2266,7 +2266,7 @@ var trivirgatus; return x; }; return oconnelli; - })(); + }()); trivirgatus.oconnelli = oconnelli; })(trivirgatus || (trivirgatus = {})); var quasiater; @@ -2299,7 +2299,7 @@ var quasiater; return x; }; return bobrinskoi; - })(); + }()); quasiater.bobrinskoi = bobrinskoi; })(quasiater || (quasiater = {})); var ruatanica; @@ -2334,7 +2334,7 @@ var ruatanica; return x; }; return americanus; - })(imperfecta.ciliolabrum); + }(imperfecta.ciliolabrum)); ruatanica.americanus = americanus; })(ruatanica || (ruatanica = {})); var lavali; @@ -2423,13 +2423,13 @@ var lavali; return x; }; return wilsoni; - })(Lanthanum.nitidus); + }(Lanthanum.nitidus)); lavali.wilsoni = wilsoni; var beisa = (function () { function beisa() { } return beisa; - })(); + }()); lavali.beisa = beisa; var otion = (function (_super) { __extends(otion, _super); @@ -2515,7 +2515,7 @@ var lavali; return x; }; return otion; - })(howi.coludo); + }(howi.coludo)); lavali.otion = otion; var xanthognathus = (function () { function xanthognathus() { @@ -2593,7 +2593,7 @@ var lavali; return x; }; return xanthognathus; - })(); + }()); lavali.xanthognathus = xanthognathus; var thaeleri = (function (_super) { __extends(thaeleri, _super); @@ -2649,7 +2649,7 @@ var lavali; return x; }; return thaeleri; - })(argurus.oreas); + }(argurus.oreas)); lavali.thaeleri = thaeleri; var lepturus = (function (_super) { __extends(lepturus, _super); @@ -2669,7 +2669,7 @@ var lavali; return x; }; return lepturus; - })(Lanthanum.suillus); + }(Lanthanum.suillus)); lavali.lepturus = lepturus; })(lavali || (lavali = {})); var dogramacii; @@ -2734,7 +2734,7 @@ var dogramacii; return x; }; return robustulus; - })(lavali.wilsoni); + }(lavali.wilsoni)); dogramacii.robustulus = robustulus; var koepckeae = (function () { function koepckeae() { @@ -2746,7 +2746,7 @@ var dogramacii; return x; }; return koepckeae; - })(); + }()); dogramacii.koepckeae = koepckeae; var kaiseri = (function () { function kaiseri() { @@ -2830,7 +2830,7 @@ var dogramacii; return x; }; return kaiseri; - })(); + }()); dogramacii.kaiseri = kaiseri; var aurata = (function () { function aurata() { @@ -2884,7 +2884,7 @@ var dogramacii; return x; }; return aurata; - })(); + }()); dogramacii.aurata = aurata; })(dogramacii || (dogramacii = {})); var lutreolus; @@ -2979,7 +2979,7 @@ var lutreolus; return x; }; return schlegeli; - })(lavali.beisa); + }(lavali.beisa)); lutreolus.schlegeli = schlegeli; })(lutreolus || (lutreolus = {})); var argurus; @@ -3054,7 +3054,7 @@ var argurus; return x; }; return dauricus; - })(); + }()); argurus.dauricus = dauricus; })(argurus || (argurus = {})); var nigra; @@ -3111,7 +3111,7 @@ var nigra; return x; }; return dolichurus; - })(); + }()); nigra.dolichurus = dolichurus; })(nigra || (nigra = {})); var panglima; @@ -3158,7 +3158,7 @@ var panglima; return x; }; return amphibius; - })(caurinus.johorensis); + }(caurinus.johorensis)); panglima.amphibius = amphibius; var fundatus = (function (_super) { __extends(fundatus, _super); @@ -3184,7 +3184,7 @@ var panglima; return x; }; return fundatus; - })(lutreolus.schlegeli); + }(lutreolus.schlegeli)); panglima.fundatus = fundatus; var abidi = (function (_super) { __extends(abidi, _super); @@ -3222,7 +3222,7 @@ var panglima; return x; }; return abidi; - })(argurus.dauricus); + }(argurus.dauricus)); panglima.abidi = abidi; })(panglima || (panglima = {})); var quasiater; @@ -3273,7 +3273,7 @@ var quasiater; return x; }; return carolinensis; - })(); + }()); quasiater.carolinensis = carolinensis; })(quasiater || (quasiater = {})); var minutus; @@ -3356,7 +3356,7 @@ var minutus; return x; }; return himalayana; - })(lutreolus.punicus); + }(lutreolus.punicus)); minutus.himalayana = himalayana; })(minutus || (minutus = {})); var caurinus; @@ -3415,7 +3415,7 @@ var caurinus; return x; }; return mahaganus; - })(panglima.fundatus); + }(panglima.fundatus)); caurinus.mahaganus = mahaganus; })(caurinus || (caurinus = {})); var macrorhinos; @@ -3430,7 +3430,7 @@ var macrorhinos; return x; }; return marmosurus; - })(); + }()); macrorhinos.marmosurus = marmosurus; })(macrorhinos || (macrorhinos = {})); var howi; @@ -3447,7 +3447,7 @@ var howi; return x; }; return angulatus; - })(sagitta.stolzmanni); + }(sagitta.stolzmanni)); howi.angulatus = angulatus; })(howi || (howi = {})); var daubentonii; @@ -3456,7 +3456,7 @@ var daubentonii; function nesiotes() { } return nesiotes; - })(); + }()); daubentonii.nesiotes = nesiotes; })(daubentonii || (daubentonii = {})); var nigra; @@ -3513,7 +3513,7 @@ var nigra; return x; }; return thalia; - })(); + }()); nigra.thalia = thalia; })(nigra || (nigra = {})); var sagitta; @@ -3530,7 +3530,7 @@ var sagitta; return x; }; return walkeri; - })(minutus.portoricensis); + }(minutus.portoricensis)); sagitta.walkeri = walkeri; })(sagitta || (sagitta = {})); var minutus; @@ -3547,7 +3547,7 @@ var minutus; return x; }; return inez; - })(samarensis.pelurus); + }(samarensis.pelurus)); minutus.inez = inez; })(minutus || (minutus = {})); var macrorhinos; @@ -3558,7 +3558,7 @@ var macrorhinos; _super.apply(this, arguments); } return konganensis; - })(imperfecta.lasiurus); + }(imperfecta.lasiurus)); macrorhinos.konganensis = konganensis; })(macrorhinos || (macrorhinos = {})); var panamensis; @@ -3623,7 +3623,7 @@ var panamensis; return x; }; return linulus; - })(ruatanica.hector); + }(ruatanica.hector)); panamensis.linulus = linulus; })(panamensis || (panamensis = {})); var nigra; @@ -3710,7 +3710,7 @@ var nigra; return x; }; return gracilis; - })(); + }()); nigra.gracilis = gracilis; })(nigra || (nigra = {})); var samarensis; @@ -3799,7 +3799,7 @@ var samarensis; return x; }; return pelurus; - })(sagitta.stolzmanni); + }(sagitta.stolzmanni)); samarensis.pelurus = pelurus; var fuscus = (function (_super) { __extends(fuscus, _super); @@ -3891,7 +3891,7 @@ var samarensis; return x; }; return fuscus; - })(macrorhinos.daphaenodon); + }(macrorhinos.daphaenodon)); samarensis.fuscus = fuscus; var pallidus = (function () { function pallidus() { @@ -3921,7 +3921,7 @@ var samarensis; return x; }; return pallidus; - })(); + }()); samarensis.pallidus = pallidus; var cahirinus = (function () { function cahirinus() { @@ -3957,7 +3957,7 @@ var samarensis; return x; }; return cahirinus; - })(); + }()); samarensis.cahirinus = cahirinus; })(samarensis || (samarensis = {})); var sagitta; @@ -3998,7 +3998,7 @@ var sagitta; return x; }; return leptoceros; - })(caurinus.johorensis); + }(caurinus.johorensis)); sagitta.leptoceros = leptoceros; })(sagitta || (sagitta = {})); var daubentonii; @@ -4015,7 +4015,7 @@ var daubentonii; return x; }; return nigricans; - })(sagitta.stolzmanni); + }(sagitta.stolzmanni)); daubentonii.nigricans = nigricans; })(daubentonii || (daubentonii = {})); var dammermani; @@ -4024,7 +4024,7 @@ var dammermani; function siberu() { } return siberu; - })(); + }()); dammermani.siberu = siberu; })(dammermani || (dammermani = {})); var argurus; @@ -4053,7 +4053,7 @@ var argurus; return x; }; return pygmaea; - })(rendalli.moojeni); + }(rendalli.moojeni)); argurus.pygmaea = pygmaea; })(argurus || (argurus = {})); var chrysaeolus; @@ -4106,7 +4106,7 @@ var chrysaeolus; return x; }; return sarasinorum; - })(caurinus.psilurus); + }(caurinus.psilurus)); chrysaeolus.sarasinorum = sarasinorum; })(chrysaeolus || (chrysaeolus = {})); var argurus; @@ -4157,7 +4157,7 @@ var argurus; return x; }; return wetmorei; - })(); + }()); argurus.wetmorei = wetmorei; })(argurus || (argurus = {})); var argurus; @@ -4216,7 +4216,7 @@ var argurus; return x; }; return oreas; - })(lavali.wilsoni); + }(lavali.wilsoni)); argurus.oreas = oreas; })(argurus || (argurus = {})); var daubentonii; @@ -4297,7 +4297,7 @@ var daubentonii; return x; }; return arboreus; - })(); + }()); daubentonii.arboreus = arboreus; })(daubentonii || (daubentonii = {})); var patas; @@ -4384,7 +4384,7 @@ var patas; return x; }; return uralensis; - })(); + }()); patas.uralensis = uralensis; })(patas || (patas = {})); var provocax; @@ -4407,7 +4407,7 @@ var provocax; return x; }; return melanoleuca; - })(lavali.wilsoni); + }(lavali.wilsoni)); provocax.melanoleuca = melanoleuca; })(provocax || (provocax = {})); var sagitta; @@ -4428,7 +4428,7 @@ var sagitta; return x; }; return sicarius; - })(); + }()); sagitta.sicarius = sicarius; })(sagitta || (sagitta = {})); var howi; @@ -4523,7 +4523,7 @@ var howi; return x; }; return marcanoi; - })(Lanthanum.megalonyx); + }(Lanthanum.megalonyx)); howi.marcanoi = marcanoi; })(howi || (howi = {})); var argurus; @@ -4604,7 +4604,7 @@ var argurus; return x; }; return gilbertii; - })(); + }()); argurus.gilbertii = gilbertii; })(argurus || (argurus = {})); var petrophilus; @@ -4613,7 +4613,7 @@ var petrophilus; function minutilla() { } return minutilla; - })(); + }()); petrophilus.minutilla = minutilla; })(petrophilus || (petrophilus = {})); var lutreolus; @@ -4700,7 +4700,7 @@ var lutreolus; return x; }; return punicus; - })(); + }()); lutreolus.punicus = punicus; })(lutreolus || (lutreolus = {})); var macrorhinos; @@ -4745,7 +4745,7 @@ var macrorhinos; return x; }; return daphaenodon; - })(); + }()); macrorhinos.daphaenodon = daphaenodon; })(macrorhinos || (macrorhinos = {})); var sagitta; @@ -4826,7 +4826,7 @@ var sagitta; return x; }; return cinereus; - })(); + }()); sagitta.cinereus = cinereus; })(sagitta || (sagitta = {})); var nigra; @@ -4835,7 +4835,7 @@ var nigra; function caucasica() { } return caucasica; - })(); + }()); nigra.caucasica = caucasica; })(nigra || (nigra = {})); var gabriellae; @@ -4846,7 +4846,7 @@ var gabriellae; _super.apply(this, arguments); } return klossii; - })(imperfecta.lasiurus); + }(imperfecta.lasiurus)); gabriellae.klossii = klossii; var amicus = (function () { function amicus() { @@ -4912,7 +4912,7 @@ var gabriellae; return x; }; return amicus; - })(); + }()); gabriellae.amicus = amicus; var echinatus = (function () { function echinatus() { @@ -4924,7 +4924,7 @@ var gabriellae; return x; }; return echinatus; - })(); + }()); gabriellae.echinatus = echinatus; })(gabriellae || (gabriellae = {})); var imperfecta; @@ -4969,7 +4969,7 @@ var imperfecta; return x; }; return lasiurus; - })(); + }()); imperfecta.lasiurus = lasiurus; var subspinosus = (function () { function subspinosus() { @@ -5041,7 +5041,7 @@ var imperfecta; return x; }; return subspinosus; - })(); + }()); imperfecta.subspinosus = subspinosus; var ciliolabrum = (function (_super) { __extends(ciliolabrum, _super); @@ -5067,7 +5067,7 @@ var imperfecta; return x; }; return ciliolabrum; - })(dogramacii.robustulus); + }(dogramacii.robustulus)); imperfecta.ciliolabrum = ciliolabrum; })(imperfecta || (imperfecta = {})); var quasiater; @@ -5100,7 +5100,7 @@ var quasiater; return x; }; return wattsi; - })(); + }()); quasiater.wattsi = wattsi; })(quasiater || (quasiater = {})); var petrophilus; @@ -5165,7 +5165,7 @@ var petrophilus; return x; }; return sodyi; - })(quasiater.bobrinskoi); + }(quasiater.bobrinskoi)); petrophilus.sodyi = sodyi; })(petrophilus || (petrophilus = {})); var caurinus; @@ -5224,7 +5224,7 @@ var caurinus; return x; }; return megaphyllus; - })(imperfecta.lasiurus); + }(imperfecta.lasiurus)); caurinus.megaphyllus = megaphyllus; })(caurinus || (caurinus = {})); var minutus; @@ -5251,7 +5251,7 @@ var minutus; return x; }; return portoricensis; - })(); + }()); minutus.portoricensis = portoricensis; })(minutus || (minutus = {})); var lutreolus; @@ -5338,7 +5338,7 @@ var lutreolus; return x; }; return foina; - })(); + }()); lutreolus.foina = foina; })(lutreolus || (lutreolus = {})); var lutreolus; @@ -5409,7 +5409,7 @@ var lutreolus; return x; }; return cor; - })(panglima.fundatus); + }(panglima.fundatus)); lutreolus.cor = cor; })(lutreolus || (lutreolus = {})); var howi; @@ -5430,7 +5430,7 @@ var howi; return x; }; return coludo; - })(); + }()); howi.coludo = coludo; })(howi || (howi = {})); var argurus; @@ -5453,7 +5453,7 @@ var argurus; return x; }; return germaini; - })(gabriellae.amicus); + }(gabriellae.amicus)); argurus.germaini = germaini; })(argurus || (argurus = {})); var sagitta; @@ -5528,7 +5528,7 @@ var sagitta; return x; }; return stolzmanni; - })(); + }()); sagitta.stolzmanni = stolzmanni; })(sagitta || (sagitta = {})); var dammermani; @@ -5617,7 +5617,7 @@ var dammermani; return x; }; return melanops; - })(minutus.inez); + }(minutus.inez)); dammermani.melanops = melanops; })(dammermani || (dammermani = {})); var argurus; @@ -5676,7 +5676,7 @@ var argurus; return x; }; return peninsulae; - })(patas.uralensis); + }(patas.uralensis)); argurus.peninsulae = peninsulae; })(argurus || (argurus = {})); var argurus; @@ -5763,7 +5763,7 @@ var argurus; return x; }; return netscheri; - })(); + }()); argurus.netscheri = netscheri; })(argurus || (argurus = {})); var ruatanica; @@ -5852,7 +5852,7 @@ var ruatanica; return x; }; return Praseodymium; - })(ruatanica.hector); + }(ruatanica.hector)); ruatanica.Praseodymium = Praseodymium; })(ruatanica || (ruatanica = {})); var caurinus; @@ -5869,7 +5869,7 @@ var caurinus; return x; }; return johorensis; - })(lutreolus.punicus); + }(lutreolus.punicus)); caurinus.johorensis = johorensis; })(caurinus || (caurinus = {})); var argurus; @@ -5884,7 +5884,7 @@ var argurus; return x; }; return luctuosa; - })(); + }()); argurus.luctuosa = luctuosa; })(argurus || (argurus = {})); var panamensis; @@ -5941,7 +5941,7 @@ var panamensis; return x; }; return setulosus; - })(); + }()); panamensis.setulosus = setulosus; })(panamensis || (panamensis = {})); var petrophilus; @@ -5980,7 +5980,7 @@ var petrophilus; return x; }; return rosalia; - })(); + }()); petrophilus.rosalia = rosalia; })(petrophilus || (petrophilus = {})); var caurinus; @@ -6027,7 +6027,7 @@ var caurinus; return x; }; return psilurus; - })(lutreolus.punicus); + }(lutreolus.punicus)); caurinus.psilurus = psilurus; })(caurinus || (caurinus = {})); diff --git a/tests/baselines/reference/restParamModifier.js b/tests/baselines/reference/restParamModifier.js index 9a780321dc9..3e0f7f7878a 100644 --- a/tests/baselines/reference/restParamModifier.js +++ b/tests/baselines/reference/restParamModifier.js @@ -9,4 +9,4 @@ var C = (function () { if (string === void 0) { string = []; } } return C; -})(); +}()); diff --git a/tests/baselines/reference/restParamModifier2.js b/tests/baselines/reference/restParamModifier2.js index c588c945ce4..ac8376319b3 100644 --- a/tests/baselines/reference/restParamModifier2.js +++ b/tests/baselines/reference/restParamModifier2.js @@ -12,4 +12,4 @@ var C = (function () { } } return C; -})(); +}()); diff --git a/tests/baselines/reference/restParameterAssignmentCompatibility.js b/tests/baselines/reference/restParameterAssignmentCompatibility.js index 62c0204c749..0821cf18277 100644 --- a/tests/baselines/reference/restParameterAssignmentCompatibility.js +++ b/tests/baselines/reference/restParameterAssignmentCompatibility.js @@ -37,14 +37,14 @@ var T = (function () { } }; return T; -})(); +}()); var S = (function () { function S() { } S.prototype.m = function (p1, p2) { }; return S; -})(); +}()); var t; var s; // M is a non - specialized call or construct signature and S' contains a call or construct signature N where, @@ -56,7 +56,7 @@ var T1 = (function () { T1.prototype.m = function (p1, p2) { }; return T1; -})(); +}()); var t1; // When comparing call or construct signatures, parameter names are ignored and rest parameters correspond to an unbounded expansion of optional parameters of the rest parameter element type. t1 = s; // Similar to above, but optionality does not matter here. diff --git a/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js b/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js index c800c628c9c..26774b6c2f2 100644 --- a/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js +++ b/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js @@ -56,7 +56,7 @@ var C = (function () { } }; return C; -})(); +}()); var a; var b = { foo: function () { diff --git a/tests/baselines/reference/restParametersOfNonArrayTypes.js b/tests/baselines/reference/restParametersOfNonArrayTypes.js index f6f6a8af44d..d6235194b30 100644 --- a/tests/baselines/reference/restParametersOfNonArrayTypes.js +++ b/tests/baselines/reference/restParametersOfNonArrayTypes.js @@ -55,7 +55,7 @@ var C = (function () { } }; return C; -})(); +}()); var a; var b = { foo: function () { diff --git a/tests/baselines/reference/restParametersOfNonArrayTypes2.js b/tests/baselines/reference/restParametersOfNonArrayTypes2.js index 73d0ddaeef2..598c8f2fe3d 100644 --- a/tests/baselines/reference/restParametersOfNonArrayTypes2.js +++ b/tests/baselines/reference/restParametersOfNonArrayTypes2.js @@ -87,7 +87,7 @@ var C = (function () { } }; return C; -})(); +}()); var a; var b = { foo: function () { @@ -137,7 +137,7 @@ var C2 = (function () { } }; return C2; -})(); +}()); var a2; var b2 = { foo: function () { diff --git a/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js b/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js index c7d1dee9295..11208f1fb83 100644 --- a/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js +++ b/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js @@ -82,7 +82,7 @@ var C = (function () { } }; return C; -})(); +}()); var a; var b = { foo: function () { @@ -132,7 +132,7 @@ var C2 = (function () { } }; return C2; -})(); +}()); var a2; var b2 = { foo: function () { diff --git a/tests/baselines/reference/returnInConstructor1.js b/tests/baselines/reference/returnInConstructor1.js index e8781f06d24..fab0fe8fe09 100644 --- a/tests/baselines/reference/returnInConstructor1.js +++ b/tests/baselines/reference/returnInConstructor1.js @@ -78,40 +78,40 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function () { function B() { return 1; // error } B.prototype.foo = function () { }; return B; -})(); +}()); var C = (function () { function C() { return this; } C.prototype.foo = function () { }; return C; -})(); +}()); var D = (function () { function D() { return "test"; // error } D.prototype.foo = function () { }; return D; -})(); +}()); var E = (function () { function E() { return { foo: 1 }; } return E; -})(); +}()); var F = (function () { function F() { return { foo: 1 }; //error } return F; -})(); +}()); var G = (function () { function G() { this.test = 2; @@ -119,7 +119,7 @@ var G = (function () { G.prototype.test1 = function () { }; G.prototype.foo = function () { }; return G; -})(); +}()); var H = (function (_super) { __extends(H, _super); function H() { @@ -127,7 +127,7 @@ var H = (function (_super) { return new G(); //error } return H; -})(F); +}(F)); var I = (function (_super) { __extends(I, _super); function I() { @@ -135,4 +135,4 @@ var I = (function (_super) { return new G(); } return I; -})(G); +}(G)); diff --git a/tests/baselines/reference/returnStatements.js b/tests/baselines/reference/returnStatements.js index 956efc5f077..a543ad3bdda 100644 --- a/tests/baselines/reference/returnStatements.js +++ b/tests/baselines/reference/returnStatements.js @@ -44,14 +44,14 @@ var C = (function () { } C.prototype.dispose = function () { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); function fn10() { return { id: 12 }; } function fn11() { return new C(); } function fn12() { return new D(); } diff --git a/tests/baselines/reference/returnTypeTypeArguments.js b/tests/baselines/reference/returnTypeTypeArguments.js index b374cb1c581..ade97159091 100644 --- a/tests/baselines/reference/returnTypeTypeArguments.js +++ b/tests/baselines/reference/returnTypeTypeArguments.js @@ -81,17 +81,17 @@ var One = (function () { function One() { } return One; -})(); +}()); var Two = (function () { function Two() { } return Two; -})(); +}()); var Three = (function () { function Three() { } return Three; -})(); +}()); function A1() { return null; } function A2() { return null; } function A3() { return null; } @@ -108,7 +108,7 @@ var C = (function () { C.prototype.B2 = function () { return null; }; C.prototype.B3 = function () { return null; }; return C; -})(); +}()); var D = (function () { function D() { } @@ -118,14 +118,14 @@ var D = (function () { D.prototype.B2 = function () { return null; }; D.prototype.B3 = function () { return null; }; return D; -})(); +}()); var Y = (function () { function Y() { } return Y; -})(); +}()); var X = (function () { function X() { } return X; -})(); +}()); diff --git a/tests/baselines/reference/returnValueInSetter.js b/tests/baselines/reference/returnValueInSetter.js index 6774bab6c4e..86a52670ac5 100644 --- a/tests/baselines/reference/returnValueInSetter.js +++ b/tests/baselines/reference/returnValueInSetter.js @@ -19,4 +19,4 @@ var f = (function () { configurable: true }); return f; -})(); +}()); diff --git a/tests/baselines/reference/scannerClass2.errors.txt b/tests/baselines/reference/scannerClass2.errors.txt index 74b62602dad..d808f6fdd59 100644 --- a/tests/baselines/reference/scannerClass2.errors.txt +++ b/tests/baselines/reference/scannerClass2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/scanner/ecmascript5/scannerClass2.ts(3,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/scanner/ecmascript5/scannerClass2.ts(3,18): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. tests/cases/conformance/scanner/ecmascript5/scannerClass2.ts(3,43): error TS2304: Cannot find name 'ILogger'. tests/cases/conformance/scanner/ecmascript5/scannerClass2.ts(4,37): error TS2304: Cannot find name 'ILogger'. tests/cases/conformance/scanner/ecmascript5/scannerClass2.ts(5,18): error TS2339: Property '_information' does not exist on type 'LoggerAdapter'. @@ -9,7 +9,7 @@ tests/cases/conformance/scanner/ecmascript5/scannerClass2.ts(5,18): error TS2339 export class LoggerAdapter implements ILogger { ~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ~~~~~~~ !!! error TS2304: Cannot find name 'ILogger'. constructor (public logger: ILogger) { diff --git a/tests/baselines/reference/scannerClass2.js b/tests/baselines/reference/scannerClass2.js index 0838df4d19f..640f0952bb9 100644 --- a/tests/baselines/reference/scannerClass2.js +++ b/tests/baselines/reference/scannerClass2.js @@ -15,5 +15,5 @@ var LoggerAdapter = (function () { this._information = this.logger.information(); } return LoggerAdapter; -})(); +}()); exports.LoggerAdapter = LoggerAdapter; diff --git a/tests/baselines/reference/scannerEnum1.errors.txt b/tests/baselines/reference/scannerEnum1.errors.txt index 64d7508980f..d0bbf16743c 100644 --- a/tests/baselines/reference/scannerEnum1.errors.txt +++ b/tests/baselines/reference/scannerEnum1.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/scanner/ecmascript5/scannerEnum1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/scanner/ecmascript5/scannerEnum1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/scanner/ecmascript5/scannerEnum1.ts (1 errors) ==== export enum CodeGenTarget { ~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ES3 = 0, ES5 = 1, } \ No newline at end of file diff --git a/tests/baselines/reference/scannertest1.js b/tests/baselines/reference/scannertest1.js index b96c965a79e..2eb71157476 100644 --- a/tests/baselines/reference/scannertest1.js +++ b/tests/baselines/reference/scannertest1.js @@ -46,4 +46,4 @@ var CharacterInfo = (function () { : c - CharacterCodes.a + 10; }; return CharacterInfo; -})(); +}()); diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js index 1a5fc7d9b3e..3833a5caf7a 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js @@ -18,7 +18,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -30,4 +30,4 @@ var D = (function (_super) { s = 1; }; return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js index 2844897bdd9..d5de584e779 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js @@ -18,7 +18,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -30,4 +30,4 @@ var D = (function (_super) { s = 1; }; return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/scopeCheckInsidePublicMethod1.js b/tests/baselines/reference/scopeCheckInsidePublicMethod1.js index b554cb1a0de..46ee1fc719d 100644 --- a/tests/baselines/reference/scopeCheckInsidePublicMethod1.js +++ b/tests/baselines/reference/scopeCheckInsidePublicMethod1.js @@ -14,4 +14,4 @@ var C = (function () { s = 1; // ERR }; return C; -})(); +}()); diff --git a/tests/baselines/reference/scopeCheckInsideStaticMethod1.js b/tests/baselines/reference/scopeCheckInsideStaticMethod1.js index 0eb8349c740..138c9daa483 100644 --- a/tests/baselines/reference/scopeCheckInsideStaticMethod1.js +++ b/tests/baselines/reference/scopeCheckInsideStaticMethod1.js @@ -20,4 +20,4 @@ var C = (function () { this.p = 1; // ERR }; return C; -})(); +}()); diff --git a/tests/baselines/reference/scopeResolutionIdentifiers.js b/tests/baselines/reference/scopeResolutionIdentifiers.js index 42a1e684015..ca45a95239e 100644 --- a/tests/baselines/reference/scopeResolutionIdentifiers.js +++ b/tests/baselines/reference/scopeResolutionIdentifiers.js @@ -66,7 +66,7 @@ var C = (function () { var p; }; return C; -})(); +}()); var M3; (function (M3) { var s; diff --git a/tests/baselines/reference/scopeTests.js b/tests/baselines/reference/scopeTests.js index b104f63f74c..833e84ee5f3 100644 --- a/tests/baselines/reference/scopeTests.js +++ b/tests/baselines/reference/scopeTests.js @@ -21,7 +21,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -31,4 +31,4 @@ var D = (function (_super) { C.s = 1; } return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/selfInCallback.js b/tests/baselines/reference/selfInCallback.js index 25228b03187..a0b363ae081 100644 --- a/tests/baselines/reference/selfInCallback.js +++ b/tests/baselines/reference/selfInCallback.js @@ -18,4 +18,4 @@ var C = (function () { this.callback(function () { _this.p1 + 1; }); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/selfInLambdas.js b/tests/baselines/reference/selfInLambdas.js index 6b09cf2e227..b143c0c9e4e 100644 --- a/tests/baselines/reference/selfInLambdas.js +++ b/tests/baselines/reference/selfInLambdas.js @@ -73,4 +73,4 @@ var X = (function () { outer(); }; return X; -})(); +}()); diff --git a/tests/baselines/reference/selfRef.js b/tests/baselines/reference/selfRef.js index 171b1efa977..7f13e04cef1 100644 --- a/tests/baselines/reference/selfRef.js +++ b/tests/baselines/reference/selfRef.js @@ -34,6 +34,6 @@ var M; }; } return Test; - })(); + }()); M.Test = Test; })(M || (M = {})); diff --git a/tests/baselines/reference/selfReferencesInFunctionParameters.js b/tests/baselines/reference/selfReferencesInFunctionParameters.js index c707fc0116b..5dd662cf169 100644 --- a/tests/baselines/reference/selfReferencesInFunctionParameters.js +++ b/tests/baselines/reference/selfReferencesInFunctionParameters.js @@ -31,4 +31,4 @@ var C = (function () { if (b === void 0) { b = b.toString(); } }; return C; -})(); +}()); diff --git a/tests/baselines/reference/selfReferencingFile.js b/tests/baselines/reference/selfReferencingFile.js index c77a6b88429..82b706c55e6 100644 --- a/tests/baselines/reference/selfReferencingFile.js +++ b/tests/baselines/reference/selfReferencingFile.js @@ -11,4 +11,4 @@ var selfReferencingFile = (function () { function selfReferencingFile() { } return selfReferencingFile; -})(); +}()); diff --git a/tests/baselines/reference/selfReferencingFile2.js b/tests/baselines/reference/selfReferencingFile2.js index 57e67e2c51a..a14f9e1e870 100644 --- a/tests/baselines/reference/selfReferencingFile2.js +++ b/tests/baselines/reference/selfReferencingFile2.js @@ -11,4 +11,4 @@ var selfReferencingFile2 = (function () { function selfReferencingFile2() { } return selfReferencingFile2; -})(); +}()); diff --git a/tests/baselines/reference/selfReferencingFile3.js b/tests/baselines/reference/selfReferencingFile3.js index 5dfee00e6b6..08db051ec18 100644 --- a/tests/baselines/reference/selfReferencingFile3.js +++ b/tests/baselines/reference/selfReferencingFile3.js @@ -11,4 +11,4 @@ var selfReferencingFile3 = (function () { function selfReferencingFile3() { } return selfReferencingFile3; -})(); +}()); diff --git a/tests/baselines/reference/setterBeforeGetter.js b/tests/baselines/reference/setterBeforeGetter.js index c897198c2dd..d5200a4eb4d 100644 --- a/tests/baselines/reference/setterBeforeGetter.js +++ b/tests/baselines/reference/setterBeforeGetter.js @@ -28,4 +28,4 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); diff --git a/tests/baselines/reference/setterWithReturn.js b/tests/baselines/reference/setterWithReturn.js index 995cde87509..b7fa5c67f8e 100644 --- a/tests/baselines/reference/setterWithReturn.js +++ b/tests/baselines/reference/setterWithReturn.js @@ -27,4 +27,4 @@ var C234 = (function () { configurable: true }); return C234; -})(); +}()); diff --git a/tests/baselines/reference/shadowPrivateMembers.js b/tests/baselines/reference/shadowPrivateMembers.js index e2ac679e7eb..a1474a24777 100644 --- a/tests/baselines/reference/shadowPrivateMembers.js +++ b/tests/baselines/reference/shadowPrivateMembers.js @@ -14,7 +14,7 @@ var base = (function () { } base.prototype.n = function () { }; return base; -})(); +}()); var derived = (function (_super) { __extends(derived, _super); function derived() { @@ -22,4 +22,4 @@ var derived = (function (_super) { } derived.prototype.n = function () { }; return derived; -})(base); +}(base)); diff --git a/tests/baselines/reference/shadowedInternalModule.js b/tests/baselines/reference/shadowedInternalModule.js index 3a7c6d4d61a..d2566976092 100644 --- a/tests/baselines/reference/shadowedInternalModule.js +++ b/tests/baselines/reference/shadowedInternalModule.js @@ -49,7 +49,7 @@ var X; function Y() { } return Y; - })(); + }()); X.Y = Y; })(X || (X = {})); var Z; diff --git a/tests/baselines/reference/shebangBeforeReferences.js b/tests/baselines/reference/shebangBeforeReferences.js index 6be2707277d..6c3e1420c4a 100644 --- a/tests/baselines/reference/shebangBeforeReferences.js +++ b/tests/baselines/reference/shebangBeforeReferences.js @@ -16,6 +16,7 @@ import {x} from "test"; use(x); //// [f.js] -#!/usr/bin/env node"use strict"; +#!/usr/bin/env node +"use strict"; var test_1 = require("test"); use(test_1.x); diff --git a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js index 3d718e84e95..39b67f9026d 100644 --- a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js +++ b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js @@ -16,4 +16,4 @@ var CacheService = (function () { return undefined; }; return CacheService; -})(); +}()); diff --git a/tests/baselines/reference/sourceMap-Comments.js b/tests/baselines/reference/sourceMap-Comments.js index 12a4e5010dd..e8177d5752c 100644 --- a/tests/baselines/reference/sourceMap-Comments.js +++ b/tests/baselines/reference/sourceMap-Comments.js @@ -43,7 +43,7 @@ var sas; } }; return Test; - })(); + }()); tools.Test = Test; })(tools = sas.tools || (sas.tools = {})); })(sas || (sas = {})); diff --git a/tests/baselines/reference/sourceMap-Comments.js.map b/tests/baselines/reference/sourceMap-Comments.js.map index 6e5e0dca071..7f6c159c6eb 100644 --- a/tests/baselines/reference/sourceMap-Comments.js.map +++ b/tests/baselines/reference/sourceMap-Comments.js.map @@ -1,2 +1,2 @@ //// [sourceMap-Comments.js.map] -{"version":3,"file":"sourceMap-Comments.js","sourceRoot":"","sources":["sourceMap-Comments.ts"],"names":["sas","sas.tools","sas.tools.Test","sas.tools.Test.constructor","sas.tools.Test.doX"],"mappings":"AAAA,IAAO,GAAG,CAkBT;AAlBD,WAAO,GAAG;IAACA,IAAAA,KAAKA,CAkBfA;IAlBUA,WAAAA,KAAKA,EAACA,CAACA;QACdC;YAAAC;YAeAC,CAACA;YAdUD,kBAAGA,GAAVA;gBACIE,IAAIA,CAACA,GAAWA,CAACA,CAACA;gBAClBA,MAAMA,CAACA,CAACA,CAACA,CAACA,CAACA,CAACA;oBACRA,KAAKA,CAACA;wBACFA,KAAKA,CAACA;oBACVA,KAAKA,CAACA;wBACFA,gBAAgBA;wBAChBA,gBAAgBA;wBAChBA,KAAKA,CAACA;oBACVA,KAAKA,CAACA;wBACFA,WAAWA;wBACXA,KAAKA,CAACA;gBACdA,CAACA;YACLA,CAACA;YACLF,WAACA;QAADA,CAACA,AAfDD,IAeCA;QAfYA,UAAIA,OAehBA,CAAAA;IAELA,CAACA,EAlBUD,KAAKA,GAALA,SAAKA,KAALA,SAAKA,QAkBfA;AAADA,CAACA,EAlBM,GAAG,KAAH,GAAG,QAkBT"} \ No newline at end of file +{"version":3,"file":"sourceMap-Comments.js","sourceRoot":"","sources":["sourceMap-Comments.ts"],"names":[],"mappings":"AAAA,IAAO,GAAG,CAkBT;AAlBD,WAAO,GAAG;IAAC,IAAA,KAAK,CAkBf;IAlBU,WAAA,KAAK,EAAC,CAAC;QACd;YAAA;YAeA,CAAC;YAdU,kBAAG,GAAV;gBACI,IAAI,CAAC,GAAW,CAAC,CAAC;gBAClB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACR,KAAK,CAAC;wBACF,KAAK,CAAC;oBACV,KAAK,CAAC;wBACF,gBAAgB;wBAChB,gBAAgB;wBAChB,KAAK,CAAC;oBACV,KAAK,CAAC;wBACF,WAAW;wBACX,KAAK,CAAC;gBACd,CAAC;YACL,CAAC;YACL,WAAC;QAAD,CAAC,AAfD,IAeC;QAfY,UAAI,OAehB,CAAA;IAEL,CAAC,EAlBU,KAAK,GAAL,SAAK,KAAL,SAAK,QAkBf;AAAD,CAAC,EAlBM,GAAG,KAAH,GAAG,QAkBT"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comments.sourcemap.txt b/tests/baselines/reference/sourceMap-Comments.sourcemap.txt index fe0b9276994..29726c68d9a 100644 --- a/tests/baselines/reference/sourceMap-Comments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-Comments.sourcemap.txt @@ -81,10 +81,10 @@ sourceFile:sourceMap-Comments.ts > } > > } -1->Emitted(3, 5) Source(1, 12) + SourceIndex(0) name (sas) -2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) name (sas) -3 >Emitted(3, 14) Source(1, 17) + SourceIndex(0) name (sas) -4 >Emitted(3, 15) Source(19, 2) + SourceIndex(0) name (sas) +1->Emitted(3, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) +3 >Emitted(3, 14) Source(1, 17) + SourceIndex(0) +4 >Emitted(3, 15) Source(19, 2) + SourceIndex(0) --- >>> (function (tools) { 1->^^^^ @@ -98,24 +98,24 @@ sourceFile:sourceMap-Comments.ts 3 > tools 4 > 5 > { -1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) name (sas) -2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) name (sas) -3 >Emitted(4, 21) Source(1, 17) + SourceIndex(0) name (sas) -4 >Emitted(4, 23) Source(1, 18) + SourceIndex(0) name (sas) -5 >Emitted(4, 24) Source(1, 19) + SourceIndex(0) name (sas) +1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) +3 >Emitted(4, 21) Source(1, 17) + SourceIndex(0) +4 >Emitted(4, 23) Source(1, 18) + SourceIndex(0) +5 >Emitted(4, 24) Source(1, 19) + SourceIndex(0) --- >>> var Test = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) name (sas.tools) +1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) --- >>> function Test() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(6, 13) Source(2, 5) + SourceIndex(0) name (sas.tools.Test) +1->Emitted(6, 13) Source(2, 5) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -138,8 +138,8 @@ sourceFile:sourceMap-Comments.ts > } > 2 > } -1->Emitted(7, 13) Source(17, 5) + SourceIndex(0) name (sas.tools.Test.constructor) -2 >Emitted(7, 14) Source(17, 6) + SourceIndex(0) name (sas.tools.Test.constructor) +1->Emitted(7, 13) Source(17, 5) + SourceIndex(0) +2 >Emitted(7, 14) Source(17, 6) + SourceIndex(0) --- >>> Test.prototype.doX = function () { 1->^^^^^^^^^^^^ @@ -148,9 +148,9 @@ sourceFile:sourceMap-Comments.ts 1-> 2 > doX 3 > -1->Emitted(8, 13) Source(3, 16) + SourceIndex(0) name (sas.tools.Test) -2 >Emitted(8, 31) Source(3, 19) + SourceIndex(0) name (sas.tools.Test) -3 >Emitted(8, 34) Source(3, 9) + SourceIndex(0) name (sas.tools.Test) +1->Emitted(8, 13) Source(3, 16) + SourceIndex(0) +2 >Emitted(8, 31) Source(3, 19) + SourceIndex(0) +3 >Emitted(8, 34) Source(3, 9) + SourceIndex(0) --- >>> var f = 2; 1 >^^^^^^^^^^^^^^^^ @@ -167,12 +167,12 @@ sourceFile:sourceMap-Comments.ts 4 > : number = 5 > 2 6 > ; -1 >Emitted(9, 17) Source(4, 13) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(9, 21) Source(4, 17) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(9, 22) Source(4, 18) + SourceIndex(0) name (sas.tools.Test.doX) -4 >Emitted(9, 25) Source(4, 29) + SourceIndex(0) name (sas.tools.Test.doX) -5 >Emitted(9, 26) Source(4, 30) + SourceIndex(0) name (sas.tools.Test.doX) -6 >Emitted(9, 27) Source(4, 31) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(9, 17) Source(4, 13) + SourceIndex(0) +2 >Emitted(9, 21) Source(4, 17) + SourceIndex(0) +3 >Emitted(9, 22) Source(4, 18) + SourceIndex(0) +4 >Emitted(9, 25) Source(4, 29) + SourceIndex(0) +5 >Emitted(9, 26) Source(4, 30) + SourceIndex(0) +6 >Emitted(9, 27) Source(4, 31) + SourceIndex(0) --- >>> switch (f) { 1->^^^^^^^^^^^^^^^^ @@ -192,14 +192,14 @@ sourceFile:sourceMap-Comments.ts 6 > ) 7 > 8 > { -1->Emitted(10, 17) Source(5, 13) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(10, 23) Source(5, 19) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(10, 24) Source(5, 20) + SourceIndex(0) name (sas.tools.Test.doX) -4 >Emitted(10, 25) Source(5, 21) + SourceIndex(0) name (sas.tools.Test.doX) -5 >Emitted(10, 26) Source(5, 22) + SourceIndex(0) name (sas.tools.Test.doX) -6 >Emitted(10, 27) Source(5, 23) + SourceIndex(0) name (sas.tools.Test.doX) -7 >Emitted(10, 28) Source(5, 24) + SourceIndex(0) name (sas.tools.Test.doX) -8 >Emitted(10, 29) Source(5, 25) + SourceIndex(0) name (sas.tools.Test.doX) +1->Emitted(10, 17) Source(5, 13) + SourceIndex(0) +2 >Emitted(10, 23) Source(5, 19) + SourceIndex(0) +3 >Emitted(10, 24) Source(5, 20) + SourceIndex(0) +4 >Emitted(10, 25) Source(5, 21) + SourceIndex(0) +5 >Emitted(10, 26) Source(5, 22) + SourceIndex(0) +6 >Emitted(10, 27) Source(5, 23) + SourceIndex(0) +7 >Emitted(10, 28) Source(5, 24) + SourceIndex(0) +8 >Emitted(10, 29) Source(5, 25) + SourceIndex(0) --- >>> case 1: 1 >^^^^^^^^^^^^^^^^^^^^ @@ -210,9 +210,9 @@ sourceFile:sourceMap-Comments.ts > 2 > case 3 > 1 -1 >Emitted(11, 21) Source(6, 17) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(11, 26) Source(6, 22) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(11, 27) Source(6, 23) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(11, 21) Source(6, 17) + SourceIndex(0) +2 >Emitted(11, 26) Source(6, 22) + SourceIndex(0) +3 >Emitted(11, 27) Source(6, 23) + SourceIndex(0) --- >>> break; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -222,9 +222,9 @@ sourceFile:sourceMap-Comments.ts > 2 > break 3 > ; -1->Emitted(12, 25) Source(7, 21) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(12, 30) Source(7, 26) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(12, 31) Source(7, 27) + SourceIndex(0) name (sas.tools.Test.doX) +1->Emitted(12, 25) Source(7, 21) + SourceIndex(0) +2 >Emitted(12, 30) Source(7, 26) + SourceIndex(0) +3 >Emitted(12, 31) Source(7, 27) + SourceIndex(0) --- >>> case 2: 1 >^^^^^^^^^^^^^^^^^^^^ @@ -235,9 +235,9 @@ sourceFile:sourceMap-Comments.ts > 2 > case 3 > 2 -1 >Emitted(13, 21) Source(8, 17) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(13, 26) Source(8, 22) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(13, 27) Source(8, 23) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(13, 21) Source(8, 17) + SourceIndex(0) +2 >Emitted(13, 26) Source(8, 22) + SourceIndex(0) +3 >Emitted(13, 27) Source(8, 23) + SourceIndex(0) --- >>> //line comment 1 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -246,8 +246,8 @@ sourceFile:sourceMap-Comments.ts 1->: > 2 > //line comment 1 -1->Emitted(14, 25) Source(9, 21) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(14, 41) Source(9, 37) + SourceIndex(0) name (sas.tools.Test.doX) +1->Emitted(14, 25) Source(9, 21) + SourceIndex(0) +2 >Emitted(14, 41) Source(9, 37) + SourceIndex(0) --- >>> //line comment 2 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -255,8 +255,8 @@ sourceFile:sourceMap-Comments.ts 1-> > 2 > //line comment 2 -1->Emitted(15, 25) Source(10, 21) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(15, 41) Source(10, 37) + SourceIndex(0) name (sas.tools.Test.doX) +1->Emitted(15, 25) Source(10, 21) + SourceIndex(0) +2 >Emitted(15, 41) Source(10, 37) + SourceIndex(0) --- >>> break; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -266,9 +266,9 @@ sourceFile:sourceMap-Comments.ts > 2 > break 3 > ; -1 >Emitted(16, 25) Source(11, 21) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(16, 30) Source(11, 26) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(16, 31) Source(11, 27) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(16, 25) Source(11, 21) + SourceIndex(0) +2 >Emitted(16, 30) Source(11, 26) + SourceIndex(0) +3 >Emitted(16, 31) Source(11, 27) + SourceIndex(0) --- >>> case 3: 1 >^^^^^^^^^^^^^^^^^^^^ @@ -279,9 +279,9 @@ sourceFile:sourceMap-Comments.ts > 2 > case 3 > 3 -1 >Emitted(17, 21) Source(12, 17) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(17, 26) Source(12, 22) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(17, 27) Source(12, 23) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(17, 21) Source(12, 17) + SourceIndex(0) +2 >Emitted(17, 26) Source(12, 22) + SourceIndex(0) +3 >Emitted(17, 27) Source(12, 23) + SourceIndex(0) --- >>> //a comment 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -289,8 +289,8 @@ sourceFile:sourceMap-Comments.ts 1->: > 2 > //a comment -1->Emitted(18, 25) Source(13, 21) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(18, 36) Source(13, 32) + SourceIndex(0) name (sas.tools.Test.doX) +1->Emitted(18, 25) Source(13, 21) + SourceIndex(0) +2 >Emitted(18, 36) Source(13, 32) + SourceIndex(0) --- >>> break; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -300,9 +300,9 @@ sourceFile:sourceMap-Comments.ts > 2 > break 3 > ; -1 >Emitted(19, 25) Source(14, 21) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(19, 30) Source(14, 26) + SourceIndex(0) name (sas.tools.Test.doX) -3 >Emitted(19, 31) Source(14, 27) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(19, 25) Source(14, 21) + SourceIndex(0) +2 >Emitted(19, 30) Source(14, 26) + SourceIndex(0) +3 >Emitted(19, 31) Source(14, 27) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -310,8 +310,8 @@ sourceFile:sourceMap-Comments.ts 1 > > 2 > } -1 >Emitted(20, 17) Source(15, 13) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(20, 18) Source(15, 14) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(20, 17) Source(15, 13) + SourceIndex(0) +2 >Emitted(20, 18) Source(15, 14) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^ @@ -320,8 +320,8 @@ sourceFile:sourceMap-Comments.ts 1 > > 2 > } -1 >Emitted(21, 13) Source(16, 9) + SourceIndex(0) name (sas.tools.Test.doX) -2 >Emitted(21, 14) Source(16, 10) + SourceIndex(0) name (sas.tools.Test.doX) +1 >Emitted(21, 13) Source(16, 9) + SourceIndex(0) +2 >Emitted(21, 14) Source(16, 10) + SourceIndex(0) --- >>> return Test; 1->^^^^^^^^^^^^ @@ -329,10 +329,10 @@ sourceFile:sourceMap-Comments.ts 1-> > 2 > } -1->Emitted(22, 13) Source(17, 5) + SourceIndex(0) name (sas.tools.Test) -2 >Emitted(22, 24) Source(17, 6) + SourceIndex(0) name (sas.tools.Test) +1->Emitted(22, 13) Source(17, 5) + SourceIndex(0) +2 >Emitted(22, 24) Source(17, 6) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^ 2 > ^ 3 > @@ -357,10 +357,10 @@ sourceFile:sourceMap-Comments.ts > } > } > } -1 >Emitted(23, 9) Source(17, 5) + SourceIndex(0) name (sas.tools.Test) -2 >Emitted(23, 10) Source(17, 6) + SourceIndex(0) name (sas.tools.Test) -3 >Emitted(23, 10) Source(2, 5) + SourceIndex(0) name (sas.tools) -4 >Emitted(23, 14) Source(17, 6) + SourceIndex(0) name (sas.tools) +1 >Emitted(23, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(23, 10) Source(17, 6) + SourceIndex(0) +3 >Emitted(23, 10) Source(2, 5) + SourceIndex(0) +4 >Emitted(23, 14) Source(17, 6) + SourceIndex(0) --- >>> tools.Test = Test; 1->^^^^^^^^ @@ -387,10 +387,10 @@ sourceFile:sourceMap-Comments.ts > } > } 4 > -1->Emitted(24, 9) Source(2, 18) + SourceIndex(0) name (sas.tools) -2 >Emitted(24, 19) Source(2, 22) + SourceIndex(0) name (sas.tools) -3 >Emitted(24, 26) Source(17, 6) + SourceIndex(0) name (sas.tools) -4 >Emitted(24, 27) Source(17, 6) + SourceIndex(0) name (sas.tools) +1->Emitted(24, 9) Source(2, 18) + SourceIndex(0) +2 >Emitted(24, 19) Source(2, 22) + SourceIndex(0) +3 >Emitted(24, 26) Source(17, 6) + SourceIndex(0) +4 >Emitted(24, 27) Source(17, 6) + SourceIndex(0) --- >>> })(tools = sas.tools || (sas.tools = {})); 1->^^^^ @@ -431,15 +431,15 @@ sourceFile:sourceMap-Comments.ts > } > > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(0) name (sas.tools) -2 >Emitted(25, 6) Source(19, 2) + SourceIndex(0) name (sas.tools) -3 >Emitted(25, 8) Source(1, 12) + SourceIndex(0) name (sas) -4 >Emitted(25, 13) Source(1, 17) + SourceIndex(0) name (sas) -5 >Emitted(25, 16) Source(1, 12) + SourceIndex(0) name (sas) -6 >Emitted(25, 25) Source(1, 17) + SourceIndex(0) name (sas) -7 >Emitted(25, 30) Source(1, 12) + SourceIndex(0) name (sas) -8 >Emitted(25, 39) Source(1, 17) + SourceIndex(0) name (sas) -9 >Emitted(25, 47) Source(19, 2) + SourceIndex(0) name (sas) +1->Emitted(25, 5) Source(19, 1) + SourceIndex(0) +2 >Emitted(25, 6) Source(19, 2) + SourceIndex(0) +3 >Emitted(25, 8) Source(1, 12) + SourceIndex(0) +4 >Emitted(25, 13) Source(1, 17) + SourceIndex(0) +5 >Emitted(25, 16) Source(1, 12) + SourceIndex(0) +6 >Emitted(25, 25) Source(1, 17) + SourceIndex(0) +7 >Emitted(25, 30) Source(1, 12) + SourceIndex(0) +8 >Emitted(25, 39) Source(1, 17) + SourceIndex(0) +9 >Emitted(25, 47) Source(19, 2) + SourceIndex(0) --- >>>})(sas || (sas = {})); 1 > @@ -475,8 +475,8 @@ sourceFile:sourceMap-Comments.ts > } > > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(0) name (sas) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(0) name (sas) +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(0) 3 >Emitted(26, 4) Source(1, 8) + SourceIndex(0) 4 >Emitted(26, 7) Source(1, 11) + SourceIndex(0) 5 >Emitted(26, 12) Source(1, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMap-Comments2.js.map b/tests/baselines/reference/sourceMap-Comments2.js.map index be5a88d795d..e5a5387a72f 100644 --- a/tests/baselines/reference/sourceMap-Comments2.js.map +++ b/tests/baselines/reference/sourceMap-Comments2.js.map @@ -1,2 +1,2 @@ //// [sourceMap-Comments2.js.map] -{"version":3,"file":"sourceMap-Comments2.js","sourceRoot":"","sources":["sourceMap-Comments2.ts"],"names":["foo","bar","baz","qat"],"mappings":"AAAA,aAAa,GAAW,EAAE,GAAW;IACjCA,MAAMA,CAACA;AACXA,CAACA;AAED;;GAEG;AACH,aAAa,GAAW,EAAE,GAAW;IACjCC,MAAMA,CAACA;AACXA,CAACA;AAED,uBAAuB;AACvB,aAAa,GAAW,EAAE,GAAW;IACjCC,MAAMA,CAACA;AACXA,CAACA;AAED,aAAa,GAAW,EAAE,GAAW;IACjCC,MAAMA,CAACA;AACXA,CAACA"} \ No newline at end of file +{"version":3,"file":"sourceMap-Comments2.js","sourceRoot":"","sources":["sourceMap-Comments2.ts"],"names":[],"mappings":"AAAA,aAAa,GAAW,EAAE,GAAW;IACjC,MAAM,CAAC;AACX,CAAC;AAED;;GAEG;AACH,aAAa,GAAW,EAAE,GAAW;IACjC,MAAM,CAAC;AACX,CAAC;AAED,uBAAuB;AACvB,aAAa,GAAW,EAAE,GAAW;IACjC,MAAM,CAAC;AACX,CAAC;AAED,aAAa,GAAW,EAAE,GAAW;IACjC,MAAM,CAAC;AACX,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comments2.sourcemap.txt b/tests/baselines/reference/sourceMap-Comments2.sourcemap.txt index d6230b83dfb..88c78671f0f 100644 --- a/tests/baselines/reference/sourceMap-Comments2.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-Comments2.sourcemap.txt @@ -33,9 +33,9 @@ sourceFile:sourceMap-Comments2.ts > 2 > return 3 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) name (foo) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) name (foo) -3 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) name (foo) +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) --- >>>} 1 > @@ -44,8 +44,8 @@ sourceFile:sourceMap-Comments2.ts 1 > > 2 >} -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) name (foo) -2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) name (foo) +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) --- >>>/** 1-> @@ -90,9 +90,9 @@ sourceFile:sourceMap-Comments2.ts > 2 > return 3 > ; -1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) name (bar) -2 >Emitted(8, 11) Source(9, 11) + SourceIndex(0) name (bar) -3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) name (bar) +1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(8, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(8, 12) Source(9, 12) + SourceIndex(0) --- >>>} 1 > @@ -101,8 +101,8 @@ sourceFile:sourceMap-Comments2.ts 1 > > 2 >} -1 >Emitted(9, 1) Source(10, 1) + SourceIndex(0) name (bar) -2 >Emitted(9, 2) Source(10, 2) + SourceIndex(0) name (bar) +1 >Emitted(9, 1) Source(10, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(10, 2) + SourceIndex(0) --- >>>// some sort of comment 1-> @@ -141,9 +141,9 @@ sourceFile:sourceMap-Comments2.ts > 2 > return 3 > ; -1 >Emitted(12, 5) Source(14, 5) + SourceIndex(0) name (baz) -2 >Emitted(12, 11) Source(14, 11) + SourceIndex(0) name (baz) -3 >Emitted(12, 12) Source(14, 12) + SourceIndex(0) name (baz) +1 >Emitted(12, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(12, 11) Source(14, 11) + SourceIndex(0) +3 >Emitted(12, 12) Source(14, 12) + SourceIndex(0) --- >>>} 1 > @@ -152,8 +152,8 @@ sourceFile:sourceMap-Comments2.ts 1 > > 2 >} -1 >Emitted(13, 1) Source(15, 1) + SourceIndex(0) name (baz) -2 >Emitted(13, 2) Source(15, 2) + SourceIndex(0) name (baz) +1 >Emitted(13, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(15, 2) + SourceIndex(0) --- >>>function qat(str, num) { 1-> @@ -182,9 +182,9 @@ sourceFile:sourceMap-Comments2.ts > 2 > return 3 > ; -1 >Emitted(15, 5) Source(18, 5) + SourceIndex(0) name (qat) -2 >Emitted(15, 11) Source(18, 11) + SourceIndex(0) name (qat) -3 >Emitted(15, 12) Source(18, 12) + SourceIndex(0) name (qat) +1 >Emitted(15, 5) Source(18, 5) + SourceIndex(0) +2 >Emitted(15, 11) Source(18, 11) + SourceIndex(0) +3 >Emitted(15, 12) Source(18, 12) + SourceIndex(0) --- >>>} 1 > @@ -193,7 +193,7 @@ sourceFile:sourceMap-Comments2.ts 1 > > 2 >} -1 >Emitted(16, 1) Source(19, 1) + SourceIndex(0) name (qat) -2 >Emitted(16, 2) Source(19, 2) + SourceIndex(0) name (qat) +1 >Emitted(16, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(19, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMap-Comments2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js b/tests/baselines/reference/sourceMap-FileWithComments.js index e9755f6c048..9bb18dba33d 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js +++ b/tests/baselines/reference/sourceMap-FileWithComments.js @@ -52,7 +52,7 @@ var Shapes; // Static member Point.origin = new Point(0, 0); return Point; - })(); + }()); Shapes.Point = Point; // Variable comment after class var a = 10; diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js.map b/tests/baselines/reference/sourceMap-FileWithComments.js.map index 7e38a53a902..f3e9674336d 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js.map +++ b/tests/baselines/reference/sourceMap-FileWithComments.js.map @@ -1,2 +1,2 @@ //// [sourceMap-FileWithComments.js.map] -{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":["Shapes","Shapes.Point","Shapes.Point.constructor","Shapes.Point.getDist","Shapes.foo"],"mappings":"AAMA,SAAS;AACT,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAEXA,QAAQA;IACRA;QACIC,cAAcA;QACdA,eAAmBA,CAASA,EAASA,CAASA;YAA3BC,MAACA,GAADA,CAACA,CAAQA;YAASA,MAACA,GAADA,CAACA,CAAQA;QAAIA,CAACA;QAEnDD,kBAAkBA;QAClBA,uBAAOA,GAAPA,cAAYE,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,GAAGA,IAAIA,CAACA,CAACA,CAACA,CAACA,CAACA,CAACA;QAElEF,gBAAgBA;QACTA,YAAMA,GAAGA,IAAIA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACpCA,YAACA;IAADA,CAACA,AATDD,IASCA;IATYA,YAAKA,QASjBA,CAAAA;IAEDA,+BAA+BA;IAC/BA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;IAEXA;IACAI,CAACA;IADeJ,UAAGA,MAClBA,CAAAA;IAEDA;;MAEEA;IACFA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;AACfA,CAACA,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAED,qBAAqB;AACrB,IAAI,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":[],"mappings":"AAMA,SAAS;AACT,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM,EAAC,CAAC;IAEX,QAAQ;IACR;QACI,cAAc;QACd,eAAmB,CAAS,EAAS,CAAS;YAA3B,MAAC,GAAD,CAAC,CAAQ;YAAS,MAAC,GAAD,CAAC,CAAQ;QAAI,CAAC;QAEnD,kBAAkB;QAClB,uBAAO,GAAP,cAAY,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAElE,gBAAgB;QACT,YAAM,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpC,YAAC;IAAD,CAAC,AATD,IASC;IATY,YAAK,QASjB,CAAA;IAED,+BAA+B;IAC/B,IAAI,CAAC,GAAG,EAAE,CAAC;IAEX;IACA,CAAC;IADe,UAAG,MAClB,CAAA;IAED;;MAEE;IACF,IAAI,CAAC,GAAG,EAAE,CAAC;AACf,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAED,qBAAqB;AACrB,IAAI,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt index 8f8fd8e84b3..3bcf2634507 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt @@ -88,15 +88,15 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Class -1 >Emitted(4, 5) Source(10, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(4, 13) Source(10, 13) + SourceIndex(0) name (Shapes) +1 >Emitted(4, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(4, 13) Source(10, 13) + SourceIndex(0) --- >>> var Point = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) name (Shapes) +1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) --- >>> // Constructor 1->^^^^^^^^ @@ -105,8 +105,8 @@ sourceFile:sourceMap-FileWithComments.ts 1->export class Point implements IPoint { > 2 > // Constructor -1->Emitted(6, 9) Source(12, 9) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(6, 23) Source(12, 23) + SourceIndex(0) name (Shapes.Point) +1->Emitted(6, 9) Source(12, 9) + SourceIndex(0) +2 >Emitted(6, 23) Source(12, 23) + SourceIndex(0) --- >>> function Point(x, y) { 1->^^^^^^^^ @@ -120,11 +120,11 @@ sourceFile:sourceMap-FileWithComments.ts 3 > x: number 4 > , public 5 > y: number -1->Emitted(7, 9) Source(13, 9) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(7, 24) Source(13, 28) + SourceIndex(0) name (Shapes.Point) -3 >Emitted(7, 25) Source(13, 37) + SourceIndex(0) name (Shapes.Point) -4 >Emitted(7, 27) Source(13, 46) + SourceIndex(0) name (Shapes.Point) -5 >Emitted(7, 28) Source(13, 55) + SourceIndex(0) name (Shapes.Point) +1->Emitted(7, 9) Source(13, 9) + SourceIndex(0) +2 >Emitted(7, 24) Source(13, 28) + SourceIndex(0) +3 >Emitted(7, 25) Source(13, 37) + SourceIndex(0) +4 >Emitted(7, 27) Source(13, 46) + SourceIndex(0) +5 >Emitted(7, 28) Source(13, 55) + SourceIndex(0) --- >>> this.x = x; 1 >^^^^^^^^^^^^ @@ -138,11 +138,11 @@ sourceFile:sourceMap-FileWithComments.ts 3 > 4 > x 5 > : number -1 >Emitted(8, 13) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor) -2 >Emitted(8, 19) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor) -3 >Emitted(8, 22) Source(13, 28) + SourceIndex(0) name (Shapes.Point.constructor) -4 >Emitted(8, 23) Source(13, 29) + SourceIndex(0) name (Shapes.Point.constructor) -5 >Emitted(8, 24) Source(13, 37) + SourceIndex(0) name (Shapes.Point.constructor) +1 >Emitted(8, 13) Source(13, 28) + SourceIndex(0) +2 >Emitted(8, 19) Source(13, 29) + SourceIndex(0) +3 >Emitted(8, 22) Source(13, 28) + SourceIndex(0) +4 >Emitted(8, 23) Source(13, 29) + SourceIndex(0) +5 >Emitted(8, 24) Source(13, 37) + SourceIndex(0) --- >>> this.y = y; 1->^^^^^^^^^^^^ @@ -155,11 +155,11 @@ sourceFile:sourceMap-FileWithComments.ts 3 > 4 > y 5 > : number -1->Emitted(9, 13) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor) -2 >Emitted(9, 19) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor) -3 >Emitted(9, 22) Source(13, 46) + SourceIndex(0) name (Shapes.Point.constructor) -4 >Emitted(9, 23) Source(13, 47) + SourceIndex(0) name (Shapes.Point.constructor) -5 >Emitted(9, 24) Source(13, 55) + SourceIndex(0) name (Shapes.Point.constructor) +1->Emitted(9, 13) Source(13, 46) + SourceIndex(0) +2 >Emitted(9, 19) Source(13, 47) + SourceIndex(0) +3 >Emitted(9, 22) Source(13, 46) + SourceIndex(0) +4 >Emitted(9, 23) Source(13, 47) + SourceIndex(0) +5 >Emitted(9, 24) Source(13, 55) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -167,8 +167,8 @@ sourceFile:sourceMap-FileWithComments.ts 3 > ^^^^^^^^^^^^^^^^^^-> 1 >) { 2 > } -1 >Emitted(10, 9) Source(13, 59) + SourceIndex(0) name (Shapes.Point.constructor) -2 >Emitted(10, 10) Source(13, 60) + SourceIndex(0) name (Shapes.Point.constructor) +1 >Emitted(10, 9) Source(13, 59) + SourceIndex(0) +2 >Emitted(10, 10) Source(13, 60) + SourceIndex(0) --- >>> // Instance member 1->^^^^^^^^ @@ -178,8 +178,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Instance member -1->Emitted(11, 9) Source(15, 9) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(11, 27) Source(15, 27) + SourceIndex(0) name (Shapes.Point) +1->Emitted(11, 9) Source(15, 9) + SourceIndex(0) +2 >Emitted(11, 27) Source(15, 27) + SourceIndex(0) --- >>> Point.prototype.getDist = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; 1->^^^^^^^^ @@ -241,35 +241,35 @@ sourceFile:sourceMap-FileWithComments.ts 27> ; 28> 29> } -1->Emitted(12, 9) Source(16, 9) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(12, 32) Source(16, 16) + SourceIndex(0) name (Shapes.Point) -3 >Emitted(12, 35) Source(16, 9) + SourceIndex(0) name (Shapes.Point) -4 >Emitted(12, 49) Source(16, 21) + SourceIndex(0) name (Shapes.Point.getDist) -5 >Emitted(12, 55) Source(16, 27) + SourceIndex(0) name (Shapes.Point.getDist) -6 >Emitted(12, 56) Source(16, 28) + SourceIndex(0) name (Shapes.Point.getDist) -7 >Emitted(12, 60) Source(16, 32) + SourceIndex(0) name (Shapes.Point.getDist) -8 >Emitted(12, 61) Source(16, 33) + SourceIndex(0) name (Shapes.Point.getDist) -9 >Emitted(12, 65) Source(16, 37) + SourceIndex(0) name (Shapes.Point.getDist) -10>Emitted(12, 66) Source(16, 38) + SourceIndex(0) name (Shapes.Point.getDist) -11>Emitted(12, 70) Source(16, 42) + SourceIndex(0) name (Shapes.Point.getDist) -12>Emitted(12, 71) Source(16, 43) + SourceIndex(0) name (Shapes.Point.getDist) -13>Emitted(12, 72) Source(16, 44) + SourceIndex(0) name (Shapes.Point.getDist) -14>Emitted(12, 75) Source(16, 47) + SourceIndex(0) name (Shapes.Point.getDist) -15>Emitted(12, 79) Source(16, 51) + SourceIndex(0) name (Shapes.Point.getDist) -16>Emitted(12, 80) Source(16, 52) + SourceIndex(0) name (Shapes.Point.getDist) -17>Emitted(12, 81) Source(16, 53) + SourceIndex(0) name (Shapes.Point.getDist) -18>Emitted(12, 84) Source(16, 56) + SourceIndex(0) name (Shapes.Point.getDist) -19>Emitted(12, 88) Source(16, 60) + SourceIndex(0) name (Shapes.Point.getDist) -20>Emitted(12, 89) Source(16, 61) + SourceIndex(0) name (Shapes.Point.getDist) -21>Emitted(12, 90) Source(16, 62) + SourceIndex(0) name (Shapes.Point.getDist) -22>Emitted(12, 93) Source(16, 65) + SourceIndex(0) name (Shapes.Point.getDist) -23>Emitted(12, 97) Source(16, 69) + SourceIndex(0) name (Shapes.Point.getDist) -24>Emitted(12, 98) Source(16, 70) + SourceIndex(0) name (Shapes.Point.getDist) -25>Emitted(12, 99) Source(16, 71) + SourceIndex(0) name (Shapes.Point.getDist) -26>Emitted(12, 100) Source(16, 72) + SourceIndex(0) name (Shapes.Point.getDist) -27>Emitted(12, 101) Source(16, 73) + SourceIndex(0) name (Shapes.Point.getDist) -28>Emitted(12, 102) Source(16, 74) + SourceIndex(0) name (Shapes.Point.getDist) -29>Emitted(12, 103) Source(16, 75) + SourceIndex(0) name (Shapes.Point.getDist) +1->Emitted(12, 9) Source(16, 9) + SourceIndex(0) +2 >Emitted(12, 32) Source(16, 16) + SourceIndex(0) +3 >Emitted(12, 35) Source(16, 9) + SourceIndex(0) +4 >Emitted(12, 49) Source(16, 21) + SourceIndex(0) +5 >Emitted(12, 55) Source(16, 27) + SourceIndex(0) +6 >Emitted(12, 56) Source(16, 28) + SourceIndex(0) +7 >Emitted(12, 60) Source(16, 32) + SourceIndex(0) +8 >Emitted(12, 61) Source(16, 33) + SourceIndex(0) +9 >Emitted(12, 65) Source(16, 37) + SourceIndex(0) +10>Emitted(12, 66) Source(16, 38) + SourceIndex(0) +11>Emitted(12, 70) Source(16, 42) + SourceIndex(0) +12>Emitted(12, 71) Source(16, 43) + SourceIndex(0) +13>Emitted(12, 72) Source(16, 44) + SourceIndex(0) +14>Emitted(12, 75) Source(16, 47) + SourceIndex(0) +15>Emitted(12, 79) Source(16, 51) + SourceIndex(0) +16>Emitted(12, 80) Source(16, 52) + SourceIndex(0) +17>Emitted(12, 81) Source(16, 53) + SourceIndex(0) +18>Emitted(12, 84) Source(16, 56) + SourceIndex(0) +19>Emitted(12, 88) Source(16, 60) + SourceIndex(0) +20>Emitted(12, 89) Source(16, 61) + SourceIndex(0) +21>Emitted(12, 90) Source(16, 62) + SourceIndex(0) +22>Emitted(12, 93) Source(16, 65) + SourceIndex(0) +23>Emitted(12, 97) Source(16, 69) + SourceIndex(0) +24>Emitted(12, 98) Source(16, 70) + SourceIndex(0) +25>Emitted(12, 99) Source(16, 71) + SourceIndex(0) +26>Emitted(12, 100) Source(16, 72) + SourceIndex(0) +27>Emitted(12, 101) Source(16, 73) + SourceIndex(0) +28>Emitted(12, 102) Source(16, 74) + SourceIndex(0) +29>Emitted(12, 103) Source(16, 75) + SourceIndex(0) --- >>> // Static member 1 >^^^^^^^^ @@ -279,8 +279,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Static member -1 >Emitted(13, 9) Source(18, 9) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(13, 25) Source(18, 25) + SourceIndex(0) name (Shapes.Point) +1 >Emitted(13, 9) Source(18, 9) + SourceIndex(0) +2 >Emitted(13, 25) Source(18, 25) + SourceIndex(0) --- >>> Point.origin = new Point(0, 0); 1->^^^^^^^^ @@ -306,17 +306,17 @@ sourceFile:sourceMap-FileWithComments.ts 9 > 0 10> ) 11> ; -1->Emitted(14, 9) Source(19, 16) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(14, 21) Source(19, 22) + SourceIndex(0) name (Shapes.Point) -3 >Emitted(14, 24) Source(19, 25) + SourceIndex(0) name (Shapes.Point) -4 >Emitted(14, 28) Source(19, 29) + SourceIndex(0) name (Shapes.Point) -5 >Emitted(14, 33) Source(19, 34) + SourceIndex(0) name (Shapes.Point) -6 >Emitted(14, 34) Source(19, 35) + SourceIndex(0) name (Shapes.Point) -7 >Emitted(14, 35) Source(19, 36) + SourceIndex(0) name (Shapes.Point) -8 >Emitted(14, 37) Source(19, 38) + SourceIndex(0) name (Shapes.Point) -9 >Emitted(14, 38) Source(19, 39) + SourceIndex(0) name (Shapes.Point) -10>Emitted(14, 39) Source(19, 40) + SourceIndex(0) name (Shapes.Point) -11>Emitted(14, 40) Source(19, 41) + SourceIndex(0) name (Shapes.Point) +1->Emitted(14, 9) Source(19, 16) + SourceIndex(0) +2 >Emitted(14, 21) Source(19, 22) + SourceIndex(0) +3 >Emitted(14, 24) Source(19, 25) + SourceIndex(0) +4 >Emitted(14, 28) Source(19, 29) + SourceIndex(0) +5 >Emitted(14, 33) Source(19, 34) + SourceIndex(0) +6 >Emitted(14, 34) Source(19, 35) + SourceIndex(0) +7 >Emitted(14, 35) Source(19, 36) + SourceIndex(0) +8 >Emitted(14, 37) Source(19, 38) + SourceIndex(0) +9 >Emitted(14, 38) Source(19, 39) + SourceIndex(0) +10>Emitted(14, 39) Source(19, 40) + SourceIndex(0) +11>Emitted(14, 40) Source(19, 41) + SourceIndex(0) --- >>> return Point; 1 >^^^^^^^^ @@ -324,10 +324,10 @@ sourceFile:sourceMap-FileWithComments.ts 1 > > 2 > } -1 >Emitted(15, 9) Source(20, 5) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(15, 21) Source(20, 6) + SourceIndex(0) name (Shapes.Point) +1 >Emitted(15, 9) Source(20, 5) + SourceIndex(0) +2 >Emitted(15, 21) Source(20, 6) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -346,10 +346,10 @@ sourceFile:sourceMap-FileWithComments.ts > // Static member > static origin = new Point(0, 0); > } -1 >Emitted(16, 5) Source(20, 5) + SourceIndex(0) name (Shapes.Point) -2 >Emitted(16, 6) Source(20, 6) + SourceIndex(0) name (Shapes.Point) -3 >Emitted(16, 6) Source(11, 5) + SourceIndex(0) name (Shapes) -4 >Emitted(16, 10) Source(20, 6) + SourceIndex(0) name (Shapes) +1 >Emitted(16, 5) Source(20, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(20, 6) + SourceIndex(0) +3 >Emitted(16, 6) Source(11, 5) + SourceIndex(0) +4 >Emitted(16, 10) Source(20, 6) + SourceIndex(0) --- >>> Shapes.Point = Point; 1->^^^^ @@ -370,10 +370,10 @@ sourceFile:sourceMap-FileWithComments.ts > static origin = new Point(0, 0); > } 4 > -1->Emitted(17, 5) Source(11, 18) + SourceIndex(0) name (Shapes) -2 >Emitted(17, 17) Source(11, 23) + SourceIndex(0) name (Shapes) -3 >Emitted(17, 25) Source(20, 6) + SourceIndex(0) name (Shapes) -4 >Emitted(17, 26) Source(20, 6) + SourceIndex(0) name (Shapes) +1->Emitted(17, 5) Source(11, 18) + SourceIndex(0) +2 >Emitted(17, 17) Source(11, 23) + SourceIndex(0) +3 >Emitted(17, 25) Source(20, 6) + SourceIndex(0) +4 >Emitted(17, 26) Source(20, 6) + SourceIndex(0) --- >>> // Variable comment after class 1->^^^^ @@ -382,8 +382,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Variable comment after class -1->Emitted(18, 5) Source(22, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(18, 36) Source(22, 36) + SourceIndex(0) name (Shapes) +1->Emitted(18, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(18, 36) Source(22, 36) + SourceIndex(0) --- >>> var a = 10; 1 >^^^^ @@ -400,12 +400,12 @@ sourceFile:sourceMap-FileWithComments.ts 4 > = 5 > 10 6 > ; -1 >Emitted(19, 5) Source(23, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(19, 9) Source(23, 9) + SourceIndex(0) name (Shapes) -3 >Emitted(19, 10) Source(23, 10) + SourceIndex(0) name (Shapes) -4 >Emitted(19, 13) Source(23, 13) + SourceIndex(0) name (Shapes) -5 >Emitted(19, 15) Source(23, 15) + SourceIndex(0) name (Shapes) -6 >Emitted(19, 16) Source(23, 16) + SourceIndex(0) name (Shapes) +1 >Emitted(19, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(19, 9) Source(23, 9) + SourceIndex(0) +3 >Emitted(19, 10) Source(23, 10) + SourceIndex(0) +4 >Emitted(19, 13) Source(23, 13) + SourceIndex(0) +5 >Emitted(19, 15) Source(23, 15) + SourceIndex(0) +6 >Emitted(19, 16) Source(23, 16) + SourceIndex(0) --- >>> function foo() { 1->^^^^ @@ -413,7 +413,7 @@ sourceFile:sourceMap-FileWithComments.ts 1-> > > -1->Emitted(20, 5) Source(25, 5) + SourceIndex(0) name (Shapes) +1->Emitted(20, 5) Source(25, 5) + SourceIndex(0) --- >>> } 1->^^^^ @@ -422,8 +422,8 @@ sourceFile:sourceMap-FileWithComments.ts 1->export function foo() { > 2 > } -1->Emitted(21, 5) Source(26, 5) + SourceIndex(0) name (Shapes.foo) -2 >Emitted(21, 6) Source(26, 6) + SourceIndex(0) name (Shapes.foo) +1->Emitted(21, 5) Source(26, 5) + SourceIndex(0) +2 >Emitted(21, 6) Source(26, 6) + SourceIndex(0) --- >>> Shapes.foo = foo; 1->^^^^ @@ -436,10 +436,10 @@ sourceFile:sourceMap-FileWithComments.ts 3 > () { > } 4 > -1->Emitted(22, 5) Source(25, 21) + SourceIndex(0) name (Shapes) -2 >Emitted(22, 15) Source(25, 24) + SourceIndex(0) name (Shapes) -3 >Emitted(22, 21) Source(26, 6) + SourceIndex(0) name (Shapes) -4 >Emitted(22, 22) Source(26, 6) + SourceIndex(0) name (Shapes) +1->Emitted(22, 5) Source(25, 21) + SourceIndex(0) +2 >Emitted(22, 15) Source(25, 24) + SourceIndex(0) +3 >Emitted(22, 21) Source(26, 6) + SourceIndex(0) +4 >Emitted(22, 22) Source(26, 6) + SourceIndex(0) --- >>> /** comment after function 1->^^^^ @@ -447,7 +447,7 @@ sourceFile:sourceMap-FileWithComments.ts 1-> > > -1->Emitted(23, 5) Source(28, 5) + SourceIndex(0) name (Shapes) +1->Emitted(23, 5) Source(28, 5) + SourceIndex(0) --- >>> * this is another comment >>> */ @@ -456,7 +456,7 @@ sourceFile:sourceMap-FileWithComments.ts 1->/** comment after function > * this is another comment > */ -1->Emitted(25, 7) Source(30, 7) + SourceIndex(0) name (Shapes) +1->Emitted(25, 7) Source(30, 7) + SourceIndex(0) --- >>> var b = 10; 1->^^^^ @@ -473,12 +473,12 @@ sourceFile:sourceMap-FileWithComments.ts 4 > = 5 > 10 6 > ; -1->Emitted(26, 5) Source(31, 5) + SourceIndex(0) name (Shapes) -2 >Emitted(26, 9) Source(31, 9) + SourceIndex(0) name (Shapes) -3 >Emitted(26, 10) Source(31, 10) + SourceIndex(0) name (Shapes) -4 >Emitted(26, 13) Source(31, 13) + SourceIndex(0) name (Shapes) -5 >Emitted(26, 15) Source(31, 15) + SourceIndex(0) name (Shapes) -6 >Emitted(26, 16) Source(31, 16) + SourceIndex(0) name (Shapes) +1->Emitted(26, 5) Source(31, 5) + SourceIndex(0) +2 >Emitted(26, 9) Source(31, 9) + SourceIndex(0) +3 >Emitted(26, 10) Source(31, 10) + SourceIndex(0) +4 >Emitted(26, 13) Source(31, 13) + SourceIndex(0) +5 >Emitted(26, 15) Source(31, 15) + SourceIndex(0) +6 >Emitted(26, 16) Source(31, 16) + SourceIndex(0) --- >>>})(Shapes || (Shapes = {})); 1-> @@ -520,8 +520,8 @@ sourceFile:sourceMap-FileWithComments.ts > */ > var b = 10; > } -1->Emitted(27, 1) Source(32, 1) + SourceIndex(0) name (Shapes) -2 >Emitted(27, 2) Source(32, 2) + SourceIndex(0) name (Shapes) +1->Emitted(27, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(27, 2) Source(32, 2) + SourceIndex(0) 3 >Emitted(27, 4) Source(8, 8) + SourceIndex(0) 4 >Emitted(27, 10) Source(8, 14) + SourceIndex(0) 5 >Emitted(27, 15) Source(8, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js.map b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js.map index a590744eddf..27ec5d732b8 100644 --- a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js.map +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.js.map @@ -1,2 +1,2 @@ //// [sourceMap-StringLiteralWithNewLine.js.map] -{"version":3,"file":"sourceMap-StringLiteralWithNewLine.js","sourceRoot":"","sources":["sourceMap-StringLiteralWithNewLine.ts"],"names":["Foo"],"mappings":"AAQA,IAAO,GAAG,CAKT;AALD,WAAO,GAAG,EAAC,CAAC;IACRA,IAAIA,CAACA,GAAGA,OAAOA,CAACA;IAChBA,IAAIA,CAACA,GAAGA;wBACYA,CAACA;IACrBA,IAAIA,CAACA,GAAGA,MAAMA,CAACA,QAAQA,CAACA;AAC5BA,CAACA,EALM,GAAG,KAAH,GAAG,QAKT"} \ No newline at end of file +{"version":3,"file":"sourceMap-StringLiteralWithNewLine.js","sourceRoot":"","sources":["sourceMap-StringLiteralWithNewLine.ts"],"names":[],"mappings":"AAQA,IAAO,GAAG,CAKT;AALD,WAAO,GAAG,EAAC,CAAC;IACR,IAAI,CAAC,GAAG,OAAO,CAAC;IAChB,IAAI,CAAC,GAAG;wBACY,CAAC;IACrB,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,CAAC,EALM,GAAG,KAAH,GAAG,QAKT"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.sourcemap.txt b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.sourcemap.txt index 864cf264784..dd0ccd40c27 100644 --- a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.sourcemap.txt @@ -68,12 +68,12 @@ sourceFile:sourceMap-StringLiteralWithNewLine.ts 4 > = 5 > "test1" 6 > ; -1->Emitted(3, 5) Source(10, 5) + SourceIndex(0) name (Foo) -2 >Emitted(3, 9) Source(10, 9) + SourceIndex(0) name (Foo) -3 >Emitted(3, 10) Source(10, 10) + SourceIndex(0) name (Foo) -4 >Emitted(3, 13) Source(10, 13) + SourceIndex(0) name (Foo) -5 >Emitted(3, 20) Source(10, 20) + SourceIndex(0) name (Foo) -6 >Emitted(3, 21) Source(10, 21) + SourceIndex(0) name (Foo) +1->Emitted(3, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(10, 9) + SourceIndex(0) +3 >Emitted(3, 10) Source(10, 10) + SourceIndex(0) +4 >Emitted(3, 13) Source(10, 13) + SourceIndex(0) +5 >Emitted(3, 20) Source(10, 20) + SourceIndex(0) +6 >Emitted(3, 21) Source(10, 21) + SourceIndex(0) --- >>> var y = "test 2\ 1 >^^^^ @@ -86,10 +86,10 @@ sourceFile:sourceMap-StringLiteralWithNewLine.ts 2 > var 3 > y 4 > = -1 >Emitted(4, 5) Source(11, 5) + SourceIndex(0) name (Foo) -2 >Emitted(4, 9) Source(11, 9) + SourceIndex(0) name (Foo) -3 >Emitted(4, 10) Source(11, 10) + SourceIndex(0) name (Foo) -4 >Emitted(4, 13) Source(11, 13) + SourceIndex(0) name (Foo) +1 >Emitted(4, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(4, 9) Source(11, 9) + SourceIndex(0) +3 >Emitted(4, 10) Source(11, 10) + SourceIndex(0) +4 >Emitted(4, 13) Source(11, 13) + SourceIndex(0) --- >>>isn't this a lot of fun"; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -98,8 +98,8 @@ sourceFile:sourceMap-StringLiteralWithNewLine.ts 1->"test 2\ >isn't this a lot of fun" 2 > ; -1->Emitted(5, 25) Source(12, 25) + SourceIndex(0) name (Foo) -2 >Emitted(5, 26) Source(12, 26) + SourceIndex(0) name (Foo) +1->Emitted(5, 25) Source(12, 25) + SourceIndex(0) +2 >Emitted(5, 26) Source(12, 26) + SourceIndex(0) --- >>> var z = window.document; 1->^^^^ @@ -119,14 +119,14 @@ sourceFile:sourceMap-StringLiteralWithNewLine.ts 6 > . 7 > document 8 > ; -1->Emitted(6, 5) Source(13, 5) + SourceIndex(0) name (Foo) -2 >Emitted(6, 9) Source(13, 9) + SourceIndex(0) name (Foo) -3 >Emitted(6, 10) Source(13, 10) + SourceIndex(0) name (Foo) -4 >Emitted(6, 13) Source(13, 13) + SourceIndex(0) name (Foo) -5 >Emitted(6, 19) Source(13, 19) + SourceIndex(0) name (Foo) -6 >Emitted(6, 20) Source(13, 20) + SourceIndex(0) name (Foo) -7 >Emitted(6, 28) Source(13, 28) + SourceIndex(0) name (Foo) -8 >Emitted(6, 29) Source(13, 29) + SourceIndex(0) name (Foo) +1->Emitted(6, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(13, 9) + SourceIndex(0) +3 >Emitted(6, 10) Source(13, 10) + SourceIndex(0) +4 >Emitted(6, 13) Source(13, 13) + SourceIndex(0) +5 >Emitted(6, 19) Source(13, 19) + SourceIndex(0) +6 >Emitted(6, 20) Source(13, 20) + SourceIndex(0) +7 >Emitted(6, 28) Source(13, 28) + SourceIndex(0) +8 >Emitted(6, 29) Source(13, 29) + SourceIndex(0) --- >>>})(Foo || (Foo = {})); 1 > @@ -150,8 +150,8 @@ sourceFile:sourceMap-StringLiteralWithNewLine.ts > isn't this a lot of fun"; > var z = window.document; > } -1 >Emitted(7, 1) Source(14, 1) + SourceIndex(0) name (Foo) -2 >Emitted(7, 2) Source(14, 2) + SourceIndex(0) name (Foo) +1 >Emitted(7, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(14, 2) + SourceIndex(0) 3 >Emitted(7, 4) Source(9, 8) + SourceIndex(0) 4 >Emitted(7, 7) Source(9, 11) + SourceIndex(0) 5 >Emitted(7, 12) Source(9, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map index 7f660400470..7c97d8f302f 100644 --- a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map +++ b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map @@ -1,2 +1,2 @@ //// [sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js.map] -{"version":3,"file":"sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js","sourceRoot":"","sources":["sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts"],"names":["Q","Q.P"],"mappings":"AAAA,IAAO,CAAC,CAKP;AALD,WAAO,CAAC,EAAC,CAAC;IACNA;QACIC,YAAYA;QACZA,IAAIA,CAACA,GAAGA,CAACA,CAACA;IACdA,CAACA;AACLD,CAACA,EALM,CAAC,KAAD,CAAC,QAKP"} \ No newline at end of file +{"version":3,"file":"sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.js","sourceRoot":"","sources":["sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.ts"],"names":[],"mappings":"AAAA,IAAO,CAAC,CAKP;AALD,WAAO,CAAC,EAAC,CAAC;IACN;QACI,YAAY;QACZ,IAAI,CAAC,GAAG,CAAC,CAAC;IACd,CAAC;AACL,CAAC,EALM,CAAC,KAAD,CAAC,QAKP"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.sourcemap.txt b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.sourcemap.txt index 5413f4bbc23..0872b1f31eb 100644 --- a/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.sourcemap.txt +++ b/tests/baselines/reference/sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.sourcemap.txt @@ -51,7 +51,7 @@ sourceFile:sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.t 2 > ^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) name (Q) +1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) --- >>> // Test this 1->^^^^^^^^ @@ -59,8 +59,8 @@ sourceFile:sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.t 1->function P() { > 2 > // Test this -1->Emitted(4, 9) Source(3, 9) + SourceIndex(0) name (Q.P) -2 >Emitted(4, 21) Source(3, 21) + SourceIndex(0) name (Q.P) +1->Emitted(4, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(4, 21) Source(3, 21) + SourceIndex(0) --- >>> var a = 1; 1 >^^^^^^^^ @@ -76,12 +76,12 @@ sourceFile:sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.t 4 > = 5 > 1 6 > ; -1 >Emitted(5, 9) Source(4, 9) + SourceIndex(0) name (Q.P) -2 >Emitted(5, 13) Source(4, 13) + SourceIndex(0) name (Q.P) -3 >Emitted(5, 14) Source(4, 14) + SourceIndex(0) name (Q.P) -4 >Emitted(5, 17) Source(4, 17) + SourceIndex(0) name (Q.P) -5 >Emitted(5, 18) Source(4, 18) + SourceIndex(0) name (Q.P) -6 >Emitted(5, 19) Source(4, 19) + SourceIndex(0) name (Q.P) +1 >Emitted(5, 9) Source(4, 9) + SourceIndex(0) +2 >Emitted(5, 13) Source(4, 13) + SourceIndex(0) +3 >Emitted(5, 14) Source(4, 14) + SourceIndex(0) +4 >Emitted(5, 17) Source(4, 17) + SourceIndex(0) +5 >Emitted(5, 18) Source(4, 18) + SourceIndex(0) +6 >Emitted(5, 19) Source(4, 19) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -90,8 +90,8 @@ sourceFile:sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.t 1 > > 2 > } -1 >Emitted(6, 5) Source(5, 5) + SourceIndex(0) name (Q.P) -2 >Emitted(6, 6) Source(5, 6) + SourceIndex(0) name (Q.P) +1 >Emitted(6, 5) Source(5, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(5, 6) + SourceIndex(0) --- >>>})(Q || (Q = {})); 1-> @@ -115,8 +115,8 @@ sourceFile:sourceMapForFunctionInInternalModuleWithCommentPrecedingStatement01.t > var a = 1; > } > } -1->Emitted(7, 1) Source(6, 1) + SourceIndex(0) name (Q) -2 >Emitted(7, 2) Source(6, 2) + SourceIndex(0) name (Q) +1->Emitted(7, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(6, 2) + SourceIndex(0) 3 >Emitted(7, 4) Source(1, 8) + SourceIndex(0) 4 >Emitted(7, 5) Source(1, 9) + SourceIndex(0) 5 >Emitted(7, 10) Source(1, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js.map b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js.map index bdfba243ab6..57f022d5ccc 100644 --- a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js.map +++ b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.js.map @@ -1,2 +1,2 @@ //// [sourceMapForFunctionWithCommentPrecedingStatement01.js.map] -{"version":3,"file":"sourceMapForFunctionWithCommentPrecedingStatement01.js","sourceRoot":"","sources":["sourceMapForFunctionWithCommentPrecedingStatement01.ts"],"names":["P"],"mappings":"AAAA;IACIA,YAAYA;IACZA,IAAIA,CAACA,GAAGA,CAACA,CAACA;AACdA,CAACA"} \ No newline at end of file +{"version":3,"file":"sourceMapForFunctionWithCommentPrecedingStatement01.js","sourceRoot":"","sources":["sourceMapForFunctionWithCommentPrecedingStatement01.ts"],"names":[],"mappings":"AAAA;IACI,YAAY;IACZ,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.sourcemap.txt b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.sourcemap.txt index 65037c69437..3c16823387c 100644 --- a/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.sourcemap.txt +++ b/tests/baselines/reference/sourceMapForFunctionWithCommentPrecedingStatement01.sourcemap.txt @@ -20,8 +20,8 @@ sourceFile:sourceMapForFunctionWithCommentPrecedingStatement01.ts 1->function P() { > 2 > // Test this -1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) name (P) -2 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) name (P) +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) --- >>> var a = 1; 1 >^^^^ @@ -37,12 +37,12 @@ sourceFile:sourceMapForFunctionWithCommentPrecedingStatement01.ts 4 > = 5 > 1 6 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) name (P) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) name (P) -3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) name (P) -4 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) name (P) -5 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) name (P) -6 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) name (P) +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) +5 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +6 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) --- >>>} 1 > @@ -51,7 +51,7 @@ sourceFile:sourceMapForFunctionWithCommentPrecedingStatement01.ts 1 > > 2 >} -1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0) name (P) -2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) name (P) +1 >Emitted(4, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapForFunctionWithCommentPrecedingStatement01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapSample.js b/tests/baselines/reference/sourceMapSample.js index 96c78c94c0c..4b710b89234 100644 --- a/tests/baselines/reference/sourceMapSample.js +++ b/tests/baselines/reference/sourceMapSample.js @@ -49,7 +49,7 @@ var Foo; return "

" + this.greeting + "

"; }; return Greeter; - })(); + }()); function foo(greeting) { return new Greeter(greeting); } diff --git a/tests/baselines/reference/sourceMapSample.js.map b/tests/baselines/reference/sourceMapSample.js.map index 615db73973a..2429a04c88b 100644 --- a/tests/baselines/reference/sourceMapSample.js.map +++ b/tests/baselines/reference/sourceMapSample.js.map @@ -1,2 +1,2 @@ //// [sourceMapSample.js.map] -{"version":3,"file":"sourceMapSample.js","sourceRoot":"","sources":["sourceMapSample.ts"],"names":["Foo","Foo.Bar","Foo.Bar.Greeter","Foo.Bar.Greeter.constructor","Foo.Bar.Greeter.greet","Foo.Bar.foo","Foo.Bar.foo2"],"mappings":"AAAA,IAAO,GAAG,CAkCT;AAlCD,WAAO,GAAG;IAACA,IAAAA,GAAGA,CAkCbA;IAlCUA,WAAAA,GAAGA,EAACA,CAACA;QACZC,YAAYA,CAACA;QAEbA;YACIC,iBAAmBA,QAAgBA;gBAAhBC,aAAQA,GAARA,QAAQA,CAAQA;YACnCA,CAACA;YAEDD,uBAAKA,GAALA;gBACIE,MAAMA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,QAAQA,GAAGA,OAAOA,CAACA;YAC5CA,CAACA;YACLF,cAACA;QAADA,CAACA,AAPDD,IAOCA;QAGDA,aAAaA,QAAgBA;YACzBI,MAAMA,CAACA,IAAIA,OAAOA,CAACA,QAAQA,CAACA,CAACA;QACjCA,CAACA;QAEDJ,IAAIA,OAAOA,GAAGA,IAAIA,OAAOA,CAACA,eAAeA,CAACA,CAACA;QAC3CA,IAAIA,GAAGA,GAAGA,OAAOA,CAACA,KAAKA,EAAEA,CAACA;QAE1BA,cAAcA,QAAgBA;YAAEK,uBAA0BA;iBAA1BA,WAA0BA,CAA1BA,sBAA0BA,CAA1BA,IAA0BA;gBAA1BA,sCAA0BA;;YACtDA,IAAIA,QAAQA,GAAcA,EAAEA,CAACA;YAC7BA,QAAQA,CAACA,CAACA,CAACA,GAAGA,IAAIA,OAAOA,CAACA,QAAQA,CAACA,CAACA;YACpCA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,aAAaA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;gBAC5CA,QAAQA,CAACA,IAAIA,CAACA,IAAIA,OAAOA,CAACA,aAAaA,CAACA,CAACA,CAACA,CAACA,CAACA,CAACA;YACjDA,CAACA;YAEDA,MAAMA,CAACA,QAAQA,CAACA;QACpBA,CAACA;QAEDL,IAAIA,CAACA,GAAGA,IAAIA,CAACA,OAAOA,EAAEA,OAAOA,EAAEA,GAAGA,CAACA,CAACA;QACpCA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,CAACA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;YAChCA,CAACA,CAACA,CAACA,CAACA,CAACA,KAAKA,EAAEA,CAACA;QACjBA,CAACA;IACLA,CAACA,EAlCUD,GAAGA,GAAHA,OAAGA,KAAHA,OAAGA,QAkCbA;AAADA,CAACA,EAlCM,GAAG,KAAH,GAAG,QAkCT"} \ No newline at end of file +{"version":3,"file":"sourceMapSample.js","sourceRoot":"","sources":["sourceMapSample.ts"],"names":[],"mappings":"AAAA,IAAO,GAAG,CAkCT;AAlCD,WAAO,GAAG;IAAC,IAAA,GAAG,CAkCb;IAlCU,WAAA,GAAG,EAAC,CAAC;QACZ,YAAY,CAAC;QAEb;YACI,iBAAmB,QAAgB;gBAAhB,aAAQ,GAAR,QAAQ,CAAQ;YACnC,CAAC;YAED,uBAAK,GAAL;gBACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YAC5C,CAAC;YACL,cAAC;QAAD,CAAC,AAPD,IAOC;QAGD,aAAa,QAAgB;YACzB,MAAM,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAI,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;QAE1B,cAAc,QAAgB;YAAE,uBAA0B;iBAA1B,WAA0B,CAA1B,sBAA0B,CAA1B,IAA0B;gBAA1B,sCAA0B;;YACtD,IAAI,QAAQ,GAAc,EAAE,CAAC;YAC7B,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC;YAED,MAAM,CAAC,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QACpC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACL,CAAC,EAlCU,GAAG,GAAH,OAAG,KAAH,OAAG,QAkCb;AAAD,CAAC,EAlCM,GAAG,KAAH,GAAG,QAkCT"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapSample.sourcemap.txt b/tests/baselines/reference/sourceMapSample.sourcemap.txt index df35ff4257f..0fb03dacf48 100644 --- a/tests/baselines/reference/sourceMapSample.sourcemap.txt +++ b/tests/baselines/reference/sourceMapSample.sourcemap.txt @@ -112,10 +112,10 @@ sourceFile:sourceMapSample.ts > b[j].greet(); > } > } -1 >Emitted(3, 5) Source(1, 12) + SourceIndex(0) name (Foo) -2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) name (Foo) -3 >Emitted(3, 12) Source(1, 15) + SourceIndex(0) name (Foo) -4 >Emitted(3, 13) Source(35, 2) + SourceIndex(0) name (Foo) +1 >Emitted(3, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) +3 >Emitted(3, 12) Source(1, 15) + SourceIndex(0) +4 >Emitted(3, 13) Source(35, 2) + SourceIndex(0) --- >>> (function (Bar) { 1->^^^^ @@ -129,11 +129,11 @@ sourceFile:sourceMapSample.ts 3 > Bar 4 > 5 > { -1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) name (Foo) -2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) name (Foo) -3 >Emitted(4, 19) Source(1, 15) + SourceIndex(0) name (Foo) -4 >Emitted(4, 21) Source(1, 16) + SourceIndex(0) name (Foo) -5 >Emitted(4, 22) Source(1, 17) + SourceIndex(0) name (Foo) +1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) +3 >Emitted(4, 19) Source(1, 15) + SourceIndex(0) +4 >Emitted(4, 21) Source(1, 16) + SourceIndex(0) +5 >Emitted(4, 22) Source(1, 17) + SourceIndex(0) --- >>> "use strict"; 1->^^^^^^^^ @@ -144,9 +144,9 @@ sourceFile:sourceMapSample.ts > 2 > "use strict" 3 > ; -1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(5, 21) Source(2, 17) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(5, 22) Source(2, 18) + SourceIndex(0) name (Foo.Bar) +1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(5, 21) Source(2, 17) + SourceIndex(0) +3 >Emitted(5, 22) Source(2, 18) + SourceIndex(0) --- >>> var Greeter = (function () { 1->^^^^^^^^ @@ -154,7 +154,7 @@ sourceFile:sourceMapSample.ts 1-> > > -1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) name (Foo.Bar) +1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) --- >>> function Greeter(greeting) { 1->^^^^^^^^^^^^ @@ -165,9 +165,9 @@ sourceFile:sourceMapSample.ts > 2 > constructor(public 3 > greeting: string -1->Emitted(7, 13) Source(5, 9) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(7, 30) Source(5, 28) + SourceIndex(0) name (Foo.Bar.Greeter) -3 >Emitted(7, 38) Source(5, 44) + SourceIndex(0) name (Foo.Bar.Greeter) +1->Emitted(7, 13) Source(5, 9) + SourceIndex(0) +2 >Emitted(7, 30) Source(5, 28) + SourceIndex(0) +3 >Emitted(7, 38) Source(5, 44) + SourceIndex(0) --- >>> this.greeting = greeting; 1->^^^^^^^^^^^^^^^^ @@ -180,11 +180,11 @@ sourceFile:sourceMapSample.ts 3 > 4 > greeting 5 > : string -1->Emitted(8, 17) Source(5, 28) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -2 >Emitted(8, 30) Source(5, 36) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -3 >Emitted(8, 33) Source(5, 28) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -4 >Emitted(8, 41) Source(5, 36) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -5 >Emitted(8, 42) Source(5, 44) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) +1->Emitted(8, 17) Source(5, 28) + SourceIndex(0) +2 >Emitted(8, 30) Source(5, 36) + SourceIndex(0) +3 >Emitted(8, 33) Source(5, 28) + SourceIndex(0) +4 >Emitted(8, 41) Source(5, 36) + SourceIndex(0) +5 >Emitted(8, 42) Source(5, 44) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -193,8 +193,8 @@ sourceFile:sourceMapSample.ts 1 >) { > 2 > } -1 >Emitted(9, 13) Source(6, 9) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -2 >Emitted(9, 14) Source(6, 10) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) +1 >Emitted(9, 13) Source(6, 9) + SourceIndex(0) +2 >Emitted(9, 14) Source(6, 10) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^^^^^^^^^ @@ -206,9 +206,9 @@ sourceFile:sourceMapSample.ts > 2 > greet 3 > -1->Emitted(10, 13) Source(8, 9) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(10, 36) Source(8, 14) + SourceIndex(0) name (Foo.Bar.Greeter) -3 >Emitted(10, 39) Source(8, 9) + SourceIndex(0) name (Foo.Bar.Greeter) +1->Emitted(10, 13) Source(8, 9) + SourceIndex(0) +2 >Emitted(10, 36) Source(8, 14) + SourceIndex(0) +3 >Emitted(10, 39) Source(8, 9) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^^^^^^^^^ @@ -234,17 +234,17 @@ sourceFile:sourceMapSample.ts 9 > + 10> "" 11> ; -1->Emitted(11, 17) Source(9, 13) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -2 >Emitted(11, 23) Source(9, 19) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -3 >Emitted(11, 24) Source(9, 20) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -4 >Emitted(11, 30) Source(9, 26) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -5 >Emitted(11, 33) Source(9, 29) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -6 >Emitted(11, 37) Source(9, 33) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -7 >Emitted(11, 38) Source(9, 34) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -8 >Emitted(11, 46) Source(9, 42) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -9 >Emitted(11, 49) Source(9, 45) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -10>Emitted(11, 56) Source(9, 52) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -11>Emitted(11, 57) Source(9, 53) + SourceIndex(0) name (Foo.Bar.Greeter.greet) +1->Emitted(11, 17) Source(9, 13) + SourceIndex(0) +2 >Emitted(11, 23) Source(9, 19) + SourceIndex(0) +3 >Emitted(11, 24) Source(9, 20) + SourceIndex(0) +4 >Emitted(11, 30) Source(9, 26) + SourceIndex(0) +5 >Emitted(11, 33) Source(9, 29) + SourceIndex(0) +6 >Emitted(11, 37) Source(9, 33) + SourceIndex(0) +7 >Emitted(11, 38) Source(9, 34) + SourceIndex(0) +8 >Emitted(11, 46) Source(9, 42) + SourceIndex(0) +9 >Emitted(11, 49) Source(9, 45) + SourceIndex(0) +10>Emitted(11, 56) Source(9, 52) + SourceIndex(0) +11>Emitted(11, 57) Source(9, 53) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^ @@ -253,8 +253,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(12, 13) Source(10, 9) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -2 >Emitted(12, 14) Source(10, 10) + SourceIndex(0) name (Foo.Bar.Greeter.greet) +1 >Emitted(12, 13) Source(10, 9) + SourceIndex(0) +2 >Emitted(12, 14) Source(10, 10) + SourceIndex(0) --- >>> return Greeter; 1->^^^^^^^^^^^^ @@ -262,10 +262,10 @@ sourceFile:sourceMapSample.ts 1-> > 2 > } -1->Emitted(13, 13) Source(11, 5) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(13, 27) Source(11, 6) + SourceIndex(0) name (Foo.Bar.Greeter) +1->Emitted(13, 13) Source(11, 5) + SourceIndex(0) +2 >Emitted(13, 27) Source(11, 6) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^ 2 > ^ 3 > @@ -282,10 +282,10 @@ sourceFile:sourceMapSample.ts > return "

" + this.greeting + "

"; > } > } -1 >Emitted(14, 9) Source(11, 5) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(14, 10) Source(11, 6) + SourceIndex(0) name (Foo.Bar.Greeter) -3 >Emitted(14, 10) Source(4, 5) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(14, 14) Source(11, 6) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(14, 9) Source(11, 5) + SourceIndex(0) +2 >Emitted(14, 10) Source(11, 6) + SourceIndex(0) +3 >Emitted(14, 10) Source(4, 5) + SourceIndex(0) +4 >Emitted(14, 14) Source(11, 6) + SourceIndex(0) --- >>> function foo(greeting) { 1->^^^^^^^^ @@ -298,9 +298,9 @@ sourceFile:sourceMapSample.ts > 2 > function foo( 3 > greeting: string -1->Emitted(15, 9) Source(14, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(15, 22) Source(14, 18) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(15, 30) Source(14, 34) + SourceIndex(0) name (Foo.Bar) +1->Emitted(15, 9) Source(14, 5) + SourceIndex(0) +2 >Emitted(15, 22) Source(14, 18) + SourceIndex(0) +3 >Emitted(15, 30) Source(14, 34) + SourceIndex(0) --- >>> return new Greeter(greeting); 1->^^^^^^^^^^^^ @@ -322,15 +322,15 @@ sourceFile:sourceMapSample.ts 7 > greeting 8 > ) 9 > ; -1->Emitted(16, 13) Source(15, 9) + SourceIndex(0) name (Foo.Bar.foo) -2 >Emitted(16, 19) Source(15, 15) + SourceIndex(0) name (Foo.Bar.foo) -3 >Emitted(16, 20) Source(15, 16) + SourceIndex(0) name (Foo.Bar.foo) -4 >Emitted(16, 24) Source(15, 20) + SourceIndex(0) name (Foo.Bar.foo) -5 >Emitted(16, 31) Source(15, 27) + SourceIndex(0) name (Foo.Bar.foo) -6 >Emitted(16, 32) Source(15, 28) + SourceIndex(0) name (Foo.Bar.foo) -7 >Emitted(16, 40) Source(15, 36) + SourceIndex(0) name (Foo.Bar.foo) -8 >Emitted(16, 41) Source(15, 37) + SourceIndex(0) name (Foo.Bar.foo) -9 >Emitted(16, 42) Source(15, 38) + SourceIndex(0) name (Foo.Bar.foo) +1->Emitted(16, 13) Source(15, 9) + SourceIndex(0) +2 >Emitted(16, 19) Source(15, 15) + SourceIndex(0) +3 >Emitted(16, 20) Source(15, 16) + SourceIndex(0) +4 >Emitted(16, 24) Source(15, 20) + SourceIndex(0) +5 >Emitted(16, 31) Source(15, 27) + SourceIndex(0) +6 >Emitted(16, 32) Source(15, 28) + SourceIndex(0) +7 >Emitted(16, 40) Source(15, 36) + SourceIndex(0) +8 >Emitted(16, 41) Source(15, 37) + SourceIndex(0) +9 >Emitted(16, 42) Source(15, 38) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -339,8 +339,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(17, 9) Source(16, 5) + SourceIndex(0) name (Foo.Bar.foo) -2 >Emitted(17, 10) Source(16, 6) + SourceIndex(0) name (Foo.Bar.foo) +1 >Emitted(17, 9) Source(16, 5) + SourceIndex(0) +2 >Emitted(17, 10) Source(16, 6) + SourceIndex(0) --- >>> var greeter = new Greeter("Hello, world!"); 1->^^^^^^^^ @@ -365,16 +365,16 @@ sourceFile:sourceMapSample.ts 8 > "Hello, world!" 9 > ) 10> ; -1->Emitted(18, 9) Source(18, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(18, 13) Source(18, 9) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(18, 20) Source(18, 16) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(18, 23) Source(18, 19) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(18, 27) Source(18, 23) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(18, 34) Source(18, 30) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(18, 35) Source(18, 31) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(18, 50) Source(18, 46) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(18, 51) Source(18, 47) + SourceIndex(0) name (Foo.Bar) -10>Emitted(18, 52) Source(18, 48) + SourceIndex(0) name (Foo.Bar) +1->Emitted(18, 9) Source(18, 5) + SourceIndex(0) +2 >Emitted(18, 13) Source(18, 9) + SourceIndex(0) +3 >Emitted(18, 20) Source(18, 16) + SourceIndex(0) +4 >Emitted(18, 23) Source(18, 19) + SourceIndex(0) +5 >Emitted(18, 27) Source(18, 23) + SourceIndex(0) +6 >Emitted(18, 34) Source(18, 30) + SourceIndex(0) +7 >Emitted(18, 35) Source(18, 31) + SourceIndex(0) +8 >Emitted(18, 50) Source(18, 46) + SourceIndex(0) +9 >Emitted(18, 51) Source(18, 47) + SourceIndex(0) +10>Emitted(18, 52) Source(18, 48) + SourceIndex(0) --- >>> var str = greeter.greet(); 1 >^^^^^^^^ @@ -396,15 +396,15 @@ sourceFile:sourceMapSample.ts 7 > greet 8 > () 9 > ; -1 >Emitted(19, 9) Source(19, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(19, 13) Source(19, 9) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(19, 16) Source(19, 12) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(19, 19) Source(19, 15) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(19, 26) Source(19, 22) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(19, 27) Source(19, 23) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(19, 32) Source(19, 28) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(19, 34) Source(19, 30) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(19, 35) Source(19, 31) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(19, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 13) Source(19, 9) + SourceIndex(0) +3 >Emitted(19, 16) Source(19, 12) + SourceIndex(0) +4 >Emitted(19, 19) Source(19, 15) + SourceIndex(0) +5 >Emitted(19, 26) Source(19, 22) + SourceIndex(0) +6 >Emitted(19, 27) Source(19, 23) + SourceIndex(0) +7 >Emitted(19, 32) Source(19, 28) + SourceIndex(0) +8 >Emitted(19, 34) Source(19, 30) + SourceIndex(0) +9 >Emitted(19, 35) Source(19, 31) + SourceIndex(0) --- >>> function foo2(greeting) { 1 >^^^^^^^^ @@ -416,9 +416,9 @@ sourceFile:sourceMapSample.ts > 2 > function foo2( 3 > greeting: string -1 >Emitted(20, 9) Source(21, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(20, 23) Source(21, 19) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(20, 31) Source(21, 35) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(20, 9) Source(21, 5) + SourceIndex(0) +2 >Emitted(20, 23) Source(21, 19) + SourceIndex(0) +3 >Emitted(20, 31) Source(21, 35) + SourceIndex(0) --- >>> var restGreetings = []; 1->^^^^^^^^^^^^ @@ -426,8 +426,8 @@ sourceFile:sourceMapSample.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->, 2 > ...restGreetings: string[] -1->Emitted(21, 13) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(21, 36) Source(21, 63) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(21, 13) Source(21, 37) + SourceIndex(0) +2 >Emitted(21, 36) Source(21, 63) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^^^^^ @@ -442,20 +442,20 @@ sourceFile:sourceMapSample.ts 4 > ...restGreetings: string[] 5 > 6 > ...restGreetings: string[] -1->Emitted(22, 18) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(22, 29) Source(21, 63) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(22, 30) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(22, 52) Source(21, 63) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(22, 53) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(22, 57) Source(21, 63) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(22, 18) Source(21, 37) + SourceIndex(0) +2 >Emitted(22, 29) Source(21, 63) + SourceIndex(0) +3 >Emitted(22, 30) Source(21, 37) + SourceIndex(0) +4 >Emitted(22, 52) Source(21, 63) + SourceIndex(0) +5 >Emitted(22, 53) Source(21, 37) + SourceIndex(0) +6 >Emitted(22, 57) Source(21, 63) + SourceIndex(0) --- >>> restGreetings[_i - 1] = arguments[_i]; 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...restGreetings: string[] -1 >Emitted(23, 17) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(23, 55) Source(21, 63) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(23, 17) Source(21, 37) + SourceIndex(0) +2 >Emitted(23, 55) Source(21, 63) + SourceIndex(0) --- >>> } >>> var greeters = []; @@ -473,12 +473,12 @@ sourceFile:sourceMapSample.ts 4 > : Greeter[] = 5 > [] 6 > ; -1 >Emitted(25, 13) Source(22, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(25, 17) Source(22, 13) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(25, 25) Source(22, 21) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(25, 28) Source(22, 35) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(25, 30) Source(22, 37) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(25, 31) Source(22, 38) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(25, 13) Source(22, 9) + SourceIndex(0) +2 >Emitted(25, 17) Source(22, 13) + SourceIndex(0) +3 >Emitted(25, 25) Source(22, 21) + SourceIndex(0) +4 >Emitted(25, 28) Source(22, 35) + SourceIndex(0) +5 >Emitted(25, 30) Source(22, 37) + SourceIndex(0) +6 >Emitted(25, 31) Source(22, 38) + SourceIndex(0) --- >>> greeters[0] = new Greeter(greeting); 1->^^^^^^^^^^^^ @@ -507,18 +507,18 @@ sourceFile:sourceMapSample.ts 10> greeting 11> ) 12> ; -1->Emitted(26, 13) Source(23, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(26, 21) Source(23, 17) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(26, 22) Source(23, 18) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(26, 23) Source(23, 19) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(26, 24) Source(23, 20) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(26, 27) Source(23, 23) + SourceIndex(0) name (Foo.Bar.foo2) -7 >Emitted(26, 31) Source(23, 27) + SourceIndex(0) name (Foo.Bar.foo2) -8 >Emitted(26, 38) Source(23, 34) + SourceIndex(0) name (Foo.Bar.foo2) -9 >Emitted(26, 39) Source(23, 35) + SourceIndex(0) name (Foo.Bar.foo2) -10>Emitted(26, 47) Source(23, 43) + SourceIndex(0) name (Foo.Bar.foo2) -11>Emitted(26, 48) Source(23, 44) + SourceIndex(0) name (Foo.Bar.foo2) -12>Emitted(26, 49) Source(23, 45) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(26, 13) Source(23, 9) + SourceIndex(0) +2 >Emitted(26, 21) Source(23, 17) + SourceIndex(0) +3 >Emitted(26, 22) Source(23, 18) + SourceIndex(0) +4 >Emitted(26, 23) Source(23, 19) + SourceIndex(0) +5 >Emitted(26, 24) Source(23, 20) + SourceIndex(0) +6 >Emitted(26, 27) Source(23, 23) + SourceIndex(0) +7 >Emitted(26, 31) Source(23, 27) + SourceIndex(0) +8 >Emitted(26, 38) Source(23, 34) + SourceIndex(0) +9 >Emitted(26, 39) Source(23, 35) + SourceIndex(0) +10>Emitted(26, 47) Source(23, 43) + SourceIndex(0) +11>Emitted(26, 48) Source(23, 44) + SourceIndex(0) +12>Emitted(26, 49) Source(23, 45) + SourceIndex(0) --- >>> for (var i = 0; i < restGreetings.length; i++) { 1->^^^^^^^^^^^^ @@ -563,26 +563,26 @@ sourceFile:sourceMapSample.ts 18> ++ 19> ) 20> { -1->Emitted(27, 13) Source(24, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(27, 16) Source(24, 12) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(27, 17) Source(24, 13) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(27, 18) Source(24, 14) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(27, 21) Source(24, 17) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(27, 22) Source(24, 18) + SourceIndex(0) name (Foo.Bar.foo2) -7 >Emitted(27, 23) Source(24, 19) + SourceIndex(0) name (Foo.Bar.foo2) -8 >Emitted(27, 26) Source(24, 22) + SourceIndex(0) name (Foo.Bar.foo2) -9 >Emitted(27, 27) Source(24, 23) + SourceIndex(0) name (Foo.Bar.foo2) -10>Emitted(27, 29) Source(24, 25) + SourceIndex(0) name (Foo.Bar.foo2) -11>Emitted(27, 30) Source(24, 26) + SourceIndex(0) name (Foo.Bar.foo2) -12>Emitted(27, 33) Source(24, 29) + SourceIndex(0) name (Foo.Bar.foo2) -13>Emitted(27, 46) Source(24, 42) + SourceIndex(0) name (Foo.Bar.foo2) -14>Emitted(27, 47) Source(24, 43) + SourceIndex(0) name (Foo.Bar.foo2) -15>Emitted(27, 53) Source(24, 49) + SourceIndex(0) name (Foo.Bar.foo2) -16>Emitted(27, 55) Source(24, 51) + SourceIndex(0) name (Foo.Bar.foo2) -17>Emitted(27, 56) Source(24, 52) + SourceIndex(0) name (Foo.Bar.foo2) -18>Emitted(27, 58) Source(24, 54) + SourceIndex(0) name (Foo.Bar.foo2) -19>Emitted(27, 60) Source(24, 56) + SourceIndex(0) name (Foo.Bar.foo2) -20>Emitted(27, 61) Source(24, 57) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(27, 13) Source(24, 9) + SourceIndex(0) +2 >Emitted(27, 16) Source(24, 12) + SourceIndex(0) +3 >Emitted(27, 17) Source(24, 13) + SourceIndex(0) +4 >Emitted(27, 18) Source(24, 14) + SourceIndex(0) +5 >Emitted(27, 21) Source(24, 17) + SourceIndex(0) +6 >Emitted(27, 22) Source(24, 18) + SourceIndex(0) +7 >Emitted(27, 23) Source(24, 19) + SourceIndex(0) +8 >Emitted(27, 26) Source(24, 22) + SourceIndex(0) +9 >Emitted(27, 27) Source(24, 23) + SourceIndex(0) +10>Emitted(27, 29) Source(24, 25) + SourceIndex(0) +11>Emitted(27, 30) Source(24, 26) + SourceIndex(0) +12>Emitted(27, 33) Source(24, 29) + SourceIndex(0) +13>Emitted(27, 46) Source(24, 42) + SourceIndex(0) +14>Emitted(27, 47) Source(24, 43) + SourceIndex(0) +15>Emitted(27, 53) Source(24, 49) + SourceIndex(0) +16>Emitted(27, 55) Source(24, 51) + SourceIndex(0) +17>Emitted(27, 56) Source(24, 52) + SourceIndex(0) +18>Emitted(27, 58) Source(24, 54) + SourceIndex(0) +19>Emitted(27, 60) Source(24, 56) + SourceIndex(0) +20>Emitted(27, 61) Source(24, 57) + SourceIndex(0) --- >>> greeters.push(new Greeter(restGreetings[i])); 1->^^^^^^^^^^^^^^^^ @@ -616,21 +616,21 @@ sourceFile:sourceMapSample.ts 13> ) 14> ) 15> ; -1->Emitted(28, 17) Source(25, 13) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(28, 25) Source(25, 21) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(28, 26) Source(25, 22) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(28, 30) Source(25, 26) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(28, 31) Source(25, 27) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(28, 35) Source(25, 31) + SourceIndex(0) name (Foo.Bar.foo2) -7 >Emitted(28, 42) Source(25, 38) + SourceIndex(0) name (Foo.Bar.foo2) -8 >Emitted(28, 43) Source(25, 39) + SourceIndex(0) name (Foo.Bar.foo2) -9 >Emitted(28, 56) Source(25, 52) + SourceIndex(0) name (Foo.Bar.foo2) -10>Emitted(28, 57) Source(25, 53) + SourceIndex(0) name (Foo.Bar.foo2) -11>Emitted(28, 58) Source(25, 54) + SourceIndex(0) name (Foo.Bar.foo2) -12>Emitted(28, 59) Source(25, 55) + SourceIndex(0) name (Foo.Bar.foo2) -13>Emitted(28, 60) Source(25, 56) + SourceIndex(0) name (Foo.Bar.foo2) -14>Emitted(28, 61) Source(25, 57) + SourceIndex(0) name (Foo.Bar.foo2) -15>Emitted(28, 62) Source(25, 58) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(28, 17) Source(25, 13) + SourceIndex(0) +2 >Emitted(28, 25) Source(25, 21) + SourceIndex(0) +3 >Emitted(28, 26) Source(25, 22) + SourceIndex(0) +4 >Emitted(28, 30) Source(25, 26) + SourceIndex(0) +5 >Emitted(28, 31) Source(25, 27) + SourceIndex(0) +6 >Emitted(28, 35) Source(25, 31) + SourceIndex(0) +7 >Emitted(28, 42) Source(25, 38) + SourceIndex(0) +8 >Emitted(28, 43) Source(25, 39) + SourceIndex(0) +9 >Emitted(28, 56) Source(25, 52) + SourceIndex(0) +10>Emitted(28, 57) Source(25, 53) + SourceIndex(0) +11>Emitted(28, 58) Source(25, 54) + SourceIndex(0) +12>Emitted(28, 59) Source(25, 55) + SourceIndex(0) +13>Emitted(28, 60) Source(25, 56) + SourceIndex(0) +14>Emitted(28, 61) Source(25, 57) + SourceIndex(0) +15>Emitted(28, 62) Source(25, 58) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -639,8 +639,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(29, 13) Source(26, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(29, 14) Source(26, 10) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(29, 13) Source(26, 9) + SourceIndex(0) +2 >Emitted(29, 14) Source(26, 10) + SourceIndex(0) --- >>> return greeters; 1->^^^^^^^^^^^^ @@ -655,11 +655,11 @@ sourceFile:sourceMapSample.ts 3 > 4 > greeters 5 > ; -1->Emitted(30, 13) Source(28, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(30, 19) Source(28, 15) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(30, 20) Source(28, 16) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(30, 28) Source(28, 24) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(30, 29) Source(28, 25) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(30, 13) Source(28, 9) + SourceIndex(0) +2 >Emitted(30, 19) Source(28, 15) + SourceIndex(0) +3 >Emitted(30, 20) Source(28, 16) + SourceIndex(0) +4 >Emitted(30, 28) Source(28, 24) + SourceIndex(0) +5 >Emitted(30, 29) Source(28, 25) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -668,8 +668,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(31, 9) Source(29, 5) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(31, 10) Source(29, 6) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(31, 9) Source(29, 5) + SourceIndex(0) +2 >Emitted(31, 10) Source(29, 6) + SourceIndex(0) --- >>> var b = foo2("Hello", "World", "!"); 1->^^^^^^^^ @@ -701,19 +701,19 @@ sourceFile:sourceMapSample.ts 11> "!" 12> ) 13> ; -1->Emitted(32, 9) Source(31, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(32, 13) Source(31, 9) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(32, 14) Source(31, 10) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(32, 17) Source(31, 13) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(32, 21) Source(31, 17) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(32, 22) Source(31, 18) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(32, 29) Source(31, 25) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(32, 31) Source(31, 27) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(32, 38) Source(31, 34) + SourceIndex(0) name (Foo.Bar) -10>Emitted(32, 40) Source(31, 36) + SourceIndex(0) name (Foo.Bar) -11>Emitted(32, 43) Source(31, 39) + SourceIndex(0) name (Foo.Bar) -12>Emitted(32, 44) Source(31, 40) + SourceIndex(0) name (Foo.Bar) -13>Emitted(32, 45) Source(31, 41) + SourceIndex(0) name (Foo.Bar) +1->Emitted(32, 9) Source(31, 5) + SourceIndex(0) +2 >Emitted(32, 13) Source(31, 9) + SourceIndex(0) +3 >Emitted(32, 14) Source(31, 10) + SourceIndex(0) +4 >Emitted(32, 17) Source(31, 13) + SourceIndex(0) +5 >Emitted(32, 21) Source(31, 17) + SourceIndex(0) +6 >Emitted(32, 22) Source(31, 18) + SourceIndex(0) +7 >Emitted(32, 29) Source(31, 25) + SourceIndex(0) +8 >Emitted(32, 31) Source(31, 27) + SourceIndex(0) +9 >Emitted(32, 38) Source(31, 34) + SourceIndex(0) +10>Emitted(32, 40) Source(31, 36) + SourceIndex(0) +11>Emitted(32, 43) Source(31, 39) + SourceIndex(0) +12>Emitted(32, 44) Source(31, 40) + SourceIndex(0) +13>Emitted(32, 45) Source(31, 41) + SourceIndex(0) --- >>> for (var j = 0; j < b.length; j++) { 1->^^^^^^^^ @@ -757,26 +757,26 @@ sourceFile:sourceMapSample.ts 18> ++ 19> ) 20> { -1->Emitted(33, 9) Source(32, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(33, 12) Source(32, 8) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(33, 13) Source(32, 9) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(33, 14) Source(32, 10) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(33, 17) Source(32, 13) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(33, 18) Source(32, 14) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(33, 19) Source(32, 15) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(33, 22) Source(32, 18) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(33, 23) Source(32, 19) + SourceIndex(0) name (Foo.Bar) -10>Emitted(33, 25) Source(32, 21) + SourceIndex(0) name (Foo.Bar) -11>Emitted(33, 26) Source(32, 22) + SourceIndex(0) name (Foo.Bar) -12>Emitted(33, 29) Source(32, 25) + SourceIndex(0) name (Foo.Bar) -13>Emitted(33, 30) Source(32, 26) + SourceIndex(0) name (Foo.Bar) -14>Emitted(33, 31) Source(32, 27) + SourceIndex(0) name (Foo.Bar) -15>Emitted(33, 37) Source(32, 33) + SourceIndex(0) name (Foo.Bar) -16>Emitted(33, 39) Source(32, 35) + SourceIndex(0) name (Foo.Bar) -17>Emitted(33, 40) Source(32, 36) + SourceIndex(0) name (Foo.Bar) -18>Emitted(33, 42) Source(32, 38) + SourceIndex(0) name (Foo.Bar) -19>Emitted(33, 44) Source(32, 40) + SourceIndex(0) name (Foo.Bar) -20>Emitted(33, 45) Source(32, 41) + SourceIndex(0) name (Foo.Bar) +1->Emitted(33, 9) Source(32, 5) + SourceIndex(0) +2 >Emitted(33, 12) Source(32, 8) + SourceIndex(0) +3 >Emitted(33, 13) Source(32, 9) + SourceIndex(0) +4 >Emitted(33, 14) Source(32, 10) + SourceIndex(0) +5 >Emitted(33, 17) Source(32, 13) + SourceIndex(0) +6 >Emitted(33, 18) Source(32, 14) + SourceIndex(0) +7 >Emitted(33, 19) Source(32, 15) + SourceIndex(0) +8 >Emitted(33, 22) Source(32, 18) + SourceIndex(0) +9 >Emitted(33, 23) Source(32, 19) + SourceIndex(0) +10>Emitted(33, 25) Source(32, 21) + SourceIndex(0) +11>Emitted(33, 26) Source(32, 22) + SourceIndex(0) +12>Emitted(33, 29) Source(32, 25) + SourceIndex(0) +13>Emitted(33, 30) Source(32, 26) + SourceIndex(0) +14>Emitted(33, 31) Source(32, 27) + SourceIndex(0) +15>Emitted(33, 37) Source(32, 33) + SourceIndex(0) +16>Emitted(33, 39) Source(32, 35) + SourceIndex(0) +17>Emitted(33, 40) Source(32, 36) + SourceIndex(0) +18>Emitted(33, 42) Source(32, 38) + SourceIndex(0) +19>Emitted(33, 44) Source(32, 40) + SourceIndex(0) +20>Emitted(33, 45) Source(32, 41) + SourceIndex(0) --- >>> b[j].greet(); 1 >^^^^^^^^^^^^ @@ -798,15 +798,15 @@ sourceFile:sourceMapSample.ts 7 > greet 8 > () 9 > ; -1 >Emitted(34, 13) Source(33, 9) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(34, 14) Source(33, 10) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(34, 15) Source(33, 11) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(34, 16) Source(33, 12) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(34, 17) Source(33, 13) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(34, 18) Source(33, 14) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(34, 23) Source(33, 19) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(34, 25) Source(33, 21) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(34, 26) Source(33, 22) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(34, 13) Source(33, 9) + SourceIndex(0) +2 >Emitted(34, 14) Source(33, 10) + SourceIndex(0) +3 >Emitted(34, 15) Source(33, 11) + SourceIndex(0) +4 >Emitted(34, 16) Source(33, 12) + SourceIndex(0) +5 >Emitted(34, 17) Source(33, 13) + SourceIndex(0) +6 >Emitted(34, 18) Source(33, 14) + SourceIndex(0) +7 >Emitted(34, 23) Source(33, 19) + SourceIndex(0) +8 >Emitted(34, 25) Source(33, 21) + SourceIndex(0) +9 >Emitted(34, 26) Source(33, 22) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -815,8 +815,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(35, 9) Source(34, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(35, 10) Source(34, 6) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(35, 9) Source(34, 5) + SourceIndex(0) +2 >Emitted(35, 10) Source(34, 6) + SourceIndex(0) --- >>> })(Bar = Foo.Bar || (Foo.Bar = {})); 1->^^^^ @@ -872,15 +872,15 @@ sourceFile:sourceMapSample.ts > b[j].greet(); > } > } -1->Emitted(36, 5) Source(35, 1) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(36, 6) Source(35, 2) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(36, 8) Source(1, 12) + SourceIndex(0) name (Foo) -4 >Emitted(36, 11) Source(1, 15) + SourceIndex(0) name (Foo) -5 >Emitted(36, 14) Source(1, 12) + SourceIndex(0) name (Foo) -6 >Emitted(36, 21) Source(1, 15) + SourceIndex(0) name (Foo) -7 >Emitted(36, 26) Source(1, 12) + SourceIndex(0) name (Foo) -8 >Emitted(36, 33) Source(1, 15) + SourceIndex(0) name (Foo) -9 >Emitted(36, 41) Source(35, 2) + SourceIndex(0) name (Foo) +1->Emitted(36, 5) Source(35, 1) + SourceIndex(0) +2 >Emitted(36, 6) Source(35, 2) + SourceIndex(0) +3 >Emitted(36, 8) Source(1, 12) + SourceIndex(0) +4 >Emitted(36, 11) Source(1, 15) + SourceIndex(0) +5 >Emitted(36, 14) Source(1, 12) + SourceIndex(0) +6 >Emitted(36, 21) Source(1, 15) + SourceIndex(0) +7 >Emitted(36, 26) Source(1, 12) + SourceIndex(0) +8 >Emitted(36, 33) Source(1, 15) + SourceIndex(0) +9 >Emitted(36, 41) Source(35, 2) + SourceIndex(0) --- >>>})(Foo || (Foo = {})); 1 > @@ -932,8 +932,8 @@ sourceFile:sourceMapSample.ts > b[j].greet(); > } > } -1 >Emitted(37, 1) Source(35, 1) + SourceIndex(0) name (Foo) -2 >Emitted(37, 2) Source(35, 2) + SourceIndex(0) name (Foo) +1 >Emitted(37, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(35, 2) + SourceIndex(0) 3 >Emitted(37, 4) Source(1, 8) + SourceIndex(0) 4 >Emitted(37, 7) Source(1, 11) + SourceIndex(0) 5 >Emitted(37, 12) Source(1, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMapValidationClass.js b/tests/baselines/reference/sourceMapValidationClass.js index eef5a723ebf..f0ddca123f9 100644 --- a/tests/baselines/reference/sourceMapValidationClass.js +++ b/tests/baselines/reference/sourceMapValidationClass.js @@ -45,5 +45,5 @@ var Greeter = (function () { configurable: true }); return Greeter; -})(); +}()); //# sourceMappingURL=sourceMapValidationClass.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClass.js.map b/tests/baselines/reference/sourceMapValidationClass.js.map index 8693cf5d0fe..6176f13bc51 100644 --- a/tests/baselines/reference/sourceMapValidationClass.js.map +++ b/tests/baselines/reference/sourceMapValidationClass.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClass.js.map] -{"version":3,"file":"sourceMapValidationClass.js","sourceRoot":"","sources":["sourceMapValidationClass.ts"],"names":["Greeter","Greeter.constructor","Greeter.greet","Greeter.fn","Greeter.greetings"],"mappings":"AAAA;IACIA,iBAAmBA,QAAgBA;QAAEC,WAAcA;aAAdA,WAAcA,CAAdA,sBAAcA,CAAdA,IAAcA;YAAdA,0BAAcA;;QAAhCA,aAAQA,GAARA,QAAQA,CAAQA;QAM3BA,OAAEA,GAAWA,EAAEA,CAACA;IALxBA,CAACA;IACDD,uBAAKA,GAALA;QACIE,MAAMA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,QAAQA,GAAGA,OAAOA,CAACA;IAC5CA,CAACA;IAGOF,oBAAEA,GAAVA;QACIG,MAAMA,CAACA,IAAIA,CAACA,QAAQA,CAACA;IACzBA,CAACA;IACDH,sBAAIA,8BAASA;aAAbA;YACII,MAAMA,CAACA,IAAIA,CAACA,QAAQA,CAACA;QACzBA,CAACA;aACDJ,UAAcA,SAAiBA;YAC3BI,IAAIA,CAACA,QAAQA,GAAGA,SAASA,CAACA;QAC9BA,CAACA;;;OAHAJ;IAILA,cAACA;AAADA,CAACA,AAjBD,IAiBC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClass.js","sourceRoot":"","sources":["sourceMapValidationClass.ts"],"names":[],"mappings":"AAAA;IACI,iBAAmB,QAAgB;QAAE,WAAc;aAAd,WAAc,CAAd,sBAAc,CAAd,IAAc;YAAd,0BAAc;;QAAhC,aAAQ,GAAR,QAAQ,CAAQ;QAM3B,OAAE,GAAW,EAAE,CAAC;IALxB,CAAC;IACD,uBAAK,GAAL;QACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAGO,oBAAE,GAAV;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,sBAAI,8BAAS;aAAb;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aACD,UAAc,SAAiB;YAC3B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC9B,CAAC;;;OAHA;IAIL,cAAC;AAAD,CAAC,AAjBD,IAiBC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt index 0e019b487bb..4173ae0ff0d 100644 --- a/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt @@ -22,9 +22,9 @@ sourceFile:sourceMapValidationClass.ts > 2 > constructor(public 3 > greeting: string -1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) name (Greeter) -3 >Emitted(2, 30) Source(2, 40) + SourceIndex(0) name (Greeter) +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) +3 >Emitted(2, 30) Source(2, 40) + SourceIndex(0) --- >>> var b = []; 1 >^^^^^^^^ @@ -32,8 +32,8 @@ sourceFile:sourceMapValidationClass.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >, 2 > ...b: string[] -1 >Emitted(3, 9) Source(2, 42) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(3, 20) Source(2, 56) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(3, 9) Source(2, 42) + SourceIndex(0) +2 >Emitted(3, 20) Source(2, 56) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^ @@ -48,20 +48,20 @@ sourceFile:sourceMapValidationClass.ts 4 > ...b: string[] 5 > 6 > ...b: string[] -1->Emitted(4, 14) Source(2, 42) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(4, 25) Source(2, 56) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(4, 26) Source(2, 42) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(4, 48) Source(2, 56) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(4, 49) Source(2, 42) + SourceIndex(0) name (Greeter.constructor) -6 >Emitted(4, 53) Source(2, 56) + SourceIndex(0) name (Greeter.constructor) +1->Emitted(4, 14) Source(2, 42) + SourceIndex(0) +2 >Emitted(4, 25) Source(2, 56) + SourceIndex(0) +3 >Emitted(4, 26) Source(2, 42) + SourceIndex(0) +4 >Emitted(4, 48) Source(2, 56) + SourceIndex(0) +5 >Emitted(4, 49) Source(2, 42) + SourceIndex(0) +6 >Emitted(4, 53) Source(2, 56) + SourceIndex(0) --- >>> b[_i - 1] = arguments[_i]; 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: string[] -1 >Emitted(5, 13) Source(2, 42) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(5, 39) Source(2, 56) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(5, 13) Source(2, 42) + SourceIndex(0) +2 >Emitted(5, 39) Source(2, 56) + SourceIndex(0) --- >>> } >>> this.greeting = greeting; @@ -75,11 +75,11 @@ sourceFile:sourceMapValidationClass.ts 3 > 4 > greeting 5 > : string -1 >Emitted(7, 9) Source(2, 24) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(7, 22) Source(2, 32) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(7, 25) Source(2, 24) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(7, 33) Source(2, 32) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(7, 34) Source(2, 40) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(7, 9) Source(2, 24) + SourceIndex(0) +2 >Emitted(7, 22) Source(2, 32) + SourceIndex(0) +3 >Emitted(7, 25) Source(2, 24) + SourceIndex(0) +4 >Emitted(7, 33) Source(2, 32) + SourceIndex(0) +5 >Emitted(7, 34) Source(2, 40) + SourceIndex(0) --- >>> this.x1 = 10; 1 >^^^^^^^^ @@ -98,11 +98,11 @@ sourceFile:sourceMapValidationClass.ts 3 > : number = 4 > 10 5 > ; -1 >Emitted(8, 9) Source(8, 13) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(8, 16) Source(8, 15) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(8, 19) Source(8, 26) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(8, 21) Source(8, 28) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(8, 22) Source(8, 29) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(8, 9) Source(8, 13) + SourceIndex(0) +2 >Emitted(8, 16) Source(8, 15) + SourceIndex(0) +3 >Emitted(8, 19) Source(8, 26) + SourceIndex(0) +4 >Emitted(8, 21) Source(8, 28) + SourceIndex(0) +5 >Emitted(8, 22) Source(8, 29) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -110,8 +110,8 @@ sourceFile:sourceMapValidationClass.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 > } -1 >Emitted(9, 5) Source(3, 5) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(9, 6) Source(3, 6) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(9, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(9, 6) Source(3, 6) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^ @@ -122,9 +122,9 @@ sourceFile:sourceMapValidationClass.ts > 2 > greet 3 > -1->Emitted(10, 5) Source(4, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(10, 28) Source(4, 10) + SourceIndex(0) name (Greeter) -3 >Emitted(10, 31) Source(4, 5) + SourceIndex(0) name (Greeter) +1->Emitted(10, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(10, 28) Source(4, 10) + SourceIndex(0) +3 >Emitted(10, 31) Source(4, 5) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^ @@ -150,17 +150,17 @@ sourceFile:sourceMapValidationClass.ts 9 > + 10> "" 11> ; -1->Emitted(11, 9) Source(5, 9) + SourceIndex(0) name (Greeter.greet) -2 >Emitted(11, 15) Source(5, 15) + SourceIndex(0) name (Greeter.greet) -3 >Emitted(11, 16) Source(5, 16) + SourceIndex(0) name (Greeter.greet) -4 >Emitted(11, 22) Source(5, 22) + SourceIndex(0) name (Greeter.greet) -5 >Emitted(11, 25) Source(5, 25) + SourceIndex(0) name (Greeter.greet) -6 >Emitted(11, 29) Source(5, 29) + SourceIndex(0) name (Greeter.greet) -7 >Emitted(11, 30) Source(5, 30) + SourceIndex(0) name (Greeter.greet) -8 >Emitted(11, 38) Source(5, 38) + SourceIndex(0) name (Greeter.greet) -9 >Emitted(11, 41) Source(5, 41) + SourceIndex(0) name (Greeter.greet) -10>Emitted(11, 48) Source(5, 48) + SourceIndex(0) name (Greeter.greet) -11>Emitted(11, 49) Source(5, 49) + SourceIndex(0) name (Greeter.greet) +1->Emitted(11, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(11, 15) Source(5, 15) + SourceIndex(0) +3 >Emitted(11, 16) Source(5, 16) + SourceIndex(0) +4 >Emitted(11, 22) Source(5, 22) + SourceIndex(0) +5 >Emitted(11, 25) Source(5, 25) + SourceIndex(0) +6 >Emitted(11, 29) Source(5, 29) + SourceIndex(0) +7 >Emitted(11, 30) Source(5, 30) + SourceIndex(0) +8 >Emitted(11, 38) Source(5, 38) + SourceIndex(0) +9 >Emitted(11, 41) Source(5, 41) + SourceIndex(0) +10>Emitted(11, 48) Source(5, 48) + SourceIndex(0) +11>Emitted(11, 49) Source(5, 49) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -169,8 +169,8 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0) name (Greeter.greet) -2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0) name (Greeter.greet) +1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0) --- >>> Greeter.prototype.fn = function () { 1->^^^^ @@ -183,9 +183,9 @@ sourceFile:sourceMapValidationClass.ts > private 2 > fn 3 > -1->Emitted(13, 5) Source(9, 13) + SourceIndex(0) name (Greeter) -2 >Emitted(13, 25) Source(9, 15) + SourceIndex(0) name (Greeter) -3 >Emitted(13, 28) Source(9, 5) + SourceIndex(0) name (Greeter) +1->Emitted(13, 5) Source(9, 13) + SourceIndex(0) +2 >Emitted(13, 25) Source(9, 15) + SourceIndex(0) +3 >Emitted(13, 28) Source(9, 5) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^ @@ -203,13 +203,13 @@ sourceFile:sourceMapValidationClass.ts 5 > . 6 > greeting 7 > ; -1->Emitted(14, 9) Source(10, 9) + SourceIndex(0) name (Greeter.fn) -2 >Emitted(14, 15) Source(10, 15) + SourceIndex(0) name (Greeter.fn) -3 >Emitted(14, 16) Source(10, 16) + SourceIndex(0) name (Greeter.fn) -4 >Emitted(14, 20) Source(10, 20) + SourceIndex(0) name (Greeter.fn) -5 >Emitted(14, 21) Source(10, 21) + SourceIndex(0) name (Greeter.fn) -6 >Emitted(14, 29) Source(10, 29) + SourceIndex(0) name (Greeter.fn) -7 >Emitted(14, 30) Source(10, 30) + SourceIndex(0) name (Greeter.fn) +1->Emitted(14, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(14, 15) Source(10, 15) + SourceIndex(0) +3 >Emitted(14, 16) Source(10, 16) + SourceIndex(0) +4 >Emitted(14, 20) Source(10, 20) + SourceIndex(0) +5 >Emitted(14, 21) Source(10, 21) + SourceIndex(0) +6 >Emitted(14, 29) Source(10, 29) + SourceIndex(0) +7 >Emitted(14, 30) Source(10, 30) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -218,8 +218,8 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(15, 5) Source(11, 5) + SourceIndex(0) name (Greeter.fn) -2 >Emitted(15, 6) Source(11, 6) + SourceIndex(0) name (Greeter.fn) +1 >Emitted(15, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(15, 6) Source(11, 6) + SourceIndex(0) --- >>> Object.defineProperty(Greeter.prototype, "greetings", { 1->^^^^ @@ -229,15 +229,15 @@ sourceFile:sourceMapValidationClass.ts > 2 > get 3 > greetings -1->Emitted(16, 5) Source(12, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(16, 27) Source(12, 9) + SourceIndex(0) name (Greeter) -3 >Emitted(16, 57) Source(12, 18) + SourceIndex(0) name (Greeter) +1->Emitted(16, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(16, 27) Source(12, 9) + SourceIndex(0) +3 >Emitted(16, 57) Source(12, 18) + SourceIndex(0) --- >>> get: function () { 1 >^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(17, 14) Source(12, 5) + SourceIndex(0) name (Greeter) +1 >Emitted(17, 14) Source(12, 5) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^^^^^ @@ -255,13 +255,13 @@ sourceFile:sourceMapValidationClass.ts 5 > . 6 > greeting 7 > ; -1->Emitted(18, 13) Source(13, 9) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(18, 19) Source(13, 15) + SourceIndex(0) name (Greeter.greetings) -3 >Emitted(18, 20) Source(13, 16) + SourceIndex(0) name (Greeter.greetings) -4 >Emitted(18, 24) Source(13, 20) + SourceIndex(0) name (Greeter.greetings) -5 >Emitted(18, 25) Source(13, 21) + SourceIndex(0) name (Greeter.greetings) -6 >Emitted(18, 33) Source(13, 29) + SourceIndex(0) name (Greeter.greetings) -7 >Emitted(18, 34) Source(13, 30) + SourceIndex(0) name (Greeter.greetings) +1->Emitted(18, 13) Source(13, 9) + SourceIndex(0) +2 >Emitted(18, 19) Source(13, 15) + SourceIndex(0) +3 >Emitted(18, 20) Source(13, 16) + SourceIndex(0) +4 >Emitted(18, 24) Source(13, 20) + SourceIndex(0) +5 >Emitted(18, 25) Source(13, 21) + SourceIndex(0) +6 >Emitted(18, 33) Source(13, 29) + SourceIndex(0) +7 >Emitted(18, 34) Source(13, 30) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -270,8 +270,8 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(19, 9) Source(14, 5) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(19, 10) Source(14, 6) + SourceIndex(0) name (Greeter.greetings) +1 >Emitted(19, 9) Source(14, 5) + SourceIndex(0) +2 >Emitted(19, 10) Source(14, 6) + SourceIndex(0) --- >>> set: function (greetings) { 1->^^^^^^^^^^^^^ @@ -282,9 +282,9 @@ sourceFile:sourceMapValidationClass.ts > 2 > set greetings( 3 > greetings: string -1->Emitted(20, 14) Source(15, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(20, 24) Source(15, 19) + SourceIndex(0) name (Greeter) -3 >Emitted(20, 33) Source(15, 36) + SourceIndex(0) name (Greeter) +1->Emitted(20, 14) Source(15, 5) + SourceIndex(0) +2 >Emitted(20, 24) Source(15, 19) + SourceIndex(0) +3 >Emitted(20, 33) Source(15, 36) + SourceIndex(0) --- >>> this.greeting = greetings; 1->^^^^^^^^^^^^ @@ -302,13 +302,13 @@ sourceFile:sourceMapValidationClass.ts 5 > = 6 > greetings 7 > ; -1->Emitted(21, 13) Source(16, 9) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(21, 17) Source(16, 13) + SourceIndex(0) name (Greeter.greetings) -3 >Emitted(21, 18) Source(16, 14) + SourceIndex(0) name (Greeter.greetings) -4 >Emitted(21, 26) Source(16, 22) + SourceIndex(0) name (Greeter.greetings) -5 >Emitted(21, 29) Source(16, 25) + SourceIndex(0) name (Greeter.greetings) -6 >Emitted(21, 38) Source(16, 34) + SourceIndex(0) name (Greeter.greetings) -7 >Emitted(21, 39) Source(16, 35) + SourceIndex(0) name (Greeter.greetings) +1->Emitted(21, 13) Source(16, 9) + SourceIndex(0) +2 >Emitted(21, 17) Source(16, 13) + SourceIndex(0) +3 >Emitted(21, 18) Source(16, 14) + SourceIndex(0) +4 >Emitted(21, 26) Source(16, 22) + SourceIndex(0) +5 >Emitted(21, 29) Source(16, 25) + SourceIndex(0) +6 >Emitted(21, 38) Source(16, 34) + SourceIndex(0) +7 >Emitted(21, 39) Source(16, 35) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -317,8 +317,8 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(22, 9) Source(17, 5) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(22, 10) Source(17, 6) + SourceIndex(0) name (Greeter.greetings) +1 >Emitted(22, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(22, 10) Source(17, 6) + SourceIndex(0) --- >>> enumerable: true, >>> configurable: true @@ -326,7 +326,7 @@ sourceFile:sourceMapValidationClass.ts 1->^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1-> -1->Emitted(25, 8) Source(14, 6) + SourceIndex(0) name (Greeter) +1->Emitted(25, 8) Source(14, 6) + SourceIndex(0) --- >>> return Greeter; 1->^^^^ @@ -337,10 +337,10 @@ sourceFile:sourceMapValidationClass.ts > } > 2 > } -1->Emitted(26, 5) Source(18, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(26, 19) Source(18, 2) + SourceIndex(0) name (Greeter) +1->Emitted(26, 5) Source(18, 1) + SourceIndex(0) +2 >Emitted(26, 19) Source(18, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -367,8 +367,8 @@ sourceFile:sourceMapValidationClass.ts > this.greeting = greetings; > } > } -1 >Emitted(27, 1) Source(18, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(27, 2) Source(18, 2) + SourceIndex(0) name (Greeter) +1 >Emitted(27, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(27, 2) Source(18, 2) + SourceIndex(0) 3 >Emitted(27, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(27, 6) Source(18, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js index 149780baf08..f76b44fdcd8 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js @@ -11,5 +11,5 @@ var Greeter = (function () { this.nameA = "Ten"; } return Greeter; -})(); +}()); //# sourceMappingURL=sourceMapValidationClassWithDefaultConstructor.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js.map b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js.map index 07abb96ca91..86601e215d5 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js.map +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClassWithDefaultConstructor.js.map] -{"version":3,"file":"sourceMapValidationClassWithDefaultConstructor.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructor.ts"],"names":["Greeter","Greeter.constructor"],"mappings":"AAAA;IAAAA;QACWC,MAACA,GAAGA,EAAEA,CAACA;QACPA,UAAKA,GAAGA,KAAKA,CAACA;IACzBA,CAACA;IAADD,cAACA;AAADA,CAACA,AAHD,IAGC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClassWithDefaultConstructor.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructor.ts"],"names":[],"mappings":"AAAA;IAAA;QACW,MAAC,GAAG,EAAE,CAAC;QACP,UAAK,GAAG,KAAK,CAAC;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,IAGC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.sourcemap.txt index ede638b64d9..ad4b2800796 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:sourceMapValidationClassWithDefaultConstructor.ts 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (Greeter) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> this.a = 10; 1->^^^^^^^^ @@ -33,11 +33,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructor.ts 3 > = 4 > 10 5 > ; -1->Emitted(3, 9) Source(2, 12) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(3, 15) Source(2, 13) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(3, 18) Source(2, 16) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(3, 20) Source(2, 18) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(3, 21) Source(2, 19) + SourceIndex(0) name (Greeter.constructor) +1->Emitted(3, 9) Source(2, 12) + SourceIndex(0) +2 >Emitted(3, 15) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 18) Source(2, 16) + SourceIndex(0) +4 >Emitted(3, 20) Source(2, 18) + SourceIndex(0) +5 >Emitted(3, 21) Source(2, 19) + SourceIndex(0) --- >>> this.nameA = "Ten"; 1->^^^^^^^^ @@ -51,11 +51,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructor.ts 3 > = 4 > "Ten" 5 > ; -1->Emitted(4, 9) Source(3, 12) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(4, 19) Source(3, 17) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(4, 22) Source(3, 20) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(4, 27) Source(3, 25) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(4, 28) Source(3, 26) + SourceIndex(0) name (Greeter.constructor) +1->Emitted(4, 9) Source(3, 12) + SourceIndex(0) +2 >Emitted(4, 19) Source(3, 17) + SourceIndex(0) +3 >Emitted(4, 22) Source(3, 20) + SourceIndex(0) +4 >Emitted(4, 27) Source(3, 25) + SourceIndex(0) +5 >Emitted(4, 28) Source(3, 26) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -64,18 +64,18 @@ sourceFile:sourceMapValidationClassWithDefaultConstructor.ts 1 > > 2 > } -1 >Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return Greeter; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(6, 19) Source(4, 2) + SourceIndex(0) name (Greeter) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 19) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -88,8 +88,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructor.ts > public a = 10; > public nameA = "Ten"; > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (Greeter) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js index 486cdd39637..ad92aa18eae 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js @@ -12,5 +12,5 @@ var Greeter = (function () { this.returnA = function () { return _this.a; }; } return Greeter; -})(); +}()); //# sourceMappingURL=sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js.map b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js.map index b0325217c7a..00bdfcdba60 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js.map +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js.map] -{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts"],"names":["Greeter","Greeter.constructor"],"mappings":"AAAA;IAAAA;QAAAC,iBAGCA;QAFUA,MAACA,GAAGA,EAAEA,CAACA;QACPA,YAAOA,GAAGA,cAAMA,OAAAA,KAAIA,CAACA,CAACA,EAANA,CAAMA,CAACA;IAClCA,CAACA;IAADD,cAACA;AAADA,CAACA,AAHD,IAGC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts"],"names":[],"mappings":"AAAA;IAAA;QAAA,iBAGC;QAFU,MAAC,GAAG,EAAE,CAAC;QACP,YAAO,GAAG,cAAM,OAAA,KAAI,CAAC,CAAC,EAAN,CAAM,CAAC;IAClC,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,IAGC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.sourcemap.txt index 555f1c096c2..d5cb74636e7 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatemen 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (Greeter) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> var _this = this; 1->^^^^^^^^ @@ -28,8 +28,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatemen > public a = 10; > public returnA = () => this.a; > } -1->Emitted(3, 9) Source(1, 1) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(3, 26) Source(4, 2) + SourceIndex(0) name (Greeter.constructor) +1->Emitted(3, 9) Source(1, 1) + SourceIndex(0) +2 >Emitted(3, 26) Source(4, 2) + SourceIndex(0) --- >>> this.a = 10; 1 >^^^^^^^^ @@ -43,11 +43,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatemen 3 > = 4 > 10 5 > ; -1 >Emitted(4, 9) Source(2, 12) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(4, 15) Source(2, 13) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(4, 18) Source(2, 16) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(4, 20) Source(2, 18) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(4, 21) Source(2, 19) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(4, 9) Source(2, 12) + SourceIndex(0) +2 >Emitted(4, 15) Source(2, 13) + SourceIndex(0) +3 >Emitted(4, 18) Source(2, 16) + SourceIndex(0) +4 >Emitted(4, 20) Source(2, 18) + SourceIndex(0) +5 >Emitted(4, 21) Source(2, 19) + SourceIndex(0) --- >>> this.returnA = function () { return _this.a; }; 1->^^^^^^^^ @@ -73,17 +73,17 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatemen 9 > 10> this.a 11> ; -1->Emitted(5, 9) Source(3, 12) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(5, 21) Source(3, 19) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(5, 24) Source(3, 22) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(5, 38) Source(3, 28) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(5, 45) Source(3, 28) + SourceIndex(0) name (Greeter.constructor) -6 >Emitted(5, 50) Source(3, 32) + SourceIndex(0) name (Greeter.constructor) -7 >Emitted(5, 51) Source(3, 33) + SourceIndex(0) name (Greeter.constructor) -8 >Emitted(5, 52) Source(3, 34) + SourceIndex(0) name (Greeter.constructor) -9 >Emitted(5, 54) Source(3, 28) + SourceIndex(0) name (Greeter.constructor) -10>Emitted(5, 55) Source(3, 34) + SourceIndex(0) name (Greeter.constructor) -11>Emitted(5, 56) Source(3, 35) + SourceIndex(0) name (Greeter.constructor) +1->Emitted(5, 9) Source(3, 12) + SourceIndex(0) +2 >Emitted(5, 21) Source(3, 19) + SourceIndex(0) +3 >Emitted(5, 24) Source(3, 22) + SourceIndex(0) +4 >Emitted(5, 38) Source(3, 28) + SourceIndex(0) +5 >Emitted(5, 45) Source(3, 28) + SourceIndex(0) +6 >Emitted(5, 50) Source(3, 32) + SourceIndex(0) +7 >Emitted(5, 51) Source(3, 33) + SourceIndex(0) +8 >Emitted(5, 52) Source(3, 34) + SourceIndex(0) +9 >Emitted(5, 54) Source(3, 28) + SourceIndex(0) +10>Emitted(5, 55) Source(3, 34) + SourceIndex(0) +11>Emitted(5, 56) Source(3, 35) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -92,18 +92,18 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatemen 1 > > 2 > } -1 >Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 6) Source(4, 2) + SourceIndex(0) --- >>> return Greeter; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(7, 5) Source(4, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(7, 19) Source(4, 2) + SourceIndex(0) name (Greeter) +1->Emitted(7, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 19) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -116,8 +116,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatemen > public a = 10; > public returnA = () => this.a; > } -1 >Emitted(8, 1) Source(4, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(8, 2) Source(4, 2) + SourceIndex(0) name (Greeter) +1 >Emitted(8, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(8, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(8, 6) Source(4, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js index f210e65d4d2..1d852127963 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js @@ -17,7 +17,7 @@ var AbstractGreeter = (function () { function AbstractGreeter() { } return AbstractGreeter; -})(); +}()); var Greeter = (function (_super) { __extends(Greeter, _super); function Greeter() { @@ -26,5 +26,5 @@ var Greeter = (function (_super) { this.nameA = "Ten"; } return Greeter; -})(AbstractGreeter); +}(AbstractGreeter)); //# sourceMappingURL=sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map index fad366e8ebb..7dd53ed4b62 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map] -{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":["AbstractGreeter","AbstractGreeter.constructor","Greeter","Greeter.constructor"],"mappings":";;;;;AAAA;IAAAA;IACAC,CAACA;IAADD,sBAACA;AAADA,CAACA,AADD,IACC;AAED;IAAsBE,2BAAeA;IAArCA;QAAsBC,8BAAeA;QAC1BA,MAACA,GAAGA,EAAEA,CAACA;QACPA,UAAKA,GAAGA,KAAKA,CAACA;IACzBA,CAACA;IAADD,cAACA;AAADA,CAACA,AAHD,EAAsB,eAAe,EAGpC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAsB,8BAAe;QAC1B,MAAC,GAAG,EAAE,CAAC;QACP,UAAK,GAAG,KAAK,CAAC;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt index aba9861a230..5a3b2f86be9 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt @@ -23,7 +23,7 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(7, 5) Source(1, 1) + SourceIndex(0) name (AbstractGreeter) +1->Emitted(7, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -32,18 +32,18 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1->class AbstractGreeter { > 2 > } -1->Emitted(8, 5) Source(2, 1) + SourceIndex(0) name (AbstractGreeter.constructor) -2 >Emitted(8, 6) Source(2, 2) + SourceIndex(0) name (AbstractGreeter.constructor) +1->Emitted(8, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(8, 6) Source(2, 2) + SourceIndex(0) --- >>> return AbstractGreeter; 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(9, 5) Source(2, 1) + SourceIndex(0) name (AbstractGreeter) -2 >Emitted(9, 27) Source(2, 2) + SourceIndex(0) name (AbstractGreeter) +1->Emitted(9, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(9, 27) Source(2, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -54,8 +54,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > 4 > class AbstractGreeter { > } -1 >Emitted(10, 1) Source(2, 1) + SourceIndex(0) name (AbstractGreeter) -2 >Emitted(10, 2) Source(2, 2) + SourceIndex(0) name (AbstractGreeter) +1 >Emitted(10, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(2, 2) + SourceIndex(0) 3 >Emitted(10, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(10, 6) Source(2, 2) + SourceIndex(0) --- @@ -72,22 +72,22 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class Greeter extends 2 > AbstractGreeter -1->Emitted(12, 5) Source(4, 23) + SourceIndex(0) name (Greeter) -2 >Emitted(12, 32) Source(4, 38) + SourceIndex(0) name (Greeter) +1->Emitted(12, 5) Source(4, 23) + SourceIndex(0) +2 >Emitted(12, 32) Source(4, 38) + SourceIndex(0) --- >>> function Greeter() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(13, 5) Source(4, 1) + SourceIndex(0) name (Greeter) +1 >Emitted(13, 5) Source(4, 1) + SourceIndex(0) --- >>> _super.apply(this, arguments); 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class Greeter extends 2 > AbstractGreeter -1->Emitted(14, 9) Source(4, 23) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(14, 39) Source(4, 38) + SourceIndex(0) name (Greeter.constructor) +1->Emitted(14, 9) Source(4, 23) + SourceIndex(0) +2 >Emitted(14, 39) Source(4, 38) + SourceIndex(0) --- >>> this.a = 10; 1 >^^^^^^^^ @@ -102,11 +102,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > = 4 > 10 5 > ; -1 >Emitted(15, 9) Source(5, 12) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(15, 15) Source(5, 13) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(15, 18) Source(5, 16) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(15, 20) Source(5, 18) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(15, 21) Source(5, 19) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(15, 9) Source(5, 12) + SourceIndex(0) +2 >Emitted(15, 15) Source(5, 13) + SourceIndex(0) +3 >Emitted(15, 18) Source(5, 16) + SourceIndex(0) +4 >Emitted(15, 20) Source(5, 18) + SourceIndex(0) +5 >Emitted(15, 21) Source(5, 19) + SourceIndex(0) --- >>> this.nameA = "Ten"; 1->^^^^^^^^ @@ -120,11 +120,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > = 4 > "Ten" 5 > ; -1->Emitted(16, 9) Source(6, 12) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(16, 19) Source(6, 17) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(16, 22) Source(6, 20) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(16, 27) Source(6, 25) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(16, 28) Source(6, 26) + SourceIndex(0) name (Greeter.constructor) +1->Emitted(16, 9) Source(6, 12) + SourceIndex(0) +2 >Emitted(16, 19) Source(6, 17) + SourceIndex(0) +3 >Emitted(16, 22) Source(6, 20) + SourceIndex(0) +4 >Emitted(16, 27) Source(6, 25) + SourceIndex(0) +5 >Emitted(16, 28) Source(6, 26) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -133,8 +133,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1 > > 2 > } -1 >Emitted(17, 5) Source(7, 1) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(17, 6) Source(7, 2) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(17, 5) Source(7, 1) + SourceIndex(0) +2 >Emitted(17, 6) Source(7, 2) + SourceIndex(0) --- >>> return Greeter; 1->^^^^ @@ -142,31 +142,31 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > ^^^-> 1-> 2 > } -1->Emitted(18, 5) Source(7, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(18, 19) Source(7, 2) + SourceIndex(0) name (Greeter) +1->Emitted(18, 5) Source(7, 1) + SourceIndex(0) +2 >Emitted(18, 19) Source(7, 2) + SourceIndex(0) --- ->>>})(AbstractGreeter); +>>>}(AbstractGreeter)); 1-> 2 >^ 3 > -4 > ^^ -5 > ^^^^^^^^^^^^^^^ -6 > ^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ 7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 >} 3 > 4 > class Greeter extends -5 > AbstractGreeter -6 > { - > public a = 10; - > public nameA = "Ten"; - > } -1->Emitted(19, 1) Source(7, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(19, 2) Source(7, 2) + SourceIndex(0) name (Greeter) +5 > AbstractGreeter +6 > { + > public a = 10; + > public nameA = "Ten"; + > } +1->Emitted(19, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(7, 2) + SourceIndex(0) 3 >Emitted(19, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(19, 4) Source(4, 23) + SourceIndex(0) -5 >Emitted(19, 19) Source(4, 38) + SourceIndex(0) +4 >Emitted(19, 3) Source(4, 23) + SourceIndex(0) +5 >Emitted(19, 18) Source(4, 38) + SourceIndex(0) 6 >Emitted(19, 21) Source(7, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClasses.js b/tests/baselines/reference/sourceMapValidationClasses.js index e3b705bc4b0..661892bc748 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.js +++ b/tests/baselines/reference/sourceMapValidationClasses.js @@ -50,7 +50,7 @@ var Foo; return "

" + this.greeting + "

"; }; return Greeter; - })(); + }()); function foo(greeting) { return new Greeter(greeting); } diff --git a/tests/baselines/reference/sourceMapValidationClasses.js.map b/tests/baselines/reference/sourceMapValidationClasses.js.map index fcba248ef1a..08ed68ebca7 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.js.map +++ b/tests/baselines/reference/sourceMapValidationClasses.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClasses.js.map] -{"version":3,"file":"sourceMapValidationClasses.js","sourceRoot":"","sources":["sourceMapValidationClasses.ts"],"names":["Foo","Foo.Bar","Foo.Bar.Greeter","Foo.Bar.Greeter.constructor","Foo.Bar.Greeter.greet","Foo.Bar.foo","Foo.Bar.foo2"],"mappings":"AAAA,IAAO,GAAG,CAmCT;AAnCD,WAAO,GAAG;IAACA,IAAAA,GAAGA,CAmCbA;IAnCUA,WAAAA,GAAGA,EAACA,CAACA;QACZC,YAAYA,CAACA;QAEbA;YACIC,iBAAmBA,QAAgBA;gBAAhBC,aAAQA,GAARA,QAAQA,CAAQA;YACnCA,CAACA;YAEDD,uBAAKA,GAALA;gBACIE,MAAMA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,QAAQA,GAAGA,OAAOA,CAACA;YAC5CA,CAACA;YACLF,cAACA;QAADA,CAACA,AAPDD,IAOCA;QAGDA,aAAaA,QAAgBA;YACzBI,MAAMA,CAACA,IAAIA,OAAOA,CAACA,QAAQA,CAACA,CAACA;QACjCA,CAACA;QAEDJ,IAAIA,OAAOA,GAAGA,IAAIA,OAAOA,CAACA,eAAeA,CAACA,CAACA;QAC3CA,IAAIA,GAAGA,GAAGA,OAAOA,CAACA,KAAKA,EAAEA,CAACA;QAE1BA,cAAcA,QAAgBA;YAAEK,kBAAiBA,mBAAmBA,MAAUA;iBAA9CA,WAA8CA,CAA9CA,sBAA8CA,CAA9CA,IAA8CA;gBAA9CA,cAAiBA,mBAAmBA,yBAAUA;;YAC1EA,IAAIA,QAAQA,GAAcA,EAAEA,CAACA,CAACA,0BAA0BA;YACxDA,QAAQA,CAACA,CAACA,CAACA,GAAGA,IAAIA,OAAOA,CAACA,QAAQA,CAACA,CAACA;YACpCA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,aAAaA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;gBAC5CA,QAAQA,CAACA,IAAIA,CAACA,IAAIA,OAAOA,CAACA,aAAaA,CAACA,CAACA,CAACA,CAACA,CAACA,CAACA;YACjDA,CAACA;YAEDA,MAAMA,CAACA,QAAQA,CAACA;QACpBA,CAACA;QAEDL,IAAIA,CAACA,GAAGA,IAAIA,CAACA,OAAOA,EAAEA,OAAOA,EAAEA,GAAGA,CAACA,CAACA;QACpCA,qCAAqCA;QACrCA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,CAACA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;YAChCA,CAACA,CAACA,CAACA,CAACA,CAACA,KAAKA,EAAEA,CAACA;QACjBA,CAACA;IACLA,CAACA,EAnCUD,GAAGA,GAAHA,OAAGA,KAAHA,OAAGA,QAmCbA;AAADA,CAACA,EAnCM,GAAG,KAAH,GAAG,QAmCT"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClasses.js","sourceRoot":"","sources":["sourceMapValidationClasses.ts"],"names":[],"mappings":"AAAA,IAAO,GAAG,CAmCT;AAnCD,WAAO,GAAG;IAAC,IAAA,GAAG,CAmCb;IAnCU,WAAA,GAAG,EAAC,CAAC;QACZ,YAAY,CAAC;QAEb;YACI,iBAAmB,QAAgB;gBAAhB,aAAQ,GAAR,QAAQ,CAAQ;YACnC,CAAC;YAED,uBAAK,GAAL;gBACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YAC5C,CAAC;YACL,cAAC;QAAD,CAAC,AAPD,IAOC;QAGD,aAAa,QAAgB;YACzB,MAAM,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAI,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;QAE1B,cAAc,QAAgB;YAAE,kBAAiB,mBAAmB,MAAU;iBAA9C,WAA8C,CAA9C,sBAA8C,CAA9C,IAA8C;gBAA9C,cAAiB,mBAAmB,yBAAU;;YAC1E,IAAI,QAAQ,GAAc,EAAE,CAAC,CAAC,0BAA0B;YACxD,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC;YAED,MAAM,CAAC,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QACpC,qCAAqC;QACrC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACL,CAAC,EAnCU,GAAG,GAAH,OAAG,KAAH,OAAG,QAmCb;AAAD,CAAC,EAnCM,GAAG,KAAH,GAAG,QAmCT"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt index 4eb5e300422..4501ec5d872 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt @@ -114,10 +114,10 @@ sourceFile:sourceMapValidationClasses.ts > b[j].greet(); > } > } -1 >Emitted(3, 5) Source(1, 12) + SourceIndex(0) name (Foo) -2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) name (Foo) -3 >Emitted(3, 12) Source(1, 15) + SourceIndex(0) name (Foo) -4 >Emitted(3, 13) Source(36, 2) + SourceIndex(0) name (Foo) +1 >Emitted(3, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) +3 >Emitted(3, 12) Source(1, 15) + SourceIndex(0) +4 >Emitted(3, 13) Source(36, 2) + SourceIndex(0) --- >>> (function (Bar) { 1->^^^^ @@ -131,11 +131,11 @@ sourceFile:sourceMapValidationClasses.ts 3 > Bar 4 > 5 > { -1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) name (Foo) -2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) name (Foo) -3 >Emitted(4, 19) Source(1, 15) + SourceIndex(0) name (Foo) -4 >Emitted(4, 21) Source(1, 16) + SourceIndex(0) name (Foo) -5 >Emitted(4, 22) Source(1, 17) + SourceIndex(0) name (Foo) +1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) +3 >Emitted(4, 19) Source(1, 15) + SourceIndex(0) +4 >Emitted(4, 21) Source(1, 16) + SourceIndex(0) +5 >Emitted(4, 22) Source(1, 17) + SourceIndex(0) --- >>> "use strict"; 1->^^^^^^^^ @@ -146,9 +146,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > "use strict" 3 > ; -1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(5, 21) Source(2, 17) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(5, 22) Source(2, 18) + SourceIndex(0) name (Foo.Bar) +1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(5, 21) Source(2, 17) + SourceIndex(0) +3 >Emitted(5, 22) Source(2, 18) + SourceIndex(0) --- >>> var Greeter = (function () { 1->^^^^^^^^ @@ -156,7 +156,7 @@ sourceFile:sourceMapValidationClasses.ts 1-> > > -1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) name (Foo.Bar) +1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) --- >>> function Greeter(greeting) { 1->^^^^^^^^^^^^ @@ -167,9 +167,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > constructor(public 3 > greeting: string -1->Emitted(7, 13) Source(5, 9) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(7, 30) Source(5, 28) + SourceIndex(0) name (Foo.Bar.Greeter) -3 >Emitted(7, 38) Source(5, 44) + SourceIndex(0) name (Foo.Bar.Greeter) +1->Emitted(7, 13) Source(5, 9) + SourceIndex(0) +2 >Emitted(7, 30) Source(5, 28) + SourceIndex(0) +3 >Emitted(7, 38) Source(5, 44) + SourceIndex(0) --- >>> this.greeting = greeting; 1->^^^^^^^^^^^^^^^^ @@ -182,11 +182,11 @@ sourceFile:sourceMapValidationClasses.ts 3 > 4 > greeting 5 > : string -1->Emitted(8, 17) Source(5, 28) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -2 >Emitted(8, 30) Source(5, 36) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -3 >Emitted(8, 33) Source(5, 28) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -4 >Emitted(8, 41) Source(5, 36) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -5 >Emitted(8, 42) Source(5, 44) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) +1->Emitted(8, 17) Source(5, 28) + SourceIndex(0) +2 >Emitted(8, 30) Source(5, 36) + SourceIndex(0) +3 >Emitted(8, 33) Source(5, 28) + SourceIndex(0) +4 >Emitted(8, 41) Source(5, 36) + SourceIndex(0) +5 >Emitted(8, 42) Source(5, 44) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -195,8 +195,8 @@ sourceFile:sourceMapValidationClasses.ts 1 >) { > 2 > } -1 >Emitted(9, 13) Source(6, 9) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) -2 >Emitted(9, 14) Source(6, 10) + SourceIndex(0) name (Foo.Bar.Greeter.constructor) +1 >Emitted(9, 13) Source(6, 9) + SourceIndex(0) +2 >Emitted(9, 14) Source(6, 10) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^^^^^^^^^ @@ -208,9 +208,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > greet 3 > -1->Emitted(10, 13) Source(8, 9) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(10, 36) Source(8, 14) + SourceIndex(0) name (Foo.Bar.Greeter) -3 >Emitted(10, 39) Source(8, 9) + SourceIndex(0) name (Foo.Bar.Greeter) +1->Emitted(10, 13) Source(8, 9) + SourceIndex(0) +2 >Emitted(10, 36) Source(8, 14) + SourceIndex(0) +3 >Emitted(10, 39) Source(8, 9) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^^^^^^^^^ @@ -236,17 +236,17 @@ sourceFile:sourceMapValidationClasses.ts 9 > + 10> "" 11> ; -1->Emitted(11, 17) Source(9, 13) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -2 >Emitted(11, 23) Source(9, 19) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -3 >Emitted(11, 24) Source(9, 20) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -4 >Emitted(11, 30) Source(9, 26) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -5 >Emitted(11, 33) Source(9, 29) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -6 >Emitted(11, 37) Source(9, 33) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -7 >Emitted(11, 38) Source(9, 34) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -8 >Emitted(11, 46) Source(9, 42) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -9 >Emitted(11, 49) Source(9, 45) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -10>Emitted(11, 56) Source(9, 52) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -11>Emitted(11, 57) Source(9, 53) + SourceIndex(0) name (Foo.Bar.Greeter.greet) +1->Emitted(11, 17) Source(9, 13) + SourceIndex(0) +2 >Emitted(11, 23) Source(9, 19) + SourceIndex(0) +3 >Emitted(11, 24) Source(9, 20) + SourceIndex(0) +4 >Emitted(11, 30) Source(9, 26) + SourceIndex(0) +5 >Emitted(11, 33) Source(9, 29) + SourceIndex(0) +6 >Emitted(11, 37) Source(9, 33) + SourceIndex(0) +7 >Emitted(11, 38) Source(9, 34) + SourceIndex(0) +8 >Emitted(11, 46) Source(9, 42) + SourceIndex(0) +9 >Emitted(11, 49) Source(9, 45) + SourceIndex(0) +10>Emitted(11, 56) Source(9, 52) + SourceIndex(0) +11>Emitted(11, 57) Source(9, 53) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^ @@ -255,8 +255,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(12, 13) Source(10, 9) + SourceIndex(0) name (Foo.Bar.Greeter.greet) -2 >Emitted(12, 14) Source(10, 10) + SourceIndex(0) name (Foo.Bar.Greeter.greet) +1 >Emitted(12, 13) Source(10, 9) + SourceIndex(0) +2 >Emitted(12, 14) Source(10, 10) + SourceIndex(0) --- >>> return Greeter; 1->^^^^^^^^^^^^ @@ -264,10 +264,10 @@ sourceFile:sourceMapValidationClasses.ts 1-> > 2 > } -1->Emitted(13, 13) Source(11, 5) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(13, 27) Source(11, 6) + SourceIndex(0) name (Foo.Bar.Greeter) +1->Emitted(13, 13) Source(11, 5) + SourceIndex(0) +2 >Emitted(13, 27) Source(11, 6) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^ 2 > ^ 3 > @@ -284,10 +284,10 @@ sourceFile:sourceMapValidationClasses.ts > return "

" + this.greeting + "

"; > } > } -1 >Emitted(14, 9) Source(11, 5) + SourceIndex(0) name (Foo.Bar.Greeter) -2 >Emitted(14, 10) Source(11, 6) + SourceIndex(0) name (Foo.Bar.Greeter) -3 >Emitted(14, 10) Source(4, 5) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(14, 14) Source(11, 6) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(14, 9) Source(11, 5) + SourceIndex(0) +2 >Emitted(14, 10) Source(11, 6) + SourceIndex(0) +3 >Emitted(14, 10) Source(4, 5) + SourceIndex(0) +4 >Emitted(14, 14) Source(11, 6) + SourceIndex(0) --- >>> function foo(greeting) { 1->^^^^^^^^ @@ -300,9 +300,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > function foo( 3 > greeting: string -1->Emitted(15, 9) Source(14, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(15, 22) Source(14, 18) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(15, 30) Source(14, 34) + SourceIndex(0) name (Foo.Bar) +1->Emitted(15, 9) Source(14, 5) + SourceIndex(0) +2 >Emitted(15, 22) Source(14, 18) + SourceIndex(0) +3 >Emitted(15, 30) Source(14, 34) + SourceIndex(0) --- >>> return new Greeter(greeting); 1->^^^^^^^^^^^^ @@ -324,15 +324,15 @@ sourceFile:sourceMapValidationClasses.ts 7 > greeting 8 > ) 9 > ; -1->Emitted(16, 13) Source(15, 9) + SourceIndex(0) name (Foo.Bar.foo) -2 >Emitted(16, 19) Source(15, 15) + SourceIndex(0) name (Foo.Bar.foo) -3 >Emitted(16, 20) Source(15, 16) + SourceIndex(0) name (Foo.Bar.foo) -4 >Emitted(16, 24) Source(15, 20) + SourceIndex(0) name (Foo.Bar.foo) -5 >Emitted(16, 31) Source(15, 27) + SourceIndex(0) name (Foo.Bar.foo) -6 >Emitted(16, 32) Source(15, 28) + SourceIndex(0) name (Foo.Bar.foo) -7 >Emitted(16, 40) Source(15, 36) + SourceIndex(0) name (Foo.Bar.foo) -8 >Emitted(16, 41) Source(15, 37) + SourceIndex(0) name (Foo.Bar.foo) -9 >Emitted(16, 42) Source(15, 38) + SourceIndex(0) name (Foo.Bar.foo) +1->Emitted(16, 13) Source(15, 9) + SourceIndex(0) +2 >Emitted(16, 19) Source(15, 15) + SourceIndex(0) +3 >Emitted(16, 20) Source(15, 16) + SourceIndex(0) +4 >Emitted(16, 24) Source(15, 20) + SourceIndex(0) +5 >Emitted(16, 31) Source(15, 27) + SourceIndex(0) +6 >Emitted(16, 32) Source(15, 28) + SourceIndex(0) +7 >Emitted(16, 40) Source(15, 36) + SourceIndex(0) +8 >Emitted(16, 41) Source(15, 37) + SourceIndex(0) +9 >Emitted(16, 42) Source(15, 38) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -341,8 +341,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(17, 9) Source(16, 5) + SourceIndex(0) name (Foo.Bar.foo) -2 >Emitted(17, 10) Source(16, 6) + SourceIndex(0) name (Foo.Bar.foo) +1 >Emitted(17, 9) Source(16, 5) + SourceIndex(0) +2 >Emitted(17, 10) Source(16, 6) + SourceIndex(0) --- >>> var greeter = new Greeter("Hello, world!"); 1->^^^^^^^^ @@ -367,16 +367,16 @@ sourceFile:sourceMapValidationClasses.ts 8 > "Hello, world!" 9 > ) 10> ; -1->Emitted(18, 9) Source(18, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(18, 13) Source(18, 9) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(18, 20) Source(18, 16) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(18, 23) Source(18, 19) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(18, 27) Source(18, 23) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(18, 34) Source(18, 30) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(18, 35) Source(18, 31) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(18, 50) Source(18, 46) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(18, 51) Source(18, 47) + SourceIndex(0) name (Foo.Bar) -10>Emitted(18, 52) Source(18, 48) + SourceIndex(0) name (Foo.Bar) +1->Emitted(18, 9) Source(18, 5) + SourceIndex(0) +2 >Emitted(18, 13) Source(18, 9) + SourceIndex(0) +3 >Emitted(18, 20) Source(18, 16) + SourceIndex(0) +4 >Emitted(18, 23) Source(18, 19) + SourceIndex(0) +5 >Emitted(18, 27) Source(18, 23) + SourceIndex(0) +6 >Emitted(18, 34) Source(18, 30) + SourceIndex(0) +7 >Emitted(18, 35) Source(18, 31) + SourceIndex(0) +8 >Emitted(18, 50) Source(18, 46) + SourceIndex(0) +9 >Emitted(18, 51) Source(18, 47) + SourceIndex(0) +10>Emitted(18, 52) Source(18, 48) + SourceIndex(0) --- >>> var str = greeter.greet(); 1 >^^^^^^^^ @@ -398,15 +398,15 @@ sourceFile:sourceMapValidationClasses.ts 7 > greet 8 > () 9 > ; -1 >Emitted(19, 9) Source(19, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(19, 13) Source(19, 9) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(19, 16) Source(19, 12) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(19, 19) Source(19, 15) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(19, 26) Source(19, 22) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(19, 27) Source(19, 23) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(19, 32) Source(19, 28) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(19, 34) Source(19, 30) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(19, 35) Source(19, 31) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(19, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 13) Source(19, 9) + SourceIndex(0) +3 >Emitted(19, 16) Source(19, 12) + SourceIndex(0) +4 >Emitted(19, 19) Source(19, 15) + SourceIndex(0) +5 >Emitted(19, 26) Source(19, 22) + SourceIndex(0) +6 >Emitted(19, 27) Source(19, 23) + SourceIndex(0) +7 >Emitted(19, 32) Source(19, 28) + SourceIndex(0) +8 >Emitted(19, 34) Source(19, 30) + SourceIndex(0) +9 >Emitted(19, 35) Source(19, 31) + SourceIndex(0) --- >>> function foo2(greeting) { 1 >^^^^^^^^ @@ -418,9 +418,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > function foo2( 3 > greeting: string -1 >Emitted(20, 9) Source(21, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(20, 23) Source(21, 19) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(20, 31) Source(21, 35) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(20, 9) Source(21, 5) + SourceIndex(0) +2 >Emitted(20, 23) Source(21, 19) + SourceIndex(0) +3 >Emitted(20, 31) Source(21, 35) + SourceIndex(0) --- >>> var restGreetings /* more greeting */ = []; 1->^^^^^^^^^^^^ @@ -432,10 +432,10 @@ sourceFile:sourceMapValidationClasses.ts 2 > ...restGreetings 3 > /* more greeting */ 4 > : string[] -1->Emitted(21, 13) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(21, 31) Source(21, 54) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(21, 50) Source(21, 73) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(21, 56) Source(21, 83) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(21, 13) Source(21, 37) + SourceIndex(0) +2 >Emitted(21, 31) Source(21, 54) + SourceIndex(0) +3 >Emitted(21, 50) Source(21, 73) + SourceIndex(0) +4 >Emitted(21, 56) Source(21, 83) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^^^^^ @@ -451,12 +451,12 @@ sourceFile:sourceMapValidationClasses.ts 4 > ...restGreetings /* more greeting */: string[] 5 > 6 > ...restGreetings /* more greeting */: string[] -1->Emitted(22, 18) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(22, 29) Source(21, 83) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(22, 30) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(22, 52) Source(21, 83) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(22, 53) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(22, 57) Source(21, 83) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(22, 18) Source(21, 37) + SourceIndex(0) +2 >Emitted(22, 29) Source(21, 83) + SourceIndex(0) +3 >Emitted(22, 30) Source(21, 37) + SourceIndex(0) +4 >Emitted(22, 52) Source(21, 83) + SourceIndex(0) +5 >Emitted(22, 53) Source(21, 37) + SourceIndex(0) +6 >Emitted(22, 57) Source(21, 83) + SourceIndex(0) --- >>> restGreetings /* more greeting */[_i - 1] = arguments[_i]; 1->^^^^^^^^^^^^^^^^ @@ -467,10 +467,10 @@ sourceFile:sourceMapValidationClasses.ts 2 > ...restGreetings 3 > /* more greeting */ 4 > : string[] -1->Emitted(23, 17) Source(21, 37) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(23, 31) Source(21, 54) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(23, 50) Source(21, 73) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(23, 75) Source(21, 83) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(23, 17) Source(21, 37) + SourceIndex(0) +2 >Emitted(23, 31) Source(21, 54) + SourceIndex(0) +3 >Emitted(23, 50) Source(21, 73) + SourceIndex(0) +4 >Emitted(23, 75) Source(21, 83) + SourceIndex(0) --- >>> } >>> var greeters = []; /* inline block comment */ @@ -491,14 +491,14 @@ sourceFile:sourceMapValidationClasses.ts 6 > ; 7 > 8 > /* inline block comment */ -1 >Emitted(25, 13) Source(22, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(25, 17) Source(22, 13) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(25, 25) Source(22, 21) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(25, 28) Source(22, 35) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(25, 30) Source(22, 37) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(25, 31) Source(22, 38) + SourceIndex(0) name (Foo.Bar.foo2) -7 >Emitted(25, 32) Source(22, 39) + SourceIndex(0) name (Foo.Bar.foo2) -8 >Emitted(25, 58) Source(22, 65) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(25, 13) Source(22, 9) + SourceIndex(0) +2 >Emitted(25, 17) Source(22, 13) + SourceIndex(0) +3 >Emitted(25, 25) Source(22, 21) + SourceIndex(0) +4 >Emitted(25, 28) Source(22, 35) + SourceIndex(0) +5 >Emitted(25, 30) Source(22, 37) + SourceIndex(0) +6 >Emitted(25, 31) Source(22, 38) + SourceIndex(0) +7 >Emitted(25, 32) Source(22, 39) + SourceIndex(0) +8 >Emitted(25, 58) Source(22, 65) + SourceIndex(0) --- >>> greeters[0] = new Greeter(greeting); 1 >^^^^^^^^^^^^ @@ -527,18 +527,18 @@ sourceFile:sourceMapValidationClasses.ts 10> greeting 11> ) 12> ; -1 >Emitted(26, 13) Source(23, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(26, 21) Source(23, 17) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(26, 22) Source(23, 18) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(26, 23) Source(23, 19) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(26, 24) Source(23, 20) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(26, 27) Source(23, 23) + SourceIndex(0) name (Foo.Bar.foo2) -7 >Emitted(26, 31) Source(23, 27) + SourceIndex(0) name (Foo.Bar.foo2) -8 >Emitted(26, 38) Source(23, 34) + SourceIndex(0) name (Foo.Bar.foo2) -9 >Emitted(26, 39) Source(23, 35) + SourceIndex(0) name (Foo.Bar.foo2) -10>Emitted(26, 47) Source(23, 43) + SourceIndex(0) name (Foo.Bar.foo2) -11>Emitted(26, 48) Source(23, 44) + SourceIndex(0) name (Foo.Bar.foo2) -12>Emitted(26, 49) Source(23, 45) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(26, 13) Source(23, 9) + SourceIndex(0) +2 >Emitted(26, 21) Source(23, 17) + SourceIndex(0) +3 >Emitted(26, 22) Source(23, 18) + SourceIndex(0) +4 >Emitted(26, 23) Source(23, 19) + SourceIndex(0) +5 >Emitted(26, 24) Source(23, 20) + SourceIndex(0) +6 >Emitted(26, 27) Source(23, 23) + SourceIndex(0) +7 >Emitted(26, 31) Source(23, 27) + SourceIndex(0) +8 >Emitted(26, 38) Source(23, 34) + SourceIndex(0) +9 >Emitted(26, 39) Source(23, 35) + SourceIndex(0) +10>Emitted(26, 47) Source(23, 43) + SourceIndex(0) +11>Emitted(26, 48) Source(23, 44) + SourceIndex(0) +12>Emitted(26, 49) Source(23, 45) + SourceIndex(0) --- >>> for (var i = 0; i < restGreetings.length; i++) { 1->^^^^^^^^^^^^ @@ -583,26 +583,26 @@ sourceFile:sourceMapValidationClasses.ts 18> ++ 19> ) 20> { -1->Emitted(27, 13) Source(24, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(27, 16) Source(24, 12) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(27, 17) Source(24, 13) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(27, 18) Source(24, 14) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(27, 21) Source(24, 17) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(27, 22) Source(24, 18) + SourceIndex(0) name (Foo.Bar.foo2) -7 >Emitted(27, 23) Source(24, 19) + SourceIndex(0) name (Foo.Bar.foo2) -8 >Emitted(27, 26) Source(24, 22) + SourceIndex(0) name (Foo.Bar.foo2) -9 >Emitted(27, 27) Source(24, 23) + SourceIndex(0) name (Foo.Bar.foo2) -10>Emitted(27, 29) Source(24, 25) + SourceIndex(0) name (Foo.Bar.foo2) -11>Emitted(27, 30) Source(24, 26) + SourceIndex(0) name (Foo.Bar.foo2) -12>Emitted(27, 33) Source(24, 29) + SourceIndex(0) name (Foo.Bar.foo2) -13>Emitted(27, 46) Source(24, 42) + SourceIndex(0) name (Foo.Bar.foo2) -14>Emitted(27, 47) Source(24, 43) + SourceIndex(0) name (Foo.Bar.foo2) -15>Emitted(27, 53) Source(24, 49) + SourceIndex(0) name (Foo.Bar.foo2) -16>Emitted(27, 55) Source(24, 51) + SourceIndex(0) name (Foo.Bar.foo2) -17>Emitted(27, 56) Source(24, 52) + SourceIndex(0) name (Foo.Bar.foo2) -18>Emitted(27, 58) Source(24, 54) + SourceIndex(0) name (Foo.Bar.foo2) -19>Emitted(27, 60) Source(24, 56) + SourceIndex(0) name (Foo.Bar.foo2) -20>Emitted(27, 61) Source(24, 57) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(27, 13) Source(24, 9) + SourceIndex(0) +2 >Emitted(27, 16) Source(24, 12) + SourceIndex(0) +3 >Emitted(27, 17) Source(24, 13) + SourceIndex(0) +4 >Emitted(27, 18) Source(24, 14) + SourceIndex(0) +5 >Emitted(27, 21) Source(24, 17) + SourceIndex(0) +6 >Emitted(27, 22) Source(24, 18) + SourceIndex(0) +7 >Emitted(27, 23) Source(24, 19) + SourceIndex(0) +8 >Emitted(27, 26) Source(24, 22) + SourceIndex(0) +9 >Emitted(27, 27) Source(24, 23) + SourceIndex(0) +10>Emitted(27, 29) Source(24, 25) + SourceIndex(0) +11>Emitted(27, 30) Source(24, 26) + SourceIndex(0) +12>Emitted(27, 33) Source(24, 29) + SourceIndex(0) +13>Emitted(27, 46) Source(24, 42) + SourceIndex(0) +14>Emitted(27, 47) Source(24, 43) + SourceIndex(0) +15>Emitted(27, 53) Source(24, 49) + SourceIndex(0) +16>Emitted(27, 55) Source(24, 51) + SourceIndex(0) +17>Emitted(27, 56) Source(24, 52) + SourceIndex(0) +18>Emitted(27, 58) Source(24, 54) + SourceIndex(0) +19>Emitted(27, 60) Source(24, 56) + SourceIndex(0) +20>Emitted(27, 61) Source(24, 57) + SourceIndex(0) --- >>> greeters.push(new Greeter(restGreetings[i])); 1->^^^^^^^^^^^^^^^^ @@ -636,21 +636,21 @@ sourceFile:sourceMapValidationClasses.ts 13> ) 14> ) 15> ; -1->Emitted(28, 17) Source(25, 13) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(28, 25) Source(25, 21) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(28, 26) Source(25, 22) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(28, 30) Source(25, 26) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(28, 31) Source(25, 27) + SourceIndex(0) name (Foo.Bar.foo2) -6 >Emitted(28, 35) Source(25, 31) + SourceIndex(0) name (Foo.Bar.foo2) -7 >Emitted(28, 42) Source(25, 38) + SourceIndex(0) name (Foo.Bar.foo2) -8 >Emitted(28, 43) Source(25, 39) + SourceIndex(0) name (Foo.Bar.foo2) -9 >Emitted(28, 56) Source(25, 52) + SourceIndex(0) name (Foo.Bar.foo2) -10>Emitted(28, 57) Source(25, 53) + SourceIndex(0) name (Foo.Bar.foo2) -11>Emitted(28, 58) Source(25, 54) + SourceIndex(0) name (Foo.Bar.foo2) -12>Emitted(28, 59) Source(25, 55) + SourceIndex(0) name (Foo.Bar.foo2) -13>Emitted(28, 60) Source(25, 56) + SourceIndex(0) name (Foo.Bar.foo2) -14>Emitted(28, 61) Source(25, 57) + SourceIndex(0) name (Foo.Bar.foo2) -15>Emitted(28, 62) Source(25, 58) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(28, 17) Source(25, 13) + SourceIndex(0) +2 >Emitted(28, 25) Source(25, 21) + SourceIndex(0) +3 >Emitted(28, 26) Source(25, 22) + SourceIndex(0) +4 >Emitted(28, 30) Source(25, 26) + SourceIndex(0) +5 >Emitted(28, 31) Source(25, 27) + SourceIndex(0) +6 >Emitted(28, 35) Source(25, 31) + SourceIndex(0) +7 >Emitted(28, 42) Source(25, 38) + SourceIndex(0) +8 >Emitted(28, 43) Source(25, 39) + SourceIndex(0) +9 >Emitted(28, 56) Source(25, 52) + SourceIndex(0) +10>Emitted(28, 57) Source(25, 53) + SourceIndex(0) +11>Emitted(28, 58) Source(25, 54) + SourceIndex(0) +12>Emitted(28, 59) Source(25, 55) + SourceIndex(0) +13>Emitted(28, 60) Source(25, 56) + SourceIndex(0) +14>Emitted(28, 61) Source(25, 57) + SourceIndex(0) +15>Emitted(28, 62) Source(25, 58) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -659,8 +659,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(29, 13) Source(26, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(29, 14) Source(26, 10) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(29, 13) Source(26, 9) + SourceIndex(0) +2 >Emitted(29, 14) Source(26, 10) + SourceIndex(0) --- >>> return greeters; 1->^^^^^^^^^^^^ @@ -675,11 +675,11 @@ sourceFile:sourceMapValidationClasses.ts 3 > 4 > greeters 5 > ; -1->Emitted(30, 13) Source(28, 9) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(30, 19) Source(28, 15) + SourceIndex(0) name (Foo.Bar.foo2) -3 >Emitted(30, 20) Source(28, 16) + SourceIndex(0) name (Foo.Bar.foo2) -4 >Emitted(30, 28) Source(28, 24) + SourceIndex(0) name (Foo.Bar.foo2) -5 >Emitted(30, 29) Source(28, 25) + SourceIndex(0) name (Foo.Bar.foo2) +1->Emitted(30, 13) Source(28, 9) + SourceIndex(0) +2 >Emitted(30, 19) Source(28, 15) + SourceIndex(0) +3 >Emitted(30, 20) Source(28, 16) + SourceIndex(0) +4 >Emitted(30, 28) Source(28, 24) + SourceIndex(0) +5 >Emitted(30, 29) Source(28, 25) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -688,8 +688,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(31, 9) Source(29, 5) + SourceIndex(0) name (Foo.Bar.foo2) -2 >Emitted(31, 10) Source(29, 6) + SourceIndex(0) name (Foo.Bar.foo2) +1 >Emitted(31, 9) Source(29, 5) + SourceIndex(0) +2 >Emitted(31, 10) Source(29, 6) + SourceIndex(0) --- >>> var b = foo2("Hello", "World", "!"); 1->^^^^^^^^ @@ -721,19 +721,19 @@ sourceFile:sourceMapValidationClasses.ts 11> "!" 12> ) 13> ; -1->Emitted(32, 9) Source(31, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(32, 13) Source(31, 9) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(32, 14) Source(31, 10) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(32, 17) Source(31, 13) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(32, 21) Source(31, 17) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(32, 22) Source(31, 18) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(32, 29) Source(31, 25) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(32, 31) Source(31, 27) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(32, 38) Source(31, 34) + SourceIndex(0) name (Foo.Bar) -10>Emitted(32, 40) Source(31, 36) + SourceIndex(0) name (Foo.Bar) -11>Emitted(32, 43) Source(31, 39) + SourceIndex(0) name (Foo.Bar) -12>Emitted(32, 44) Source(31, 40) + SourceIndex(0) name (Foo.Bar) -13>Emitted(32, 45) Source(31, 41) + SourceIndex(0) name (Foo.Bar) +1->Emitted(32, 9) Source(31, 5) + SourceIndex(0) +2 >Emitted(32, 13) Source(31, 9) + SourceIndex(0) +3 >Emitted(32, 14) Source(31, 10) + SourceIndex(0) +4 >Emitted(32, 17) Source(31, 13) + SourceIndex(0) +5 >Emitted(32, 21) Source(31, 17) + SourceIndex(0) +6 >Emitted(32, 22) Source(31, 18) + SourceIndex(0) +7 >Emitted(32, 29) Source(31, 25) + SourceIndex(0) +8 >Emitted(32, 31) Source(31, 27) + SourceIndex(0) +9 >Emitted(32, 38) Source(31, 34) + SourceIndex(0) +10>Emitted(32, 40) Source(31, 36) + SourceIndex(0) +11>Emitted(32, 43) Source(31, 39) + SourceIndex(0) +12>Emitted(32, 44) Source(31, 40) + SourceIndex(0) +13>Emitted(32, 45) Source(31, 41) + SourceIndex(0) --- >>> // This is simple signle line comment 1->^^^^^^^^ @@ -741,8 +741,8 @@ sourceFile:sourceMapValidationClasses.ts 1-> > 2 > // This is simple signle line comment -1->Emitted(33, 9) Source(32, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(33, 46) Source(32, 42) + SourceIndex(0) name (Foo.Bar) +1->Emitted(33, 9) Source(32, 5) + SourceIndex(0) +2 >Emitted(33, 46) Source(32, 42) + SourceIndex(0) --- >>> for (var j = 0; j < b.length; j++) { 1 >^^^^^^^^ @@ -786,26 +786,26 @@ sourceFile:sourceMapValidationClasses.ts 18> ++ 19> ) 20> { -1 >Emitted(34, 9) Source(33, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(34, 12) Source(33, 8) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(34, 13) Source(33, 9) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(34, 14) Source(33, 10) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(34, 17) Source(33, 13) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(34, 18) Source(33, 14) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(34, 19) Source(33, 15) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(34, 22) Source(33, 18) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(34, 23) Source(33, 19) + SourceIndex(0) name (Foo.Bar) -10>Emitted(34, 25) Source(33, 21) + SourceIndex(0) name (Foo.Bar) -11>Emitted(34, 26) Source(33, 22) + SourceIndex(0) name (Foo.Bar) -12>Emitted(34, 29) Source(33, 25) + SourceIndex(0) name (Foo.Bar) -13>Emitted(34, 30) Source(33, 26) + SourceIndex(0) name (Foo.Bar) -14>Emitted(34, 31) Source(33, 27) + SourceIndex(0) name (Foo.Bar) -15>Emitted(34, 37) Source(33, 33) + SourceIndex(0) name (Foo.Bar) -16>Emitted(34, 39) Source(33, 35) + SourceIndex(0) name (Foo.Bar) -17>Emitted(34, 40) Source(33, 36) + SourceIndex(0) name (Foo.Bar) -18>Emitted(34, 42) Source(33, 38) + SourceIndex(0) name (Foo.Bar) -19>Emitted(34, 44) Source(33, 40) + SourceIndex(0) name (Foo.Bar) -20>Emitted(34, 45) Source(33, 41) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(34, 9) Source(33, 5) + SourceIndex(0) +2 >Emitted(34, 12) Source(33, 8) + SourceIndex(0) +3 >Emitted(34, 13) Source(33, 9) + SourceIndex(0) +4 >Emitted(34, 14) Source(33, 10) + SourceIndex(0) +5 >Emitted(34, 17) Source(33, 13) + SourceIndex(0) +6 >Emitted(34, 18) Source(33, 14) + SourceIndex(0) +7 >Emitted(34, 19) Source(33, 15) + SourceIndex(0) +8 >Emitted(34, 22) Source(33, 18) + SourceIndex(0) +9 >Emitted(34, 23) Source(33, 19) + SourceIndex(0) +10>Emitted(34, 25) Source(33, 21) + SourceIndex(0) +11>Emitted(34, 26) Source(33, 22) + SourceIndex(0) +12>Emitted(34, 29) Source(33, 25) + SourceIndex(0) +13>Emitted(34, 30) Source(33, 26) + SourceIndex(0) +14>Emitted(34, 31) Source(33, 27) + SourceIndex(0) +15>Emitted(34, 37) Source(33, 33) + SourceIndex(0) +16>Emitted(34, 39) Source(33, 35) + SourceIndex(0) +17>Emitted(34, 40) Source(33, 36) + SourceIndex(0) +18>Emitted(34, 42) Source(33, 38) + SourceIndex(0) +19>Emitted(34, 44) Source(33, 40) + SourceIndex(0) +20>Emitted(34, 45) Source(33, 41) + SourceIndex(0) --- >>> b[j].greet(); 1 >^^^^^^^^^^^^ @@ -827,15 +827,15 @@ sourceFile:sourceMapValidationClasses.ts 7 > greet 8 > () 9 > ; -1 >Emitted(35, 13) Source(34, 9) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(35, 14) Source(34, 10) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(35, 15) Source(34, 11) + SourceIndex(0) name (Foo.Bar) -4 >Emitted(35, 16) Source(34, 12) + SourceIndex(0) name (Foo.Bar) -5 >Emitted(35, 17) Source(34, 13) + SourceIndex(0) name (Foo.Bar) -6 >Emitted(35, 18) Source(34, 14) + SourceIndex(0) name (Foo.Bar) -7 >Emitted(35, 23) Source(34, 19) + SourceIndex(0) name (Foo.Bar) -8 >Emitted(35, 25) Source(34, 21) + SourceIndex(0) name (Foo.Bar) -9 >Emitted(35, 26) Source(34, 22) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(35, 13) Source(34, 9) + SourceIndex(0) +2 >Emitted(35, 14) Source(34, 10) + SourceIndex(0) +3 >Emitted(35, 15) Source(34, 11) + SourceIndex(0) +4 >Emitted(35, 16) Source(34, 12) + SourceIndex(0) +5 >Emitted(35, 17) Source(34, 13) + SourceIndex(0) +6 >Emitted(35, 18) Source(34, 14) + SourceIndex(0) +7 >Emitted(35, 23) Source(34, 19) + SourceIndex(0) +8 >Emitted(35, 25) Source(34, 21) + SourceIndex(0) +9 >Emitted(35, 26) Source(34, 22) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -844,8 +844,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(36, 9) Source(35, 5) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(36, 10) Source(35, 6) + SourceIndex(0) name (Foo.Bar) +1 >Emitted(36, 9) Source(35, 5) + SourceIndex(0) +2 >Emitted(36, 10) Source(35, 6) + SourceIndex(0) --- >>> })(Bar = Foo.Bar || (Foo.Bar = {})); 1->^^^^ @@ -902,15 +902,15 @@ sourceFile:sourceMapValidationClasses.ts > b[j].greet(); > } > } -1->Emitted(37, 5) Source(36, 1) + SourceIndex(0) name (Foo.Bar) -2 >Emitted(37, 6) Source(36, 2) + SourceIndex(0) name (Foo.Bar) -3 >Emitted(37, 8) Source(1, 12) + SourceIndex(0) name (Foo) -4 >Emitted(37, 11) Source(1, 15) + SourceIndex(0) name (Foo) -5 >Emitted(37, 14) Source(1, 12) + SourceIndex(0) name (Foo) -6 >Emitted(37, 21) Source(1, 15) + SourceIndex(0) name (Foo) -7 >Emitted(37, 26) Source(1, 12) + SourceIndex(0) name (Foo) -8 >Emitted(37, 33) Source(1, 15) + SourceIndex(0) name (Foo) -9 >Emitted(37, 41) Source(36, 2) + SourceIndex(0) name (Foo) +1->Emitted(37, 5) Source(36, 1) + SourceIndex(0) +2 >Emitted(37, 6) Source(36, 2) + SourceIndex(0) +3 >Emitted(37, 8) Source(1, 12) + SourceIndex(0) +4 >Emitted(37, 11) Source(1, 15) + SourceIndex(0) +5 >Emitted(37, 14) Source(1, 12) + SourceIndex(0) +6 >Emitted(37, 21) Source(1, 15) + SourceIndex(0) +7 >Emitted(37, 26) Source(1, 12) + SourceIndex(0) +8 >Emitted(37, 33) Source(1, 15) + SourceIndex(0) +9 >Emitted(37, 41) Source(36, 2) + SourceIndex(0) --- >>>})(Foo || (Foo = {})); 1 > @@ -963,8 +963,8 @@ sourceFile:sourceMapValidationClasses.ts > b[j].greet(); > } > } -1 >Emitted(38, 1) Source(36, 1) + SourceIndex(0) name (Foo) -2 >Emitted(38, 2) Source(36, 2) + SourceIndex(0) name (Foo) +1 >Emitted(38, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(38, 2) Source(36, 2) + SourceIndex(0) 3 >Emitted(38, 4) Source(1, 8) + SourceIndex(0) 4 >Emitted(38, 7) Source(1, 11) + SourceIndex(0) 5 >Emitted(38, 12) Source(1, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMapValidationDecorators.js b/tests/baselines/reference/sourceMapValidationDecorators.js index 04eb1d71078..c3bb5cd7225 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.js +++ b/tests/baselines/reference/sourceMapValidationDecorators.js @@ -120,5 +120,5 @@ var Greeter = (function () { __param(1, ParameterDecorator2(30)) ], Greeter); return Greeter; -})(); +}()); //# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDecorators.js.map b/tests/baselines/reference/sourceMapValidationDecorators.js.map index 4a8b3258659..0a6b45eb383 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.js.map +++ b/tests/baselines/reference/sourceMapValidationDecorators.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDecorators.js.map] -{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":["Greeter","Greeter.constructor","Greeter.greet","Greeter.fn","Greeter.greetings"],"mappings":";;;;;;;;;AAOA;IAGIA,iBAGSA,QAAgBA;QAEvBC,WAEcA;aAFdA,WAEcA,CAFdA,sBAEcA,CAFdA,IAEcA;YAFdA,0BAEcA;;QAJPA,aAAQA,GAARA,QAAQA,CAAQA;IAKzBA,CAACA;IAIDD,uBAAKA,GAFLA;QAGIE,MAAMA,CAACA,MAAMA,GAAGA,IAAIA,CAACA,QAAQA,GAAGA,OAAOA,CAACA;IAC5CA,CAACA;IAUOF,oBAAEA,GAAVA,UAGEA,CAASA;QACPG,MAAMA,CAACA,IAAIA,CAACA,QAAQA,CAACA;IACzBA,CAACA;IAEDH,sBAEIA,8BAASA;aAFbA;YAGII,MAAMA,CAACA,IAAIA,CAACA,QAAQA,CAACA;QACzBA,CAACA;aAEDJ,UAGEA,SAAiBA;YACfI,IAAIA,CAACA,QAAQA,GAAGA,SAASA,CAACA;QAC9BA,CAACA;;;OAPAJ;IAbcA,UAAEA,GAAWA,EAAEA,CAACA;IAZ/BA;QAACA,kBAAkBA;QAClBA,kBAAkBA,CAACA,EAAEA,CAACA;OACvBA,0BAAKA,QAEJA;IAEDA;QAACA,kBAAkBA;QAClBA,kBAAkBA,CAACA,EAAEA,CAACA;OACfA,sBAACA,UAASA;IAMlBA;QACEA,WAACA,mBAAmBA,CAAAA;QACpBA,WAACA,mBAAmBA,CAACA,EAAEA,CAACA,CAAAA;OAFlBA,uBAAEA,QAKTA;IAEDA;QAACA,kBAAkBA;QAClBA,kBAAkBA,CAACA,EAAEA,CAACA;QAMrBA,WAACA,mBAAmBA,CAAAA;QACpBA,WAACA,mBAAmBA,CAACA,EAAEA,CAACA,CAAAA;OANtBA,8BAASA,QAEZA;IAfDA;QAACA,kBAAkBA;QAClBA,kBAAkBA,CAACA,EAAEA,CAACA;OACRA,aAAEA,UAAcA;IAzBnCA;QAACA,eAAeA;QACfA,eAAeA,CAACA,EAAEA,CAACA;QAGdA,WAACA,mBAAmBA,CAAAA;QACpBA,WAACA,mBAAmBA,CAACA,EAAEA,CAACA,CAAAA;QAGxBA,WAACA,mBAAmBA,CAAAA;QACpBA,WAACA,mBAAmBA,CAACA,EAAEA,CAACA,CAAAA;gBAqC7BA;IAADA,cAACA;AAADA,CAACA,AA9CD,IA8CC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":";;;;;;;;;AASA;IACI,iBAGS,QAAgB;QAIvB,WAAc;aAAd,WAAc,CAAd,sBAAc,CAAd,IAAc;YAAd,0BAAc;;QAJP,aAAQ,GAAR,QAAQ,CAAQ;IAKzB,CAAC;IAID,uBAAK,GAAL;QACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAUO,oBAAE,GAAV,UAGE,CAAS;QACP,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAID,sBAAI,8BAAS;aAAb;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAGE,SAAiB;YACf,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC9B,CAAC;;;OAPA;IAbc,UAAE,GAAW,EAAE,CAAC;IAZ/B;QAAC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;wCAAA;IAKvB;QAAC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;sCAAA;IAQrB;mBAAC,mBAAmB;mBACnB,mBAAmB,CAAC,EAAE,CAAC;qCAAA;IAK1B;QAAC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;mBAMpB,mBAAmB;mBACnB,mBAAmB,CAAC,EAAE,CAAC;4CAPH;IAZvB;QAAC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;6BAAA;IAxB3B;QAAC,eAAe;QACf,eAAe,CAAC,EAAE,CAAC;mBAGb,mBAAmB;mBACnB,mBAAmB,CAAC,EAAE,CAAC;mBAGvB,mBAAmB;mBACnB,mBAAmB,CAAC,EAAE,CAAC;eARV;IA6CpB,cAAC;AAAD,CAAC,AA5CD,IA4CC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt index d9c8d0cc976..16820428856 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt @@ -27,25 +27,25 @@ sourceFile:sourceMapValidationDecorators.ts >declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; >declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; > + >@ClassDecorator1 + >@ClassDecorator2(10) > -1 >Emitted(10, 1) Source(8, 1) + SourceIndex(0) +1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) --- >>> function Greeter(greeting) { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^ -1->@ClassDecorator1 - >@ClassDecorator2(10) - >class Greeter { +1->class Greeter { > 2 > constructor( > @ParameterDecorator1 > @ParameterDecorator2(20) > public 3 > greeting: string -1->Emitted(11, 5) Source(11, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(11, 22) Source(14, 14) + SourceIndex(0) name (Greeter) -3 >Emitted(11, 30) Source(14, 30) + SourceIndex(0) name (Greeter) +1->Emitted(11, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(11, 22) Source(14, 14) + SourceIndex(0) +3 >Emitted(11, 30) Source(14, 30) + SourceIndex(0) --- >>> var b = []; 1 >^^^^^^^^ @@ -53,12 +53,12 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >, > + > @ParameterDecorator1 + > @ParameterDecorator2(30) > -2 > @ParameterDecorator1 - > @ParameterDecorator2(30) - > ...b: string[] -1 >Emitted(12, 9) Source(16, 7) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(12, 20) Source(18, 21) + SourceIndex(0) name (Greeter.constructor) +2 > ...b: string[] +1 >Emitted(12, 9) Source(18, 7) + SourceIndex(0) +2 >Emitted(12, 20) Source(18, 21) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^ @@ -68,33 +68,25 @@ sourceFile:sourceMapValidationDecorators.ts 5 > ^ 6 > ^^^^ 1-> -2 > @ParameterDecorator1 - > @ParameterDecorator2(30) - > ...b: string[] +2 > ...b: string[] 3 > -4 > @ParameterDecorator1 - > @ParameterDecorator2(30) - > ...b: string[] +4 > ...b: string[] 5 > -6 > @ParameterDecorator1 - > @ParameterDecorator2(30) - > ...b: string[] -1->Emitted(13, 14) Source(16, 7) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(13, 25) Source(18, 21) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(13, 26) Source(16, 7) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(13, 48) Source(18, 21) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(13, 49) Source(16, 7) + SourceIndex(0) name (Greeter.constructor) -6 >Emitted(13, 53) Source(18, 21) + SourceIndex(0) name (Greeter.constructor) +6 > ...b: string[] +1->Emitted(13, 14) Source(18, 7) + SourceIndex(0) +2 >Emitted(13, 25) Source(18, 21) + SourceIndex(0) +3 >Emitted(13, 26) Source(18, 7) + SourceIndex(0) +4 >Emitted(13, 48) Source(18, 21) + SourceIndex(0) +5 >Emitted(13, 49) Source(18, 7) + SourceIndex(0) +6 >Emitted(13, 53) Source(18, 21) + SourceIndex(0) --- >>> b[_i - 1] = arguments[_i]; 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > @ParameterDecorator1 - > @ParameterDecorator2(30) - > ...b: string[] -1 >Emitted(14, 13) Source(16, 7) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(14, 39) Source(18, 21) + SourceIndex(0) name (Greeter.constructor) +2 > ...b: string[] +1 >Emitted(14, 13) Source(18, 7) + SourceIndex(0) +2 >Emitted(14, 39) Source(18, 21) + SourceIndex(0) --- >>> } >>> this.greeting = greeting; @@ -108,11 +100,11 @@ sourceFile:sourceMapValidationDecorators.ts 3 > 4 > greeting 5 > : string -1 >Emitted(16, 9) Source(14, 14) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(16, 22) Source(14, 22) + SourceIndex(0) name (Greeter.constructor) -3 >Emitted(16, 25) Source(14, 14) + SourceIndex(0) name (Greeter.constructor) -4 >Emitted(16, 33) Source(14, 22) + SourceIndex(0) name (Greeter.constructor) -5 >Emitted(16, 34) Source(14, 30) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(16, 9) Source(14, 14) + SourceIndex(0) +2 >Emitted(16, 22) Source(14, 22) + SourceIndex(0) +3 >Emitted(16, 25) Source(14, 14) + SourceIndex(0) +4 >Emitted(16, 33) Source(14, 22) + SourceIndex(0) +5 >Emitted(16, 34) Source(14, 30) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -125,8 +117,8 @@ sourceFile:sourceMapValidationDecorators.ts > ...b: string[]) { > 2 > } -1 >Emitted(17, 5) Source(19, 5) + SourceIndex(0) name (Greeter.constructor) -2 >Emitted(17, 6) Source(19, 6) + SourceIndex(0) name (Greeter.constructor) +1 >Emitted(17, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(17, 6) Source(19, 6) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^ @@ -140,9 +132,9 @@ sourceFile:sourceMapValidationDecorators.ts > 2 > greet 3 > -1->Emitted(18, 5) Source(23, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(18, 28) Source(23, 10) + SourceIndex(0) name (Greeter) -3 >Emitted(18, 31) Source(21, 5) + SourceIndex(0) name (Greeter) +1->Emitted(18, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(18, 28) Source(23, 10) + SourceIndex(0) +3 >Emitted(18, 31) Source(23, 5) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^ @@ -156,9 +148,7 @@ sourceFile:sourceMapValidationDecorators.ts 9 > ^^^ 10> ^^^^^^^ 11> ^ -1->@PropertyDecorator1 - > @PropertyDecorator2(40) - > greet() { +1->greet() { > 2 > return 3 > @@ -170,17 +160,17 @@ sourceFile:sourceMapValidationDecorators.ts 9 > + 10> "" 11> ; -1->Emitted(19, 9) Source(24, 9) + SourceIndex(0) name (Greeter.greet) -2 >Emitted(19, 15) Source(24, 15) + SourceIndex(0) name (Greeter.greet) -3 >Emitted(19, 16) Source(24, 16) + SourceIndex(0) name (Greeter.greet) -4 >Emitted(19, 22) Source(24, 22) + SourceIndex(0) name (Greeter.greet) -5 >Emitted(19, 25) Source(24, 25) + SourceIndex(0) name (Greeter.greet) -6 >Emitted(19, 29) Source(24, 29) + SourceIndex(0) name (Greeter.greet) -7 >Emitted(19, 30) Source(24, 30) + SourceIndex(0) name (Greeter.greet) -8 >Emitted(19, 38) Source(24, 38) + SourceIndex(0) name (Greeter.greet) -9 >Emitted(19, 41) Source(24, 41) + SourceIndex(0) name (Greeter.greet) -10>Emitted(19, 48) Source(24, 48) + SourceIndex(0) name (Greeter.greet) -11>Emitted(19, 49) Source(24, 49) + SourceIndex(0) name (Greeter.greet) +1->Emitted(19, 9) Source(24, 9) + SourceIndex(0) +2 >Emitted(19, 15) Source(24, 15) + SourceIndex(0) +3 >Emitted(19, 16) Source(24, 16) + SourceIndex(0) +4 >Emitted(19, 22) Source(24, 22) + SourceIndex(0) +5 >Emitted(19, 25) Source(24, 25) + SourceIndex(0) +6 >Emitted(19, 29) Source(24, 29) + SourceIndex(0) +7 >Emitted(19, 30) Source(24, 30) + SourceIndex(0) +8 >Emitted(19, 38) Source(24, 38) + SourceIndex(0) +9 >Emitted(19, 41) Source(24, 41) + SourceIndex(0) +10>Emitted(19, 48) Source(24, 48) + SourceIndex(0) +11>Emitted(19, 49) Source(24, 49) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -189,8 +179,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(25, 5) + SourceIndex(0) name (Greeter.greet) -2 >Emitted(20, 6) Source(25, 6) + SourceIndex(0) name (Greeter.greet) +1 >Emitted(20, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(20, 6) Source(25, 6) + SourceIndex(0) --- >>> Greeter.prototype.fn = function (x) { 1->^^^^ @@ -216,11 +206,11 @@ sourceFile:sourceMapValidationDecorators.ts > @ParameterDecorator2(70) > 5 > x: number -1->Emitted(21, 5) Source(35, 13) + SourceIndex(0) name (Greeter) -2 >Emitted(21, 25) Source(35, 15) + SourceIndex(0) name (Greeter) -3 >Emitted(21, 28) Source(35, 5) + SourceIndex(0) name (Greeter) -4 >Emitted(21, 38) Source(38, 7) + SourceIndex(0) name (Greeter) -5 >Emitted(21, 39) Source(38, 16) + SourceIndex(0) name (Greeter) +1->Emitted(21, 5) Source(35, 13) + SourceIndex(0) +2 >Emitted(21, 25) Source(35, 15) + SourceIndex(0) +3 >Emitted(21, 28) Source(35, 5) + SourceIndex(0) +4 >Emitted(21, 38) Source(38, 7) + SourceIndex(0) +5 >Emitted(21, 39) Source(38, 16) + SourceIndex(0) --- >>> return this.greeting; 1 >^^^^^^^^ @@ -238,13 +228,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > . 6 > greeting 7 > ; -1 >Emitted(22, 9) Source(39, 9) + SourceIndex(0) name (Greeter.fn) -2 >Emitted(22, 15) Source(39, 15) + SourceIndex(0) name (Greeter.fn) -3 >Emitted(22, 16) Source(39, 16) + SourceIndex(0) name (Greeter.fn) -4 >Emitted(22, 20) Source(39, 20) + SourceIndex(0) name (Greeter.fn) -5 >Emitted(22, 21) Source(39, 21) + SourceIndex(0) name (Greeter.fn) -6 >Emitted(22, 29) Source(39, 29) + SourceIndex(0) name (Greeter.fn) -7 >Emitted(22, 30) Source(39, 30) + SourceIndex(0) name (Greeter.fn) +1 >Emitted(22, 9) Source(39, 9) + SourceIndex(0) +2 >Emitted(22, 15) Source(39, 15) + SourceIndex(0) +3 >Emitted(22, 16) Source(39, 16) + SourceIndex(0) +4 >Emitted(22, 20) Source(39, 20) + SourceIndex(0) +5 >Emitted(22, 21) Source(39, 21) + SourceIndex(0) +6 >Emitted(22, 29) Source(39, 29) + SourceIndex(0) +7 >Emitted(22, 30) Source(39, 30) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -253,8 +243,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(40, 5) + SourceIndex(0) name (Greeter.fn) -2 >Emitted(23, 6) Source(40, 6) + SourceIndex(0) name (Greeter.fn) +1 >Emitted(23, 5) Source(40, 5) + SourceIndex(0) +2 >Emitted(23, 6) Source(40, 6) + SourceIndex(0) --- >>> Object.defineProperty(Greeter.prototype, "greetings", { 1->^^^^ @@ -262,20 +252,20 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> > + > @PropertyDecorator1 + > @PropertyDecorator2(80) > -2 > @PropertyDecorator1 - > @PropertyDecorator2(80) - > get +2 > get 3 > greetings -1->Emitted(24, 5) Source(42, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(24, 27) Source(44, 9) + SourceIndex(0) name (Greeter) -3 >Emitted(24, 57) Source(44, 18) + SourceIndex(0) name (Greeter) +1->Emitted(24, 5) Source(44, 5) + SourceIndex(0) +2 >Emitted(24, 27) Source(44, 9) + SourceIndex(0) +3 >Emitted(24, 57) Source(44, 18) + SourceIndex(0) --- >>> get: function () { 1 >^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(25, 14) Source(42, 5) + SourceIndex(0) name (Greeter) +1 >Emitted(25, 14) Source(44, 5) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^^^^^ @@ -285,9 +275,7 @@ sourceFile:sourceMapValidationDecorators.ts 5 > ^ 6 > ^^^^^^^^ 7 > ^ -1->@PropertyDecorator1 - > @PropertyDecorator2(80) - > get greetings() { +1->get greetings() { > 2 > return 3 > @@ -295,13 +283,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > . 6 > greeting 7 > ; -1->Emitted(26, 13) Source(45, 9) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(26, 19) Source(45, 15) + SourceIndex(0) name (Greeter.greetings) -3 >Emitted(26, 20) Source(45, 16) + SourceIndex(0) name (Greeter.greetings) -4 >Emitted(26, 24) Source(45, 20) + SourceIndex(0) name (Greeter.greetings) -5 >Emitted(26, 25) Source(45, 21) + SourceIndex(0) name (Greeter.greetings) -6 >Emitted(26, 33) Source(45, 29) + SourceIndex(0) name (Greeter.greetings) -7 >Emitted(26, 34) Source(45, 30) + SourceIndex(0) name (Greeter.greetings) +1->Emitted(26, 13) Source(45, 9) + SourceIndex(0) +2 >Emitted(26, 19) Source(45, 15) + SourceIndex(0) +3 >Emitted(26, 20) Source(45, 16) + SourceIndex(0) +4 >Emitted(26, 24) Source(45, 20) + SourceIndex(0) +5 >Emitted(26, 25) Source(45, 21) + SourceIndex(0) +6 >Emitted(26, 33) Source(45, 29) + SourceIndex(0) +7 >Emitted(26, 34) Source(45, 30) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -310,8 +298,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(27, 9) Source(46, 5) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(27, 10) Source(46, 6) + SourceIndex(0) name (Greeter.greetings) +1 >Emitted(27, 9) Source(46, 5) + SourceIndex(0) +2 >Emitted(27, 10) Source(46, 6) + SourceIndex(0) --- >>> set: function (greetings) { 1->^^^^^^^^^^^^^ @@ -326,9 +314,9 @@ sourceFile:sourceMapValidationDecorators.ts > @ParameterDecorator2(90) > 3 > greetings: string -1->Emitted(28, 14) Source(48, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(28, 24) Source(51, 7) + SourceIndex(0) name (Greeter) -3 >Emitted(28, 33) Source(51, 24) + SourceIndex(0) name (Greeter) +1->Emitted(28, 14) Source(48, 5) + SourceIndex(0) +2 >Emitted(28, 24) Source(51, 7) + SourceIndex(0) +3 >Emitted(28, 33) Source(51, 24) + SourceIndex(0) --- >>> this.greeting = greetings; 1->^^^^^^^^^^^^ @@ -346,13 +334,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > = 6 > greetings 7 > ; -1->Emitted(29, 13) Source(52, 9) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(29, 17) Source(52, 13) + SourceIndex(0) name (Greeter.greetings) -3 >Emitted(29, 18) Source(52, 14) + SourceIndex(0) name (Greeter.greetings) -4 >Emitted(29, 26) Source(52, 22) + SourceIndex(0) name (Greeter.greetings) -5 >Emitted(29, 29) Source(52, 25) + SourceIndex(0) name (Greeter.greetings) -6 >Emitted(29, 38) Source(52, 34) + SourceIndex(0) name (Greeter.greetings) -7 >Emitted(29, 39) Source(52, 35) + SourceIndex(0) name (Greeter.greetings) +1->Emitted(29, 13) Source(52, 9) + SourceIndex(0) +2 >Emitted(29, 17) Source(52, 13) + SourceIndex(0) +3 >Emitted(29, 18) Source(52, 14) + SourceIndex(0) +4 >Emitted(29, 26) Source(52, 22) + SourceIndex(0) +5 >Emitted(29, 29) Source(52, 25) + SourceIndex(0) +6 >Emitted(29, 38) Source(52, 34) + SourceIndex(0) +7 >Emitted(29, 39) Source(52, 35) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -361,8 +349,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(30, 9) Source(53, 5) + SourceIndex(0) name (Greeter.greetings) -2 >Emitted(30, 10) Source(53, 6) + SourceIndex(0) name (Greeter.greetings) +1 >Emitted(30, 9) Source(53, 5) + SourceIndex(0) +2 >Emitted(30, 10) Source(53, 6) + SourceIndex(0) --- >>> enumerable: true, >>> configurable: true @@ -370,7 +358,7 @@ sourceFile:sourceMapValidationDecorators.ts 1->^^^^^^^ 2 > ^^^^^^^^^^^^^^-> 1-> -1->Emitted(33, 8) Source(46, 6) + SourceIndex(0) name (Greeter) +1->Emitted(33, 8) Source(46, 6) + SourceIndex(0) --- >>> Greeter.x1 = 10; 1->^^^^ @@ -383,17 +371,17 @@ sourceFile:sourceMapValidationDecorators.ts 3 > : number = 4 > 10 5 > ; -1->Emitted(34, 5) Source(33, 20) + SourceIndex(0) name (Greeter) -2 >Emitted(34, 15) Source(33, 22) + SourceIndex(0) name (Greeter) -3 >Emitted(34, 18) Source(33, 33) + SourceIndex(0) name (Greeter) -4 >Emitted(34, 20) Source(33, 35) + SourceIndex(0) name (Greeter) -5 >Emitted(34, 21) Source(33, 36) + SourceIndex(0) name (Greeter) +1->Emitted(34, 5) Source(33, 20) + SourceIndex(0) +2 >Emitted(34, 15) Source(33, 22) + SourceIndex(0) +3 >Emitted(34, 18) Source(33, 33) + SourceIndex(0) +4 >Emitted(34, 20) Source(33, 35) + SourceIndex(0) +5 >Emitted(34, 21) Source(33, 36) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(35, 5) Source(21, 5) + SourceIndex(0) name (Greeter) +1 >Emitted(35, 5) Source(21, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -401,8 +389,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^-> 1->@ 2 > PropertyDecorator1 -1->Emitted(36, 9) Source(21, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(36, 27) Source(21, 24) + SourceIndex(0) name (Greeter) +1->Emitted(36, 9) Source(21, 6) + SourceIndex(0) +2 >Emitted(36, 27) Source(21, 24) + SourceIndex(0) --- >>> PropertyDecorator2(40) 1->^^^^^^^^ @@ -417,33 +405,27 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 40 5 > ) -1->Emitted(37, 9) Source(22, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(37, 27) Source(22, 24) + SourceIndex(0) name (Greeter) -3 >Emitted(37, 28) Source(22, 25) + SourceIndex(0) name (Greeter) -4 >Emitted(37, 30) Source(22, 27) + SourceIndex(0) name (Greeter) -5 >Emitted(37, 31) Source(22, 28) + SourceIndex(0) name (Greeter) +1->Emitted(37, 9) Source(22, 6) + SourceIndex(0) +2 >Emitted(37, 27) Source(22, 24) + SourceIndex(0) +3 >Emitted(37, 28) Source(22, 25) + SourceIndex(0) +4 >Emitted(37, 30) Source(22, 27) + SourceIndex(0) +5 >Emitted(37, 31) Source(22, 28) + SourceIndex(0) --- >>> ], Greeter.prototype, "greet", null); -1->^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^ -1-> - > -2 > greet -3 > () { - > return "

" + this.greeting + "

"; - > } -1->Emitted(38, 8) Source(23, 5) + SourceIndex(0) name (Greeter) -2 >Emitted(38, 34) Source(23, 10) + SourceIndex(0) name (Greeter) -3 >Emitted(38, 42) Source(25, 6) + SourceIndex(0) name (Greeter) +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +1->Emitted(38, 41) Source(22, 28) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > + > greet() { + > return "

" + this.greeting + "

"; + > } > > -1 >Emitted(39, 5) Source(27, 5) + SourceIndex(0) name (Greeter) +1 >Emitted(39, 5) Source(27, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -451,8 +433,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^-> 1->@ 2 > PropertyDecorator1 -1->Emitted(40, 9) Source(27, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(40, 27) Source(27, 24) + SourceIndex(0) name (Greeter) +1->Emitted(40, 9) Source(27, 6) + SourceIndex(0) +2 >Emitted(40, 27) Source(27, 24) + SourceIndex(0) --- >>> PropertyDecorator2(50) 1->^^^^^^^^ @@ -467,99 +449,73 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 50 5 > ) -1->Emitted(41, 9) Source(28, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(41, 27) Source(28, 24) + SourceIndex(0) name (Greeter) -3 >Emitted(41, 28) Source(28, 25) + SourceIndex(0) name (Greeter) -4 >Emitted(41, 30) Source(28, 27) + SourceIndex(0) name (Greeter) -5 >Emitted(41, 31) Source(28, 28) + SourceIndex(0) name (Greeter) +1->Emitted(41, 9) Source(28, 6) + SourceIndex(0) +2 >Emitted(41, 27) Source(28, 24) + SourceIndex(0) +3 >Emitted(41, 28) Source(28, 25) + SourceIndex(0) +4 >Emitted(41, 30) Source(28, 27) + SourceIndex(0) +5 >Emitted(41, 31) Source(28, 28) + SourceIndex(0) --- >>> ], Greeter.prototype, "x", void 0); -1->^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^ -1-> - > private -2 > x -3 > : string; -1->Emitted(42, 8) Source(29, 13) + SourceIndex(0) name (Greeter) -2 >Emitted(42, 30) Source(29, 14) + SourceIndex(0) name (Greeter) -3 >Emitted(42, 40) Source(29, 23) + SourceIndex(0) name (Greeter) +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +1->Emitted(42, 39) Source(28, 28) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > + > private x: string; > > @PropertyDecorator1 > @PropertyDecorator2(60) > private static x1: number = 10; > - > -1 >Emitted(43, 5) Source(35, 5) + SourceIndex(0) name (Greeter) + > private fn( + > +1 >Emitted(43, 5) Source(36, 7) + SourceIndex(0) --- >>> __param(0, ParameterDecorator1), -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^-> -1->private fn( - > -2 > @ -3 > ParameterDecorator1 -4 > -1->Emitted(44, 9) Source(36, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(44, 20) Source(36, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(44, 39) Source(36, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(44, 40) Source(36, 27) + SourceIndex(0) name (Greeter) +1->^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^-> +1->@ +2 > ParameterDecorator1 +1->Emitted(44, 20) Source(36, 8) + SourceIndex(0) +2 >Emitted(44, 39) Source(36, 27) + SourceIndex(0) --- >>> __param(0, ParameterDecorator2(70)) -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^ -7 > ^ +1->^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ 1-> - > -2 > @ -3 > ParameterDecorator2 -4 > ( -5 > 70 -6 > ) -7 > -1->Emitted(45, 9) Source(37, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(45, 20) Source(37, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(45, 39) Source(37, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(45, 40) Source(37, 28) + SourceIndex(0) name (Greeter) -5 >Emitted(45, 42) Source(37, 30) + SourceIndex(0) name (Greeter) -6 >Emitted(45, 43) Source(37, 31) + SourceIndex(0) name (Greeter) -7 >Emitted(45, 44) Source(37, 31) + SourceIndex(0) name (Greeter) + > @ +2 > ParameterDecorator2 +3 > ( +4 > 70 +5 > ) +1->Emitted(45, 20) Source(37, 8) + SourceIndex(0) +2 >Emitted(45, 39) Source(37, 27) + SourceIndex(0) +3 >Emitted(45, 40) Source(37, 28) + SourceIndex(0) +4 >Emitted(45, 42) Source(37, 30) + SourceIndex(0) +5 >Emitted(45, 43) Source(37, 31) + SourceIndex(0) --- >>> ], Greeter.prototype, "fn", null); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^ +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > -2 > fn -3 > ( - > @ParameterDecorator1 - > @ParameterDecorator2(70) - > x: number) { - > return this.greeting; - > } -1 >Emitted(46, 8) Source(35, 13) + SourceIndex(0) name (Greeter) -2 >Emitted(46, 31) Source(35, 15) + SourceIndex(0) name (Greeter) -3 >Emitted(46, 39) Source(40, 6) + SourceIndex(0) name (Greeter) +1 >Emitted(46, 38) Source(37, 31) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1 > + > x: number) { + > return this.greeting; + > } > > -1 >Emitted(47, 5) Source(42, 5) + SourceIndex(0) name (Greeter) +1 >Emitted(47, 5) Source(42, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -567,8 +523,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^^-> 1->@ 2 > PropertyDecorator1 -1->Emitted(48, 9) Source(42, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(48, 27) Source(42, 24) + SourceIndex(0) name (Greeter) +1->Emitted(48, 9) Source(42, 6) + SourceIndex(0) +2 >Emitted(48, 27) Source(42, 24) + SourceIndex(0) --- >>> PropertyDecorator2(80), 1->^^^^^^^^ @@ -583,76 +539,56 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 80 5 > ) -1->Emitted(49, 9) Source(43, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(49, 27) Source(43, 24) + SourceIndex(0) name (Greeter) -3 >Emitted(49, 28) Source(43, 25) + SourceIndex(0) name (Greeter) -4 >Emitted(49, 30) Source(43, 27) + SourceIndex(0) name (Greeter) -5 >Emitted(49, 31) Source(43, 28) + SourceIndex(0) name (Greeter) +1->Emitted(49, 9) Source(43, 6) + SourceIndex(0) +2 >Emitted(49, 27) Source(43, 24) + SourceIndex(0) +3 >Emitted(49, 28) Source(43, 25) + SourceIndex(0) +4 >Emitted(49, 30) Source(43, 27) + SourceIndex(0) +5 >Emitted(49, 31) Source(43, 28) + SourceIndex(0) --- >>> __param(0, ParameterDecorator1), -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^-> +1->^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^-> 1-> > get greetings() { > return this.greeting; > } > > set greetings( - > -2 > @ -3 > ParameterDecorator1 -4 > -1->Emitted(50, 9) Source(49, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(50, 20) Source(49, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(50, 39) Source(49, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(50, 40) Source(49, 27) + SourceIndex(0) name (Greeter) + > @ +2 > ParameterDecorator1 +1->Emitted(50, 20) Source(49, 8) + SourceIndex(0) +2 >Emitted(50, 39) Source(49, 27) + SourceIndex(0) --- >>> __param(0, ParameterDecorator2(90)) -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^ -7 > ^ -8 > ^^^-> +1->^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^-> 1-> - > -2 > @ -3 > ParameterDecorator2 -4 > ( -5 > 90 -6 > ) -7 > -1->Emitted(51, 9) Source(50, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(51, 20) Source(50, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(51, 39) Source(50, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(51, 40) Source(50, 28) + SourceIndex(0) name (Greeter) -5 >Emitted(51, 42) Source(50, 30) + SourceIndex(0) name (Greeter) -6 >Emitted(51, 43) Source(50, 31) + SourceIndex(0) name (Greeter) -7 >Emitted(51, 44) Source(50, 31) + SourceIndex(0) name (Greeter) + > @ +2 > ParameterDecorator2 +3 > ( +4 > 90 +5 > ) +1->Emitted(51, 20) Source(50, 8) + SourceIndex(0) +2 >Emitted(51, 39) Source(50, 27) + SourceIndex(0) +3 >Emitted(51, 40) Source(50, 28) + SourceIndex(0) +4 >Emitted(51, 42) Source(50, 30) + SourceIndex(0) +5 >Emitted(51, 43) Source(50, 31) + SourceIndex(0) --- >>> ], Greeter.prototype, "greetings", null); -1->^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^ +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -2 > greetings -3 > () { - > return this.greeting; - > } -1->Emitted(52, 8) Source(44, 9) + SourceIndex(0) name (Greeter) -2 >Emitted(52, 38) Source(44, 18) + SourceIndex(0) name (Greeter) -3 >Emitted(52, 46) Source(46, 6) + SourceIndex(0) name (Greeter) +1->Emitted(52, 45) Source(43, 28) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(53, 5) Source(31, 5) + SourceIndex(0) name (Greeter) +1 >Emitted(53, 5) Source(31, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -660,8 +596,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^-> 1->@ 2 > PropertyDecorator1 -1->Emitted(54, 9) Source(31, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(54, 27) Source(31, 24) + SourceIndex(0) name (Greeter) +1->Emitted(54, 9) Source(31, 6) + SourceIndex(0) +2 >Emitted(54, 27) Source(31, 24) + SourceIndex(0) --- >>> PropertyDecorator2(60) 1->^^^^^^^^ @@ -676,29 +612,22 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 60 5 > ) -1->Emitted(55, 9) Source(32, 6) + SourceIndex(0) name (Greeter) -2 >Emitted(55, 27) Source(32, 24) + SourceIndex(0) name (Greeter) -3 >Emitted(55, 28) Source(32, 25) + SourceIndex(0) name (Greeter) -4 >Emitted(55, 30) Source(32, 27) + SourceIndex(0) name (Greeter) -5 >Emitted(55, 31) Source(32, 28) + SourceIndex(0) name (Greeter) +1->Emitted(55, 9) Source(32, 6) + SourceIndex(0) +2 >Emitted(55, 27) Source(32, 24) + SourceIndex(0) +3 >Emitted(55, 28) Source(32, 25) + SourceIndex(0) +4 >Emitted(55, 30) Source(32, 27) + SourceIndex(0) +5 >Emitted(55, 31) Source(32, 28) + SourceIndex(0) --- >>> ], Greeter, "x1", void 0); -1->^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^^^^^ -1-> - > private static -2 > x1 -3 > : number = 10; -1->Emitted(56, 8) Source(33, 20) + SourceIndex(0) name (Greeter) -2 >Emitted(56, 21) Source(33, 22) + SourceIndex(0) name (Greeter) -3 >Emitted(56, 31) Source(33, 36) + SourceIndex(0) name (Greeter) +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +1->Emitted(56, 30) Source(32, 28) + SourceIndex(0) --- >>> Greeter = __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(57, 5) Source(8, 1) + SourceIndex(0) name (Greeter) +1 >Emitted(57, 5) Source(8, 1) + SourceIndex(0) --- >>> ClassDecorator1, 1->^^^^^^^^ @@ -706,8 +635,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^^-> 1->@ 2 > ClassDecorator1 -1->Emitted(58, 9) Source(8, 2) + SourceIndex(0) name (Greeter) -2 >Emitted(58, 24) Source(8, 17) + SourceIndex(0) name (Greeter) +1->Emitted(58, 9) Source(8, 2) + SourceIndex(0) +2 >Emitted(58, 24) Source(8, 17) + SourceIndex(0) --- >>> ClassDecorator2(10), 1->^^^^^^^^ @@ -722,100 +651,90 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 10 5 > ) -1->Emitted(59, 9) Source(9, 2) + SourceIndex(0) name (Greeter) -2 >Emitted(59, 24) Source(9, 17) + SourceIndex(0) name (Greeter) -3 >Emitted(59, 25) Source(9, 18) + SourceIndex(0) name (Greeter) -4 >Emitted(59, 27) Source(9, 20) + SourceIndex(0) name (Greeter) -5 >Emitted(59, 28) Source(9, 21) + SourceIndex(0) name (Greeter) +1->Emitted(59, 9) Source(9, 2) + SourceIndex(0) +2 >Emitted(59, 24) Source(9, 17) + SourceIndex(0) +3 >Emitted(59, 25) Source(9, 18) + SourceIndex(0) +4 >Emitted(59, 27) Source(9, 20) + SourceIndex(0) +5 >Emitted(59, 28) Source(9, 21) + SourceIndex(0) --- >>> __param(0, ParameterDecorator1), -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^-> +1->^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^-> 1-> >class Greeter { > constructor( - > -2 > @ -3 > ParameterDecorator1 -4 > -1->Emitted(60, 9) Source(12, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(60, 20) Source(12, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(60, 39) Source(12, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(60, 40) Source(12, 27) + SourceIndex(0) name (Greeter) + > @ +2 > ParameterDecorator1 +1->Emitted(60, 20) Source(12, 8) + SourceIndex(0) +2 >Emitted(60, 39) Source(12, 27) + SourceIndex(0) --- >>> __param(0, ParameterDecorator2(20)), -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^ -7 > ^ +1->^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ 1-> - > -2 > @ -3 > ParameterDecorator2 -4 > ( -5 > 20 -6 > ) -7 > -1->Emitted(61, 9) Source(13, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(61, 20) Source(13, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(61, 39) Source(13, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(61, 40) Source(13, 28) + SourceIndex(0) name (Greeter) -5 >Emitted(61, 42) Source(13, 30) + SourceIndex(0) name (Greeter) -6 >Emitted(61, 43) Source(13, 31) + SourceIndex(0) name (Greeter) -7 >Emitted(61, 44) Source(13, 31) + SourceIndex(0) name (Greeter) + > @ +2 > ParameterDecorator2 +3 > ( +4 > 20 +5 > ) +1->Emitted(61, 20) Source(13, 8) + SourceIndex(0) +2 >Emitted(61, 39) Source(13, 27) + SourceIndex(0) +3 >Emitted(61, 40) Source(13, 28) + SourceIndex(0) +4 >Emitted(61, 42) Source(13, 30) + SourceIndex(0) +5 >Emitted(61, 43) Source(13, 31) + SourceIndex(0) --- >>> __param(1, ParameterDecorator1), -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^-> +1 >^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^-> 1 > > public greeting: string, > - > -2 > @ -3 > ParameterDecorator1 -4 > -1 >Emitted(62, 9) Source(16, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(62, 20) Source(16, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(62, 39) Source(16, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(62, 40) Source(16, 27) + SourceIndex(0) name (Greeter) + > @ +2 > ParameterDecorator1 +1 >Emitted(62, 20) Source(16, 8) + SourceIndex(0) +2 >Emitted(62, 39) Source(16, 27) + SourceIndex(0) --- >>> __param(1, ParameterDecorator2(30)) -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^ -7 > ^ +1->^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ 1-> - > -2 > @ -3 > ParameterDecorator2 -4 > ( -5 > 30 -6 > ) -7 > -1->Emitted(63, 9) Source(17, 7) + SourceIndex(0) name (Greeter) -2 >Emitted(63, 20) Source(17, 8) + SourceIndex(0) name (Greeter) -3 >Emitted(63, 39) Source(17, 27) + SourceIndex(0) name (Greeter) -4 >Emitted(63, 40) Source(17, 28) + SourceIndex(0) name (Greeter) -5 >Emitted(63, 42) Source(17, 30) + SourceIndex(0) name (Greeter) -6 >Emitted(63, 43) Source(17, 31) + SourceIndex(0) name (Greeter) -7 >Emitted(63, 44) Source(17, 31) + SourceIndex(0) name (Greeter) + > @ +2 > ParameterDecorator2 +3 > ( +4 > 30 +5 > ) +1->Emitted(63, 20) Source(17, 8) + SourceIndex(0) +2 >Emitted(63, 39) Source(17, 27) + SourceIndex(0) +3 >Emitted(63, 40) Source(17, 28) + SourceIndex(0) +4 >Emitted(63, 42) Source(17, 30) + SourceIndex(0) +5 >Emitted(63, 43) Source(17, 31) + SourceIndex(0) --- >>> ], Greeter); -1 >^^^^^^^^^^^^^^^^ -2 > ^^^^-> -1 > +1 >^^^^^^^^^^^^^^^ +2 > ^^^^^-> +1 > +1 >Emitted(64, 16) Source(9, 21) + SourceIndex(0) +--- +>>> return Greeter; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + >class Greeter { + > constructor( + > @ParameterDecorator1 + > @ParameterDecorator2(20) + > public greeting: string, + > + > @ParameterDecorator1 + > @ParameterDecorator2(30) > ...b: string[]) { > } > @@ -852,18 +771,12 @@ sourceFile:sourceMapValidationDecorators.ts > greetings: string) { > this.greeting = greetings; > } - >} -1 >Emitted(64, 17) Source(54, 2) + SourceIndex(0) name (Greeter) ---- ->>> return Greeter; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> + > 2 > } -1->Emitted(65, 5) Source(54, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(65, 19) Source(54, 2) + SourceIndex(0) name (Greeter) +1->Emitted(65, 5) Source(54, 1) + SourceIndex(0) +2 >Emitted(65, 19) Source(54, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -872,9 +785,7 @@ sourceFile:sourceMapValidationDecorators.ts 1 > 2 >} 3 > -4 > @ClassDecorator1 - > @ClassDecorator2(10) - > class Greeter { +4 > class Greeter { > constructor( > @ParameterDecorator1 > @ParameterDecorator2(20) @@ -919,9 +830,9 @@ sourceFile:sourceMapValidationDecorators.ts > this.greeting = greetings; > } > } -1 >Emitted(66, 1) Source(54, 1) + SourceIndex(0) name (Greeter) -2 >Emitted(66, 2) Source(54, 2) + SourceIndex(0) name (Greeter) -3 >Emitted(66, 2) Source(8, 1) + SourceIndex(0) +1 >Emitted(66, 1) Source(54, 1) + SourceIndex(0) +2 >Emitted(66, 2) Source(54, 2) + SourceIndex(0) +3 >Emitted(66, 2) Source(10, 1) + SourceIndex(0) 4 >Emitted(66, 6) Source(54, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationEnums.js.map b/tests/baselines/reference/sourceMapValidationEnums.js.map index 4729c3749b3..9b1ad5bf157 100644 --- a/tests/baselines/reference/sourceMapValidationEnums.js.map +++ b/tests/baselines/reference/sourceMapValidationEnums.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationEnums.js.map] -{"version":3,"file":"sourceMapValidationEnums.js","sourceRoot":"","sources":["sourceMapValidationEnums.ts"],"names":["e","e2","e3"],"mappings":"AAAA,IAAK,CAIJ;AAJD,WAAK,CAAC;IACFA,mBAACA,CAAAA;IACDA,mBAACA,CAAAA;IACDA,mBAACA,CAAAA;AACLA,CAACA,EAJI,CAAC,KAAD,CAAC,QAIL;AACD,IAAK,EAKJ;AALD,WAAK,EAAE;IACHC,sBAAMA,CAAAA;IACNA,sBAAMA,CAAAA;IACNA,sBAACA,CAAAA;IACDA,wBAAEA,CAAAA;AACNA,CAACA,EALI,EAAE,KAAF,EAAE,QAKN;AACD,IAAK,EACJ;AADD,WAAK,EAAE;AACPC,CAACA,EADI,EAAE,KAAF,EAAE,QACN"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationEnums.js","sourceRoot":"","sources":["sourceMapValidationEnums.ts"],"names":[],"mappings":"AAAA,IAAK,CAIJ;AAJD,WAAK,CAAC;IACF,mBAAC,CAAA;IACD,mBAAC,CAAA;IACD,mBAAC,CAAA;AACL,CAAC,EAJI,CAAC,KAAD,CAAC,QAIL;AACD,IAAK,EAKJ;AALD,WAAK,EAAE;IACH,sBAAM,CAAA;IACN,sBAAM,CAAA;IACN,sBAAC,CAAA;IACD,wBAAE,CAAA;AACN,CAAC,EALI,EAAE,KAAF,EAAE,QAKN;AACD,IAAK,EACJ;AADD,WAAK,EAAE;AACP,CAAC,EADI,EAAE,KAAF,EAAE,QACN"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationEnums.sourcemap.txt b/tests/baselines/reference/sourceMapValidationEnums.sourcemap.txt index 9d8b36ca5ed..4fb65155276 100644 --- a/tests/baselines/reference/sourceMapValidationEnums.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationEnums.sourcemap.txt @@ -45,9 +45,9 @@ sourceFile:sourceMapValidationEnums.ts > 2 > x 3 > -1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) name (e) -2 >Emitted(3, 24) Source(2, 6) + SourceIndex(0) name (e) -3 >Emitted(3, 25) Source(2, 6) + SourceIndex(0) name (e) +1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 24) Source(2, 6) + SourceIndex(0) +3 >Emitted(3, 25) Source(2, 6) + SourceIndex(0) --- >>> e[e["y"] = 1] = "y"; 1->^^^^ @@ -58,9 +58,9 @@ sourceFile:sourceMapValidationEnums.ts > 2 > y 3 > -1->Emitted(4, 5) Source(3, 5) + SourceIndex(0) name (e) -2 >Emitted(4, 24) Source(3, 6) + SourceIndex(0) name (e) -3 >Emitted(4, 25) Source(3, 6) + SourceIndex(0) name (e) +1->Emitted(4, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(4, 24) Source(3, 6) + SourceIndex(0) +3 >Emitted(4, 25) Source(3, 6) + SourceIndex(0) --- >>> e[e["x"] = 2] = "x"; 1->^^^^ @@ -70,9 +70,9 @@ sourceFile:sourceMapValidationEnums.ts > 2 > x 3 > -1->Emitted(5, 5) Source(4, 5) + SourceIndex(0) name (e) -2 >Emitted(5, 24) Source(4, 6) + SourceIndex(0) name (e) -3 >Emitted(5, 25) Source(4, 6) + SourceIndex(0) name (e) +1->Emitted(5, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(5, 24) Source(4, 6) + SourceIndex(0) +3 >Emitted(5, 25) Source(4, 6) + SourceIndex(0) --- >>>})(e || (e = {})); 1 > @@ -94,8 +94,8 @@ sourceFile:sourceMapValidationEnums.ts > y, > x > } -1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) name (e) -2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) name (e) +1 >Emitted(6, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(6, 4) Source(1, 6) + SourceIndex(0) 4 >Emitted(6, 5) Source(1, 7) + SourceIndex(0) 5 >Emitted(6, 10) Source(1, 6) + SourceIndex(0) @@ -141,9 +141,9 @@ sourceFile:sourceMapValidationEnums.ts > 2 > x = 10 3 > -1->Emitted(9, 5) Source(7, 5) + SourceIndex(0) name (e2) -2 >Emitted(9, 27) Source(7, 11) + SourceIndex(0) name (e2) -3 >Emitted(9, 28) Source(7, 11) + SourceIndex(0) name (e2) +1->Emitted(9, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(9, 27) Source(7, 11) + SourceIndex(0) +3 >Emitted(9, 28) Source(7, 11) + SourceIndex(0) --- >>> e2[e2["y"] = 10] = "y"; 1->^^^^ @@ -154,9 +154,9 @@ sourceFile:sourceMapValidationEnums.ts > 2 > y = 10 3 > -1->Emitted(10, 5) Source(8, 5) + SourceIndex(0) name (e2) -2 >Emitted(10, 27) Source(8, 11) + SourceIndex(0) name (e2) -3 >Emitted(10, 28) Source(8, 11) + SourceIndex(0) name (e2) +1->Emitted(10, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(10, 27) Source(8, 11) + SourceIndex(0) +3 >Emitted(10, 28) Source(8, 11) + SourceIndex(0) --- >>> e2[e2["z"] = 11] = "z"; 1->^^^^ @@ -167,9 +167,9 @@ sourceFile:sourceMapValidationEnums.ts > 2 > z 3 > -1->Emitted(11, 5) Source(9, 5) + SourceIndex(0) name (e2) -2 >Emitted(11, 27) Source(9, 6) + SourceIndex(0) name (e2) -3 >Emitted(11, 28) Source(9, 6) + SourceIndex(0) name (e2) +1->Emitted(11, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(11, 27) Source(9, 6) + SourceIndex(0) +3 >Emitted(11, 28) Source(9, 6) + SourceIndex(0) --- >>> e2[e2["x2"] = 12] = "x2"; 1->^^^^ @@ -179,9 +179,9 @@ sourceFile:sourceMapValidationEnums.ts > 2 > x2 3 > -1->Emitted(12, 5) Source(10, 5) + SourceIndex(0) name (e2) -2 >Emitted(12, 29) Source(10, 7) + SourceIndex(0) name (e2) -3 >Emitted(12, 30) Source(10, 7) + SourceIndex(0) name (e2) +1->Emitted(12, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(12, 29) Source(10, 7) + SourceIndex(0) +3 >Emitted(12, 30) Source(10, 7) + SourceIndex(0) --- >>>})(e2 || (e2 = {})); 1 > @@ -204,8 +204,8 @@ sourceFile:sourceMapValidationEnums.ts > z, > x2 > } -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) name (e2) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(0) name (e2) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(0) 3 >Emitted(13, 4) Source(6, 6) + SourceIndex(0) 4 >Emitted(13, 6) Source(6, 8) + SourceIndex(0) 5 >Emitted(13, 11) Source(6, 6) + SourceIndex(0) @@ -256,8 +256,8 @@ sourceFile:sourceMapValidationEnums.ts 6 > e3 7 > { > } -1->Emitted(16, 1) Source(13, 1) + SourceIndex(0) name (e3) -2 >Emitted(16, 2) Source(13, 2) + SourceIndex(0) name (e3) +1->Emitted(16, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(13, 2) + SourceIndex(0) 3 >Emitted(16, 4) Source(12, 6) + SourceIndex(0) 4 >Emitted(16, 6) Source(12, 8) + SourceIndex(0) 5 >Emitted(16, 11) Source(12, 6) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMapValidationExportAssignment.js b/tests/baselines/reference/sourceMapValidationExportAssignment.js index 635692ef81a..f556ec0cb81 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignment.js +++ b/tests/baselines/reference/sourceMapValidationExportAssignment.js @@ -11,7 +11,7 @@ define(["require", "exports"], function (require, exports) { function a() { } return a; - })(); + }()); return a; }); //# sourceMappingURL=sourceMapValidationExportAssignment.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationExportAssignment.js.map b/tests/baselines/reference/sourceMapValidationExportAssignment.js.map index f70139c2d54..05406bba8dc 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignment.js.map +++ b/tests/baselines/reference/sourceMapValidationExportAssignment.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationExportAssignment.js.map] -{"version":3,"file":"sourceMapValidationExportAssignment.js","sourceRoot":"","sources":["sourceMapValidationExportAssignment.ts"],"names":["a","a.constructor"],"mappings":";;IAAA;QAAAA;QAEAC,CAACA;QAADD,QAACA;IAADA,CAACA,AAFD,IAEC;IACD,OAAS,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationExportAssignment.js","sourceRoot":"","sources":["sourceMapValidationExportAssignment.ts"],"names":[],"mappings":";;IAAA;QAAA;QAEA,CAAC;QAAD,QAAC;IAAD,CAAC,AAFD,IAEC;IACD,OAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationExportAssignment.sourcemap.txt b/tests/baselines/reference/sourceMapValidationExportAssignment.sourcemap.txt index 69fb22abf42..cdb318d1e15 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignment.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationExportAssignment.sourcemap.txt @@ -20,7 +20,7 @@ sourceFile:sourceMapValidationExportAssignment.ts 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(4, 9) Source(1, 1) + SourceIndex(0) name (a) +1->Emitted(4, 9) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -30,18 +30,18 @@ sourceFile:sourceMapValidationExportAssignment.ts > public c; > 2 > } -1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) name (a.constructor) -2 >Emitted(5, 10) Source(3, 2) + SourceIndex(0) name (a.constructor) +1->Emitted(5, 9) Source(3, 1) + SourceIndex(0) +2 >Emitted(5, 10) Source(3, 2) + SourceIndex(0) --- >>> return a; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(6, 9) Source(3, 1) + SourceIndex(0) name (a) -2 >Emitted(6, 17) Source(3, 2) + SourceIndex(0) name (a) +1->Emitted(6, 9) Source(3, 1) + SourceIndex(0) +2 >Emitted(6, 17) Source(3, 2) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -53,8 +53,8 @@ sourceFile:sourceMapValidationExportAssignment.ts 4 > class a { > public c; > } -1 >Emitted(7, 5) Source(3, 1) + SourceIndex(0) name (a) -2 >Emitted(7, 6) Source(3, 2) + SourceIndex(0) name (a) +1 >Emitted(7, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(7, 6) Source(3, 2) + SourceIndex(0) 3 >Emitted(7, 6) Source(1, 1) + SourceIndex(0) 4 >Emitted(7, 10) Source(3, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js index daa9391533f..b524a09107b 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js +++ b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js @@ -10,6 +10,6 @@ var a = (function () { function a() { } return a; -})(); +}()); module.exports = a; //# sourceMappingURL=sourceMapValidationExportAssignmentCommonjs.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js.map b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js.map index 30f8ce495df..73178e578fc 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js.map +++ b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationExportAssignmentCommonjs.js.map] -{"version":3,"file":"sourceMapValidationExportAssignmentCommonjs.js","sourceRoot":"","sources":["sourceMapValidationExportAssignmentCommonjs.ts"],"names":["a","a.constructor"],"mappings":";AAAA;IAAAA;IAEAC,CAACA;IAADD,QAACA;AAADA,CAACA,AAFD,IAEC;AACD,iBAAS,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationExportAssignmentCommonjs.js","sourceRoot":"","sources":["sourceMapValidationExportAssignmentCommonjs.ts"],"names":[],"mappings":";AAAA;IAAA;IAEA,CAAC;IAAD,QAAC;AAAD,CAAC,AAFD,IAEC;AACD,iBAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.sourcemap.txt b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.sourcemap.txt index 1e29378fe7c..ed6cf368d96 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.sourcemap.txt @@ -19,7 +19,7 @@ sourceFile:sourceMapValidationExportAssignmentCommonjs.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(3, 5) Source(1, 1) + SourceIndex(0) name (a) +1->Emitted(3, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -29,18 +29,18 @@ sourceFile:sourceMapValidationExportAssignmentCommonjs.ts > public c; > 2 > } -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (a.constructor) -2 >Emitted(4, 6) Source(3, 2) + SourceIndex(0) name (a.constructor) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 6) Source(3, 2) + SourceIndex(0) --- >>> return a; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) name (a) -2 >Emitted(5, 13) Source(3, 2) + SourceIndex(0) name (a) +1->Emitted(5, 5) Source(3, 1) + SourceIndex(0) +2 >Emitted(5, 13) Source(3, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -52,8 +52,8 @@ sourceFile:sourceMapValidationExportAssignmentCommonjs.ts 4 > class a { > public c; > } -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(0) name (a) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) name (a) +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) 3 >Emitted(6, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(6, 6) Source(3, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.js.map b/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.js.map index 81066a66bad..4f11f33d322 100644 --- a/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.js.map +++ b/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationFunctionPropertyAssignment.js.map] -{"version":3,"file":"sourceMapValidationFunctionPropertyAssignment.js","sourceRoot":"","sources":["sourceMapValidationFunctionPropertyAssignment.ts"],"names":["n"],"mappings":"AAAA,IAAI,CAAC,GAAG,EAAE,CAAC,gBAAKA,CAACA,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationFunctionPropertyAssignment.js","sourceRoot":"","sources":["sourceMapValidationFunctionPropertyAssignment.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,EAAE,CAAC,gBAAK,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.sourcemap.txt b/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.sourcemap.txt index 52a8bfe688c..a1a44c4ffb4 100644 --- a/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.sourcemap.txt @@ -36,8 +36,8 @@ sourceFile:sourceMapValidationFunctionPropertyAssignment.ts 4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) 5 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) 6 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) -7 >Emitted(1, 28) Source(1, 17) + SourceIndex(0) name (n) -8 >Emitted(1, 29) Source(1, 18) + SourceIndex(0) name (n) +7 >Emitted(1, 28) Source(1, 17) + SourceIndex(0) +8 >Emitted(1, 29) Source(1, 18) + SourceIndex(0) 9 >Emitted(1, 31) Source(1, 20) + SourceIndex(0) 10>Emitted(1, 32) Source(1, 21) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapValidationFunctions.js.map b/tests/baselines/reference/sourceMapValidationFunctions.js.map index bb98f5b19d2..7578efc11f8 100644 --- a/tests/baselines/reference/sourceMapValidationFunctions.js.map +++ b/tests/baselines/reference/sourceMapValidationFunctions.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationFunctions.js.map] -{"version":3,"file":"sourceMapValidationFunctions.js","sourceRoot":"","sources":["sourceMapValidationFunctions.ts"],"names":["greet","greet2","foo"],"mappings":"AAAA,IAAI,SAAS,GAAG,CAAC,CAAC;AAClB,eAAe,QAAgB;IAC3BA,SAASA,EAAEA,CAACA;IACZA,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA;AACD,gBAAgB,QAAgB,EAAE,CAAM,EAAE,CAAU;IAAlBC,iBAAMA,GAANA,MAAMA;IAAcA,oBAAuBA;SAAvBA,WAAuBA,CAAvBA,sBAAuBA,CAAvBA,IAAuBA;QAAvBA,mCAAuBA;;IACzEA,SAASA,EAAEA,CAACA;IACZA,MAAMA,CAACA,SAASA,CAACA;AACrBA,CAACA;AACD,aAAa,QAAgB,EAAE,CAAM,EAAE,CAAU;IAAlBC,iBAAMA,GAANA,MAAMA;IAAcA,oBAAuBA;SAAvBA,WAAuBA,CAAvBA,sBAAuBA,CAAvBA,IAAuBA;QAAvBA,mCAAuBA;;IAEtEA,MAAMA,CAACA;AACXA,CAACA"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationFunctions.js","sourceRoot":"","sources":["sourceMapValidationFunctions.ts"],"names":[],"mappings":"AAAA,IAAI,SAAS,GAAG,CAAC,CAAC;AAClB,eAAe,QAAgB;IAC3B,SAAS,EAAE,CAAC;IACZ,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC;AACD,gBAAgB,QAAgB,EAAE,CAAM,EAAE,CAAU;IAAlB,iBAAM,GAAN,MAAM;IAAc,oBAAuB;SAAvB,WAAuB,CAAvB,sBAAuB,CAAvB,IAAuB;QAAvB,mCAAuB;;IACzE,SAAS,EAAE,CAAC;IACZ,MAAM,CAAC,SAAS,CAAC;AACrB,CAAC;AACD,aAAa,QAAgB,EAAE,CAAM,EAAE,CAAU;IAAlB,iBAAM,GAAN,MAAM;IAAc,oBAAuB;SAAvB,WAAuB,CAAvB,sBAAuB,CAAvB,IAAuB;QAAvB,mCAAuB;;IAEtE,MAAM,CAAC;AACX,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationFunctions.sourcemap.txt b/tests/baselines/reference/sourceMapValidationFunctions.sourcemap.txt index 830e9c459d7..95759f76f16 100644 --- a/tests/baselines/reference/sourceMapValidationFunctions.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationFunctions.sourcemap.txt @@ -52,10 +52,10 @@ sourceFile:sourceMapValidationFunctions.ts 2 > greetings 3 > ++ 4 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) name (greet) -2 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) name (greet) -3 >Emitted(3, 16) Source(3, 16) + SourceIndex(0) name (greet) -4 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) name (greet) +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +3 >Emitted(3, 16) Source(3, 16) + SourceIndex(0) +4 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) --- >>> return greetings; 1->^^^^ @@ -69,11 +69,11 @@ sourceFile:sourceMapValidationFunctions.ts 3 > 4 > greetings 5 > ; -1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (greet) -2 >Emitted(4, 11) Source(4, 11) + SourceIndex(0) name (greet) -3 >Emitted(4, 12) Source(4, 12) + SourceIndex(0) name (greet) -4 >Emitted(4, 21) Source(4, 21) + SourceIndex(0) name (greet) -5 >Emitted(4, 22) Source(4, 22) + SourceIndex(0) name (greet) +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 11) Source(4, 11) + SourceIndex(0) +3 >Emitted(4, 12) Source(4, 12) + SourceIndex(0) +4 >Emitted(4, 21) Source(4, 21) + SourceIndex(0) +5 >Emitted(4, 22) Source(4, 22) + SourceIndex(0) --- >>>} 1 > @@ -82,8 +82,8 @@ sourceFile:sourceMapValidationFunctions.ts 1 > > 2 >} -1 >Emitted(5, 1) Source(5, 1) + SourceIndex(0) name (greet) -2 >Emitted(5, 2) Source(5, 2) + SourceIndex(0) name (greet) +1 >Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(5, 2) + SourceIndex(0) --- >>>function greet2(greeting, n, x) { 1-> @@ -119,10 +119,10 @@ sourceFile:sourceMapValidationFunctions.ts 2 > n = 10 3 > 4 > n = 10 -1->Emitted(7, 5) Source(6, 35) + SourceIndex(0) name (greet2) -2 >Emitted(7, 22) Source(6, 41) + SourceIndex(0) name (greet2) -3 >Emitted(7, 25) Source(6, 35) + SourceIndex(0) name (greet2) -4 >Emitted(7, 31) Source(6, 41) + SourceIndex(0) name (greet2) +1->Emitted(7, 5) Source(6, 35) + SourceIndex(0) +2 >Emitted(7, 22) Source(6, 41) + SourceIndex(0) +3 >Emitted(7, 25) Source(6, 35) + SourceIndex(0) +4 >Emitted(7, 31) Source(6, 41) + SourceIndex(0) --- >>> var restParams = []; 1 >^^^^ @@ -130,8 +130,8 @@ sourceFile:sourceMapValidationFunctions.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >, x?: string, 2 > ...restParams: string[] -1 >Emitted(8, 5) Source(6, 55) + SourceIndex(0) name (greet2) -2 >Emitted(8, 25) Source(6, 78) + SourceIndex(0) name (greet2) +1 >Emitted(8, 5) Source(6, 55) + SourceIndex(0) +2 >Emitted(8, 25) Source(6, 78) + SourceIndex(0) --- >>> for (var _i = 3; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -146,20 +146,20 @@ sourceFile:sourceMapValidationFunctions.ts 4 > ...restParams: string[] 5 > 6 > ...restParams: string[] -1->Emitted(9, 10) Source(6, 55) + SourceIndex(0) name (greet2) -2 >Emitted(9, 21) Source(6, 78) + SourceIndex(0) name (greet2) -3 >Emitted(9, 22) Source(6, 55) + SourceIndex(0) name (greet2) -4 >Emitted(9, 44) Source(6, 78) + SourceIndex(0) name (greet2) -5 >Emitted(9, 45) Source(6, 55) + SourceIndex(0) name (greet2) -6 >Emitted(9, 49) Source(6, 78) + SourceIndex(0) name (greet2) +1->Emitted(9, 10) Source(6, 55) + SourceIndex(0) +2 >Emitted(9, 21) Source(6, 78) + SourceIndex(0) +3 >Emitted(9, 22) Source(6, 55) + SourceIndex(0) +4 >Emitted(9, 44) Source(6, 78) + SourceIndex(0) +5 >Emitted(9, 45) Source(6, 55) + SourceIndex(0) +6 >Emitted(9, 49) Source(6, 78) + SourceIndex(0) --- >>> restParams[_i - 3] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...restParams: string[] -1 >Emitted(10, 9) Source(6, 55) + SourceIndex(0) name (greet2) -2 >Emitted(10, 44) Source(6, 78) + SourceIndex(0) name (greet2) +1 >Emitted(10, 9) Source(6, 55) + SourceIndex(0) +2 >Emitted(10, 44) Source(6, 78) + SourceIndex(0) --- >>> } >>> greetings++; @@ -173,10 +173,10 @@ sourceFile:sourceMapValidationFunctions.ts 2 > greetings 3 > ++ 4 > ; -1 >Emitted(12, 5) Source(7, 5) + SourceIndex(0) name (greet2) -2 >Emitted(12, 14) Source(7, 14) + SourceIndex(0) name (greet2) -3 >Emitted(12, 16) Source(7, 16) + SourceIndex(0) name (greet2) -4 >Emitted(12, 17) Source(7, 17) + SourceIndex(0) name (greet2) +1 >Emitted(12, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(12, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(12, 16) Source(7, 16) + SourceIndex(0) +4 >Emitted(12, 17) Source(7, 17) + SourceIndex(0) --- >>> return greetings; 1->^^^^ @@ -190,11 +190,11 @@ sourceFile:sourceMapValidationFunctions.ts 3 > 4 > greetings 5 > ; -1->Emitted(13, 5) Source(8, 5) + SourceIndex(0) name (greet2) -2 >Emitted(13, 11) Source(8, 11) + SourceIndex(0) name (greet2) -3 >Emitted(13, 12) Source(8, 12) + SourceIndex(0) name (greet2) -4 >Emitted(13, 21) Source(8, 21) + SourceIndex(0) name (greet2) -5 >Emitted(13, 22) Source(8, 22) + SourceIndex(0) name (greet2) +1->Emitted(13, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(13, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(13, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(13, 21) Source(8, 21) + SourceIndex(0) +5 >Emitted(13, 22) Source(8, 22) + SourceIndex(0) --- >>>} 1 > @@ -203,8 +203,8 @@ sourceFile:sourceMapValidationFunctions.ts 1 > > 2 >} -1 >Emitted(14, 1) Source(9, 1) + SourceIndex(0) name (greet2) -2 >Emitted(14, 2) Source(9, 2) + SourceIndex(0) name (greet2) +1 >Emitted(14, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(9, 2) + SourceIndex(0) --- >>>function foo(greeting, n, x) { 1-> @@ -240,10 +240,10 @@ sourceFile:sourceMapValidationFunctions.ts 2 > n = 10 3 > 4 > n = 10 -1->Emitted(16, 5) Source(10, 32) + SourceIndex(0) name (foo) -2 >Emitted(16, 22) Source(10, 38) + SourceIndex(0) name (foo) -3 >Emitted(16, 25) Source(10, 32) + SourceIndex(0) name (foo) -4 >Emitted(16, 31) Source(10, 38) + SourceIndex(0) name (foo) +1->Emitted(16, 5) Source(10, 32) + SourceIndex(0) +2 >Emitted(16, 22) Source(10, 38) + SourceIndex(0) +3 >Emitted(16, 25) Source(10, 32) + SourceIndex(0) +4 >Emitted(16, 31) Source(10, 38) + SourceIndex(0) --- >>> var restParams = []; 1 >^^^^ @@ -251,8 +251,8 @@ sourceFile:sourceMapValidationFunctions.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >, x?: string, 2 > ...restParams: string[] -1 >Emitted(17, 5) Source(10, 52) + SourceIndex(0) name (foo) -2 >Emitted(17, 25) Source(10, 75) + SourceIndex(0) name (foo) +1 >Emitted(17, 5) Source(10, 52) + SourceIndex(0) +2 >Emitted(17, 25) Source(10, 75) + SourceIndex(0) --- >>> for (var _i = 3; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -267,20 +267,20 @@ sourceFile:sourceMapValidationFunctions.ts 4 > ...restParams: string[] 5 > 6 > ...restParams: string[] -1->Emitted(18, 10) Source(10, 52) + SourceIndex(0) name (foo) -2 >Emitted(18, 21) Source(10, 75) + SourceIndex(0) name (foo) -3 >Emitted(18, 22) Source(10, 52) + SourceIndex(0) name (foo) -4 >Emitted(18, 44) Source(10, 75) + SourceIndex(0) name (foo) -5 >Emitted(18, 45) Source(10, 52) + SourceIndex(0) name (foo) -6 >Emitted(18, 49) Source(10, 75) + SourceIndex(0) name (foo) +1->Emitted(18, 10) Source(10, 52) + SourceIndex(0) +2 >Emitted(18, 21) Source(10, 75) + SourceIndex(0) +3 >Emitted(18, 22) Source(10, 52) + SourceIndex(0) +4 >Emitted(18, 44) Source(10, 75) + SourceIndex(0) +5 >Emitted(18, 45) Source(10, 52) + SourceIndex(0) +6 >Emitted(18, 49) Source(10, 75) + SourceIndex(0) --- >>> restParams[_i - 3] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...restParams: string[] -1 >Emitted(19, 9) Source(10, 52) + SourceIndex(0) name (foo) -2 >Emitted(19, 44) Source(10, 75) + SourceIndex(0) name (foo) +1 >Emitted(19, 9) Source(10, 52) + SourceIndex(0) +2 >Emitted(19, 44) Source(10, 75) + SourceIndex(0) --- >>> } >>> return; @@ -292,9 +292,9 @@ sourceFile:sourceMapValidationFunctions.ts > 2 > return 3 > ; -1 >Emitted(21, 5) Source(12, 5) + SourceIndex(0) name (foo) -2 >Emitted(21, 11) Source(12, 11) + SourceIndex(0) name (foo) -3 >Emitted(21, 12) Source(12, 12) + SourceIndex(0) name (foo) +1 >Emitted(21, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(21, 11) Source(12, 11) + SourceIndex(0) +3 >Emitted(21, 12) Source(12, 12) + SourceIndex(0) --- >>>} 1 > @@ -303,7 +303,7 @@ sourceFile:sourceMapValidationFunctions.ts 1 > > 2 >} -1 >Emitted(22, 1) Source(13, 1) + SourceIndex(0) name (foo) -2 >Emitted(22, 2) Source(13, 2) + SourceIndex(0) name (foo) +1 >Emitted(22, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(22, 2) Source(13, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationFunctions.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationImport.js b/tests/baselines/reference/sourceMapValidationImport.js index 5f829c4ba13..d9a75d96848 100644 --- a/tests/baselines/reference/sourceMapValidationImport.js +++ b/tests/baselines/reference/sourceMapValidationImport.js @@ -16,7 +16,7 @@ var m; function c() { } return c; - })(); + }()); m.c = c; })(m = exports.m || (exports.m = {})); var a = m.c; diff --git a/tests/baselines/reference/sourceMapValidationImport.js.map b/tests/baselines/reference/sourceMapValidationImport.js.map index ccf30382f3b..2a1a549beff 100644 --- a/tests/baselines/reference/sourceMapValidationImport.js.map +++ b/tests/baselines/reference/sourceMapValidationImport.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationImport.js.map] -{"version":3,"file":"sourceMapValidationImport.js","sourceRoot":"","sources":["sourceMapValidationImport.ts"],"names":["m","m.c","m.c.constructor"],"mappings":";AAAA,IAAc,CAAC,CAGd;AAHD,WAAc,CAAC,EAAC,CAAC;IACbA;QAAAC;QACAC,CAACA;QAADD,QAACA;IAADA,CAACA,AADDD,IACCA;IADYA,GAACA,IACbA,CAAAA;AACLA,CAACA,EAHa,CAAC,GAAD,SAAC,KAAD,SAAC,QAGd;AACD,IAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACD,SAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACtB,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,IAAI,CAAC,GAAG,IAAI,SAAC,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationImport.js","sourceRoot":"","sources":["sourceMapValidationImport.ts"],"names":[],"mappings":";AAAA,IAAc,CAAC,CAGd;AAHD,WAAc,CAAC,EAAC,CAAC;IACb;QAAA;QACA,CAAC;QAAD,QAAC;IAAD,CAAC,AADD,IACC;IADY,GAAC,IACb,CAAA;AACL,CAAC,EAHa,CAAC,GAAD,SAAC,KAAD,SAAC,QAGd;AACD,IAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACD,SAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACtB,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,IAAI,CAAC,GAAG,IAAI,SAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationImport.sourcemap.txt b/tests/baselines/reference/sourceMapValidationImport.sourcemap.txt index 84ccc68a113..ca0ae80c5fc 100644 --- a/tests/baselines/reference/sourceMapValidationImport.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationImport.sourcemap.txt @@ -50,13 +50,13 @@ sourceFile:sourceMapValidationImport.ts 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(4, 5) Source(2, 5) + SourceIndex(0) name (m) +1->Emitted(4, 5) Source(2, 5) + SourceIndex(0) --- >>> function c() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) name (m.c) +1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -65,18 +65,18 @@ sourceFile:sourceMapValidationImport.ts 1->export class c { > 2 > } -1->Emitted(6, 9) Source(3, 5) + SourceIndex(0) name (m.c.constructor) -2 >Emitted(6, 10) Source(3, 6) + SourceIndex(0) name (m.c.constructor) +1->Emitted(6, 9) Source(3, 5) + SourceIndex(0) +2 >Emitted(6, 10) Source(3, 6) + SourceIndex(0) --- >>> return c; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(3, 5) + SourceIndex(0) name (m.c) -2 >Emitted(7, 17) Source(3, 6) + SourceIndex(0) name (m.c) +1->Emitted(7, 9) Source(3, 5) + SourceIndex(0) +2 >Emitted(7, 17) Source(3, 6) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -87,10 +87,10 @@ sourceFile:sourceMapValidationImport.ts 3 > 4 > export class c { > } -1 >Emitted(8, 5) Source(3, 5) + SourceIndex(0) name (m.c) -2 >Emitted(8, 6) Source(3, 6) + SourceIndex(0) name (m.c) -3 >Emitted(8, 6) Source(2, 5) + SourceIndex(0) name (m) -4 >Emitted(8, 10) Source(3, 6) + SourceIndex(0) name (m) +1 >Emitted(8, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(8, 6) Source(2, 5) + SourceIndex(0) +4 >Emitted(8, 10) Source(3, 6) + SourceIndex(0) --- >>> m.c = c; 1->^^^^ @@ -103,10 +103,10 @@ sourceFile:sourceMapValidationImport.ts 3 > { > } 4 > -1->Emitted(9, 5) Source(2, 18) + SourceIndex(0) name (m) -2 >Emitted(9, 8) Source(2, 19) + SourceIndex(0) name (m) -3 >Emitted(9, 12) Source(3, 6) + SourceIndex(0) name (m) -4 >Emitted(9, 13) Source(3, 6) + SourceIndex(0) name (m) +1->Emitted(9, 5) Source(2, 18) + SourceIndex(0) +2 >Emitted(9, 8) Source(2, 19) + SourceIndex(0) +3 >Emitted(9, 12) Source(3, 6) + SourceIndex(0) +4 >Emitted(9, 13) Source(3, 6) + SourceIndex(0) --- >>>})(m = exports.m || (exports.m = {})); 1-> @@ -131,8 +131,8 @@ sourceFile:sourceMapValidationImport.ts > export class c { > } > } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(0) name (m) -2 >Emitted(10, 2) Source(4, 2) + SourceIndex(0) name (m) +1->Emitted(10, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(10, 4) Source(1, 15) + SourceIndex(0) 4 >Emitted(10, 5) Source(1, 16) + SourceIndex(0) 5 >Emitted(10, 8) Source(1, 15) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMapValidationModule.js.map b/tests/baselines/reference/sourceMapValidationModule.js.map index b56797bbf98..4cc15e902ed 100644 --- a/tests/baselines/reference/sourceMapValidationModule.js.map +++ b/tests/baselines/reference/sourceMapValidationModule.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationModule.js.map] -{"version":3,"file":"sourceMapValidationModule.js","sourceRoot":"","sources":["sourceMapValidationModule.ts"],"names":["m2","m3","m3.m4","m3.foo"],"mappings":"AAAA,IAAO,EAAE,CAGR;AAHD,WAAO,EAAE,EAAC,CAAC;IACPA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;IACXA,CAACA,EAAEA,CAACA;AACRA,CAACA,EAHM,EAAE,KAAF,EAAE,QAGR;AACD,IAAO,EAAE,CAQR;AARD,WAAO,EAAE,EAAC,CAAC;IACPC,IAAOA,EAAEA,CAERA;IAFDA,WAAOA,EAAEA,EAACA,CAACA;QACIC,IAACA,GAAGA,EAAEA,CAACA;IACtBA,CAACA,EAFMD,EAAEA,KAAFA,EAAEA,QAERA;IAEDA;QACIE,MAAMA,CAACA,EAAEA,CAACA,CAACA,CAACA;IAChBA,CAACA;IAFeF,MAAGA,MAElBA,CAAAA;AACLA,CAACA,EARM,EAAE,KAAF,EAAE,QAQR"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationModule.js","sourceRoot":"","sources":["sourceMapValidationModule.ts"],"names":[],"mappings":"AAAA,IAAO,EAAE,CAGR;AAHD,WAAO,EAAE,EAAC,CAAC;IACP,IAAI,CAAC,GAAG,EAAE,CAAC;IACX,CAAC,EAAE,CAAC;AACR,CAAC,EAHM,EAAE,KAAF,EAAE,QAGR;AACD,IAAO,EAAE,CAQR;AARD,WAAO,EAAE,EAAC,CAAC;IACP,IAAO,EAAE,CAER;IAFD,WAAO,EAAE,EAAC,CAAC;QACI,IAAC,GAAG,EAAE,CAAC;IACtB,CAAC,EAFM,EAAE,KAAF,EAAE,QAER;IAED;QACI,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IAChB,CAAC;IAFe,MAAG,MAElB,CAAA;AACL,CAAC,EARM,EAAE,KAAF,EAAE,QAQR"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationModule.sourcemap.txt b/tests/baselines/reference/sourceMapValidationModule.sourcemap.txt index 286fffb4469..a03e3567b8c 100644 --- a/tests/baselines/reference/sourceMapValidationModule.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationModule.sourcemap.txt @@ -57,12 +57,12 @@ sourceFile:sourceMapValidationModule.ts 4 > = 5 > 10 6 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) name (m2) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) name (m2) -3 >Emitted(3, 10) Source(2, 10) + SourceIndex(0) name (m2) -4 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) name (m2) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) name (m2) -6 >Emitted(3, 16) Source(2, 16) + SourceIndex(0) name (m2) +1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(3, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) +5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +6 >Emitted(3, 16) Source(2, 16) + SourceIndex(0) --- >>> a++; 1 >^^^^ @@ -75,10 +75,10 @@ sourceFile:sourceMapValidationModule.ts 2 > a 3 > ++ 4 > ; -1 >Emitted(4, 5) Source(3, 5) + SourceIndex(0) name (m2) -2 >Emitted(4, 6) Source(3, 6) + SourceIndex(0) name (m2) -3 >Emitted(4, 8) Source(3, 8) + SourceIndex(0) name (m2) -4 >Emitted(4, 9) Source(3, 9) + SourceIndex(0) name (m2) +1 >Emitted(4, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(3, 6) + SourceIndex(0) +3 >Emitted(4, 8) Source(3, 8) + SourceIndex(0) +4 >Emitted(4, 9) Source(3, 9) + SourceIndex(0) --- >>>})(m2 || (m2 = {})); 1-> @@ -99,8 +99,8 @@ sourceFile:sourceMapValidationModule.ts > var a = 10; > a++; > } -1->Emitted(5, 1) Source(4, 1) + SourceIndex(0) name (m2) -2 >Emitted(5, 2) Source(4, 2) + SourceIndex(0) name (m2) +1->Emitted(5, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(5, 4) Source(1, 8) + SourceIndex(0) 4 >Emitted(5, 6) Source(1, 10) + SourceIndex(0) 5 >Emitted(5, 11) Source(1, 8) + SourceIndex(0) @@ -161,10 +161,10 @@ sourceFile:sourceMapValidationModule.ts 4 > { > export var x = 30; > } -1 >Emitted(8, 5) Source(6, 5) + SourceIndex(0) name (m3) -2 >Emitted(8, 9) Source(6, 12) + SourceIndex(0) name (m3) -3 >Emitted(8, 11) Source(6, 14) + SourceIndex(0) name (m3) -4 >Emitted(8, 12) Source(8, 6) + SourceIndex(0) name (m3) +1 >Emitted(8, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(8, 9) Source(6, 12) + SourceIndex(0) +3 >Emitted(8, 11) Source(6, 14) + SourceIndex(0) +4 >Emitted(8, 12) Source(8, 6) + SourceIndex(0) --- >>> (function (m4) { 1->^^^^ @@ -177,11 +177,11 @@ sourceFile:sourceMapValidationModule.ts 3 > m4 4 > 5 > { -1->Emitted(9, 5) Source(6, 5) + SourceIndex(0) name (m3) -2 >Emitted(9, 16) Source(6, 12) + SourceIndex(0) name (m3) -3 >Emitted(9, 18) Source(6, 14) + SourceIndex(0) name (m3) -4 >Emitted(9, 20) Source(6, 15) + SourceIndex(0) name (m3) -5 >Emitted(9, 21) Source(6, 16) + SourceIndex(0) name (m3) +1->Emitted(9, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(9, 16) Source(6, 12) + SourceIndex(0) +3 >Emitted(9, 18) Source(6, 14) + SourceIndex(0) +4 >Emitted(9, 20) Source(6, 15) + SourceIndex(0) +5 >Emitted(9, 21) Source(6, 16) + SourceIndex(0) --- >>> m4.x = 30; 1 >^^^^^^^^ @@ -196,11 +196,11 @@ sourceFile:sourceMapValidationModule.ts 3 > = 4 > 30 5 > ; -1 >Emitted(10, 9) Source(7, 20) + SourceIndex(0) name (m3.m4) -2 >Emitted(10, 13) Source(7, 21) + SourceIndex(0) name (m3.m4) -3 >Emitted(10, 16) Source(7, 24) + SourceIndex(0) name (m3.m4) -4 >Emitted(10, 18) Source(7, 26) + SourceIndex(0) name (m3.m4) -5 >Emitted(10, 19) Source(7, 27) + SourceIndex(0) name (m3.m4) +1 >Emitted(10, 9) Source(7, 20) + SourceIndex(0) +2 >Emitted(10, 13) Source(7, 21) + SourceIndex(0) +3 >Emitted(10, 16) Source(7, 24) + SourceIndex(0) +4 >Emitted(10, 18) Source(7, 26) + SourceIndex(0) +5 >Emitted(10, 19) Source(7, 27) + SourceIndex(0) --- >>> })(m4 || (m4 = {})); 1->^^^^ @@ -220,13 +220,13 @@ sourceFile:sourceMapValidationModule.ts 7 > { > export var x = 30; > } -1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) name (m3.m4) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(0) name (m3.m4) -3 >Emitted(11, 8) Source(6, 12) + SourceIndex(0) name (m3) -4 >Emitted(11, 10) Source(6, 14) + SourceIndex(0) name (m3) -5 >Emitted(11, 15) Source(6, 12) + SourceIndex(0) name (m3) -6 >Emitted(11, 17) Source(6, 14) + SourceIndex(0) name (m3) -7 >Emitted(11, 25) Source(8, 6) + SourceIndex(0) name (m3) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(0) +3 >Emitted(11, 8) Source(6, 12) + SourceIndex(0) +4 >Emitted(11, 10) Source(6, 14) + SourceIndex(0) +5 >Emitted(11, 15) Source(6, 12) + SourceIndex(0) +6 >Emitted(11, 17) Source(6, 14) + SourceIndex(0) +7 >Emitted(11, 25) Source(8, 6) + SourceIndex(0) --- >>> function foo() { 1 >^^^^ @@ -234,7 +234,7 @@ sourceFile:sourceMapValidationModule.ts 1 > > > -1 >Emitted(12, 5) Source(10, 5) + SourceIndex(0) name (m3) +1 >Emitted(12, 5) Source(10, 5) + SourceIndex(0) --- >>> return m4.x; 1->^^^^^^^^ @@ -252,13 +252,13 @@ sourceFile:sourceMapValidationModule.ts 5 > . 6 > x 7 > ; -1->Emitted(13, 9) Source(11, 9) + SourceIndex(0) name (m3.foo) -2 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) name (m3.foo) -3 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) name (m3.foo) -4 >Emitted(13, 18) Source(11, 18) + SourceIndex(0) name (m3.foo) -5 >Emitted(13, 19) Source(11, 19) + SourceIndex(0) name (m3.foo) -6 >Emitted(13, 20) Source(11, 20) + SourceIndex(0) name (m3.foo) -7 >Emitted(13, 21) Source(11, 21) + SourceIndex(0) name (m3.foo) +1->Emitted(13, 9) Source(11, 9) + SourceIndex(0) +2 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +4 >Emitted(13, 18) Source(11, 18) + SourceIndex(0) +5 >Emitted(13, 19) Source(11, 19) + SourceIndex(0) +6 >Emitted(13, 20) Source(11, 20) + SourceIndex(0) +7 >Emitted(13, 21) Source(11, 21) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -267,8 +267,8 @@ sourceFile:sourceMapValidationModule.ts 1 > > 2 > } -1 >Emitted(14, 5) Source(12, 5) + SourceIndex(0) name (m3.foo) -2 >Emitted(14, 6) Source(12, 6) + SourceIndex(0) name (m3.foo) +1 >Emitted(14, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(14, 6) Source(12, 6) + SourceIndex(0) --- >>> m3.foo = foo; 1->^^^^ @@ -282,10 +282,10 @@ sourceFile:sourceMapValidationModule.ts > return m4.x; > } 4 > -1->Emitted(15, 5) Source(10, 21) + SourceIndex(0) name (m3) -2 >Emitted(15, 11) Source(10, 24) + SourceIndex(0) name (m3) -3 >Emitted(15, 17) Source(12, 6) + SourceIndex(0) name (m3) -4 >Emitted(15, 18) Source(12, 6) + SourceIndex(0) name (m3) +1->Emitted(15, 5) Source(10, 21) + SourceIndex(0) +2 >Emitted(15, 11) Source(10, 24) + SourceIndex(0) +3 >Emitted(15, 17) Source(12, 6) + SourceIndex(0) +4 >Emitted(15, 18) Source(12, 6) + SourceIndex(0) --- >>>})(m3 || (m3 = {})); 1-> @@ -312,8 +312,8 @@ sourceFile:sourceMapValidationModule.ts > return m4.x; > } > } -1->Emitted(16, 1) Source(13, 1) + SourceIndex(0) name (m3) -2 >Emitted(16, 2) Source(13, 2) + SourceIndex(0) name (m3) +1->Emitted(16, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(13, 2) + SourceIndex(0) 3 >Emitted(16, 4) Source(5, 8) + SourceIndex(0) 4 >Emitted(16, 6) Source(5, 10) + SourceIndex(0) 5 >Emitted(16, 11) Source(5, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/sourceMapValidationStatements.js.map b/tests/baselines/reference/sourceMapValidationStatements.js.map index a1ea3b1db79..b4b5c48fc22 100644 --- a/tests/baselines/reference/sourceMapValidationStatements.js.map +++ b/tests/baselines/reference/sourceMapValidationStatements.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationStatements.js.map] -{"version":3,"file":"sourceMapValidationStatements.js","sourceRoot":"","sources":["sourceMapValidationStatements.ts"],"names":["f"],"mappings":"AAAA;IACIA,IAAIA,CAACA,CAACA;IACNA,IAAIA,CAACA,GAAGA,CAACA,CAACA;IACVA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,EAAEA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;QAC1BA,CAACA,IAAIA,CAACA,CAACA;QACPA,CAACA,IAAIA,CAACA,CAACA;IACXA,CAACA;IACDA,EAAEA,CAACA,CAACA,CAACA,GAAGA,EAAEA,CAACA,CAACA,CAACA;QACTA,CAACA,IAAIA,CAACA,CAACA;IACXA,CAACA;IAACA,IAAIA,CAACA,CAACA;QACJA,CAACA,IAAIA,EAAEA,CAACA;QACRA,CAACA,EAAEA,CAACA;IACRA,CAACA;IACDA,IAAIA,CAACA,GAAGA;QACJA,CAACA;QACDA,CAACA;QACDA,CAACA;KACJA,CAACA;IACFA,IAAIA,GAAGA,GAAGA;QACNA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,OAAOA;KACbA,CAACA;IACFA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,IAAIA,CAACA,CAACA,CAACA,CAACA;QACdA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,CAACA;QACbA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;IACfA,CAACA;IACDA,IAAIA,CAACA;QACDA,GAAGA,CAACA,CAACA,GAAGA,MAAMA,CAACA;IACnBA,CAAEA;IAAAA,KAAKA,CAACA,CAACA,CAACA,CAACA,CAACA,CAACA;QACTA,EAAEA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,EAAEA,CAACA,CAACA,CAACA;YACbA,GAAGA,CAACA,CAACA,GAAGA,EAAEA,CAACA;QACfA,CAACA;QAACA,IAAIA,CAACA,CAACA;YACJA,GAAGA,CAACA,CAACA,GAAGA,KAAKA,CAACA;QAClBA,CAACA;IACLA,CAACA;IACDA,IAAIA,CAACA;QACDA,MAAMA,IAAIA,KAAKA,EAAEA,CAACA;IACtBA,CAAEA;IAAAA,KAAKA,CAACA,CAACA,EAAEA,CAACA,CAACA,CAACA;QACVA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;IACfA,CAACA;YAASA,CAACA;QACPA,CAACA,GAAGA,EAAEA,CAACA;IACXA,CAACA;IACDA,MAAMA,GAAGA,EAAEA,CAACA;QACRA,CAACA,GAAGA,CAACA,CAACA;QACNA,CAACA,GAAGA,EAAEA,CAACA;IACXA,CAACA;IACDA,MAAMA,CAACA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,CAACA;QACZA,KAAKA,CAACA,EAAEA,CAACA;YACLA,CAACA,EAAEA,CAACA;YACJA,KAAKA,CAACA;QAEVA,CAACA;QACDA,KAAKA,CAACA,EAAEA,CAACA;YACLA,CAACA,EAAEA,CAACA;YACJA,KAAKA,CAACA;QAEVA,CAACA;QACDA,SAASA,CAACA;YACNA,CAACA,IAAIA,CAACA,CAACA;YACPA,CAACA,GAAGA,EAAEA,CAACA;YACPA,KAAKA,CAACA;QAEVA,CAACA;IACLA,CAACA;IACDA,OAAOA,CAACA,GAAGA,EAAEA,EAAEA,CAACA;QACZA,CAACA,EAAEA,CAACA;IACRA,CAACA;IACDA,GAAGA,CAACA;QACAA,CAACA,EAAEA,CAACA;IACRA,CAACA,QAAQA,CAACA,GAAGA,CAACA,EAACA;IACfA,CAACA,GAAGA,CAACA,CAACA;IACNA,IAAIA,CAACA,GAAGA,CAACA,CAACA,IAAIA,CAACA,CAACA,GAAGA,CAACA,GAAGA,CAACA,GAAGA,CAACA,GAAGA,CAACA,CAACA;IACjCA,CAACA,CAACA,IAAIA,CAACA,CAACA,GAAGA,CAACA,GAAGA,CAACA,GAAGA,CAACA,GAAGA,CAACA,CAACA;IACzBA,CAACA,KAAKA,CAACA,CAACA;IACRA,CAACA,GAAGA,CAACA,GAAGA,EAAEA,CAACA;IACXA,IAAIA,CAACA,GAAGA,CAACA,CAACA;IACVA,MAAMA,CAACA;AACXA,CAACA;AACD,IAAI,CAAC,GAAG;IACJ,IAAI,CAAC,GAAG,EAAE,CAAC;IACX,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AACF,CAAC,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationStatements.js","sourceRoot":"","sources":["sourceMapValidationStatements.ts"],"names":[],"mappings":"AAAA;IACI,IAAI,CAAC,CAAC;IACN,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1B,CAAC,IAAI,CAAC,CAAC;QACP,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;IACD,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACT,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;IAAC,IAAI,CAAC,CAAC;QACJ,CAAC,IAAI,EAAE,CAAC;QACR,CAAC,EAAE,CAAC;IACR,CAAC;IACD,IAAI,CAAC,GAAG;QACJ,CAAC;QACD,CAAC;QACD,CAAC;KACJ,CAAC;IACF,IAAI,GAAG,GAAG;QACN,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,OAAO;KACb,CAAC;IACF,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACd,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACb,IAAI,CAAC,GAAG,EAAE,CAAC;IACf,CAAC;IACD,IAAI,CAAC;QACD,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;IACnB,CAAE;IAAA,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACT,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACb,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACf,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;QAClB,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACD,MAAM,IAAI,KAAK,EAAE,CAAC;IACtB,CAAE;IAAA,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACV,IAAI,CAAC,GAAG,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACP,CAAC,GAAG,EAAE,CAAC;IACX,CAAC;IACD,MAAM,GAAG,EAAE,CAAC;QACR,CAAC,GAAG,CAAC,CAAC;QACN,CAAC,GAAG,EAAE,CAAC;IACX,CAAC;IACD,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACZ,KAAK,CAAC,EAAE,CAAC;YACL,CAAC,EAAE,CAAC;YACJ,KAAK,CAAC;QAEV,CAAC;QACD,KAAK,CAAC,EAAE,CAAC;YACL,CAAC,EAAE,CAAC;YACJ,KAAK,CAAC;QAEV,CAAC;QACD,SAAS,CAAC;YACN,CAAC,IAAI,CAAC,CAAC;YACP,CAAC,GAAG,EAAE,CAAC;YACP,KAAK,CAAC;QAEV,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;QACZ,CAAC,EAAE,CAAC;IACR,CAAC;IACD,GAAG,CAAC;QACA,CAAC,EAAE,CAAC;IACR,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAC;IACf,CAAC,GAAG,CAAC,CAAC;IACN,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC,KAAK,CAAC,CAAC;IACR,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IACX,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,CAAC;AACX,CAAC;AACD,IAAI,CAAC,GAAG;IACJ,IAAI,CAAC,GAAG,EAAE,CAAC;IACX,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AACF,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt b/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt index 2a2daed01db..41212b9b3db 100644 --- a/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationStatements.sourcemap.txt @@ -25,10 +25,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > var 3 > y 4 > ; -1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) name (f) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) name (f) -3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) name (f) -4 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) name (f) +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) --- >>> var x = 0; 1->^^^^ @@ -45,12 +45,12 @@ sourceFile:sourceMapValidationStatements.ts 4 > = 5 > 0 6 > ; -1->Emitted(3, 5) Source(3, 5) + SourceIndex(0) name (f) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) name (f) -3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) name (f) -4 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) name (f) -5 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) name (f) -6 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) name (f) +1->Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +4 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) +5 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +6 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) --- >>> for (var i = 0; i < 10; i++) { 1->^^^^ @@ -90,24 +90,24 @@ sourceFile:sourceMapValidationStatements.ts 16> ++ 17> ) 18> { -1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (f) -2 >Emitted(4, 8) Source(4, 8) + SourceIndex(0) name (f) -3 >Emitted(4, 9) Source(4, 9) + SourceIndex(0) name (f) -4 >Emitted(4, 10) Source(4, 10) + SourceIndex(0) name (f) -5 >Emitted(4, 13) Source(4, 13) + SourceIndex(0) name (f) -6 >Emitted(4, 14) Source(4, 14) + SourceIndex(0) name (f) -7 >Emitted(4, 15) Source(4, 15) + SourceIndex(0) name (f) -8 >Emitted(4, 18) Source(4, 18) + SourceIndex(0) name (f) -9 >Emitted(4, 19) Source(4, 19) + SourceIndex(0) name (f) -10>Emitted(4, 21) Source(4, 21) + SourceIndex(0) name (f) -11>Emitted(4, 22) Source(4, 22) + SourceIndex(0) name (f) -12>Emitted(4, 25) Source(4, 25) + SourceIndex(0) name (f) -13>Emitted(4, 27) Source(4, 27) + SourceIndex(0) name (f) -14>Emitted(4, 29) Source(4, 29) + SourceIndex(0) name (f) -15>Emitted(4, 30) Source(4, 30) + SourceIndex(0) name (f) -16>Emitted(4, 32) Source(4, 32) + SourceIndex(0) name (f) -17>Emitted(4, 34) Source(4, 34) + SourceIndex(0) name (f) -18>Emitted(4, 35) Source(4, 35) + SourceIndex(0) name (f) +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 8) Source(4, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(4, 9) + SourceIndex(0) +4 >Emitted(4, 10) Source(4, 10) + SourceIndex(0) +5 >Emitted(4, 13) Source(4, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(4, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(4, 15) + SourceIndex(0) +8 >Emitted(4, 18) Source(4, 18) + SourceIndex(0) +9 >Emitted(4, 19) Source(4, 19) + SourceIndex(0) +10>Emitted(4, 21) Source(4, 21) + SourceIndex(0) +11>Emitted(4, 22) Source(4, 22) + SourceIndex(0) +12>Emitted(4, 25) Source(4, 25) + SourceIndex(0) +13>Emitted(4, 27) Source(4, 27) + SourceIndex(0) +14>Emitted(4, 29) Source(4, 29) + SourceIndex(0) +15>Emitted(4, 30) Source(4, 30) + SourceIndex(0) +16>Emitted(4, 32) Source(4, 32) + SourceIndex(0) +17>Emitted(4, 34) Source(4, 34) + SourceIndex(0) +18>Emitted(4, 35) Source(4, 35) + SourceIndex(0) --- >>> x += i; 1 >^^^^^^^^ @@ -122,11 +122,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > += 4 > i 5 > ; -1 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) name (f) -2 >Emitted(5, 10) Source(5, 10) + SourceIndex(0) name (f) -3 >Emitted(5, 14) Source(5, 14) + SourceIndex(0) name (f) -4 >Emitted(5, 15) Source(5, 15) + SourceIndex(0) name (f) -5 >Emitted(5, 16) Source(5, 16) + SourceIndex(0) name (f) +1 >Emitted(5, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(5, 10) Source(5, 10) + SourceIndex(0) +3 >Emitted(5, 14) Source(5, 14) + SourceIndex(0) +4 >Emitted(5, 15) Source(5, 15) + SourceIndex(0) +5 >Emitted(5, 16) Source(5, 16) + SourceIndex(0) --- >>> x *= 0; 1->^^^^^^^^ @@ -140,11 +140,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > *= 4 > 0 5 > ; -1->Emitted(6, 9) Source(6, 9) + SourceIndex(0) name (f) -2 >Emitted(6, 10) Source(6, 10) + SourceIndex(0) name (f) -3 >Emitted(6, 14) Source(6, 14) + SourceIndex(0) name (f) -4 >Emitted(6, 15) Source(6, 15) + SourceIndex(0) name (f) -5 >Emitted(6, 16) Source(6, 16) + SourceIndex(0) name (f) +1->Emitted(6, 9) Source(6, 9) + SourceIndex(0) +2 >Emitted(6, 10) Source(6, 10) + SourceIndex(0) +3 >Emitted(6, 14) Source(6, 14) + SourceIndex(0) +4 >Emitted(6, 15) Source(6, 15) + SourceIndex(0) +5 >Emitted(6, 16) Source(6, 16) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -153,8 +153,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) name (f) -2 >Emitted(7, 6) Source(7, 6) + SourceIndex(0) name (f) +1 >Emitted(7, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(7, 6) + SourceIndex(0) --- >>> if (x > 17) { 1->^^^^ @@ -178,16 +178,16 @@ sourceFile:sourceMapValidationStatements.ts 8 > ) 9 > 10> { -1->Emitted(8, 5) Source(8, 5) + SourceIndex(0) name (f) -2 >Emitted(8, 7) Source(8, 7) + SourceIndex(0) name (f) -3 >Emitted(8, 8) Source(8, 8) + SourceIndex(0) name (f) -4 >Emitted(8, 9) Source(8, 9) + SourceIndex(0) name (f) -5 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) name (f) -6 >Emitted(8, 13) Source(8, 13) + SourceIndex(0) name (f) -7 >Emitted(8, 15) Source(8, 15) + SourceIndex(0) name (f) -8 >Emitted(8, 16) Source(8, 16) + SourceIndex(0) name (f) -9 >Emitted(8, 17) Source(8, 17) + SourceIndex(0) name (f) -10>Emitted(8, 18) Source(8, 18) + SourceIndex(0) name (f) +1->Emitted(8, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(8, 7) Source(8, 7) + SourceIndex(0) +3 >Emitted(8, 8) Source(8, 8) + SourceIndex(0) +4 >Emitted(8, 9) Source(8, 9) + SourceIndex(0) +5 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) +6 >Emitted(8, 13) Source(8, 13) + SourceIndex(0) +7 >Emitted(8, 15) Source(8, 15) + SourceIndex(0) +8 >Emitted(8, 16) Source(8, 16) + SourceIndex(0) +9 >Emitted(8, 17) Source(8, 17) + SourceIndex(0) +10>Emitted(8, 18) Source(8, 18) + SourceIndex(0) --- >>> x /= 9; 1 >^^^^^^^^ @@ -201,11 +201,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > /= 4 > 9 5 > ; -1 >Emitted(9, 9) Source(9, 9) + SourceIndex(0) name (f) -2 >Emitted(9, 10) Source(9, 10) + SourceIndex(0) name (f) -3 >Emitted(9, 14) Source(9, 14) + SourceIndex(0) name (f) -4 >Emitted(9, 15) Source(9, 15) + SourceIndex(0) name (f) -5 >Emitted(9, 16) Source(9, 16) + SourceIndex(0) name (f) +1 >Emitted(9, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(9, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(9, 14) Source(9, 14) + SourceIndex(0) +4 >Emitted(9, 15) Source(9, 15) + SourceIndex(0) +5 >Emitted(9, 16) Source(9, 16) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -214,8 +214,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(10, 5) Source(10, 5) + SourceIndex(0) name (f) -2 >Emitted(10, 6) Source(10, 6) + SourceIndex(0) name (f) +1 >Emitted(10, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(10, 6) Source(10, 6) + SourceIndex(0) --- >>> else { 1->^^^^ @@ -227,10 +227,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > else 3 > 4 > { -1->Emitted(11, 5) Source(10, 7) + SourceIndex(0) name (f) -2 >Emitted(11, 9) Source(10, 11) + SourceIndex(0) name (f) -3 >Emitted(11, 10) Source(10, 12) + SourceIndex(0) name (f) -4 >Emitted(11, 11) Source(10, 13) + SourceIndex(0) name (f) +1->Emitted(11, 5) Source(10, 7) + SourceIndex(0) +2 >Emitted(11, 9) Source(10, 11) + SourceIndex(0) +3 >Emitted(11, 10) Source(10, 12) + SourceIndex(0) +4 >Emitted(11, 11) Source(10, 13) + SourceIndex(0) --- >>> x += 10; 1->^^^^^^^^ @@ -244,11 +244,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > += 4 > 10 5 > ; -1->Emitted(12, 9) Source(11, 9) + SourceIndex(0) name (f) -2 >Emitted(12, 10) Source(11, 10) + SourceIndex(0) name (f) -3 >Emitted(12, 14) Source(11, 14) + SourceIndex(0) name (f) -4 >Emitted(12, 16) Source(11, 16) + SourceIndex(0) name (f) -5 >Emitted(12, 17) Source(11, 17) + SourceIndex(0) name (f) +1->Emitted(12, 9) Source(11, 9) + SourceIndex(0) +2 >Emitted(12, 10) Source(11, 10) + SourceIndex(0) +3 >Emitted(12, 14) Source(11, 14) + SourceIndex(0) +4 >Emitted(12, 16) Source(11, 16) + SourceIndex(0) +5 >Emitted(12, 17) Source(11, 17) + SourceIndex(0) --- >>> x++; 1 >^^^^^^^^ @@ -260,10 +260,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > x 3 > ++ 4 > ; -1 >Emitted(13, 9) Source(12, 9) + SourceIndex(0) name (f) -2 >Emitted(13, 10) Source(12, 10) + SourceIndex(0) name (f) -3 >Emitted(13, 12) Source(12, 12) + SourceIndex(0) name (f) -4 >Emitted(13, 13) Source(12, 13) + SourceIndex(0) name (f) +1 >Emitted(13, 9) Source(12, 9) + SourceIndex(0) +2 >Emitted(13, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(13, 12) Source(12, 12) + SourceIndex(0) +4 >Emitted(13, 13) Source(12, 13) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -272,8 +272,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) name (f) -2 >Emitted(14, 6) Source(13, 6) + SourceIndex(0) name (f) +1 >Emitted(14, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(14, 6) Source(13, 6) + SourceIndex(0) --- >>> var a = [ 1->^^^^ @@ -285,10 +285,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > var 3 > a 4 > = -1->Emitted(15, 5) Source(14, 5) + SourceIndex(0) name (f) -2 >Emitted(15, 9) Source(14, 9) + SourceIndex(0) name (f) -3 >Emitted(15, 10) Source(14, 10) + SourceIndex(0) name (f) -4 >Emitted(15, 13) Source(14, 13) + SourceIndex(0) name (f) +1->Emitted(15, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(15, 9) Source(14, 9) + SourceIndex(0) +3 >Emitted(15, 10) Source(14, 10) + SourceIndex(0) +4 >Emitted(15, 13) Source(14, 13) + SourceIndex(0) --- >>> 1, 1 >^^^^^^^^ @@ -297,8 +297,8 @@ sourceFile:sourceMapValidationStatements.ts 1 >[ > 2 > 1 -1 >Emitted(16, 9) Source(15, 9) + SourceIndex(0) name (f) -2 >Emitted(16, 10) Source(15, 10) + SourceIndex(0) name (f) +1 >Emitted(16, 9) Source(15, 9) + SourceIndex(0) +2 >Emitted(16, 10) Source(15, 10) + SourceIndex(0) --- >>> 2, 1->^^^^^^^^ @@ -307,8 +307,8 @@ sourceFile:sourceMapValidationStatements.ts 1->, > 2 > 2 -1->Emitted(17, 9) Source(16, 9) + SourceIndex(0) name (f) -2 >Emitted(17, 10) Source(16, 10) + SourceIndex(0) name (f) +1->Emitted(17, 9) Source(16, 9) + SourceIndex(0) +2 >Emitted(17, 10) Source(16, 10) + SourceIndex(0) --- >>> 3 1->^^^^^^^^ @@ -316,8 +316,8 @@ sourceFile:sourceMapValidationStatements.ts 1->, > 2 > 3 -1->Emitted(18, 9) Source(17, 9) + SourceIndex(0) name (f) -2 >Emitted(18, 10) Source(17, 10) + SourceIndex(0) name (f) +1->Emitted(18, 9) Source(17, 9) + SourceIndex(0) +2 >Emitted(18, 10) Source(17, 10) + SourceIndex(0) --- >>> ]; 1 >^^^^^ @@ -326,8 +326,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > ] 2 > ; -1 >Emitted(19, 6) Source(18, 6) + SourceIndex(0) name (f) -2 >Emitted(19, 7) Source(18, 7) + SourceIndex(0) name (f) +1 >Emitted(19, 6) Source(18, 6) + SourceIndex(0) +2 >Emitted(19, 7) Source(18, 7) + SourceIndex(0) --- >>> var obj = { 1->^^^^ @@ -339,10 +339,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > var 3 > obj 4 > = -1->Emitted(20, 5) Source(19, 5) + SourceIndex(0) name (f) -2 >Emitted(20, 9) Source(19, 9) + SourceIndex(0) name (f) -3 >Emitted(20, 12) Source(19, 12) + SourceIndex(0) name (f) -4 >Emitted(20, 15) Source(19, 15) + SourceIndex(0) name (f) +1->Emitted(20, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(20, 9) Source(19, 9) + SourceIndex(0) +3 >Emitted(20, 12) Source(19, 12) + SourceIndex(0) +4 >Emitted(20, 15) Source(19, 15) + SourceIndex(0) --- >>> z: 1, 1 >^^^^^^^^ @@ -355,10 +355,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > z 3 > : 4 > 1 -1 >Emitted(21, 9) Source(20, 9) + SourceIndex(0) name (f) -2 >Emitted(21, 10) Source(20, 10) + SourceIndex(0) name (f) -3 >Emitted(21, 12) Source(20, 12) + SourceIndex(0) name (f) -4 >Emitted(21, 13) Source(20, 13) + SourceIndex(0) name (f) +1 >Emitted(21, 9) Source(20, 9) + SourceIndex(0) +2 >Emitted(21, 10) Source(20, 10) + SourceIndex(0) +3 >Emitted(21, 12) Source(20, 12) + SourceIndex(0) +4 >Emitted(21, 13) Source(20, 13) + SourceIndex(0) --- >>> q: "hello" 1->^^^^^^^^ @@ -370,10 +370,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > q 3 > : 4 > "hello" -1->Emitted(22, 9) Source(21, 9) + SourceIndex(0) name (f) -2 >Emitted(22, 10) Source(21, 10) + SourceIndex(0) name (f) -3 >Emitted(22, 12) Source(21, 12) + SourceIndex(0) name (f) -4 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) name (f) +1->Emitted(22, 9) Source(21, 9) + SourceIndex(0) +2 >Emitted(22, 10) Source(21, 10) + SourceIndex(0) +3 >Emitted(22, 12) Source(21, 12) + SourceIndex(0) +4 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) --- >>> }; 1 >^^^^^ @@ -382,8 +382,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > } 2 > ; -1 >Emitted(23, 6) Source(22, 6) + SourceIndex(0) name (f) -2 >Emitted(23, 7) Source(22, 7) + SourceIndex(0) name (f) +1 >Emitted(23, 6) Source(22, 6) + SourceIndex(0) +2 >Emitted(23, 7) Source(22, 7) + SourceIndex(0) --- >>> for (var j in a) { 1->^^^^ @@ -411,18 +411,18 @@ sourceFile:sourceMapValidationStatements.ts 10> ) 11> 12> { -1->Emitted(24, 5) Source(23, 5) + SourceIndex(0) name (f) -2 >Emitted(24, 8) Source(23, 8) + SourceIndex(0) name (f) -3 >Emitted(24, 9) Source(23, 9) + SourceIndex(0) name (f) -4 >Emitted(24, 10) Source(23, 10) + SourceIndex(0) name (f) -5 >Emitted(24, 13) Source(23, 13) + SourceIndex(0) name (f) -6 >Emitted(24, 14) Source(23, 14) + SourceIndex(0) name (f) -7 >Emitted(24, 15) Source(23, 15) + SourceIndex(0) name (f) -8 >Emitted(24, 19) Source(23, 19) + SourceIndex(0) name (f) -9 >Emitted(24, 20) Source(23, 20) + SourceIndex(0) name (f) -10>Emitted(24, 21) Source(23, 21) + SourceIndex(0) name (f) -11>Emitted(24, 22) Source(23, 22) + SourceIndex(0) name (f) -12>Emitted(24, 23) Source(23, 23) + SourceIndex(0) name (f) +1->Emitted(24, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(24, 8) Source(23, 8) + SourceIndex(0) +3 >Emitted(24, 9) Source(23, 9) + SourceIndex(0) +4 >Emitted(24, 10) Source(23, 10) + SourceIndex(0) +5 >Emitted(24, 13) Source(23, 13) + SourceIndex(0) +6 >Emitted(24, 14) Source(23, 14) + SourceIndex(0) +7 >Emitted(24, 15) Source(23, 15) + SourceIndex(0) +8 >Emitted(24, 19) Source(23, 19) + SourceIndex(0) +9 >Emitted(24, 20) Source(23, 20) + SourceIndex(0) +10>Emitted(24, 21) Source(23, 21) + SourceIndex(0) +11>Emitted(24, 22) Source(23, 22) + SourceIndex(0) +12>Emitted(24, 23) Source(23, 23) + SourceIndex(0) --- >>> obj.z = a[j]; 1 >^^^^^^^^ @@ -446,16 +446,16 @@ sourceFile:sourceMapValidationStatements.ts 8 > j 9 > ] 10> ; -1 >Emitted(25, 9) Source(24, 9) + SourceIndex(0) name (f) -2 >Emitted(25, 12) Source(24, 12) + SourceIndex(0) name (f) -3 >Emitted(25, 13) Source(24, 13) + SourceIndex(0) name (f) -4 >Emitted(25, 14) Source(24, 14) + SourceIndex(0) name (f) -5 >Emitted(25, 17) Source(24, 17) + SourceIndex(0) name (f) -6 >Emitted(25, 18) Source(24, 18) + SourceIndex(0) name (f) -7 >Emitted(25, 19) Source(24, 19) + SourceIndex(0) name (f) -8 >Emitted(25, 20) Source(24, 20) + SourceIndex(0) name (f) -9 >Emitted(25, 21) Source(24, 21) + SourceIndex(0) name (f) -10>Emitted(25, 22) Source(24, 22) + SourceIndex(0) name (f) +1 >Emitted(25, 9) Source(24, 9) + SourceIndex(0) +2 >Emitted(25, 12) Source(24, 12) + SourceIndex(0) +3 >Emitted(25, 13) Source(24, 13) + SourceIndex(0) +4 >Emitted(25, 14) Source(24, 14) + SourceIndex(0) +5 >Emitted(25, 17) Source(24, 17) + SourceIndex(0) +6 >Emitted(25, 18) Source(24, 18) + SourceIndex(0) +7 >Emitted(25, 19) Source(24, 19) + SourceIndex(0) +8 >Emitted(25, 20) Source(24, 20) + SourceIndex(0) +9 >Emitted(25, 21) Source(24, 21) + SourceIndex(0) +10>Emitted(25, 22) Source(24, 22) + SourceIndex(0) --- >>> var v = 10; 1 >^^^^^^^^ @@ -471,12 +471,12 @@ sourceFile:sourceMapValidationStatements.ts 4 > = 5 > 10 6 > ; -1 >Emitted(26, 9) Source(25, 9) + SourceIndex(0) name (f) -2 >Emitted(26, 13) Source(25, 13) + SourceIndex(0) name (f) -3 >Emitted(26, 14) Source(25, 14) + SourceIndex(0) name (f) -4 >Emitted(26, 17) Source(25, 17) + SourceIndex(0) name (f) -5 >Emitted(26, 19) Source(25, 19) + SourceIndex(0) name (f) -6 >Emitted(26, 20) Source(25, 20) + SourceIndex(0) name (f) +1 >Emitted(26, 9) Source(25, 9) + SourceIndex(0) +2 >Emitted(26, 13) Source(25, 13) + SourceIndex(0) +3 >Emitted(26, 14) Source(25, 14) + SourceIndex(0) +4 >Emitted(26, 17) Source(25, 17) + SourceIndex(0) +5 >Emitted(26, 19) Source(25, 19) + SourceIndex(0) +6 >Emitted(26, 20) Source(25, 20) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -485,8 +485,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(27, 5) Source(26, 5) + SourceIndex(0) name (f) -2 >Emitted(27, 6) Source(26, 6) + SourceIndex(0) name (f) +1 >Emitted(27, 5) Source(26, 5) + SourceIndex(0) +2 >Emitted(27, 6) Source(26, 6) + SourceIndex(0) --- >>> try { 1->^^^^ @@ -497,9 +497,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > try 3 > { -1->Emitted(28, 5) Source(27, 5) + SourceIndex(0) name (f) -2 >Emitted(28, 9) Source(27, 9) + SourceIndex(0) name (f) -3 >Emitted(28, 10) Source(27, 10) + SourceIndex(0) name (f) +1->Emitted(28, 5) Source(27, 5) + SourceIndex(0) +2 >Emitted(28, 9) Source(27, 9) + SourceIndex(0) +3 >Emitted(28, 10) Source(27, 10) + SourceIndex(0) --- >>> obj.q = "ohhh"; 1->^^^^^^^^ @@ -517,13 +517,13 @@ sourceFile:sourceMapValidationStatements.ts 5 > = 6 > "ohhh" 7 > ; -1->Emitted(29, 9) Source(28, 9) + SourceIndex(0) name (f) -2 >Emitted(29, 12) Source(28, 12) + SourceIndex(0) name (f) -3 >Emitted(29, 13) Source(28, 13) + SourceIndex(0) name (f) -4 >Emitted(29, 14) Source(28, 14) + SourceIndex(0) name (f) -5 >Emitted(29, 17) Source(28, 17) + SourceIndex(0) name (f) -6 >Emitted(29, 23) Source(28, 23) + SourceIndex(0) name (f) -7 >Emitted(29, 24) Source(28, 24) + SourceIndex(0) name (f) +1->Emitted(29, 9) Source(28, 9) + SourceIndex(0) +2 >Emitted(29, 12) Source(28, 12) + SourceIndex(0) +3 >Emitted(29, 13) Source(28, 13) + SourceIndex(0) +4 >Emitted(29, 14) Source(28, 14) + SourceIndex(0) +5 >Emitted(29, 17) Source(28, 17) + SourceIndex(0) +6 >Emitted(29, 23) Source(28, 23) + SourceIndex(0) +7 >Emitted(29, 24) Source(28, 24) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -532,8 +532,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(30, 5) Source(29, 5) + SourceIndex(0) name (f) -2 >Emitted(30, 6) Source(29, 7) + SourceIndex(0) name (f) +1 >Emitted(30, 5) Source(29, 5) + SourceIndex(0) +2 >Emitted(30, 6) Source(29, 7) + SourceIndex(0) --- >>> catch (e) { 1->^^^^ @@ -553,14 +553,14 @@ sourceFile:sourceMapValidationStatements.ts 6 > ) 7 > 8 > { -1->Emitted(31, 5) Source(29, 7) + SourceIndex(0) name (f) -2 >Emitted(31, 10) Source(29, 12) + SourceIndex(0) name (f) -3 >Emitted(31, 11) Source(29, 13) + SourceIndex(0) name (f) -4 >Emitted(31, 12) Source(29, 14) + SourceIndex(0) name (f) -5 >Emitted(31, 13) Source(29, 15) + SourceIndex(0) name (f) -6 >Emitted(31, 14) Source(29, 16) + SourceIndex(0) name (f) -7 >Emitted(31, 15) Source(29, 17) + SourceIndex(0) name (f) -8 >Emitted(31, 16) Source(29, 18) + SourceIndex(0) name (f) +1->Emitted(31, 5) Source(29, 7) + SourceIndex(0) +2 >Emitted(31, 10) Source(29, 12) + SourceIndex(0) +3 >Emitted(31, 11) Source(29, 13) + SourceIndex(0) +4 >Emitted(31, 12) Source(29, 14) + SourceIndex(0) +5 >Emitted(31, 13) Source(29, 15) + SourceIndex(0) +6 >Emitted(31, 14) Source(29, 16) + SourceIndex(0) +7 >Emitted(31, 15) Source(29, 17) + SourceIndex(0) +8 >Emitted(31, 16) Source(29, 18) + SourceIndex(0) --- >>> if (obj.z < 10) { 1->^^^^^^^^ @@ -588,18 +588,18 @@ sourceFile:sourceMapValidationStatements.ts 10> ) 11> 12> { -1->Emitted(32, 9) Source(30, 9) + SourceIndex(0) name (f) -2 >Emitted(32, 11) Source(30, 11) + SourceIndex(0) name (f) -3 >Emitted(32, 12) Source(30, 12) + SourceIndex(0) name (f) -4 >Emitted(32, 13) Source(30, 13) + SourceIndex(0) name (f) -5 >Emitted(32, 16) Source(30, 16) + SourceIndex(0) name (f) -6 >Emitted(32, 17) Source(30, 17) + SourceIndex(0) name (f) -7 >Emitted(32, 18) Source(30, 18) + SourceIndex(0) name (f) -8 >Emitted(32, 21) Source(30, 21) + SourceIndex(0) name (f) -9 >Emitted(32, 23) Source(30, 23) + SourceIndex(0) name (f) -10>Emitted(32, 24) Source(30, 24) + SourceIndex(0) name (f) -11>Emitted(32, 25) Source(30, 25) + SourceIndex(0) name (f) -12>Emitted(32, 26) Source(30, 26) + SourceIndex(0) name (f) +1->Emitted(32, 9) Source(30, 9) + SourceIndex(0) +2 >Emitted(32, 11) Source(30, 11) + SourceIndex(0) +3 >Emitted(32, 12) Source(30, 12) + SourceIndex(0) +4 >Emitted(32, 13) Source(30, 13) + SourceIndex(0) +5 >Emitted(32, 16) Source(30, 16) + SourceIndex(0) +6 >Emitted(32, 17) Source(30, 17) + SourceIndex(0) +7 >Emitted(32, 18) Source(30, 18) + SourceIndex(0) +8 >Emitted(32, 21) Source(30, 21) + SourceIndex(0) +9 >Emitted(32, 23) Source(30, 23) + SourceIndex(0) +10>Emitted(32, 24) Source(30, 24) + SourceIndex(0) +11>Emitted(32, 25) Source(30, 25) + SourceIndex(0) +12>Emitted(32, 26) Source(30, 26) + SourceIndex(0) --- >>> obj.z = 12; 1 >^^^^^^^^^^^^ @@ -617,13 +617,13 @@ sourceFile:sourceMapValidationStatements.ts 5 > = 6 > 12 7 > ; -1 >Emitted(33, 13) Source(31, 13) + SourceIndex(0) name (f) -2 >Emitted(33, 16) Source(31, 16) + SourceIndex(0) name (f) -3 >Emitted(33, 17) Source(31, 17) + SourceIndex(0) name (f) -4 >Emitted(33, 18) Source(31, 18) + SourceIndex(0) name (f) -5 >Emitted(33, 21) Source(31, 21) + SourceIndex(0) name (f) -6 >Emitted(33, 23) Source(31, 23) + SourceIndex(0) name (f) -7 >Emitted(33, 24) Source(31, 24) + SourceIndex(0) name (f) +1 >Emitted(33, 13) Source(31, 13) + SourceIndex(0) +2 >Emitted(33, 16) Source(31, 16) + SourceIndex(0) +3 >Emitted(33, 17) Source(31, 17) + SourceIndex(0) +4 >Emitted(33, 18) Source(31, 18) + SourceIndex(0) +5 >Emitted(33, 21) Source(31, 21) + SourceIndex(0) +6 >Emitted(33, 23) Source(31, 23) + SourceIndex(0) +7 >Emitted(33, 24) Source(31, 24) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -632,8 +632,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(34, 9) Source(32, 9) + SourceIndex(0) name (f) -2 >Emitted(34, 10) Source(32, 10) + SourceIndex(0) name (f) +1 >Emitted(34, 9) Source(32, 9) + SourceIndex(0) +2 >Emitted(34, 10) Source(32, 10) + SourceIndex(0) --- >>> else { 1->^^^^^^^^ @@ -645,10 +645,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > else 3 > 4 > { -1->Emitted(35, 9) Source(32, 11) + SourceIndex(0) name (f) -2 >Emitted(35, 13) Source(32, 15) + SourceIndex(0) name (f) -3 >Emitted(35, 14) Source(32, 16) + SourceIndex(0) name (f) -4 >Emitted(35, 15) Source(32, 17) + SourceIndex(0) name (f) +1->Emitted(35, 9) Source(32, 11) + SourceIndex(0) +2 >Emitted(35, 13) Source(32, 15) + SourceIndex(0) +3 >Emitted(35, 14) Source(32, 16) + SourceIndex(0) +4 >Emitted(35, 15) Source(32, 17) + SourceIndex(0) --- >>> obj.q = "hmm"; 1->^^^^^^^^^^^^ @@ -666,13 +666,13 @@ sourceFile:sourceMapValidationStatements.ts 5 > = 6 > "hmm" 7 > ; -1->Emitted(36, 13) Source(33, 13) + SourceIndex(0) name (f) -2 >Emitted(36, 16) Source(33, 16) + SourceIndex(0) name (f) -3 >Emitted(36, 17) Source(33, 17) + SourceIndex(0) name (f) -4 >Emitted(36, 18) Source(33, 18) + SourceIndex(0) name (f) -5 >Emitted(36, 21) Source(33, 21) + SourceIndex(0) name (f) -6 >Emitted(36, 26) Source(33, 26) + SourceIndex(0) name (f) -7 >Emitted(36, 27) Source(33, 27) + SourceIndex(0) name (f) +1->Emitted(36, 13) Source(33, 13) + SourceIndex(0) +2 >Emitted(36, 16) Source(33, 16) + SourceIndex(0) +3 >Emitted(36, 17) Source(33, 17) + SourceIndex(0) +4 >Emitted(36, 18) Source(33, 18) + SourceIndex(0) +5 >Emitted(36, 21) Source(33, 21) + SourceIndex(0) +6 >Emitted(36, 26) Source(33, 26) + SourceIndex(0) +7 >Emitted(36, 27) Source(33, 27) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -680,8 +680,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(37, 9) Source(34, 9) + SourceIndex(0) name (f) -2 >Emitted(37, 10) Source(34, 10) + SourceIndex(0) name (f) +1 >Emitted(37, 9) Source(34, 9) + SourceIndex(0) +2 >Emitted(37, 10) Source(34, 10) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -690,8 +690,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(38, 5) Source(35, 5) + SourceIndex(0) name (f) -2 >Emitted(38, 6) Source(35, 6) + SourceIndex(0) name (f) +1 >Emitted(38, 5) Source(35, 5) + SourceIndex(0) +2 >Emitted(38, 6) Source(35, 6) + SourceIndex(0) --- >>> try { 1->^^^^ @@ -702,9 +702,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > try 3 > { -1->Emitted(39, 5) Source(36, 5) + SourceIndex(0) name (f) -2 >Emitted(39, 9) Source(36, 9) + SourceIndex(0) name (f) -3 >Emitted(39, 10) Source(36, 10) + SourceIndex(0) name (f) +1->Emitted(39, 5) Source(36, 5) + SourceIndex(0) +2 >Emitted(39, 9) Source(36, 9) + SourceIndex(0) +3 >Emitted(39, 10) Source(36, 10) + SourceIndex(0) --- >>> throw new Error(); 1->^^^^^^^^ @@ -720,12 +720,12 @@ sourceFile:sourceMapValidationStatements.ts 4 > Error 5 > () 6 > ; -1->Emitted(40, 9) Source(37, 9) + SourceIndex(0) name (f) -2 >Emitted(40, 15) Source(37, 15) + SourceIndex(0) name (f) -3 >Emitted(40, 19) Source(37, 19) + SourceIndex(0) name (f) -4 >Emitted(40, 24) Source(37, 24) + SourceIndex(0) name (f) -5 >Emitted(40, 26) Source(37, 26) + SourceIndex(0) name (f) -6 >Emitted(40, 27) Source(37, 27) + SourceIndex(0) name (f) +1->Emitted(40, 9) Source(37, 9) + SourceIndex(0) +2 >Emitted(40, 15) Source(37, 15) + SourceIndex(0) +3 >Emitted(40, 19) Source(37, 19) + SourceIndex(0) +4 >Emitted(40, 24) Source(37, 24) + SourceIndex(0) +5 >Emitted(40, 26) Source(37, 26) + SourceIndex(0) +6 >Emitted(40, 27) Source(37, 27) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -734,8 +734,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(41, 5) Source(38, 5) + SourceIndex(0) name (f) -2 >Emitted(41, 6) Source(38, 7) + SourceIndex(0) name (f) +1 >Emitted(41, 5) Source(38, 5) + SourceIndex(0) +2 >Emitted(41, 6) Source(38, 7) + SourceIndex(0) --- >>> catch (e1) { 1->^^^^ @@ -755,14 +755,14 @@ sourceFile:sourceMapValidationStatements.ts 6 > ) 7 > 8 > { -1->Emitted(42, 5) Source(38, 7) + SourceIndex(0) name (f) -2 >Emitted(42, 10) Source(38, 12) + SourceIndex(0) name (f) -3 >Emitted(42, 11) Source(38, 13) + SourceIndex(0) name (f) -4 >Emitted(42, 12) Source(38, 14) + SourceIndex(0) name (f) -5 >Emitted(42, 14) Source(38, 16) + SourceIndex(0) name (f) -6 >Emitted(42, 15) Source(38, 17) + SourceIndex(0) name (f) -7 >Emitted(42, 16) Source(38, 18) + SourceIndex(0) name (f) -8 >Emitted(42, 17) Source(38, 19) + SourceIndex(0) name (f) +1->Emitted(42, 5) Source(38, 7) + SourceIndex(0) +2 >Emitted(42, 10) Source(38, 12) + SourceIndex(0) +3 >Emitted(42, 11) Source(38, 13) + SourceIndex(0) +4 >Emitted(42, 12) Source(38, 14) + SourceIndex(0) +5 >Emitted(42, 14) Source(38, 16) + SourceIndex(0) +6 >Emitted(42, 15) Source(38, 17) + SourceIndex(0) +7 >Emitted(42, 16) Source(38, 18) + SourceIndex(0) +8 >Emitted(42, 17) Source(38, 19) + SourceIndex(0) --- >>> var b = e1; 1->^^^^^^^^ @@ -778,12 +778,12 @@ sourceFile:sourceMapValidationStatements.ts 4 > = 5 > e1 6 > ; -1->Emitted(43, 9) Source(39, 9) + SourceIndex(0) name (f) -2 >Emitted(43, 13) Source(39, 13) + SourceIndex(0) name (f) -3 >Emitted(43, 14) Source(39, 14) + SourceIndex(0) name (f) -4 >Emitted(43, 17) Source(39, 17) + SourceIndex(0) name (f) -5 >Emitted(43, 19) Source(39, 19) + SourceIndex(0) name (f) -6 >Emitted(43, 20) Source(39, 20) + SourceIndex(0) name (f) +1->Emitted(43, 9) Source(39, 9) + SourceIndex(0) +2 >Emitted(43, 13) Source(39, 13) + SourceIndex(0) +3 >Emitted(43, 14) Source(39, 14) + SourceIndex(0) +4 >Emitted(43, 17) Source(39, 17) + SourceIndex(0) +5 >Emitted(43, 19) Source(39, 19) + SourceIndex(0) +6 >Emitted(43, 20) Source(39, 20) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -792,8 +792,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(44, 5) Source(40, 5) + SourceIndex(0) name (f) -2 >Emitted(44, 6) Source(40, 6) + SourceIndex(0) name (f) +1 >Emitted(44, 5) Source(40, 5) + SourceIndex(0) +2 >Emitted(44, 6) Source(40, 6) + SourceIndex(0) --- >>> finally { 1->^^^^^^^^^^^^ @@ -801,8 +801,8 @@ sourceFile:sourceMapValidationStatements.ts 3 > ^^^-> 1-> finally 2 > { -1->Emitted(45, 13) Source(40, 15) + SourceIndex(0) name (f) -2 >Emitted(45, 14) Source(40, 16) + SourceIndex(0) name (f) +1->Emitted(45, 13) Source(40, 15) + SourceIndex(0) +2 >Emitted(45, 14) Source(40, 16) + SourceIndex(0) --- >>> y = 70; 1->^^^^^^^^ @@ -816,11 +816,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > = 4 > 70 5 > ; -1->Emitted(46, 9) Source(41, 9) + SourceIndex(0) name (f) -2 >Emitted(46, 10) Source(41, 10) + SourceIndex(0) name (f) -3 >Emitted(46, 13) Source(41, 13) + SourceIndex(0) name (f) -4 >Emitted(46, 15) Source(41, 15) + SourceIndex(0) name (f) -5 >Emitted(46, 16) Source(41, 16) + SourceIndex(0) name (f) +1->Emitted(46, 9) Source(41, 9) + SourceIndex(0) +2 >Emitted(46, 10) Source(41, 10) + SourceIndex(0) +3 >Emitted(46, 13) Source(41, 13) + SourceIndex(0) +4 >Emitted(46, 15) Source(41, 15) + SourceIndex(0) +5 >Emitted(46, 16) Source(41, 16) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -829,8 +829,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(47, 5) Source(42, 5) + SourceIndex(0) name (f) -2 >Emitted(47, 6) Source(42, 6) + SourceIndex(0) name (f) +1 >Emitted(47, 5) Source(42, 5) + SourceIndex(0) +2 >Emitted(47, 6) Source(42, 6) + SourceIndex(0) --- >>> with (obj) { 1->^^^^ @@ -844,11 +844,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > obj 4 > ) 5 > { -1->Emitted(48, 5) Source(43, 5) + SourceIndex(0) name (f) -2 >Emitted(48, 11) Source(43, 11) + SourceIndex(0) name (f) -3 >Emitted(48, 14) Source(43, 14) + SourceIndex(0) name (f) -4 >Emitted(48, 16) Source(43, 16) + SourceIndex(0) name (f) -5 >Emitted(48, 17) Source(43, 17) + SourceIndex(0) name (f) +1->Emitted(48, 5) Source(43, 5) + SourceIndex(0) +2 >Emitted(48, 11) Source(43, 11) + SourceIndex(0) +3 >Emitted(48, 14) Source(43, 14) + SourceIndex(0) +4 >Emitted(48, 16) Source(43, 16) + SourceIndex(0) +5 >Emitted(48, 17) Source(43, 17) + SourceIndex(0) --- >>> i = 2; 1 >^^^^^^^^ @@ -863,11 +863,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > = 4 > 2 5 > ; -1 >Emitted(49, 9) Source(44, 9) + SourceIndex(0) name (f) -2 >Emitted(49, 10) Source(44, 10) + SourceIndex(0) name (f) -3 >Emitted(49, 13) Source(44, 13) + SourceIndex(0) name (f) -4 >Emitted(49, 14) Source(44, 14) + SourceIndex(0) name (f) -5 >Emitted(49, 15) Source(44, 15) + SourceIndex(0) name (f) +1 >Emitted(49, 9) Source(44, 9) + SourceIndex(0) +2 >Emitted(49, 10) Source(44, 10) + SourceIndex(0) +3 >Emitted(49, 13) Source(44, 13) + SourceIndex(0) +4 >Emitted(49, 14) Source(44, 14) + SourceIndex(0) +5 >Emitted(49, 15) Source(44, 15) + SourceIndex(0) --- >>> z = 10; 1->^^^^^^^^ @@ -881,11 +881,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > = 4 > 10 5 > ; -1->Emitted(50, 9) Source(45, 9) + SourceIndex(0) name (f) -2 >Emitted(50, 10) Source(45, 10) + SourceIndex(0) name (f) -3 >Emitted(50, 13) Source(45, 13) + SourceIndex(0) name (f) -4 >Emitted(50, 15) Source(45, 15) + SourceIndex(0) name (f) -5 >Emitted(50, 16) Source(45, 16) + SourceIndex(0) name (f) +1->Emitted(50, 9) Source(45, 9) + SourceIndex(0) +2 >Emitted(50, 10) Source(45, 10) + SourceIndex(0) +3 >Emitted(50, 13) Source(45, 13) + SourceIndex(0) +4 >Emitted(50, 15) Source(45, 15) + SourceIndex(0) +5 >Emitted(50, 16) Source(45, 16) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -894,8 +894,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(51, 5) Source(46, 5) + SourceIndex(0) name (f) -2 >Emitted(51, 6) Source(46, 6) + SourceIndex(0) name (f) +1 >Emitted(51, 5) Source(46, 5) + SourceIndex(0) +2 >Emitted(51, 6) Source(46, 6) + SourceIndex(0) --- >>> switch (obj.z) { 1->^^^^ @@ -919,16 +919,16 @@ sourceFile:sourceMapValidationStatements.ts 8 > ) 9 > 10> { -1->Emitted(52, 5) Source(47, 5) + SourceIndex(0) name (f) -2 >Emitted(52, 11) Source(47, 11) + SourceIndex(0) name (f) -3 >Emitted(52, 12) Source(47, 12) + SourceIndex(0) name (f) -4 >Emitted(52, 13) Source(47, 13) + SourceIndex(0) name (f) -5 >Emitted(52, 16) Source(47, 16) + SourceIndex(0) name (f) -6 >Emitted(52, 17) Source(47, 17) + SourceIndex(0) name (f) -7 >Emitted(52, 18) Source(47, 18) + SourceIndex(0) name (f) -8 >Emitted(52, 19) Source(47, 19) + SourceIndex(0) name (f) -9 >Emitted(52, 20) Source(47, 20) + SourceIndex(0) name (f) -10>Emitted(52, 21) Source(47, 21) + SourceIndex(0) name (f) +1->Emitted(52, 5) Source(47, 5) + SourceIndex(0) +2 >Emitted(52, 11) Source(47, 11) + SourceIndex(0) +3 >Emitted(52, 12) Source(47, 12) + SourceIndex(0) +4 >Emitted(52, 13) Source(47, 13) + SourceIndex(0) +5 >Emitted(52, 16) Source(47, 16) + SourceIndex(0) +6 >Emitted(52, 17) Source(47, 17) + SourceIndex(0) +7 >Emitted(52, 18) Source(47, 18) + SourceIndex(0) +8 >Emitted(52, 19) Source(47, 19) + SourceIndex(0) +9 >Emitted(52, 20) Source(47, 20) + SourceIndex(0) +10>Emitted(52, 21) Source(47, 21) + SourceIndex(0) --- >>> case 0: { 1 >^^^^^^^^ @@ -942,11 +942,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > 0 4 > : 5 > { -1 >Emitted(53, 9) Source(48, 9) + SourceIndex(0) name (f) -2 >Emitted(53, 14) Source(48, 14) + SourceIndex(0) name (f) -3 >Emitted(53, 15) Source(48, 15) + SourceIndex(0) name (f) -4 >Emitted(53, 17) Source(48, 17) + SourceIndex(0) name (f) -5 >Emitted(53, 18) Source(48, 18) + SourceIndex(0) name (f) +1 >Emitted(53, 9) Source(48, 9) + SourceIndex(0) +2 >Emitted(53, 14) Source(48, 14) + SourceIndex(0) +3 >Emitted(53, 15) Source(48, 15) + SourceIndex(0) +4 >Emitted(53, 17) Source(48, 17) + SourceIndex(0) +5 >Emitted(53, 18) Source(48, 18) + SourceIndex(0) --- >>> x++; 1 >^^^^^^^^^^^^ @@ -959,10 +959,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > x 3 > ++ 4 > ; -1 >Emitted(54, 13) Source(49, 13) + SourceIndex(0) name (f) -2 >Emitted(54, 14) Source(49, 14) + SourceIndex(0) name (f) -3 >Emitted(54, 16) Source(49, 16) + SourceIndex(0) name (f) -4 >Emitted(54, 17) Source(49, 17) + SourceIndex(0) name (f) +1 >Emitted(54, 13) Source(49, 13) + SourceIndex(0) +2 >Emitted(54, 14) Source(49, 14) + SourceIndex(0) +3 >Emitted(54, 16) Source(49, 16) + SourceIndex(0) +4 >Emitted(54, 17) Source(49, 17) + SourceIndex(0) --- >>> break; 1->^^^^^^^^^^^^ @@ -972,9 +972,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > break 3 > ; -1->Emitted(55, 13) Source(50, 13) + SourceIndex(0) name (f) -2 >Emitted(55, 18) Source(50, 18) + SourceIndex(0) name (f) -3 >Emitted(55, 19) Source(50, 19) + SourceIndex(0) name (f) +1->Emitted(55, 13) Source(50, 13) + SourceIndex(0) +2 >Emitted(55, 18) Source(50, 18) + SourceIndex(0) +3 >Emitted(55, 19) Source(50, 19) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -984,8 +984,8 @@ sourceFile:sourceMapValidationStatements.ts > > 2 > } -1 >Emitted(56, 9) Source(52, 9) + SourceIndex(0) name (f) -2 >Emitted(56, 10) Source(52, 10) + SourceIndex(0) name (f) +1 >Emitted(56, 9) Source(52, 9) + SourceIndex(0) +2 >Emitted(56, 10) Source(52, 10) + SourceIndex(0) --- >>> case 1: { 1->^^^^^^^^ @@ -999,11 +999,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > 1 4 > : 5 > { -1->Emitted(57, 9) Source(53, 9) + SourceIndex(0) name (f) -2 >Emitted(57, 14) Source(53, 14) + SourceIndex(0) name (f) -3 >Emitted(57, 15) Source(53, 15) + SourceIndex(0) name (f) -4 >Emitted(57, 17) Source(53, 17) + SourceIndex(0) name (f) -5 >Emitted(57, 18) Source(53, 18) + SourceIndex(0) name (f) +1->Emitted(57, 9) Source(53, 9) + SourceIndex(0) +2 >Emitted(57, 14) Source(53, 14) + SourceIndex(0) +3 >Emitted(57, 15) Source(53, 15) + SourceIndex(0) +4 >Emitted(57, 17) Source(53, 17) + SourceIndex(0) +5 >Emitted(57, 18) Source(53, 18) + SourceIndex(0) --- >>> x--; 1 >^^^^^^^^^^^^ @@ -1016,10 +1016,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > x 3 > -- 4 > ; -1 >Emitted(58, 13) Source(54, 13) + SourceIndex(0) name (f) -2 >Emitted(58, 14) Source(54, 14) + SourceIndex(0) name (f) -3 >Emitted(58, 16) Source(54, 16) + SourceIndex(0) name (f) -4 >Emitted(58, 17) Source(54, 17) + SourceIndex(0) name (f) +1 >Emitted(58, 13) Source(54, 13) + SourceIndex(0) +2 >Emitted(58, 14) Source(54, 14) + SourceIndex(0) +3 >Emitted(58, 16) Source(54, 16) + SourceIndex(0) +4 >Emitted(58, 17) Source(54, 17) + SourceIndex(0) --- >>> break; 1->^^^^^^^^^^^^ @@ -1029,9 +1029,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > break 3 > ; -1->Emitted(59, 13) Source(55, 13) + SourceIndex(0) name (f) -2 >Emitted(59, 18) Source(55, 18) + SourceIndex(0) name (f) -3 >Emitted(59, 19) Source(55, 19) + SourceIndex(0) name (f) +1->Emitted(59, 13) Source(55, 13) + SourceIndex(0) +2 >Emitted(59, 18) Source(55, 18) + SourceIndex(0) +3 >Emitted(59, 19) Source(55, 19) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -1041,8 +1041,8 @@ sourceFile:sourceMapValidationStatements.ts > > 2 > } -1 >Emitted(60, 9) Source(57, 9) + SourceIndex(0) name (f) -2 >Emitted(60, 10) Source(57, 10) + SourceIndex(0) name (f) +1 >Emitted(60, 9) Source(57, 9) + SourceIndex(0) +2 >Emitted(60, 10) Source(57, 10) + SourceIndex(0) --- >>> default: { 1->^^^^^^^^ @@ -1053,9 +1053,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > default: 3 > { -1->Emitted(61, 9) Source(58, 9) + SourceIndex(0) name (f) -2 >Emitted(61, 18) Source(58, 18) + SourceIndex(0) name (f) -3 >Emitted(61, 19) Source(58, 19) + SourceIndex(0) name (f) +1->Emitted(61, 9) Source(58, 9) + SourceIndex(0) +2 >Emitted(61, 18) Source(58, 18) + SourceIndex(0) +3 >Emitted(61, 19) Source(58, 19) + SourceIndex(0) --- >>> x *= 2; 1->^^^^^^^^^^^^ @@ -1070,11 +1070,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > *= 4 > 2 5 > ; -1->Emitted(62, 13) Source(59, 13) + SourceIndex(0) name (f) -2 >Emitted(62, 14) Source(59, 14) + SourceIndex(0) name (f) -3 >Emitted(62, 18) Source(59, 18) + SourceIndex(0) name (f) -4 >Emitted(62, 19) Source(59, 19) + SourceIndex(0) name (f) -5 >Emitted(62, 20) Source(59, 20) + SourceIndex(0) name (f) +1->Emitted(62, 13) Source(59, 13) + SourceIndex(0) +2 >Emitted(62, 14) Source(59, 14) + SourceIndex(0) +3 >Emitted(62, 18) Source(59, 18) + SourceIndex(0) +4 >Emitted(62, 19) Source(59, 19) + SourceIndex(0) +5 >Emitted(62, 20) Source(59, 20) + SourceIndex(0) --- >>> x = 50; 1->^^^^^^^^^^^^ @@ -1088,11 +1088,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > = 4 > 50 5 > ; -1->Emitted(63, 13) Source(60, 13) + SourceIndex(0) name (f) -2 >Emitted(63, 14) Source(60, 14) + SourceIndex(0) name (f) -3 >Emitted(63, 17) Source(60, 17) + SourceIndex(0) name (f) -4 >Emitted(63, 19) Source(60, 19) + SourceIndex(0) name (f) -5 >Emitted(63, 20) Source(60, 20) + SourceIndex(0) name (f) +1->Emitted(63, 13) Source(60, 13) + SourceIndex(0) +2 >Emitted(63, 14) Source(60, 14) + SourceIndex(0) +3 >Emitted(63, 17) Source(60, 17) + SourceIndex(0) +4 >Emitted(63, 19) Source(60, 19) + SourceIndex(0) +5 >Emitted(63, 20) Source(60, 20) + SourceIndex(0) --- >>> break; 1 >^^^^^^^^^^^^ @@ -1102,9 +1102,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > break 3 > ; -1 >Emitted(64, 13) Source(61, 13) + SourceIndex(0) name (f) -2 >Emitted(64, 18) Source(61, 18) + SourceIndex(0) name (f) -3 >Emitted(64, 19) Source(61, 19) + SourceIndex(0) name (f) +1 >Emitted(64, 13) Source(61, 13) + SourceIndex(0) +2 >Emitted(64, 18) Source(61, 18) + SourceIndex(0) +3 >Emitted(64, 19) Source(61, 19) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -1113,8 +1113,8 @@ sourceFile:sourceMapValidationStatements.ts > > 2 > } -1 >Emitted(65, 9) Source(63, 9) + SourceIndex(0) name (f) -2 >Emitted(65, 10) Source(63, 10) + SourceIndex(0) name (f) +1 >Emitted(65, 9) Source(63, 9) + SourceIndex(0) +2 >Emitted(65, 10) Source(63, 10) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -1123,8 +1123,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(66, 5) Source(64, 5) + SourceIndex(0) name (f) -2 >Emitted(66, 6) Source(64, 6) + SourceIndex(0) name (f) +1 >Emitted(66, 5) Source(64, 5) + SourceIndex(0) +2 >Emitted(66, 6) Source(64, 6) + SourceIndex(0) --- >>> while (x < 10) { 1->^^^^ @@ -1142,13 +1142,13 @@ sourceFile:sourceMapValidationStatements.ts 5 > 10 6 > ) 7 > { -1->Emitted(67, 5) Source(65, 5) + SourceIndex(0) name (f) -2 >Emitted(67, 12) Source(65, 12) + SourceIndex(0) name (f) -3 >Emitted(67, 13) Source(65, 13) + SourceIndex(0) name (f) -4 >Emitted(67, 16) Source(65, 16) + SourceIndex(0) name (f) -5 >Emitted(67, 18) Source(65, 18) + SourceIndex(0) name (f) -6 >Emitted(67, 20) Source(65, 20) + SourceIndex(0) name (f) -7 >Emitted(67, 21) Source(65, 21) + SourceIndex(0) name (f) +1->Emitted(67, 5) Source(65, 5) + SourceIndex(0) +2 >Emitted(67, 12) Source(65, 12) + SourceIndex(0) +3 >Emitted(67, 13) Source(65, 13) + SourceIndex(0) +4 >Emitted(67, 16) Source(65, 16) + SourceIndex(0) +5 >Emitted(67, 18) Source(65, 18) + SourceIndex(0) +6 >Emitted(67, 20) Source(65, 20) + SourceIndex(0) +7 >Emitted(67, 21) Source(65, 21) + SourceIndex(0) --- >>> x++; 1 >^^^^^^^^ @@ -1160,10 +1160,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > x 3 > ++ 4 > ; -1 >Emitted(68, 9) Source(66, 9) + SourceIndex(0) name (f) -2 >Emitted(68, 10) Source(66, 10) + SourceIndex(0) name (f) -3 >Emitted(68, 12) Source(66, 12) + SourceIndex(0) name (f) -4 >Emitted(68, 13) Source(66, 13) + SourceIndex(0) name (f) +1 >Emitted(68, 9) Source(66, 9) + SourceIndex(0) +2 >Emitted(68, 10) Source(66, 10) + SourceIndex(0) +3 >Emitted(68, 12) Source(66, 12) + SourceIndex(0) +4 >Emitted(68, 13) Source(66, 13) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -1172,8 +1172,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 > } -1 >Emitted(69, 5) Source(67, 5) + SourceIndex(0) name (f) -2 >Emitted(69, 6) Source(67, 6) + SourceIndex(0) name (f) +1 >Emitted(69, 5) Source(67, 5) + SourceIndex(0) +2 >Emitted(69, 6) Source(67, 6) + SourceIndex(0) --- >>> do { 1->^^^^ @@ -1184,9 +1184,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > do 3 > { -1->Emitted(70, 5) Source(68, 5) + SourceIndex(0) name (f) -2 >Emitted(70, 8) Source(68, 8) + SourceIndex(0) name (f) -3 >Emitted(70, 9) Source(68, 9) + SourceIndex(0) name (f) +1->Emitted(70, 5) Source(68, 5) + SourceIndex(0) +2 >Emitted(70, 8) Source(68, 8) + SourceIndex(0) +3 >Emitted(70, 9) Source(68, 9) + SourceIndex(0) --- >>> x--; 1->^^^^^^^^ @@ -1199,10 +1199,10 @@ sourceFile:sourceMapValidationStatements.ts 2 > x 3 > -- 4 > ; -1->Emitted(71, 9) Source(69, 9) + SourceIndex(0) name (f) -2 >Emitted(71, 10) Source(69, 10) + SourceIndex(0) name (f) -3 >Emitted(71, 12) Source(69, 12) + SourceIndex(0) name (f) -4 >Emitted(71, 13) Source(69, 13) + SourceIndex(0) name (f) +1->Emitted(71, 9) Source(69, 9) + SourceIndex(0) +2 >Emitted(71, 10) Source(69, 10) + SourceIndex(0) +3 >Emitted(71, 12) Source(69, 12) + SourceIndex(0) +4 >Emitted(71, 13) Source(69, 13) + SourceIndex(0) --- >>> } while (x > 4); 1->^^^^ @@ -1220,13 +1220,13 @@ sourceFile:sourceMapValidationStatements.ts 5 > > 6 > 4 7 > ) -1->Emitted(72, 5) Source(70, 5) + SourceIndex(0) name (f) -2 >Emitted(72, 6) Source(70, 6) + SourceIndex(0) name (f) -3 >Emitted(72, 14) Source(70, 14) + SourceIndex(0) name (f) -4 >Emitted(72, 15) Source(70, 15) + SourceIndex(0) name (f) -5 >Emitted(72, 18) Source(70, 18) + SourceIndex(0) name (f) -6 >Emitted(72, 19) Source(70, 19) + SourceIndex(0) name (f) -7 >Emitted(72, 21) Source(70, 20) + SourceIndex(0) name (f) +1->Emitted(72, 5) Source(70, 5) + SourceIndex(0) +2 >Emitted(72, 6) Source(70, 6) + SourceIndex(0) +3 >Emitted(72, 14) Source(70, 14) + SourceIndex(0) +4 >Emitted(72, 15) Source(70, 15) + SourceIndex(0) +5 >Emitted(72, 18) Source(70, 18) + SourceIndex(0) +6 >Emitted(72, 19) Source(70, 19) + SourceIndex(0) +7 >Emitted(72, 21) Source(70, 20) + SourceIndex(0) --- >>> x = y; 1 >^^^^ @@ -1241,11 +1241,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > = 4 > y 5 > ; -1 >Emitted(73, 5) Source(71, 5) + SourceIndex(0) name (f) -2 >Emitted(73, 6) Source(71, 6) + SourceIndex(0) name (f) -3 >Emitted(73, 9) Source(71, 9) + SourceIndex(0) name (f) -4 >Emitted(73, 10) Source(71, 10) + SourceIndex(0) name (f) -5 >Emitted(73, 11) Source(71, 11) + SourceIndex(0) name (f) +1 >Emitted(73, 5) Source(71, 5) + SourceIndex(0) +2 >Emitted(73, 6) Source(71, 6) + SourceIndex(0) +3 >Emitted(73, 9) Source(71, 9) + SourceIndex(0) +4 >Emitted(73, 10) Source(71, 10) + SourceIndex(0) +5 >Emitted(73, 11) Source(71, 11) + SourceIndex(0) --- >>> var z = (x == 1) ? x + 1 : x - 1; 1->^^^^ @@ -1285,24 +1285,24 @@ sourceFile:sourceMapValidationStatements.ts 16> - 17> 1 18> ; -1->Emitted(74, 5) Source(72, 5) + SourceIndex(0) name (f) -2 >Emitted(74, 9) Source(72, 9) + SourceIndex(0) name (f) -3 >Emitted(74, 10) Source(72, 10) + SourceIndex(0) name (f) -4 >Emitted(74, 13) Source(72, 13) + SourceIndex(0) name (f) -5 >Emitted(74, 14) Source(72, 14) + SourceIndex(0) name (f) -6 >Emitted(74, 15) Source(72, 15) + SourceIndex(0) name (f) -7 >Emitted(74, 19) Source(72, 19) + SourceIndex(0) name (f) -8 >Emitted(74, 20) Source(72, 20) + SourceIndex(0) name (f) -9 >Emitted(74, 21) Source(72, 21) + SourceIndex(0) name (f) -10>Emitted(74, 24) Source(72, 24) + SourceIndex(0) name (f) -11>Emitted(74, 25) Source(72, 25) + SourceIndex(0) name (f) -12>Emitted(74, 28) Source(72, 28) + SourceIndex(0) name (f) -13>Emitted(74, 29) Source(72, 29) + SourceIndex(0) name (f) -14>Emitted(74, 32) Source(72, 32) + SourceIndex(0) name (f) -15>Emitted(74, 33) Source(72, 33) + SourceIndex(0) name (f) -16>Emitted(74, 36) Source(72, 36) + SourceIndex(0) name (f) -17>Emitted(74, 37) Source(72, 37) + SourceIndex(0) name (f) -18>Emitted(74, 38) Source(72, 38) + SourceIndex(0) name (f) +1->Emitted(74, 5) Source(72, 5) + SourceIndex(0) +2 >Emitted(74, 9) Source(72, 9) + SourceIndex(0) +3 >Emitted(74, 10) Source(72, 10) + SourceIndex(0) +4 >Emitted(74, 13) Source(72, 13) + SourceIndex(0) +5 >Emitted(74, 14) Source(72, 14) + SourceIndex(0) +6 >Emitted(74, 15) Source(72, 15) + SourceIndex(0) +7 >Emitted(74, 19) Source(72, 19) + SourceIndex(0) +8 >Emitted(74, 20) Source(72, 20) + SourceIndex(0) +9 >Emitted(74, 21) Source(72, 21) + SourceIndex(0) +10>Emitted(74, 24) Source(72, 24) + SourceIndex(0) +11>Emitted(74, 25) Source(72, 25) + SourceIndex(0) +12>Emitted(74, 28) Source(72, 28) + SourceIndex(0) +13>Emitted(74, 29) Source(72, 29) + SourceIndex(0) +14>Emitted(74, 32) Source(72, 32) + SourceIndex(0) +15>Emitted(74, 33) Source(72, 33) + SourceIndex(0) +16>Emitted(74, 36) Source(72, 36) + SourceIndex(0) +17>Emitted(74, 37) Source(72, 37) + SourceIndex(0) +18>Emitted(74, 38) Source(72, 38) + SourceIndex(0) --- >>> (x == 1) ? x + 1 : x - 1; 1 >^^^^ @@ -1336,21 +1336,21 @@ sourceFile:sourceMapValidationStatements.ts 13> - 14> 1 15> ; -1 >Emitted(75, 5) Source(73, 5) + SourceIndex(0) name (f) -2 >Emitted(75, 6) Source(73, 6) + SourceIndex(0) name (f) -3 >Emitted(75, 7) Source(73, 7) + SourceIndex(0) name (f) -4 >Emitted(75, 11) Source(73, 11) + SourceIndex(0) name (f) -5 >Emitted(75, 12) Source(73, 12) + SourceIndex(0) name (f) -6 >Emitted(75, 13) Source(73, 13) + SourceIndex(0) name (f) -7 >Emitted(75, 16) Source(73, 16) + SourceIndex(0) name (f) -8 >Emitted(75, 17) Source(73, 17) + SourceIndex(0) name (f) -9 >Emitted(75, 20) Source(73, 20) + SourceIndex(0) name (f) -10>Emitted(75, 21) Source(73, 21) + SourceIndex(0) name (f) -11>Emitted(75, 24) Source(73, 24) + SourceIndex(0) name (f) -12>Emitted(75, 25) Source(73, 25) + SourceIndex(0) name (f) -13>Emitted(75, 28) Source(73, 28) + SourceIndex(0) name (f) -14>Emitted(75, 29) Source(73, 29) + SourceIndex(0) name (f) -15>Emitted(75, 30) Source(73, 30) + SourceIndex(0) name (f) +1 >Emitted(75, 5) Source(73, 5) + SourceIndex(0) +2 >Emitted(75, 6) Source(73, 6) + SourceIndex(0) +3 >Emitted(75, 7) Source(73, 7) + SourceIndex(0) +4 >Emitted(75, 11) Source(73, 11) + SourceIndex(0) +5 >Emitted(75, 12) Source(73, 12) + SourceIndex(0) +6 >Emitted(75, 13) Source(73, 13) + SourceIndex(0) +7 >Emitted(75, 16) Source(73, 16) + SourceIndex(0) +8 >Emitted(75, 17) Source(73, 17) + SourceIndex(0) +9 >Emitted(75, 20) Source(73, 20) + SourceIndex(0) +10>Emitted(75, 21) Source(73, 21) + SourceIndex(0) +11>Emitted(75, 24) Source(73, 24) + SourceIndex(0) +12>Emitted(75, 25) Source(73, 25) + SourceIndex(0) +13>Emitted(75, 28) Source(73, 28) + SourceIndex(0) +14>Emitted(75, 29) Source(73, 29) + SourceIndex(0) +15>Emitted(75, 30) Source(73, 30) + SourceIndex(0) --- >>> x === 1; 1 >^^^^ @@ -1365,11 +1365,11 @@ sourceFile:sourceMapValidationStatements.ts 3 > === 4 > 1 5 > ; -1 >Emitted(76, 5) Source(74, 5) + SourceIndex(0) name (f) -2 >Emitted(76, 6) Source(74, 6) + SourceIndex(0) name (f) -3 >Emitted(76, 11) Source(74, 11) + SourceIndex(0) name (f) -4 >Emitted(76, 12) Source(74, 12) + SourceIndex(0) name (f) -5 >Emitted(76, 13) Source(74, 13) + SourceIndex(0) name (f) +1 >Emitted(76, 5) Source(74, 5) + SourceIndex(0) +2 >Emitted(76, 6) Source(74, 6) + SourceIndex(0) +3 >Emitted(76, 11) Source(74, 11) + SourceIndex(0) +4 >Emitted(76, 12) Source(74, 12) + SourceIndex(0) +5 >Emitted(76, 13) Source(74, 13) + SourceIndex(0) --- >>> x = z = 40; 1->^^^^ @@ -1387,13 +1387,13 @@ sourceFile:sourceMapValidationStatements.ts 5 > = 6 > 40 7 > ; -1->Emitted(77, 5) Source(75, 5) + SourceIndex(0) name (f) -2 >Emitted(77, 6) Source(75, 6) + SourceIndex(0) name (f) -3 >Emitted(77, 9) Source(75, 9) + SourceIndex(0) name (f) -4 >Emitted(77, 10) Source(75, 10) + SourceIndex(0) name (f) -5 >Emitted(77, 13) Source(75, 13) + SourceIndex(0) name (f) -6 >Emitted(77, 15) Source(75, 15) + SourceIndex(0) name (f) -7 >Emitted(77, 16) Source(75, 16) + SourceIndex(0) name (f) +1->Emitted(77, 5) Source(75, 5) + SourceIndex(0) +2 >Emitted(77, 6) Source(75, 6) + SourceIndex(0) +3 >Emitted(77, 9) Source(75, 9) + SourceIndex(0) +4 >Emitted(77, 10) Source(75, 10) + SourceIndex(0) +5 >Emitted(77, 13) Source(75, 13) + SourceIndex(0) +6 >Emitted(77, 15) Source(75, 15) + SourceIndex(0) +7 >Emitted(77, 16) Source(75, 16) + SourceIndex(0) --- >>> eval("y"); 1 >^^^^ @@ -1409,12 +1409,12 @@ sourceFile:sourceMapValidationStatements.ts 4 > "y" 5 > ) 6 > ; -1 >Emitted(78, 5) Source(76, 5) + SourceIndex(0) name (f) -2 >Emitted(78, 9) Source(76, 9) + SourceIndex(0) name (f) -3 >Emitted(78, 10) Source(76, 10) + SourceIndex(0) name (f) -4 >Emitted(78, 13) Source(76, 13) + SourceIndex(0) name (f) -5 >Emitted(78, 14) Source(76, 14) + SourceIndex(0) name (f) -6 >Emitted(78, 15) Source(76, 15) + SourceIndex(0) name (f) +1 >Emitted(78, 5) Source(76, 5) + SourceIndex(0) +2 >Emitted(78, 9) Source(76, 9) + SourceIndex(0) +3 >Emitted(78, 10) Source(76, 10) + SourceIndex(0) +4 >Emitted(78, 13) Source(76, 13) + SourceIndex(0) +5 >Emitted(78, 14) Source(76, 14) + SourceIndex(0) +6 >Emitted(78, 15) Source(76, 15) + SourceIndex(0) --- >>> return; 1 >^^^^ @@ -1424,9 +1424,9 @@ sourceFile:sourceMapValidationStatements.ts > 2 > return 3 > ; -1 >Emitted(79, 5) Source(77, 5) + SourceIndex(0) name (f) -2 >Emitted(79, 11) Source(77, 11) + SourceIndex(0) name (f) -3 >Emitted(79, 12) Source(77, 12) + SourceIndex(0) name (f) +1 >Emitted(79, 5) Source(77, 5) + SourceIndex(0) +2 >Emitted(79, 11) Source(77, 11) + SourceIndex(0) +3 >Emitted(79, 12) Source(77, 12) + SourceIndex(0) --- >>>} 1 > @@ -1435,8 +1435,8 @@ sourceFile:sourceMapValidationStatements.ts 1 > > 2 >} -1 >Emitted(80, 1) Source(78, 1) + SourceIndex(0) name (f) -2 >Emitted(80, 2) Source(78, 2) + SourceIndex(0) name (f) +1 >Emitted(80, 1) Source(78, 1) + SourceIndex(0) +2 >Emitted(80, 2) Source(78, 2) + SourceIndex(0) --- >>>var b = function () { 1-> diff --git a/tests/baselines/reference/sourceMapValidationWithComments.js b/tests/baselines/reference/sourceMapValidationWithComments.js index 53577271b77..653dcf3c90c 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.js +++ b/tests/baselines/reference/sourceMapValidationWithComments.js @@ -41,5 +41,5 @@ var DebugClass = (function () { return true; }; return DebugClass; -})(); +}()); //# sourceMappingURL=sourceMapValidationWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationWithComments.js.map b/tests/baselines/reference/sourceMapValidationWithComments.js.map index 59c8ee5748e..4b41c707235 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.js.map +++ b/tests/baselines/reference/sourceMapValidationWithComments.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationWithComments.js.map] -{"version":3,"file":"sourceMapValidationWithComments.js","sourceRoot":"","sources":["sourceMapValidationWithComments.ts"],"names":["DebugClass","DebugClass.constructor","DebugClass.debugFunc"],"mappings":"AAAA;IAAAA;IAoBAC,CAACA;IAlBiBD,oBAASA,GAAvBA;QAEIE,2BAA2BA;QAC3BA,IAAIA,CAACA,GAAGA,CAACA,CAACA;QACVA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,CAACA,EAAEA,CAACA;QACJA,yBAAyBA;QAGzBA,MAAMA,CAACA,IAAIA,CAACA;IAChBA,CAACA;IACLF,iBAACA;AAADA,CAACA,AApBD,IAoBC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationWithComments.js","sourceRoot":"","sources":["sourceMapValidationWithComments.ts"],"names":[],"mappings":"AAAA;IAAA;IAoBA,CAAC;IAlBiB,oBAAS,GAAvB;QAEI,2BAA2B;QAC3B,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;QACJ,yBAAyB;QAGzB,MAAM,CAAC,IAAI,CAAC;IAChB,CAAC;IACL,iBAAC;AAAD,CAAC,AApBD,IAoBC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt b/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt index 239a418183f..89d60b87c7d 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationWithComments.sourcemap.txt @@ -18,7 +18,7 @@ sourceFile:sourceMapValidationWithComments.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (DebugClass) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -46,8 +46,8 @@ sourceFile:sourceMapValidationWithComments.ts > } > 2 > } -1->Emitted(3, 5) Source(21, 1) + SourceIndex(0) name (DebugClass.constructor) -2 >Emitted(3, 6) Source(21, 2) + SourceIndex(0) name (DebugClass.constructor) +1->Emitted(3, 5) Source(21, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(21, 2) + SourceIndex(0) --- >>> DebugClass.debugFunc = function () { 1->^^^^ @@ -57,9 +57,9 @@ sourceFile:sourceMapValidationWithComments.ts 1-> 2 > debugFunc 3 > -1->Emitted(4, 5) Source(3, 19) + SourceIndex(0) name (DebugClass) -2 >Emitted(4, 25) Source(3, 28) + SourceIndex(0) name (DebugClass) -3 >Emitted(4, 28) Source(3, 5) + SourceIndex(0) name (DebugClass) +1->Emitted(4, 5) Source(3, 19) + SourceIndex(0) +2 >Emitted(4, 25) Source(3, 28) + SourceIndex(0) +3 >Emitted(4, 28) Source(3, 5) + SourceIndex(0) --- >>> // Start Debugger Test Code 1->^^^^^^^^ @@ -68,8 +68,8 @@ sourceFile:sourceMapValidationWithComments.ts > > 2 > // Start Debugger Test Code -1->Emitted(5, 9) Source(5, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(5, 36) Source(5, 36) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(5, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(5, 36) Source(5, 36) + SourceIndex(0) --- >>> var i = 0; 1 >^^^^^^^^ @@ -85,12 +85,12 @@ sourceFile:sourceMapValidationWithComments.ts 4 > = 5 > 0 6 > ; -1 >Emitted(6, 9) Source(6, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(6, 13) Source(6, 13) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(6, 14) Source(6, 14) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(6, 17) Source(6, 17) + SourceIndex(0) name (DebugClass.debugFunc) -5 >Emitted(6, 18) Source(6, 18) + SourceIndex(0) name (DebugClass.debugFunc) -6 >Emitted(6, 19) Source(6, 19) + SourceIndex(0) name (DebugClass.debugFunc) +1 >Emitted(6, 9) Source(6, 9) + SourceIndex(0) +2 >Emitted(6, 13) Source(6, 13) + SourceIndex(0) +3 >Emitted(6, 14) Source(6, 14) + SourceIndex(0) +4 >Emitted(6, 17) Source(6, 17) + SourceIndex(0) +5 >Emitted(6, 18) Source(6, 18) + SourceIndex(0) +6 >Emitted(6, 19) Source(6, 19) + SourceIndex(0) --- >>> i++; 1 >^^^^^^^^ @@ -103,10 +103,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1 >Emitted(7, 9) Source(7, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(7, 10) Source(7, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(7, 12) Source(7, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(7, 13) Source(7, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1 >Emitted(7, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(7, 10) Source(7, 10) + SourceIndex(0) +3 >Emitted(7, 12) Source(7, 12) + SourceIndex(0) +4 >Emitted(7, 13) Source(7, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -119,10 +119,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(8, 9) Source(8, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(8, 13) Source(8, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(8, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(8, 10) Source(8, 10) + SourceIndex(0) +3 >Emitted(8, 12) Source(8, 12) + SourceIndex(0) +4 >Emitted(8, 13) Source(8, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -135,10 +135,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(9, 9) Source(9, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(9, 10) Source(9, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(9, 13) Source(9, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(9, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(9, 10) Source(9, 10) + SourceIndex(0) +3 >Emitted(9, 12) Source(9, 12) + SourceIndex(0) +4 >Emitted(9, 13) Source(9, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -151,10 +151,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(10, 9) Source(10, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(10, 10) Source(10, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(10, 12) Source(10, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(10, 13) Source(10, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(10, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(10, 10) Source(10, 10) + SourceIndex(0) +3 >Emitted(10, 12) Source(10, 12) + SourceIndex(0) +4 >Emitted(10, 13) Source(10, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -167,10 +167,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(11, 9) Source(11, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(11, 10) Source(11, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(11, 12) Source(11, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(11, 13) Source(11, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(11, 9) Source(11, 9) + SourceIndex(0) +2 >Emitted(11, 10) Source(11, 10) + SourceIndex(0) +3 >Emitted(11, 12) Source(11, 12) + SourceIndex(0) +4 >Emitted(11, 13) Source(11, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -183,10 +183,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(12, 9) Source(12, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(12, 12) Source(12, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(12, 13) Source(12, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(12, 9) Source(12, 9) + SourceIndex(0) +2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(12, 12) Source(12, 12) + SourceIndex(0) +4 >Emitted(12, 13) Source(12, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -199,10 +199,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(13, 9) Source(13, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(13, 10) Source(13, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(13, 12) Source(13, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(13, 13) Source(13, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(13, 9) Source(13, 9) + SourceIndex(0) +2 >Emitted(13, 10) Source(13, 10) + SourceIndex(0) +3 >Emitted(13, 12) Source(13, 12) + SourceIndex(0) +4 >Emitted(13, 13) Source(13, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -215,10 +215,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(14, 9) Source(14, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(14, 10) Source(14, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(14, 12) Source(14, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(14, 13) Source(14, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(14, 9) Source(14, 9) + SourceIndex(0) +2 >Emitted(14, 10) Source(14, 10) + SourceIndex(0) +3 >Emitted(14, 12) Source(14, 12) + SourceIndex(0) +4 >Emitted(14, 13) Source(14, 13) + SourceIndex(0) --- >>> i++; 1->^^^^^^^^ @@ -231,10 +231,10 @@ sourceFile:sourceMapValidationWithComments.ts 2 > i 3 > ++ 4 > ; -1->Emitted(15, 9) Source(15, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(15, 10) Source(15, 10) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(15, 12) Source(15, 12) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(15, 13) Source(15, 13) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(15, 9) Source(15, 9) + SourceIndex(0) +2 >Emitted(15, 10) Source(15, 10) + SourceIndex(0) +3 >Emitted(15, 12) Source(15, 12) + SourceIndex(0) +4 >Emitted(15, 13) Source(15, 13) + SourceIndex(0) --- >>> // End Debugger Test Code 1->^^^^^^^^ @@ -242,8 +242,8 @@ sourceFile:sourceMapValidationWithComments.ts 1-> > 2 > // End Debugger Test Code -1->Emitted(16, 9) Source(16, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(16, 34) Source(16, 34) + SourceIndex(0) name (DebugClass.debugFunc) +1->Emitted(16, 9) Source(16, 9) + SourceIndex(0) +2 >Emitted(16, 34) Source(16, 34) + SourceIndex(0) --- >>> return true; 1 >^^^^^^^^ @@ -259,11 +259,11 @@ sourceFile:sourceMapValidationWithComments.ts 3 > 4 > true 5 > ; -1 >Emitted(17, 9) Source(19, 9) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(17, 15) Source(19, 15) + SourceIndex(0) name (DebugClass.debugFunc) -3 >Emitted(17, 16) Source(19, 16) + SourceIndex(0) name (DebugClass.debugFunc) -4 >Emitted(17, 20) Source(19, 20) + SourceIndex(0) name (DebugClass.debugFunc) -5 >Emitted(17, 21) Source(19, 21) + SourceIndex(0) name (DebugClass.debugFunc) +1 >Emitted(17, 9) Source(19, 9) + SourceIndex(0) +2 >Emitted(17, 15) Source(19, 15) + SourceIndex(0) +3 >Emitted(17, 16) Source(19, 16) + SourceIndex(0) +4 >Emitted(17, 20) Source(19, 20) + SourceIndex(0) +5 >Emitted(17, 21) Source(19, 21) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -272,8 +272,8 @@ sourceFile:sourceMapValidationWithComments.ts 1 > > 2 > } -1 >Emitted(18, 5) Source(20, 5) + SourceIndex(0) name (DebugClass.debugFunc) -2 >Emitted(18, 6) Source(20, 6) + SourceIndex(0) name (DebugClass.debugFunc) +1 >Emitted(18, 5) Source(20, 5) + SourceIndex(0) +2 >Emitted(18, 6) Source(20, 6) + SourceIndex(0) --- >>> return DebugClass; 1->^^^^ @@ -281,10 +281,10 @@ sourceFile:sourceMapValidationWithComments.ts 1-> > 2 > } -1->Emitted(19, 5) Source(21, 1) + SourceIndex(0) name (DebugClass) -2 >Emitted(19, 22) Source(21, 2) + SourceIndex(0) name (DebugClass) +1->Emitted(19, 5) Source(21, 1) + SourceIndex(0) +2 >Emitted(19, 22) Source(21, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -314,8 +314,8 @@ sourceFile:sourceMapValidationWithComments.ts > return true; > } > } -1 >Emitted(20, 1) Source(21, 1) + SourceIndex(0) name (DebugClass) -2 >Emitted(20, 2) Source(21, 2) + SourceIndex(0) name (DebugClass) +1 >Emitted(20, 1) Source(21, 1) + SourceIndex(0) +2 >Emitted(20, 2) Source(21, 2) + SourceIndex(0) 3 >Emitted(20, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(20, 6) Source(21, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js index 37ef08d97fb..a41eea9cb28 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js @@ -17,10 +17,10 @@ var c = (function () { function c() { } return c; -})(); +}()); var d = (function () { function d() { } return d; -})(); +}()); //# sourceMappingURL=fooResult.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js.map b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js.map index d10b3f8f281..f34c47f2210 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js.map +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.js.map @@ -1,2 +1,2 @@ //// [fooResult.js.map] -{"version":3,"file":"fooResult.js","sourceRoot":"","sources":["../testFiles/app.ts","../testFiles/app2.ts"],"names":["c","c.constructor","d","d.constructor"],"mappings":"AAAA,gFAAgF;AAChF,wIAAwI;AACxI;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC;ACHD;IAAAE;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"fooResult.js","sourceRoot":"","sources":["../testFiles/app.ts","../testFiles/app2.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wIAAwI;AACxI;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC;ACHD;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.sourcemap.txt b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.sourcemap.txt index fdc67bf563d..fa1ae2e7221 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.sourcemap.txt +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.sourcemap.txt @@ -37,7 +37,7 @@ sourceFile:../testFiles/app.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -46,18 +46,18 @@ sourceFile:../testFiles/app.ts 1->class c { > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (c.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return c; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) name (c) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -68,8 +68,8 @@ sourceFile:../testFiles/app.ts 3 > 4 > class c { > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (c) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -87,7 +87,7 @@ sourceFile:../testFiles/app2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) name (d) +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -96,18 +96,18 @@ sourceFile:../testFiles/app2.ts 1->class d { > 2 > } -1->Emitted(10, 5) Source(2, 1) + SourceIndex(1) name (d.constructor) -2 >Emitted(10, 6) Source(2, 2) + SourceIndex(1) name (d.constructor) +1->Emitted(10, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(2, 2) + SourceIndex(1) --- >>> return d; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) name (d) -2 >Emitted(11, 13) Source(2, 2) + SourceIndex(1) name (d) +1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(11, 13) Source(2, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -118,8 +118,8 @@ sourceFile:../testFiles/app2.ts 3 > 4 > class d { > } -1 >Emitted(12, 1) Source(2, 1) + SourceIndex(1) name (d) -2 >Emitted(12, 2) Source(2, 2) + SourceIndex(1) name (d) +1 >Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 2) Source(2, 2) + SourceIndex(1) 3 >Emitted(12, 2) Source(1, 1) + SourceIndex(1) 4 >Emitted(12, 6) Source(2, 2) + SourceIndex(1) --- diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js index 148a66f15db..3872068e7c2 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js @@ -17,11 +17,11 @@ var c = (function () { function c() { } return c; -})(); +}()); //# sourceMappingURL=app.js.map//// [app2.js] var d = (function () { function d() { } return d; -})(); +}()); //# sourceMappingURL=app2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js.map b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js.map index 5317cf7c306..7a172c4e0a7 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js.map +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.js.map @@ -1,3 +1,3 @@ //// [app.js.map] -{"version":3,"file":"app.js","sourceRoot":"","sources":["../testFiles/app.ts"],"names":["c","c.constructor"],"mappings":"AAAA,gFAAgF;AAChF,wIAAwI;AACxI;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"}//// [app2.js.map] -{"version":3,"file":"app2.js","sourceRoot":"","sources":["../testFiles/app2.ts"],"names":["d","d.constructor"],"mappings":"AAAA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"app.js","sourceRoot":"","sources":["../testFiles/app.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,wIAAwI;AACxI;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"}//// [app2.js.map] +{"version":3,"file":"app2.js","sourceRoot":"","sources":["../testFiles/app2.ts"],"names":[],"mappings":"AAAA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.sourcemap.txt b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.sourcemap.txt index 44dd1b41048..bea8c2c6a9d 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.sourcemap.txt +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.sourcemap.txt @@ -37,7 +37,7 @@ sourceFile:../testFiles/app.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -46,18 +46,18 @@ sourceFile:../testFiles/app.ts 1->class c { > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (c.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return c; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) name (c) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -68,8 +68,8 @@ sourceFile:../testFiles/app.ts 3 > 4 > class c { > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (c) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -93,7 +93,7 @@ sourceFile:../testFiles/app2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (d) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -102,18 +102,18 @@ sourceFile:../testFiles/app2.ts 1->class d { > 2 > } -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (d.constructor) -2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) name (d.constructor) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) --- >>> return d; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (d) -2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) name (d) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -124,8 +124,8 @@ sourceFile:../testFiles/app2.ts 3 > 4 > class d { > } -1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) name (d) -2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) name (d) +1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(2, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js index 81f627ebedc..7e891c57656 100644 --- a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js @@ -28,7 +28,7 @@ var m1; function c1() { } return c1; - })(); + }()); m1.c1 = c1; })(m1 || (m1 = {})); //# sourceMappingURL=fooResult.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js.map b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js.map index bac55383fff..39f552b2002 100644 --- a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js.map +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.js.map @@ -1,2 +1,2 @@ //// [fooResult.js.map] -{"version":3,"file":"fooResult.js","sourceRoot":"","sources":["tests/cases/compiler/a.ts","tests/cases/compiler/b.ts"],"names":["M","m1","m1.c1","m1.c1.constructor"],"mappings":"AAAA,IAAO,CAAC,CAEP;AAFD,WAAO,CAAC,EAAC,CAAC;IACKA,GAACA,GAAGA,CAACA,CAACA;AACrBA,CAACA,EAFM,CAAC,KAAD,CAAC,QAEP;ACFD,IAAO,EAAE,CAGR;AAHD,WAAO,EAAE,EAAC,CAAC;IACPC;QAAAC;QACAC,CAACA;QAADD,SAACA;IAADA,CAACA,AADDD,IACCA;IADYA,KAAEA,KACdA,CAAAA;AACLA,CAACA,EAHM,EAAE,KAAF,EAAE,QAGR"} \ No newline at end of file +{"version":3,"file":"fooResult.js","sourceRoot":"","sources":["tests/cases/compiler/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":"AAAA,IAAO,CAAC,CAEP;AAFD,WAAO,CAAC,EAAC,CAAC;IACK,GAAC,GAAG,CAAC,CAAC;AACrB,CAAC,EAFM,CAAC,KAAD,CAAC,QAEP;ACFD,IAAO,EAAE,CAGR;AAHD,WAAO,EAAE,EAAC,CAAC;IACP;QAAA;QACA,CAAC;QAAD,SAAC;IAAD,CAAC,AADD,IACC;IADY,KAAE,KACd,CAAA;AACL,CAAC,EAHM,EAAE,KAAF,EAAE,QAGR"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.sourcemap.txt b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.sourcemap.txt index 63d4cec6ef1..e0f2a3cbbba 100644 --- a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.sourcemap.txt +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.sourcemap.txt @@ -55,11 +55,11 @@ sourceFile:tests/cases/compiler/a.ts 3 > = 4 > 1 5 > ; -1 >Emitted(3, 5) Source(2, 16) + SourceIndex(0) name (M) -2 >Emitted(3, 8) Source(2, 17) + SourceIndex(0) name (M) -3 >Emitted(3, 11) Source(2, 20) + SourceIndex(0) name (M) -4 >Emitted(3, 12) Source(2, 21) + SourceIndex(0) name (M) -5 >Emitted(3, 13) Source(2, 22) + SourceIndex(0) name (M) +1 >Emitted(3, 5) Source(2, 16) + SourceIndex(0) +2 >Emitted(3, 8) Source(2, 17) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 20) + SourceIndex(0) +4 >Emitted(3, 12) Source(2, 21) + SourceIndex(0) +5 >Emitted(3, 13) Source(2, 22) + SourceIndex(0) --- >>>})(M || (M = {})); 1-> @@ -79,8 +79,8 @@ sourceFile:tests/cases/compiler/a.ts 7 > { > export var X = 1; > } -1->Emitted(4, 1) Source(3, 1) + SourceIndex(0) name (M) -2 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) name (M) +1->Emitted(4, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) 3 >Emitted(4, 4) Source(1, 8) + SourceIndex(0) 4 >Emitted(4, 5) Source(1, 9) + SourceIndex(0) 5 >Emitted(4, 10) Source(1, 8) + SourceIndex(0) @@ -132,13 +132,13 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) name (m1) +1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) --- >>> function c1() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(8, 9) Source(2, 5) + SourceIndex(1) name (m1.c1) +1->Emitted(8, 9) Source(2, 5) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -147,18 +147,18 @@ sourceFile:tests/cases/compiler/b.ts 1->export class c1 { > 2 > } -1->Emitted(9, 9) Source(3, 5) + SourceIndex(1) name (m1.c1.constructor) -2 >Emitted(9, 10) Source(3, 6) + SourceIndex(1) name (m1.c1.constructor) +1->Emitted(9, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(9, 10) Source(3, 6) + SourceIndex(1) --- >>> return c1; 1->^^^^^^^^ 2 > ^^^^^^^^^ 1-> 2 > } -1->Emitted(10, 9) Source(3, 5) + SourceIndex(1) name (m1.c1) -2 >Emitted(10, 18) Source(3, 6) + SourceIndex(1) name (m1.c1) +1->Emitted(10, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(10, 18) Source(3, 6) + SourceIndex(1) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -169,10 +169,10 @@ sourceFile:tests/cases/compiler/b.ts 3 > 4 > export class c1 { > } -1 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) name (m1.c1) -2 >Emitted(11, 6) Source(3, 6) + SourceIndex(1) name (m1.c1) -3 >Emitted(11, 6) Source(2, 5) + SourceIndex(1) name (m1) -4 >Emitted(11, 10) Source(3, 6) + SourceIndex(1) name (m1) +1 >Emitted(11, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(11, 6) Source(3, 6) + SourceIndex(1) +3 >Emitted(11, 6) Source(2, 5) + SourceIndex(1) +4 >Emitted(11, 10) Source(3, 6) + SourceIndex(1) --- >>> m1.c1 = c1; 1->^^^^ @@ -185,10 +185,10 @@ sourceFile:tests/cases/compiler/b.ts 3 > { > } 4 > -1->Emitted(12, 5) Source(2, 18) + SourceIndex(1) name (m1) -2 >Emitted(12, 10) Source(2, 20) + SourceIndex(1) name (m1) -3 >Emitted(12, 15) Source(3, 6) + SourceIndex(1) name (m1) -4 >Emitted(12, 16) Source(3, 6) + SourceIndex(1) name (m1) +1->Emitted(12, 5) Source(2, 18) + SourceIndex(1) +2 >Emitted(12, 10) Source(2, 20) + SourceIndex(1) +3 >Emitted(12, 15) Source(3, 6) + SourceIndex(1) +4 >Emitted(12, 16) Source(3, 6) + SourceIndex(1) --- >>>})(m1 || (m1 = {})); 1-> @@ -210,8 +210,8 @@ sourceFile:tests/cases/compiler/b.ts > export class c1 { > } > } -1->Emitted(13, 1) Source(4, 1) + SourceIndex(1) name (m1) -2 >Emitted(13, 2) Source(4, 2) + SourceIndex(1) name (m1) +1->Emitted(13, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(13, 2) Source(4, 2) + SourceIndex(1) 3 >Emitted(13, 4) Source(1, 8) + SourceIndex(1) 4 >Emitted(13, 6) Source(1, 10) + SourceIndex(1) 5 >Emitted(13, 11) Source(1, 8) + SourceIndex(1) diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js index 50a3a2f3bc8..b1da77bdb67 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js @@ -17,10 +17,10 @@ var c = (function () { function c() { } return c; -})(); +}()); var d = (function () { function d() { } return d; -})(); +}()); //# sourceMappingURL=fooResult.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js.map b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js.map index 200edeccc5b..57e8ff29865 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js.map +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.js.map @@ -1,2 +1,2 @@ //// [fooResult.js.map] -{"version":3,"file":"fooResult.js","sourceRoot":"","sources":["app.ts","app2.ts"],"names":["c","c.constructor","d","d.constructor"],"mappings":"AAAA,gFAAgF;AAChF,0GAA0G;AAC1G;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC;ACHD;IAAAE;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"fooResult.js","sourceRoot":"","sources":["app.ts","app2.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0GAA0G;AAC1G;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC;ACHD;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.sourcemap.txt b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.sourcemap.txt index 790d64c7963..25b3d6cfeaf 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.sourcemap.txt +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.sourcemap.txt @@ -37,7 +37,7 @@ sourceFile:app.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -46,18 +46,18 @@ sourceFile:app.ts 1->class c { > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (c.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return c; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) name (c) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -68,8 +68,8 @@ sourceFile:app.ts 3 > 4 > class c { > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (c) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -87,7 +87,7 @@ sourceFile:app2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) name (d) +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -96,18 +96,18 @@ sourceFile:app2.ts 1->class d { > 2 > } -1->Emitted(10, 5) Source(2, 1) + SourceIndex(1) name (d.constructor) -2 >Emitted(10, 6) Source(2, 2) + SourceIndex(1) name (d.constructor) +1->Emitted(10, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(2, 2) + SourceIndex(1) --- >>> return d; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) name (d) -2 >Emitted(11, 13) Source(2, 2) + SourceIndex(1) name (d) +1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(11, 13) Source(2, 2) + SourceIndex(1) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -118,8 +118,8 @@ sourceFile:app2.ts 3 > 4 > class d { > } -1 >Emitted(12, 1) Source(2, 1) + SourceIndex(1) name (d) -2 >Emitted(12, 2) Source(2, 2) + SourceIndex(1) name (d) +1 >Emitted(12, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(12, 2) Source(2, 2) + SourceIndex(1) 3 >Emitted(12, 2) Source(1, 1) + SourceIndex(1) 4 >Emitted(12, 6) Source(2, 2) + SourceIndex(1) --- diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js index 4dc043e0ce7..0abd131f0f9 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js @@ -17,11 +17,11 @@ var c = (function () { function c() { } return c; -})(); +}()); //# sourceMappingURL=app.js.map//// [app2.js] var d = (function () { function d() { } return d; -})(); +}()); //# sourceMappingURL=app2.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js.map b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js.map index 97826d80eb8..5025ed2212a 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js.map +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.js.map @@ -1,3 +1,3 @@ //// [app.js.map] -{"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":["c","c.constructor"],"mappings":"AAAA,gFAAgF;AAChF,0GAA0G;AAC1G;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"}//// [app2.js.map] -{"version":3,"file":"app2.js","sourceRoot":"","sources":["app2.ts"],"names":["d","d.constructor"],"mappings":"AAAA;IAAAA;IACAC,CAACA;IAADD,QAACA;AAADA,CAACA,AADD,IACC"} \ No newline at end of file +{"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0GAA0G;AAC1G;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"}//// [app2.js.map] +{"version":3,"file":"app2.js","sourceRoot":"","sources":["app2.ts"],"names":[],"mappings":"AAAA;IAAA;IACA,CAAC;IAAD,QAAC;AAAD,CAAC,AADD,IACC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.sourcemap.txt b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.sourcemap.txt index 6987b7bbd21..7b4b590fad6 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.sourcemap.txt +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.sourcemap.txt @@ -37,7 +37,7 @@ sourceFile:app.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) name (c) +1->Emitted(4, 5) Source(3, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -46,18 +46,18 @@ sourceFile:app.ts 1->class c { > 2 > } -1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) name (c.constructor) -2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) name (c.constructor) +1->Emitted(5, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(5, 6) Source(4, 2) + SourceIndex(0) --- >>> return c; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) name (c) +1->Emitted(6, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 13) Source(4, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -68,8 +68,8 @@ sourceFile:app.ts 3 > 4 > class c { > } -1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) name (c) -2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) name (c) +1 >Emitted(7, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(4, 2) + SourceIndex(0) 3 >Emitted(7, 2) Source(3, 1) + SourceIndex(0) 4 >Emitted(7, 6) Source(4, 2) + SourceIndex(0) --- @@ -93,7 +93,7 @@ sourceFile:app2.ts 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) name (d) +1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -102,18 +102,18 @@ sourceFile:app2.ts 1->class d { > 2 > } -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) name (d.constructor) -2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) name (d.constructor) +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 6) Source(2, 2) + SourceIndex(0) --- >>> return d; 1->^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) name (d) -2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) name (d) +1->Emitted(4, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 13) Source(2, 2) + SourceIndex(0) --- ->>>})(); +>>>}()); 1 > 2 >^ 3 > @@ -124,8 +124,8 @@ sourceFile:app2.ts 3 > 4 > class d { > } -1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) name (d) -2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) name (d) +1 >Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 2) Source(2, 2) + SourceIndex(0) 3 >Emitted(5, 2) Source(1, 1) + SourceIndex(0) 4 >Emitted(5, 6) Source(2, 2) + SourceIndex(0) --- diff --git a/tests/baselines/reference/sourcemapValidationDuplicateNames.js b/tests/baselines/reference/sourcemapValidationDuplicateNames.js index 5fe519acc5b..360635fe74d 100644 --- a/tests/baselines/reference/sourcemapValidationDuplicateNames.js +++ b/tests/baselines/reference/sourcemapValidationDuplicateNames.js @@ -16,7 +16,7 @@ var m1; function c() { } return c; - })(); + }()); m1.c = c; })(m1 || (m1 = {})); var m1; diff --git a/tests/baselines/reference/sourcemapValidationDuplicateNames.js.map b/tests/baselines/reference/sourcemapValidationDuplicateNames.js.map index 65bb725231c..c32505b01ae 100644 --- a/tests/baselines/reference/sourcemapValidationDuplicateNames.js.map +++ b/tests/baselines/reference/sourcemapValidationDuplicateNames.js.map @@ -1,2 +1,2 @@ //// [sourcemapValidationDuplicateNames.js.map] -{"version":3,"file":"sourcemapValidationDuplicateNames.js","sourceRoot":"","sources":["sourcemapValidationDuplicateNames.ts"],"names":["m1","m1.c","m1.c.constructor"],"mappings":"AAAA,IAAO,EAAE,CAIR;AAJD,WAAO,EAAE,EAAC,CAAC;IACPA,IAAIA,CAACA,GAAGA,EAAEA,CAACA;IACXA;QAAAC;QACAC,CAACA;QAADD,QAACA;IAADA,CAACA,AADDD,IACCA;IADYA,IAACA,IACbA,CAAAA;AACLA,CAACA,EAJM,EAAE,KAAF,EAAE,QAIR;AACD,IAAO,EAAE,CAER;AAFD,WAAO,EAAE,EAAC,CAAC;IACPA,IAAIA,CAACA,GAAGA,IAAIA,EAAEA,CAACA,CAACA,EAAEA,CAACA;AACvBA,CAACA,EAFM,EAAE,KAAF,EAAE,QAER"} \ No newline at end of file +{"version":3,"file":"sourcemapValidationDuplicateNames.js","sourceRoot":"","sources":["sourcemapValidationDuplicateNames.ts"],"names":[],"mappings":"AAAA,IAAO,EAAE,CAIR;AAJD,WAAO,EAAE,EAAC,CAAC;IACP,IAAI,CAAC,GAAG,EAAE,CAAC;IACX;QAAA;QACA,CAAC;QAAD,QAAC;IAAD,CAAC,AADD,IACC;IADY,IAAC,IACb,CAAA;AACL,CAAC,EAJM,EAAE,KAAF,EAAE,QAIR;AACD,IAAO,EAAE,CAER;AAFD,WAAO,EAAE,EAAC,CAAC;IACP,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;AACvB,CAAC,EAFM,EAAE,KAAF,EAAE,QAER"} \ No newline at end of file diff --git a/tests/baselines/reference/sourcemapValidationDuplicateNames.sourcemap.txt b/tests/baselines/reference/sourcemapValidationDuplicateNames.sourcemap.txt index a5d1f637a15..5e67d69a517 100644 --- a/tests/baselines/reference/sourcemapValidationDuplicateNames.sourcemap.txt +++ b/tests/baselines/reference/sourcemapValidationDuplicateNames.sourcemap.txt @@ -59,25 +59,25 @@ sourceFile:sourcemapValidationDuplicateNames.ts 4 > = 5 > 10 6 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) name (m1) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) name (m1) -3 >Emitted(3, 10) Source(2, 10) + SourceIndex(0) name (m1) -4 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) name (m1) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) name (m1) -6 >Emitted(3, 16) Source(2, 16) + SourceIndex(0) name (m1) +1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(3, 10) Source(2, 10) + SourceIndex(0) +4 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) +5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +6 >Emitted(3, 16) Source(2, 16) + SourceIndex(0) --- >>> var c = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(4, 5) Source(3, 5) + SourceIndex(0) name (m1) +1->Emitted(4, 5) Source(3, 5) + SourceIndex(0) --- >>> function c() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(5, 9) Source(3, 5) + SourceIndex(0) name (m1.c) +1->Emitted(5, 9) Source(3, 5) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -86,18 +86,18 @@ sourceFile:sourcemapValidationDuplicateNames.ts 1->export class c { > 2 > } -1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) name (m1.c.constructor) -2 >Emitted(6, 10) Source(4, 6) + SourceIndex(0) name (m1.c.constructor) +1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) +2 >Emitted(6, 10) Source(4, 6) + SourceIndex(0) --- >>> return c; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(7, 9) Source(4, 5) + SourceIndex(0) name (m1.c) -2 >Emitted(7, 17) Source(4, 6) + SourceIndex(0) name (m1.c) +1->Emitted(7, 9) Source(4, 5) + SourceIndex(0) +2 >Emitted(7, 17) Source(4, 6) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -108,10 +108,10 @@ sourceFile:sourcemapValidationDuplicateNames.ts 3 > 4 > export class c { > } -1 >Emitted(8, 5) Source(4, 5) + SourceIndex(0) name (m1.c) -2 >Emitted(8, 6) Source(4, 6) + SourceIndex(0) name (m1.c) -3 >Emitted(8, 6) Source(3, 5) + SourceIndex(0) name (m1) -4 >Emitted(8, 10) Source(4, 6) + SourceIndex(0) name (m1) +1 >Emitted(8, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(4, 6) + SourceIndex(0) +3 >Emitted(8, 6) Source(3, 5) + SourceIndex(0) +4 >Emitted(8, 10) Source(4, 6) + SourceIndex(0) --- >>> m1.c = c; 1->^^^^ @@ -124,10 +124,10 @@ sourceFile:sourcemapValidationDuplicateNames.ts 3 > { > } 4 > -1->Emitted(9, 5) Source(3, 18) + SourceIndex(0) name (m1) -2 >Emitted(9, 9) Source(3, 19) + SourceIndex(0) name (m1) -3 >Emitted(9, 13) Source(4, 6) + SourceIndex(0) name (m1) -4 >Emitted(9, 14) Source(4, 6) + SourceIndex(0) name (m1) +1->Emitted(9, 5) Source(3, 18) + SourceIndex(0) +2 >Emitted(9, 9) Source(3, 19) + SourceIndex(0) +3 >Emitted(9, 13) Source(4, 6) + SourceIndex(0) +4 >Emitted(9, 14) Source(4, 6) + SourceIndex(0) --- >>>})(m1 || (m1 = {})); 1-> @@ -149,8 +149,8 @@ sourceFile:sourcemapValidationDuplicateNames.ts > export class c { > } > } -1->Emitted(10, 1) Source(5, 1) + SourceIndex(0) name (m1) -2 >Emitted(10, 2) Source(5, 2) + SourceIndex(0) name (m1) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(5, 2) + SourceIndex(0) 3 >Emitted(10, 4) Source(1, 8) + SourceIndex(0) 4 >Emitted(10, 6) Source(1, 10) + SourceIndex(0) 5 >Emitted(10, 11) Source(1, 8) + SourceIndex(0) @@ -215,16 +215,16 @@ sourceFile:sourcemapValidationDuplicateNames.ts 8 > c 9 > () 10> ; -1->Emitted(13, 5) Source(7, 5) + SourceIndex(0) name (m1) -2 >Emitted(13, 9) Source(7, 9) + SourceIndex(0) name (m1) -3 >Emitted(13, 10) Source(7, 10) + SourceIndex(0) name (m1) -4 >Emitted(13, 13) Source(7, 13) + SourceIndex(0) name (m1) -5 >Emitted(13, 17) Source(7, 17) + SourceIndex(0) name (m1) -6 >Emitted(13, 19) Source(7, 19) + SourceIndex(0) name (m1) -7 >Emitted(13, 20) Source(7, 20) + SourceIndex(0) name (m1) -8 >Emitted(13, 21) Source(7, 21) + SourceIndex(0) name (m1) -9 >Emitted(13, 23) Source(7, 23) + SourceIndex(0) name (m1) -10>Emitted(13, 24) Source(7, 24) + SourceIndex(0) name (m1) +1->Emitted(13, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(13, 9) Source(7, 9) + SourceIndex(0) +3 >Emitted(13, 10) Source(7, 10) + SourceIndex(0) +4 >Emitted(13, 13) Source(7, 13) + SourceIndex(0) +5 >Emitted(13, 17) Source(7, 17) + SourceIndex(0) +6 >Emitted(13, 19) Source(7, 19) + SourceIndex(0) +7 >Emitted(13, 20) Source(7, 20) + SourceIndex(0) +8 >Emitted(13, 21) Source(7, 21) + SourceIndex(0) +9 >Emitted(13, 23) Source(7, 23) + SourceIndex(0) +10>Emitted(13, 24) Source(7, 24) + SourceIndex(0) --- >>>})(m1 || (m1 = {})); 1 > @@ -245,8 +245,8 @@ sourceFile:sourcemapValidationDuplicateNames.ts 7 > { > var b = new m1.c(); > } -1 >Emitted(14, 1) Source(8, 1) + SourceIndex(0) name (m1) -2 >Emitted(14, 2) Source(8, 2) + SourceIndex(0) name (m1) +1 >Emitted(14, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(14, 2) Source(8, 2) + SourceIndex(0) 3 >Emitted(14, 4) Source(6, 8) + SourceIndex(0) 4 >Emitted(14, 6) Source(6, 10) + SourceIndex(0) 5 >Emitted(14, 11) Source(6, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/specializationOfExportedClass.js b/tests/baselines/reference/specializationOfExportedClass.js index 75ec00b7304..da39b6eca19 100644 --- a/tests/baselines/reference/specializationOfExportedClass.js +++ b/tests/baselines/reference/specializationOfExportedClass.js @@ -15,7 +15,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; })(M || (M = {})); var x = new M.C(); diff --git a/tests/baselines/reference/specializedInheritedConstructors1.js b/tests/baselines/reference/specializedInheritedConstructors1.js index 20ef13c3f09..f521ba14838 100644 --- a/tests/baselines/reference/specializedInheritedConstructors1.js +++ b/tests/baselines/reference/specializedInheritedConstructors1.js @@ -27,19 +27,19 @@ var View = (function () { function View(options) { } return View; -})(); +}()); var Model = (function () { function Model() { } return Model; -})(); +}()); var MyView = (function (_super) { __extends(MyView, _super); function MyView() { _super.apply(this, arguments); } return MyView; -})(View); +}(View)); var m = { model: new Model() }; var aView = new View({ model: new Model() }); var aView2 = new View(m); diff --git a/tests/baselines/reference/specializedLambdaTypeArguments.js b/tests/baselines/reference/specializedLambdaTypeArguments.js index 393b4f9e8c3..9e5e6778659 100644 --- a/tests/baselines/reference/specializedLambdaTypeArguments.js +++ b/tests/baselines/reference/specializedLambdaTypeArguments.js @@ -11,5 +11,5 @@ var X = (function () { function X() { } return X; -})(); +}()); var a; diff --git a/tests/baselines/reference/specializedOverloadWithRestParameters.js b/tests/baselines/reference/specializedOverloadWithRestParameters.js index 31cb4a69594..62688f7cb7e 100644 --- a/tests/baselines/reference/specializedOverloadWithRestParameters.js +++ b/tests/baselines/reference/specializedOverloadWithRestParameters.js @@ -23,7 +23,7 @@ var Base = (function () { } Base.prototype.foo = function () { }; return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { @@ -31,7 +31,7 @@ var Derived1 = (function (_super) { } Derived1.prototype.bar = function () { }; return Derived1; -})(Base); +}(Base)); function f(tagName) { return null; } diff --git a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.errors.txt b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.errors.txt index 6b705a0c34d..a9293a83a13 100644 --- a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.errors.txt +++ b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.errors.txt @@ -23,7 +23,7 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignat class C { foo(x: 'a'); - ~~~~~~~~~~~~ + ~~~ !!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature. foo(x: number); foo(x: any) { } @@ -31,7 +31,7 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignat class C2 { foo(x: 'a'); - ~~~~~~~~~~~~ + ~~~ !!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature. foo(x: T); foo(x: any) { } @@ -39,7 +39,7 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignat class C3 { foo(x: 'a'); - ~~~~~~~~~~~~ + ~~~ !!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature. foo(x: T); foo(x: any) { } diff --git a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js index e5e06d48a8d..f2946cbeab8 100644 --- a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js +++ b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js @@ -75,19 +75,19 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); var C2 = (function () { function C2() { } C2.prototype.foo = function (x) { }; return C2; -})(); +}()); var C3 = (function () { function C3() { } C3.prototype.foo = function (x) { }; return C3; -})(); +}()); var a; var a2; var a3; diff --git a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js index 17a886a0784..f4e7961226a 100644 --- a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js +++ b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js @@ -90,19 +90,19 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); var C2 = (function () { function C2() { } C2.prototype.foo = function (x) { }; return C2; -})(); +}()); var C3 = (function () { function C3() { } C3.prototype.foo = function (x) { }; return C3; -})(); +}()); var a; var a2; var a3; diff --git a/tests/baselines/reference/staticAndMemberFunctions.js b/tests/baselines/reference/staticAndMemberFunctions.js index 71f146b72f7..ddf47b941d4 100644 --- a/tests/baselines/reference/staticAndMemberFunctions.js +++ b/tests/baselines/reference/staticAndMemberFunctions.js @@ -11,4 +11,4 @@ var T = (function () { T.x = function () { }; T.prototype.y = function () { }; return T; -})(); +}()); diff --git a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js index be667ae1f3b..a5c7c5245e9 100644 --- a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js +++ b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js @@ -14,4 +14,4 @@ var C = (function () { C.prototype.f = function () { }; C.f = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/staticAsIdentifier.js b/tests/baselines/reference/staticAsIdentifier.js index 36e317b2875..e7751dfca96 100644 --- a/tests/baselines/reference/staticAsIdentifier.js +++ b/tests/baselines/reference/staticAsIdentifier.js @@ -9,4 +9,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/staticClassMemberError.js b/tests/baselines/reference/staticClassMemberError.js index e33cf2f2704..62166aef833 100644 --- a/tests/baselines/reference/staticClassMemberError.js +++ b/tests/baselines/reference/staticClassMemberError.js @@ -20,9 +20,9 @@ var C = (function () { s = 1; }; return C; -})(); +}()); var Foo = (function () { function Foo() { } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/staticClassProps.js b/tests/baselines/reference/staticClassProps.js index aad40e29b76..c808e4eb7fd 100644 --- a/tests/baselines/reference/staticClassProps.js +++ b/tests/baselines/reference/staticClassProps.js @@ -15,4 +15,4 @@ var C = (function () { C.prototype.foo = function () { }; C.z = 1; return C; -})(); +}()); diff --git a/tests/baselines/reference/staticFactory1.js b/tests/baselines/reference/staticFactory1.js index 03092a16de9..6ccd30e37d1 100644 --- a/tests/baselines/reference/staticFactory1.js +++ b/tests/baselines/reference/staticFactory1.js @@ -27,7 +27,7 @@ var Base = (function () { return new this(); }; return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -35,6 +35,6 @@ var Derived = (function (_super) { } Derived.prototype.foo = function () { return 2; }; return Derived; -})(Base); +}(Base)); var d = Derived.create(); d.foo(); diff --git a/tests/baselines/reference/staticGetter1.js b/tests/baselines/reference/staticGetter1.js index 3772364804a..bffc1e03da0 100644 --- a/tests/baselines/reference/staticGetter1.js +++ b/tests/baselines/reference/staticGetter1.js @@ -20,4 +20,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/staticGetter2.js b/tests/baselines/reference/staticGetter2.js index 419ea7bbedf..0f59f434be6 100644 --- a/tests/baselines/reference/staticGetter2.js +++ b/tests/baselines/reference/staticGetter2.js @@ -17,4 +17,4 @@ var C = (function () { return this; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/staticGetterAndSetter.js b/tests/baselines/reference/staticGetterAndSetter.js index 5c61af0b7cc..3ae3dfc7d1e 100644 --- a/tests/baselines/reference/staticGetterAndSetter.js +++ b/tests/baselines/reference/staticGetterAndSetter.js @@ -16,4 +16,4 @@ var Foo = (function () { configurable: true }); return Foo; -})(); +}()); diff --git a/tests/baselines/reference/staticIndexer.js b/tests/baselines/reference/staticIndexer.js index f945cf686b0..1be0be2c8da 100644 --- a/tests/baselines/reference/staticIndexer.js +++ b/tests/baselines/reference/staticIndexer.js @@ -8,4 +8,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/staticIndexers.js b/tests/baselines/reference/staticIndexers.js index 4c8a0bc1ec8..610e805a3c1 100644 --- a/tests/baselines/reference/staticIndexers.js +++ b/tests/baselines/reference/staticIndexers.js @@ -19,14 +19,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var E = (function () { function E() { } return E; -})(); +}()); diff --git a/tests/baselines/reference/staticInheritance.js b/tests/baselines/reference/staticInheritance.js index d3e14d482cc..52868930792 100644 --- a/tests/baselines/reference/staticInheritance.js +++ b/tests/baselines/reference/staticInheritance.js @@ -23,7 +23,7 @@ var A = (function () { this.p = doThing(A); // OK } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -32,5 +32,5 @@ var B = (function (_super) { this.p2 = doThing(B); // OK } return B; -})(A); +}(A)); doThing(B); //OK diff --git a/tests/baselines/reference/staticInstanceResolution.js b/tests/baselines/reference/staticInstanceResolution.js index de4e9bc9f0a..788a8634c2e 100644 --- a/tests/baselines/reference/staticInstanceResolution.js +++ b/tests/baselines/reference/staticInstanceResolution.js @@ -26,4 +26,4 @@ var Comment = (function () { c.getDocCommentText(); }; return Comment; -})(); +}()); diff --git a/tests/baselines/reference/staticInstanceResolution2.js b/tests/baselines/reference/staticInstanceResolution2.js index 07d5dd376df..3bfb52c6b65 100644 --- a/tests/baselines/reference/staticInstanceResolution2.js +++ b/tests/baselines/reference/staticInstanceResolution2.js @@ -16,11 +16,11 @@ var A = (function () { function A() { } return A; -})(); +}()); A.hasOwnProperty('foo'); var B = (function () { function B() { } return B; -})(); +}()); B.hasOwnProperty('foo'); diff --git a/tests/baselines/reference/staticInstanceResolution3.js b/tests/baselines/reference/staticInstanceResolution3.js index 265d3e5b3e6..238d1bdad13 100644 --- a/tests/baselines/reference/staticInstanceResolution3.js +++ b/tests/baselines/reference/staticInstanceResolution3.js @@ -21,7 +21,7 @@ var Promise = (function () { return null; }; return Promise; -})(); +}()); exports.Promise = Promise; //// [staticInstanceResolution3_1.js] "use strict"; diff --git a/tests/baselines/reference/staticInstanceResolution4.js b/tests/baselines/reference/staticInstanceResolution4.js index c74030d047e..ab98d9deb8e 100644 --- a/tests/baselines/reference/staticInstanceResolution4.js +++ b/tests/baselines/reference/staticInstanceResolution4.js @@ -11,5 +11,5 @@ var A = (function () { } A.prototype.foo = function () { }; return A; -})(); +}()); A.foo(); diff --git a/tests/baselines/reference/staticInterfaceAssignmentCompat.js b/tests/baselines/reference/staticInterfaceAssignmentCompat.js index b955474eb57..1368ffc2f73 100644 --- a/tests/baselines/reference/staticInterfaceAssignmentCompat.js +++ b/tests/baselines/reference/staticInterfaceAssignmentCompat.js @@ -20,5 +20,5 @@ var Shape = (function () { return new Shape(); }; return Shape; -})(); +}()); var x = Shape; diff --git a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js index 8f9849af057..a05ece1dbbb 100644 --- a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js +++ b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js @@ -22,7 +22,7 @@ var SomeBase = (function () { return 2; }; return SomeBase; -})(); +}()); var P = (function (_super) { __extends(P, _super); function P() { @@ -30,4 +30,4 @@ var P = (function (_super) { } P.SomeNumber = P.GetNumber(); return P; -})(SomeBase); +}(SomeBase)); diff --git a/tests/baselines/reference/staticMemberAssignsToConstructorFunctionMembers.js b/tests/baselines/reference/staticMemberAssignsToConstructorFunctionMembers.js index edd657d7da1..9f34914460c 100644 --- a/tests/baselines/reference/staticMemberAssignsToConstructorFunctionMembers.js +++ b/tests/baselines/reference/staticMemberAssignsToConstructorFunctionMembers.js @@ -26,4 +26,4 @@ var C = (function () { return 1; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/staticMemberExportAccess.js b/tests/baselines/reference/staticMemberExportAccess.js index 37799356708..58fddf445ee 100644 --- a/tests/baselines/reference/staticMemberExportAccess.js +++ b/tests/baselines/reference/staticMemberExportAccess.js @@ -29,7 +29,7 @@ var Sammy = (function () { return -1; }; return Sammy; -})(); +}()); var Sammy; (function (Sammy) { Sammy.x = 1; diff --git a/tests/baselines/reference/staticMemberInitialization.js b/tests/baselines/reference/staticMemberInitialization.js index 1e919b4f993..c21c29ed4f8 100644 --- a/tests/baselines/reference/staticMemberInitialization.js +++ b/tests/baselines/reference/staticMemberInitialization.js @@ -12,6 +12,6 @@ var C = (function () { } C.x = 1; return C; -})(); +}()); var c = new C(); var r = C.x; diff --git a/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js b/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js index 7b24a29b326..1b98daa226d 100644 --- a/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js +++ b/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js @@ -31,13 +31,13 @@ var B = (function () { } B.prototype.name = function () { }; return B; -})(); +}()); var C = (function () { function C() { } C.name = function () { }; return C; -})(); +}()); var a = new B(); a = new C(); // error name is missing a = B; // error name is missing diff --git a/tests/baselines/reference/staticMemberWithStringAndNumberNames.js b/tests/baselines/reference/staticMemberWithStringAndNumberNames.js index 2f48aba4f95..2fdd64ea04b 100644 --- a/tests/baselines/reference/staticMemberWithStringAndNumberNames.js +++ b/tests/baselines/reference/staticMemberWithStringAndNumberNames.js @@ -25,4 +25,4 @@ var C = (function () { C.s2 = C['0']; C.s3 = C[0]; return C; -})(); +}()); diff --git a/tests/baselines/reference/staticMembersUsingClassTypeParameter.js b/tests/baselines/reference/staticMembersUsingClassTypeParameter.js index 0c728cdbab6..c7355c01270 100644 --- a/tests/baselines/reference/staticMembersUsingClassTypeParameter.js +++ b/tests/baselines/reference/staticMembersUsingClassTypeParameter.js @@ -22,16 +22,16 @@ var C = (function () { } C.f = function (x) { }; return C; -})(); +}()); var C2 = (function () { function C2() { } C2.f = function (x) { }; return C2; -})(); +}()); var C3 = (function () { function C3() { } C3.f = function (x) { }; return C3; -})(); +}()); diff --git a/tests/baselines/reference/staticMethodReferencingTypeArgument1.js b/tests/baselines/reference/staticMethodReferencingTypeArgument1.js index 00ba0f14002..d4815aee2b6 100644 --- a/tests/baselines/reference/staticMethodReferencingTypeArgument1.js +++ b/tests/baselines/reference/staticMethodReferencingTypeArgument1.js @@ -31,6 +31,6 @@ var Editor; return entry; }; return List; - })(); + }()); Editor.List = List; })(Editor || (Editor = {})); diff --git a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js index 3a14dde6447..9b8987659c5 100644 --- a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js +++ b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js @@ -27,12 +27,12 @@ var privateClass = (function () { function privateClass() { } return privateClass; -})(); +}()); var publicClass = (function () { function publicClass() { } return publicClass; -})(); +}()); exports.publicClass = publicClass; var publicClassWithWithPrivateTypeParameters = (function () { function publicClassWithWithPrivateTypeParameters() { @@ -50,7 +50,7 @@ var publicClassWithWithPrivateTypeParameters = (function () { publicClassWithWithPrivateTypeParameters.prototype.myPublicMethod = function () { }; return publicClassWithWithPrivateTypeParameters; -})(); +}()); exports.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; diff --git a/tests/baselines/reference/staticMethodsReferencingClassTypeParameters.js b/tests/baselines/reference/staticMethodsReferencingClassTypeParameters.js index 76fa7d6249e..43c9ac9da03 100644 --- a/tests/baselines/reference/staticMethodsReferencingClassTypeParameters.js +++ b/tests/baselines/reference/staticMethodsReferencingClassTypeParameters.js @@ -9,4 +9,4 @@ var C = (function () { } C.s = function (p) { return p; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/staticModifierAlreadySeen.js b/tests/baselines/reference/staticModifierAlreadySeen.js index d767a9b51d1..76f8b050d6f 100644 --- a/tests/baselines/reference/staticModifierAlreadySeen.js +++ b/tests/baselines/reference/staticModifierAlreadySeen.js @@ -11,4 +11,4 @@ var C = (function () { C.bar = function () { }; C.foo = 1; return C; -})(); +}()); diff --git a/tests/baselines/reference/staticMustPrecedePublic.js b/tests/baselines/reference/staticMustPrecedePublic.js index 45882488e72..c01a06ff27c 100644 --- a/tests/baselines/reference/staticMustPrecedePublic.js +++ b/tests/baselines/reference/staticMustPrecedePublic.js @@ -10,4 +10,4 @@ var Outer = (function () { function Outer() { } return Outer; -})(); +}()); diff --git a/tests/baselines/reference/staticOffOfInstance1.js b/tests/baselines/reference/staticOffOfInstance1.js index 58cf24d0529..fa9f99f71fb 100644 --- a/tests/baselines/reference/staticOffOfInstance1.js +++ b/tests/baselines/reference/staticOffOfInstance1.js @@ -15,4 +15,4 @@ var List = (function () { }; List.Foo = function () { }; return List; -})(); +}()); diff --git a/tests/baselines/reference/staticOffOfInstance2.js b/tests/baselines/reference/staticOffOfInstance2.js index ceac77419a4..e23416e29dd 100644 --- a/tests/baselines/reference/staticOffOfInstance2.js +++ b/tests/baselines/reference/staticOffOfInstance2.js @@ -18,4 +18,4 @@ var List = (function () { }; List.Foo = function () { }; return List; -})(); +}()); diff --git a/tests/baselines/reference/staticPropSuper.js b/tests/baselines/reference/staticPropSuper.js index 3f75dc8e26b..f4bc5ece8d1 100644 --- a/tests/baselines/reference/staticPropSuper.js +++ b/tests/baselines/reference/staticPropSuper.js @@ -45,7 +45,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -54,7 +54,7 @@ var B = (function (_super) { } B.s = 9; return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -62,7 +62,7 @@ var C = (function (_super) { var x = 1; // should error } return C; -})(A); +}(A)); var D = (function (_super) { __extends(D, _super); function D() { @@ -70,7 +70,7 @@ var D = (function (_super) { var x = 1; // should error } return D; -})(A); +}(A)); var E = (function (_super) { __extends(E, _super); function E() { @@ -78,4 +78,4 @@ var E = (function (_super) { var x = 1; // should error } return E; -})(A); +}(A)); diff --git a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js index 50252c606f4..71db1ca8ef1 100644 --- a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js +++ b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js @@ -14,10 +14,10 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } D.prototype.f = function () { }; return D; -})(); +}()); diff --git a/tests/baselines/reference/staticPropertyNotInClassType.js b/tests/baselines/reference/staticPropertyNotInClassType.js index e9df2b2158d..60fd3b808ca 100644 --- a/tests/baselines/reference/staticPropertyNotInClassType.js +++ b/tests/baselines/reference/staticPropertyNotInClassType.js @@ -55,7 +55,7 @@ var NonGeneric; configurable: true }); return C; - })(); + }()); var C; (function (C) { C.bar = ''; // not reflected in class type @@ -81,7 +81,7 @@ var Generic; configurable: true }); return C; - })(); + }()); var C; (function (C) { C.bar = ''; // not reflected in class type diff --git a/tests/baselines/reference/staticPrototypeProperty.js b/tests/baselines/reference/staticPrototypeProperty.js index 471ec743b59..65e53b5522b 100644 --- a/tests/baselines/reference/staticPrototypeProperty.js +++ b/tests/baselines/reference/staticPrototypeProperty.js @@ -13,9 +13,9 @@ var C = (function () { } C.prototype = function () { }; return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/staticPrototypePropertyOnClass.js b/tests/baselines/reference/staticPrototypePropertyOnClass.js index 0782c47ee28..dff9a58073e 100644 --- a/tests/baselines/reference/staticPrototypePropertyOnClass.js +++ b/tests/baselines/reference/staticPrototypePropertyOnClass.js @@ -23,22 +23,22 @@ var c1 = (function () { function c1() { } return c1; -})(); +}()); var c2 = (function () { function c2() { } return c2; -})(); +}()); var c3 = (function () { function c3() { } return c3; -})(); +}()); var c4 = (function () { function c4(param) { } return c4; -})(); +}()); var a = c1; var b = c2; var c = c3; diff --git a/tests/baselines/reference/staticVisibility.js b/tests/baselines/reference/staticVisibility.js index 7dbf49a2baa..fd0a3ba52b0 100644 --- a/tests/baselines/reference/staticVisibility.js +++ b/tests/baselines/reference/staticVisibility.js @@ -52,7 +52,7 @@ var C1 = (function () { C1.s = 1; // should be ok }; return C1; -})(); +}()); var C2 = (function () { function C2() { this.barback = ""; @@ -66,4 +66,4 @@ var C2 = (function () { configurable: true }); return C2; -})(); +}()); diff --git a/tests/baselines/reference/statics.js b/tests/baselines/reference/statics.js index c69fa0aabd7..3776c09c8ce 100644 --- a/tests/baselines/reference/statics.js +++ b/tests/baselines/reference/statics.js @@ -49,7 +49,7 @@ var M; C.pub = 3; C.y = C.priv; return C; - })(); + }()); M.C = C; var c = C.y; function f() { diff --git a/tests/baselines/reference/staticsInConstructorBodies.js b/tests/baselines/reference/staticsInConstructorBodies.js index bb91b52a18a..9bc3ed29325 100644 --- a/tests/baselines/reference/staticsInConstructorBodies.js +++ b/tests/baselines/reference/staticsInConstructorBodies.js @@ -13,4 +13,4 @@ var C = (function () { C.m1 = function () { }; // ERROR C.p1 = 0; // ERROR return C; -})(); +}()); diff --git a/tests/baselines/reference/staticsNotInScopeInClodule.js b/tests/baselines/reference/staticsNotInScopeInClodule.js index 9274a04f8b7..150ae8aca5b 100644 --- a/tests/baselines/reference/staticsNotInScopeInClodule.js +++ b/tests/baselines/reference/staticsNotInScopeInClodule.js @@ -13,7 +13,7 @@ var Clod = (function () { } Clod.x = 10; return Clod; -})(); +}()); var Clod; (function (Clod) { var p = x; // x isn't in scope here diff --git a/tests/baselines/reference/strictModeInConstructor.js b/tests/baselines/reference/strictModeInConstructor.js index 7d1adc48fa0..3b315861548 100644 --- a/tests/baselines/reference/strictModeInConstructor.js +++ b/tests/baselines/reference/strictModeInConstructor.js @@ -70,7 +70,7 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -79,7 +79,7 @@ var B = (function (_super) { _super.call(this); } return B; -})(A); +}(A)); var C = (function (_super) { __extends(C, _super); function C() { @@ -88,7 +88,7 @@ var C = (function (_super) { "use strict"; } return C; -})(A); +}(A)); var D = (function (_super) { __extends(D, _super); function D() { @@ -98,7 +98,7 @@ var D = (function (_super) { "use strict"; } return D; -})(A); +}(A)); var Bs = (function (_super) { __extends(Bs, _super); function Bs() { @@ -107,7 +107,7 @@ var Bs = (function (_super) { } Bs.s = 9; return Bs; -})(A); +}(A)); var Cs = (function (_super) { __extends(Cs, _super); function Cs() { @@ -116,7 +116,7 @@ var Cs = (function (_super) { } Cs.s = 9; return Cs; -})(A); +}(A)); var Ds = (function (_super) { __extends(Ds, _super); function Ds() { @@ -126,4 +126,4 @@ var Ds = (function (_super) { } Ds.s = 9; return Ds; -})(A); +}(A)); diff --git a/tests/baselines/reference/strictModeReservedWord.errors.txt b/tests/baselines/reference/strictModeReservedWord.errors.txt index 6f6a387429d..02ece81a1d9 100644 --- a/tests/baselines/reference/strictModeReservedWord.errors.txt +++ b/tests/baselines/reference/strictModeReservedWord.errors.txt @@ -1,6 +1,8 @@ +tests/cases/compiler/strictModeReservedWord.ts(1,5): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. tests/cases/compiler/strictModeReservedWord.ts(5,9): error TS1212: Identifier expected. 'public' is a reserved word in strict mode tests/cases/compiler/strictModeReservedWord.ts(6,9): error TS1212: Identifier expected. 'static' is a reserved word in strict mode tests/cases/compiler/strictModeReservedWord.ts(7,9): error TS1212: Identifier expected. 'let' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(7,9): error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. tests/cases/compiler/strictModeReservedWord.ts(8,9): error TS1212: Identifier expected. 'package' is a reserved word in strict mode tests/cases/compiler/strictModeReservedWord.ts(8,9): error TS2300: Duplicate identifier 'package'. tests/cases/compiler/strictModeReservedWord.ts(9,14): error TS1212: Identifier expected. 'package' is a reserved word in strict mode @@ -41,8 +43,10 @@ tests/cases/compiler/strictModeReservedWord.ts(24,5): error TS1212: Identifier e tests/cases/compiler/strictModeReservedWord.ts(24,5): error TS2349: Cannot invoke an expression whose type lacks a call signature. -==== tests/cases/compiler/strictModeReservedWord.ts (41 errors) ==== +==== tests/cases/compiler/strictModeReservedWord.ts (43 errors) ==== let let = 10; + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. function foo() { "use strict" @@ -55,6 +59,8 @@ tests/cases/compiler/strictModeReservedWord.ts(24,5): error TS2349: Cannot invok let let = "blah"; ~~~ !!! error TS1212: Identifier expected. 'let' is a reserved word in strict mode + ~~~ +!!! error TS2480: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. var package = "hello" ~~~~~~~ !!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode diff --git a/tests/baselines/reference/strictModeReservedWord.js b/tests/baselines/reference/strictModeReservedWord.js index bec159dee6f..210d9ec75be 100644 --- a/tests/baselines/reference/strictModeReservedWord.js +++ b/tests/baselines/reference/strictModeReservedWord.js @@ -51,7 +51,7 @@ function foo() { _super.apply(this, arguments); } return package; - })(public); + }(public)); var b; function foo(x) { } function foo1(x) { } diff --git a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js index e4bef791374..281b4ade5d6 100644 --- a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js +++ b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js @@ -40,7 +40,7 @@ var Foo = (function () { } Foo.prototype.banana = function (x) { }; return Foo; -})(); +}()); var C = (function () { function C(public, let) { this.public = public; @@ -51,38 +51,38 @@ var C = (function () { }; C.prototype.pulbic = function () { }; // No Error; return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var E = (function () { function E() { } return E; -})(); +}()); var F = (function () { function F() { } return F; -})(); +}()); var F1 = (function () { function F1() { } return F1; -})(); +}()); var G = (function (_super) { __extends(G, _super); function G() { _super.apply(this, arguments); } return G; -})(package); +}(package)); var H = (function (_super) { __extends(H, _super); function H() { _super.apply(this, arguments); } return H; -})(package.A); +}(package.A)); diff --git a/tests/baselines/reference/strictModeUseContextualKeyword.js b/tests/baselines/reference/strictModeUseContextualKeyword.js index 33ceae36031..d21463f3b39 100644 --- a/tests/baselines/reference/strictModeUseContextualKeyword.js +++ b/tests/baselines/reference/strictModeUseContextualKeyword.js @@ -22,7 +22,7 @@ var C = (function () { } C.prototype.as = function () { }; return C; -})(); +}()); function F() { function as() { } } diff --git a/tests/baselines/reference/stringIndexerAndConstructor.js b/tests/baselines/reference/stringIndexerAndConstructor.js index db3b9b8770b..7e38cff7555 100644 --- a/tests/baselines/reference/stringIndexerAndConstructor.js +++ b/tests/baselines/reference/stringIndexerAndConstructor.js @@ -19,4 +19,4 @@ var C = (function () { } C.v = function () { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/stringIndexerAssignments2.js b/tests/baselines/reference/stringIndexerAssignments2.js index 8f909cc7206..94ce262aadc 100644 --- a/tests/baselines/reference/stringIndexerAssignments2.js +++ b/tests/baselines/reference/stringIndexerAssignments2.js @@ -25,17 +25,17 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var x; var a; var b; diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.errors.txt b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.errors.txt index 1f4ee3debed..08881be2a86 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.errors.txt +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.errors.txt @@ -75,12 +75,10 @@ tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerCon !!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. foo() { // error - ~~~~~~~~~~~~~~~~ - return ''; - ~~~~~~~~~~~~~~~~~~ - } - ~~~~~ + ~~~ !!! error TS2411: Property 'foo' of type '() => string' is not assignable to string index type 'string'. + return ''; + } static sa: number; // ok static sb: string; // ok diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js index 9d70b66887c..57df8ce2883 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js @@ -123,7 +123,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var a; // error var b = { diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js index 97e3e9b0f5b..08a26230f37 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js @@ -51,7 +51,7 @@ var A = (function () { } A.prototype.foo = function () { return ''; }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -59,12 +59,12 @@ var B = (function (_super) { } B.prototype.bar = function () { return ''; }; return B; -})(A); +}(A)); var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var a; // error var b = { diff --git a/tests/baselines/reference/stringIndexingResults.js b/tests/baselines/reference/stringIndexingResults.js index a6e00d92ec2..53f82340353 100644 --- a/tests/baselines/reference/stringIndexingResults.js +++ b/tests/baselines/reference/stringIndexingResults.js @@ -41,7 +41,7 @@ var C = (function () { this.y = ''; } return C; -})(); +}()); var c; var r1 = c['y']; var r2 = c['a']; diff --git a/tests/baselines/reference/stringLiteralCheckedInIf02.types b/tests/baselines/reference/stringLiteralCheckedInIf02.types index 79f4c6a223a..f91eea03097 100644 --- a/tests/baselines/reference/stringLiteralCheckedInIf02.types +++ b/tests/baselines/reference/stringLiteralCheckedInIf02.types @@ -31,7 +31,7 @@ function f(foo: T) { >T : ("a" | "b")[] | "a" | "b" if (isS(foo)) { ->isS(foo) : boolean +>isS(foo) : t is "a" | "b" >isS : (t: ("a" | "b")[] | "a" | "b") => t is "a" | "b" >foo : ("a" | "b")[] | "a" | "b" diff --git a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.errors.txt b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.errors.txt index 8a916c16b2d..af75273ade3 100644 --- a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.errors.txt +++ b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.errors.txt @@ -5,15 +5,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLite tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(38,10): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(77,10): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(90,10): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(94,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(95,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(96,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(98,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(99,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts(100,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts (13 errors) ==== +==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLiteralTypeIsSubtypeOfString.ts (7 errors) ==== // string literal types are subtypes of string, any // ok @@ -122,21 +116,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/stringLite function f14(x: any) { } function f15(x: 'a'); - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. function f15(x: U); - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. function f15(x: any) { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. function f16(x: 'a'); - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. function f16(x: U); - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function f16(x: any) { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. \ No newline at end of file + function f16(x: any) { } \ No newline at end of file diff --git a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js index 01b5dc814a7..78417b9a082 100644 --- a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js +++ b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js @@ -141,7 +141,7 @@ var C = (function () { C.prototype.substr = function (from, length) { return null; }; C.prototype.valueOf = function () { return null; }; return C; -})(); +}()); function f10(x) { } function f11(x) { } function f12(x) { } diff --git a/tests/baselines/reference/stringLiteralTypesAsTags01.errors.txt b/tests/baselines/reference/stringLiteralTypesAsTags01.errors.txt index 6e4f8943fb6..90c8c3efdf7 100644 --- a/tests/baselines/reference/stringLiteralTypesAsTags01.errors.txt +++ b/tests/baselines/reference/stringLiteralTypesAsTags01.errors.txt @@ -1,10 +1,8 @@ -tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts(18,10): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. -tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts(19,10): error TS2382: Specialized overload signature is not assignable to any non-specialized signature. tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts(20,10): error TS2394: Overload signature is not compatible with function implementation. tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts(22,21): error TS2304: Cannot find name 'is'. -==== tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts (4 errors) ==== +==== tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts (2 errors) ==== type Kind = "A" | "B" @@ -23,11 +21,7 @@ tests/cases/conformance/types/stringLiteral/stringLiteralTypesAsTags01.ts(22,21) } function hasKind(entity: Entity, kind: "A"): entity is A; - ~~~~~~~ -!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature. function hasKind(entity: Entity, kind: "B"): entity is B; - ~~~~~~~ -!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature. function hasKind(entity: Entity, kind: Kind): entity is Entity; ~~~~~~~ !!! error TS2394: Overload signature is not compatible with function implementation. diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.errors.txt b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.errors.txt index b89553fcf5b..2bff320197a 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.errors.txt +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.errors.txt @@ -26,7 +26,7 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralType class C { foo(x: 'hi') { } - ~~~~~~~~~~~~~~~~ + ~~~ !!! error TS2381: A signature with an implementation cannot use a string literal type. } @@ -50,7 +50,7 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralType var b = { foo(x: 'hi') { }, - ~~~~~~~~~~~~~~~~ + ~~~ !!! error TS2381: A signature with an implementation cannot use a string literal type. a: function foo(x: 'hi', y: 'hi') { }, ~~~ diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js index 724c20c6309..e9bdc90ecf3 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js @@ -36,7 +36,7 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); var a; var b = { foo: function (x) { }, diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.errors.txt b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.errors.txt index 8d296e68a17..4f94bad7441 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.errors.txt +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.errors.txt @@ -25,7 +25,7 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralType class C { foo(x: string); foo(x: 'hi') { } - ~~~~~~~~~~~~~~~~ + ~~~ !!! error TS2381: A signature with an implementation cannot use a string literal type. } @@ -63,12 +63,12 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/stringLiteralType foo(x: 'hi') { }, ~~~ !!! error TS2300: Duplicate identifier 'foo'. - ~~~~~~~~~~~~~~~~ + ~~~ !!! error TS2381: A signature with an implementation cannot use a string literal type. foo(x: 'a') { }, ~~~ !!! error TS2300: Duplicate identifier 'foo'. - ~~~~~~~~~~~~~~~ + ~~~ !!! error TS2381: A signature with an implementation cannot use a string literal type. } \ No newline at end of file diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js index 5050709c213..a33c6424eda 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js @@ -37,7 +37,7 @@ var C = (function () { } C.prototype.foo = function (x) { }; return C; -})(); +}()); var a; var b = { foo: function (x) { }, diff --git a/tests/baselines/reference/stringNamedPropertyAccess.js b/tests/baselines/reference/stringNamedPropertyAccess.js index cdc8603a0e7..01b634faf5f 100644 --- a/tests/baselines/reference/stringNamedPropertyAccess.js +++ b/tests/baselines/reference/stringNamedPropertyAccess.js @@ -28,7 +28,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r1 = c["a b"]; var r1b = C['c d']; diff --git a/tests/baselines/reference/stringNamedPropertyDuplicates.js b/tests/baselines/reference/stringNamedPropertyDuplicates.js index 214bb9921e9..a1b4822b5da 100644 --- a/tests/baselines/reference/stringNamedPropertyDuplicates.js +++ b/tests/baselines/reference/stringNamedPropertyDuplicates.js @@ -26,7 +26,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var a; var b = { "a b": 1, diff --git a/tests/baselines/reference/stripInternal1.js b/tests/baselines/reference/stripInternal1.js index c5d350bcd86..e5fbe40df7a 100644 --- a/tests/baselines/reference/stripInternal1.js +++ b/tests/baselines/reference/stripInternal1.js @@ -14,7 +14,7 @@ var C = (function () { // @internal C.prototype.bar = function () { }; return C; -})(); +}()); //// [stripInternal1.d.ts] diff --git a/tests/baselines/reference/subtypesOfAny.js b/tests/baselines/reference/subtypesOfAny.js index e73a120ed63..0b2965cb820 100644 --- a/tests/baselines/reference/subtypesOfAny.js +++ b/tests/baselines/reference/subtypesOfAny.js @@ -139,12 +139,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var A2 = (function () { function A2() { } return A2; -})(); +}()); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -158,7 +158,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/subtypesOfTypeParameter.errors.txt b/tests/baselines/reference/subtypesOfTypeParameter.errors.txt index 042d8227b78..14e2275cbf9 100644 --- a/tests/baselines/reference/subtypesOfTypeParameter.errors.txt +++ b/tests/baselines/reference/subtypesOfTypeParameter.errors.txt @@ -1,10 +1,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameter.ts(7,7): error TS2415: Class 'D1' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameter.ts(95,21): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameter.ts (2 errors) ==== +==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameter.ts (1 errors) ==== // checking whether other types are subtypes of type parameters class C3 { @@ -104,8 +103,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } function f18(a: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var r18 = true ? x : a; var r18 = true ? a : x; } diff --git a/tests/baselines/reference/subtypesOfTypeParameter.js b/tests/baselines/reference/subtypesOfTypeParameter.js index c7b14a4129c..10d9e3e42ec 100644 --- a/tests/baselines/reference/subtypesOfTypeParameter.js +++ b/tests/baselines/reference/subtypesOfTypeParameter.js @@ -116,14 +116,14 @@ var C3 = (function () { function C3() { } return C3; -})(); +}()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(C3); +}(C3)); function f1(x, y) { var r = true ? x : y; // error var r = true ? y : x; // error @@ -132,12 +132,12 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -151,7 +151,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.errors.txt b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.errors.txt index 2bb0db83e6d..bd7bbeb007e 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.errors.txt +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.errors.txt @@ -1,142 +1,51 @@ -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(7,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(12,7): error TS2415: Class 'D2' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(12,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(14,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(17,7): error TS2415: Class 'D3' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(17,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(19,5): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(22,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(31,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(31,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(36,7): error TS2415: Class 'D6' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(36,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(36,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(38,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(41,7): error TS2415: Class 'D7' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(41,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(41,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(43,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'V'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(48,7): error TS2415: Class 'D8' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(48,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(48,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'V' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(50,5): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(53,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(53,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(58,7): error TS2415: Class 'D10' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'U' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(58,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(58,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(60,5): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'V'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(65,7): error TS2415: Class 'D11' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'V' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(65,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(65,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(67,5): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(70,7): error TS2415: Class 'D12' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'V' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(70,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(70,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(72,5): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(75,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(75,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(83,7): error TS2415: Class 'D14' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'Date'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(83,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(83,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(85,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'Date'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(88,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(88,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(93,7): error TS2415: Class 'D16' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(93,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(93,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(95,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(98,7): error TS2415: Class 'D17' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(98,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(98,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(100,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(105,7): error TS2415: Class 'D18' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'Date'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(105,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(105,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(107,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'Date'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(110,7): error TS2415: Class 'D19' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(110,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(110,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'V' is not assignable to type 'T'. + Type 'Date' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(112,5): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(115,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(115,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(120,7): error TS2415: Class 'D21' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'U' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(120,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(120,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(122,5): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(127,7): error TS2415: Class 'D22' incorrectly extends base class 'C3'. - Types of property 'foo' are incompatible. - Type 'T' is not assignable to type 'Date'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(127,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(127,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(129,5): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'Date'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(132,7): error TS2415: Class 'D23' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'V' is not assignable to type 'T'. Type 'Date' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(132,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(132,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(134,5): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(137,7): error TS2415: Class 'D24' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'V' is not assignable to type 'U'. Type 'Date' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(137,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(137,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(139,5): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(142,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(142,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(149,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(149,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(154,7): error TS2415: Class 'D27' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'Date' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(154,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(154,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(156,5): error TS2411: Property 'foo' of type 'Date' is not assignable to string index type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(159,7): error TS2415: Class 'D28' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'Date' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(159,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(159,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(161,5): error TS2411: Property 'foo' of type 'Date' is not assignable to string index type 'U'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(164,7): error TS2415: Class 'D29' incorrectly extends base class 'C3'. Types of property 'foo' are incompatible. Type 'Date' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(164,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(164,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts(166,5): error TS2411: Property 'foo' of type 'Date' is not assignable to string index type 'V'. -==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts (94 errors) ==== +==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints.ts (20 errors) ==== // checking whether other types are subtypes of type parameters with constraints class C3 { @@ -144,23 +53,13 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D1 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: T; // ok } class D2 extends C3 { - ~~ -!!! error TS2415: Class 'D2' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'U'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: T; // ok - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. } class D3 extends C3 { @@ -168,8 +67,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D3' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'U' is not assignable to type 'T'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: U; // error ~~~~~~~ @@ -177,8 +74,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D4 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: U; // ok } @@ -188,42 +83,18 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf // test if T is subtype of T, U, V // should all work class D5 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: T; // ok } class D6 extends C3 { - ~~ -!!! error TS2415: Class 'D6' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'U'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: T; - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. } class D7 extends C3 { - ~~ -!!! error TS2415: Class 'D7' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'V'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: T; // ok - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'V'. } // test if U is a subtype of T, U, V @@ -233,10 +104,7 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D8' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'U' is not assignable to type 'T'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'V' is not assignable to type 'T'. [x: string]: T; foo: U; // error ~~~~~~~ @@ -244,27 +112,13 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D9 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: U; // ok } class D10 extends C3 { - ~~~ -!!! error TS2415: Class 'D10' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'U' is not assignable to type 'V'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: U; // ok - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'V'. } // test if V is a subtype of T, U, V @@ -274,10 +128,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D11' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'V' is not assignable to type 'T'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: V; // error ~~~~~~~ @@ -289,10 +139,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D12' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'V' is not assignable to type 'U'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: V; // error ~~~~~~~ @@ -300,10 +146,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D13 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: V; // ok } @@ -312,74 +154,30 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf // test if T is subtype of T, U, V, Date // should all work class D14 extends C3 { - ~~~ -!!! error TS2415: Class 'D14' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'Date'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: Date; foo: T; // ok - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'Date'. } class D15 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: T; // ok } class D16 extends C3 { - ~~~ -!!! error TS2415: Class 'D16' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'U'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: T; - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. } class D17 extends C3 { - ~~~ -!!! error TS2415: Class 'D17' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'V'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: T; - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'V'. } // test if U is a subtype of T, U, V, Date // only a subtype of V, Date and itself class D18 extends C3 { - ~~~ -!!! error TS2415: Class 'D18' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'Date'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: Date; foo: T; // ok - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'Date'. } class D19 extends C3 { @@ -387,10 +185,8 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D19' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'U' is not assignable to type 'T'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'V' is not assignable to type 'T'. +!!! error TS2415: Type 'Date' is not assignable to type 'T'. [x: string]: T; foo: U; // error ~~~~~~~ @@ -398,44 +194,20 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D20 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: U; // ok } class D21 extends C3 { - ~~~ -!!! error TS2415: Class 'D21' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'U' is not assignable to type 'V'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: U; - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'V'. } // test if V is a subtype of T, U, V, Date // only a subtype of itself and Date class D22 extends C3 { - ~~~ -!!! error TS2415: Class 'D22' incorrectly extends base class 'C3'. -!!! error TS2415: Types of property 'foo' are incompatible. -!!! error TS2415: Type 'T' is not assignable to type 'Date'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: Date; foo: T; // ok - ~~~~~~~ -!!! error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'Date'. } class D23 extends C3 { @@ -444,10 +216,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'V' is not assignable to type 'T'. !!! error TS2415: Type 'Date' is not assignable to type 'T'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: V; // error ~~~~~~~ @@ -460,10 +228,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'V' is not assignable to type 'U'. !!! error TS2415: Type 'Date' is not assignable to type 'U'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: V; // error ~~~~~~~ @@ -471,10 +235,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D25 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: V; // ok } @@ -482,10 +242,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf // test if Date is a subtype of T, U, V, Date // only a subtype of itself class D26 extends C3 { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: Date; foo: Date; // ok } @@ -495,10 +251,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D27' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'Date' is not assignable to type 'T'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: Date; // error ~~~~~~~~~~ @@ -510,10 +262,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D28' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'Date' is not assignable to type 'U'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: Date; // error ~~~~~~~~~~ @@ -525,10 +273,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D29' incorrectly extends base class 'C3'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'Date' is not assignable to type 'V'. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: Date; // error ~~~~~~~~~~ diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js index 194c1835147..0753c52dc9e 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js @@ -178,35 +178,35 @@ var C3 = (function () { function C3() { } return C3; -})(); +}()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(C3); +}(C3)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(C3); +}(C3)); var D3 = (function (_super) { __extends(D3, _super); function D3() { _super.apply(this, arguments); } return D3; -})(C3); +}(C3)); var D4 = (function (_super) { __extends(D4, _super); function D4() { _super.apply(this, arguments); } return D4; -})(C3); +}(C3)); // V > U > T // test if T is subtype of T, U, V // should all work @@ -216,21 +216,21 @@ var D5 = (function (_super) { _super.apply(this, arguments); } return D5; -})(C3); +}(C3)); var D6 = (function (_super) { __extends(D6, _super); function D6() { _super.apply(this, arguments); } return D6; -})(C3); +}(C3)); var D7 = (function (_super) { __extends(D7, _super); function D7() { _super.apply(this, arguments); } return D7; -})(C3); +}(C3)); // test if U is a subtype of T, U, V // only a subtype of V and itself var D8 = (function (_super) { @@ -239,21 +239,21 @@ var D8 = (function (_super) { _super.apply(this, arguments); } return D8; -})(C3); +}(C3)); var D9 = (function (_super) { __extends(D9, _super); function D9() { _super.apply(this, arguments); } return D9; -})(C3); +}(C3)); var D10 = (function (_super) { __extends(D10, _super); function D10() { _super.apply(this, arguments); } return D10; -})(C3); +}(C3)); // test if V is a subtype of T, U, V // only a subtype of itself var D11 = (function (_super) { @@ -262,21 +262,21 @@ var D11 = (function (_super) { _super.apply(this, arguments); } return D11; -})(C3); +}(C3)); var D12 = (function (_super) { __extends(D12, _super); function D12() { _super.apply(this, arguments); } return D12; -})(C3); +}(C3)); var D13 = (function (_super) { __extends(D13, _super); function D13() { _super.apply(this, arguments); } return D13; -})(C3); +}(C3)); // Date > V > U > T // test if T is subtype of T, U, V, Date // should all work @@ -286,28 +286,28 @@ var D14 = (function (_super) { _super.apply(this, arguments); } return D14; -})(C3); +}(C3)); var D15 = (function (_super) { __extends(D15, _super); function D15() { _super.apply(this, arguments); } return D15; -})(C3); +}(C3)); var D16 = (function (_super) { __extends(D16, _super); function D16() { _super.apply(this, arguments); } return D16; -})(C3); +}(C3)); var D17 = (function (_super) { __extends(D17, _super); function D17() { _super.apply(this, arguments); } return D17; -})(C3); +}(C3)); // test if U is a subtype of T, U, V, Date // only a subtype of V, Date and itself var D18 = (function (_super) { @@ -316,28 +316,28 @@ var D18 = (function (_super) { _super.apply(this, arguments); } return D18; -})(C3); +}(C3)); var D19 = (function (_super) { __extends(D19, _super); function D19() { _super.apply(this, arguments); } return D19; -})(C3); +}(C3)); var D20 = (function (_super) { __extends(D20, _super); function D20() { _super.apply(this, arguments); } return D20; -})(C3); +}(C3)); var D21 = (function (_super) { __extends(D21, _super); function D21() { _super.apply(this, arguments); } return D21; -})(C3); +}(C3)); // test if V is a subtype of T, U, V, Date // only a subtype of itself and Date var D22 = (function (_super) { @@ -346,28 +346,28 @@ var D22 = (function (_super) { _super.apply(this, arguments); } return D22; -})(C3); +}(C3)); var D23 = (function (_super) { __extends(D23, _super); function D23() { _super.apply(this, arguments); } return D23; -})(C3); +}(C3)); var D24 = (function (_super) { __extends(D24, _super); function D24() { _super.apply(this, arguments); } return D24; -})(C3); +}(C3)); var D25 = (function (_super) { __extends(D25, _super); function D25() { _super.apply(this, arguments); } return D25; -})(C3); +}(C3)); // test if Date is a subtype of T, U, V, Date // only a subtype of itself var D26 = (function (_super) { @@ -376,25 +376,25 @@ var D26 = (function (_super) { _super.apply(this, arguments); } return D26; -})(C3); +}(C3)); var D27 = (function (_super) { __extends(D27, _super); function D27() { _super.apply(this, arguments); } return D27; -})(C3); +}(C3)); var D28 = (function (_super) { __extends(D28, _super); function D28() { _super.apply(this, arguments); } return D28; -})(C3); +}(C3)); var D29 = (function (_super) { __extends(D29, _super); function D29() { _super.apply(this, arguments); } return D29; -})(C3); +}(C3)); diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.errors.txt b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.errors.txt deleted file mode 100644 index 1a2ced3b6f2..00000000000 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.errors.txt +++ /dev/null @@ -1,175 +0,0 @@ -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts(3,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts(9,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts(9,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts(23,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts(143,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts (5 errors) ==== - // checking whether other types are subtypes of type parameters with constraints - - function f1(x: T, y: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var r = true ? x : y; - var r = true ? y : x; - } - - // V > U > T - function f2(x: T, y: U, z: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var r = true ? x : y; - var r = true ? y : x; - - // ok - var r2 = true ? z : y; - var r2 = true ? y : z; - - // ok - var r2a = true ? z : x; - var r2b = true ? x : z; - } - - // Date > U > T - function f3(x: T, y: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var r = true ? x : y; - var r = true ? y : x; - - // ok - var r2 = true ? x : new Date(); - var r2 = true ? new Date() : x; - - // ok - var r3 = true ? y : new Date(); - var r3 = true ? new Date() : y; - } - - - interface I1 { foo: number; } - class C1 { foo: number; } - class C2 { foo: T; } - enum E { A } - function f() { } - module f { - export var bar = 1; - } - class c { baz: string } - module c { - export var bar = 1; - } - - function f4(x: T) { - var r0 = true ? x : null; // ok - var r0 = true ? null : x; // ok - - var u: typeof undefined; - var r0b = true ? u : x; // ok - var r0b = true ? x : u; // ok - } - - function f5(x: T) { - var r1 = true ? 1 : x; // ok - var r1 = true ? x : 1; // ok - } - - function f6(x: T) { - var r2 = true ? '' : x; // ok - var r2 = true ? x : ''; // ok - } - - function f7(x: T) { - var r3 = true ? true : x; // ok - var r3 = true ? x : true; // ok - } - - function f8(x: T) { - var r4 = true ? new Date() : x; // ok - var r4 = true ? x : new Date(); // ok - } - - function f9(x: T) { - var r5 = true ? /1/ : x; // ok - var r5 = true ? x : /1/; // ok - } - - function f10(x: T) { - var r6 = true ? { foo: 1 } : x; // ok - var r6 = true ? x : { foo: 1 }; // ok - } - - function f11 void>(x: T) { - var r7 = true ? () => { } : x; // ok - var r7 = true ? x : () => { }; // ok - } - - function f12(x: U) => U>(x: T) { - var r8 = true ? (x: T) => { return x } : x; // ok - var r8b = true ? x : (x: T) => { return x }; // ok, type parameters not identical across declarations - } - - function f13(x: T) { - var i1: I1; - var r9 = true ? i1 : x; // ok - var r9 = true ? x : i1; // ok - } - - function f14(x: T) { - var c1: C1; - var r10 = true ? c1 : x; // ok - var r10 = true ? x : c1; // ok - } - - function f15>(x: T) { - var c2: C2; - var r12 = true ? c2 : x; // ok - var r12 = true ? x : c2; // ok - } - - function f16(x: T) { - var r13 = true ? E : x; // ok - var r13 = true ? x : E; // ok - - var r14 = true ? E.A : x; // ok - var r14 = true ? x : E.A; // ok - } - - function f17(x: T) { - var af: typeof f; - var r15 = true ? af : x; // ok - var r15 = true ? x : af; // ok - } - - function f18(x: T) { - var ac: typeof c; - var r16 = true ? ac : x; // ok - var r16 = true ? x : ac; // ok - } - - function f19(x: T) { - function f17(a: U) { - var r17 = true ? x : a; // ok - var r17 = true ? a : x; // ok - } - - function f18(a: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var r18 = true ? x : a; // ok - var r18 = true ? a : x; // ok - } - } - - function f20(x: T) { - var r19 = true ? new Object() : x; // ok - var r19 = true ? x : new Object(); // ok - } - - function f21(x: T) { - var r20 = true ? {} : x; // ok - var r20 = true ? x : {}; // ok - } \ No newline at end of file diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.js b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.js index e1c137f77e4..771c2ef74f5 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.js +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.js @@ -189,12 +189,12 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -208,7 +208,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.symbols b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.symbols new file mode 100644 index 00000000000..05276362cbe --- /dev/null +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.symbols @@ -0,0 +1,548 @@ +=== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts === +// checking whether other types are subtypes of type parameters with constraints + +function f1(x: T, y: U) { +>f1 : Symbol(f1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 0, 0)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 12)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 24)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 24)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 28)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 12)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 33)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 24)) + + var r = true ? x : y; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints2.ts, 3, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 4, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 28)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 33)) + + var r = true ? y : x; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints2.ts, 3, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 4, 7)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 33)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 2, 28)) +} + +// V > U > T +function f2(x: T, y: U, z: V) { +>f2 : Symbol(f2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 5, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 12)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 24)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 24)) +>V : Symbol(V, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 37)) +>V : Symbol(V, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 37)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 41)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 12)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 46)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 24)) +>z : Symbol(z, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 52)) +>V : Symbol(V, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 37)) + + var r = true ? x : y; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints2.ts, 9, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 10, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 41)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 46)) + + var r = true ? y : x; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints2.ts, 9, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 10, 7)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 46)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 41)) + + // ok + var r2 = true ? z : y; +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 13, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 14, 7)) +>z : Symbol(z, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 52)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 46)) + + var r2 = true ? y : z; +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 13, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 14, 7)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 46)) +>z : Symbol(z, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 52)) + + // ok + var r2a = true ? z : x; +>r2a : Symbol(r2a, Decl(subtypesOfTypeParameterWithConstraints2.ts, 17, 7)) +>z : Symbol(z, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 52)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 41)) + + var r2b = true ? x : z; +>r2b : Symbol(r2b, Decl(subtypesOfTypeParameterWithConstraints2.ts, 18, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 41)) +>z : Symbol(z, Decl(subtypesOfTypeParameterWithConstraints2.ts, 8, 52)) +} + +// Date > U > T +function f3(x: T, y: U) { +>f3 : Symbol(f3, Decl(subtypesOfTypeParameterWithConstraints2.ts, 19, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 12)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 24)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 24)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 41)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 12)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 46)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 24)) + + var r = true ? x : y; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints2.ts, 23, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 24, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 41)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 46)) + + var r = true ? y : x; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints2.ts, 23, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 24, 7)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 46)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 41)) + + // ok + var r2 = true ? x : new Date(); +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 27, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 28, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 41)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + var r2 = true ? new Date() : x; +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 27, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 28, 7)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 41)) + + // ok + var r3 = true ? y : new Date(); +>r3 : Symbol(r3, Decl(subtypesOfTypeParameterWithConstraints2.ts, 31, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 32, 7)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 46)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + + var r3 = true ? new Date() : y; +>r3 : Symbol(r3, Decl(subtypesOfTypeParameterWithConstraints2.ts, 31, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 32, 7)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>y : Symbol(y, Decl(subtypesOfTypeParameterWithConstraints2.ts, 22, 46)) +} + + +interface I1 { foo: number; } +>I1 : Symbol(I1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 33, 1)) +>foo : Symbol(foo, Decl(subtypesOfTypeParameterWithConstraints2.ts, 36, 14)) + +class C1 { foo: number; } +>C1 : Symbol(C1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 36, 29)) +>foo : Symbol(foo, Decl(subtypesOfTypeParameterWithConstraints2.ts, 37, 10)) + +class C2 { foo: T; } +>C2 : Symbol(C2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 37, 25)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 9)) +>foo : Symbol(foo, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 13)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 9)) + +enum E { A } +>E : Symbol(E, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 23)) +>A : Symbol(E.A, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 8)) + +function f() { } +>f : Symbol(f, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 12), Decl(subtypesOfTypeParameterWithConstraints2.ts, 40, 16)) + +module f { +>f : Symbol(f, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 12), Decl(subtypesOfTypeParameterWithConstraints2.ts, 40, 16)) + + export var bar = 1; +>bar : Symbol(bar, Decl(subtypesOfTypeParameterWithConstraints2.ts, 42, 14)) +} +class c { baz: string } +>c : Symbol(c, Decl(subtypesOfTypeParameterWithConstraints2.ts, 43, 1), Decl(subtypesOfTypeParameterWithConstraints2.ts, 44, 23)) +>baz : Symbol(baz, Decl(subtypesOfTypeParameterWithConstraints2.ts, 44, 9)) + +module c { +>c : Symbol(c, Decl(subtypesOfTypeParameterWithConstraints2.ts, 43, 1), Decl(subtypesOfTypeParameterWithConstraints2.ts, 44, 23)) + + export var bar = 1; +>bar : Symbol(bar, Decl(subtypesOfTypeParameterWithConstraints2.ts, 46, 14)) +} + +function f4(x: T) { +>f4 : Symbol(f4, Decl(subtypesOfTypeParameterWithConstraints2.ts, 47, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 49, 12)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 49, 30)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 49, 12)) + + var r0 = true ? x : null; // ok +>r0 : Symbol(r0, Decl(subtypesOfTypeParameterWithConstraints2.ts, 50, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 51, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 49, 30)) + + var r0 = true ? null : x; // ok +>r0 : Symbol(r0, Decl(subtypesOfTypeParameterWithConstraints2.ts, 50, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 51, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 49, 30)) + + var u: typeof undefined; +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints2.ts, 53, 7)) +>undefined : Symbol(undefined) + + var r0b = true ? u : x; // ok +>r0b : Symbol(r0b, Decl(subtypesOfTypeParameterWithConstraints2.ts, 54, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 55, 7)) +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints2.ts, 53, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 49, 30)) + + var r0b = true ? x : u; // ok +>r0b : Symbol(r0b, Decl(subtypesOfTypeParameterWithConstraints2.ts, 54, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 55, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 49, 30)) +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints2.ts, 53, 7)) +} + +function f5(x: T) { +>f5 : Symbol(f5, Decl(subtypesOfTypeParameterWithConstraints2.ts, 56, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 58, 12)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 58, 30)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 58, 12)) + + var r1 = true ? 1 : x; // ok +>r1 : Symbol(r1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 59, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 60, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 58, 30)) + + var r1 = true ? x : 1; // ok +>r1 : Symbol(r1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 59, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 60, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 58, 30)) +} + +function f6(x: T) { +>f6 : Symbol(f6, Decl(subtypesOfTypeParameterWithConstraints2.ts, 61, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 63, 12)) +>String : Symbol(String, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 63, 30)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 63, 12)) + + var r2 = true ? '' : x; // ok +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 64, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 65, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 63, 30)) + + var r2 = true ? x : ''; // ok +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 64, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 65, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 63, 30)) +} + +function f7(x: T) { +>f7 : Symbol(f7, Decl(subtypesOfTypeParameterWithConstraints2.ts, 66, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 68, 12)) +>Boolean : Symbol(Boolean, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 68, 31)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 68, 12)) + + var r3 = true ? true : x; // ok +>r3 : Symbol(r3, Decl(subtypesOfTypeParameterWithConstraints2.ts, 69, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 70, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 68, 31)) + + var r3 = true ? x : true; // ok +>r3 : Symbol(r3, Decl(subtypesOfTypeParameterWithConstraints2.ts, 69, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 70, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 68, 31)) +} + +function f8(x: T) { +>f8 : Symbol(f8, Decl(subtypesOfTypeParameterWithConstraints2.ts, 71, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 73, 12)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 73, 28)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 73, 12)) + + var r4 = true ? new Date() : x; // ok +>r4 : Symbol(r4, Decl(subtypesOfTypeParameterWithConstraints2.ts, 74, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 75, 7)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 73, 28)) + + var r4 = true ? x : new Date(); // ok +>r4 : Symbol(r4, Decl(subtypesOfTypeParameterWithConstraints2.ts, 74, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 75, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 73, 28)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +} + +function f9(x: T) { +>f9 : Symbol(f9, Decl(subtypesOfTypeParameterWithConstraints2.ts, 76, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 78, 12)) +>RegExp : Symbol(RegExp, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 78, 30)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 78, 12)) + + var r5 = true ? /1/ : x; // ok +>r5 : Symbol(r5, Decl(subtypesOfTypeParameterWithConstraints2.ts, 79, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 80, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 78, 30)) + + var r5 = true ? x : /1/; // ok +>r5 : Symbol(r5, Decl(subtypesOfTypeParameterWithConstraints2.ts, 79, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 80, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 78, 30)) +} + +function f10(x: T) { +>f10 : Symbol(f10, Decl(subtypesOfTypeParameterWithConstraints2.ts, 81, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 83, 13)) +>foo : Symbol(foo, Decl(subtypesOfTypeParameterWithConstraints2.ts, 83, 24)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 83, 40)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 83, 13)) + + var r6 = true ? { foo: 1 } : x; // ok +>r6 : Symbol(r6, Decl(subtypesOfTypeParameterWithConstraints2.ts, 84, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 85, 7)) +>foo : Symbol(foo, Decl(subtypesOfTypeParameterWithConstraints2.ts, 84, 21)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 83, 40)) + + var r6 = true ? x : { foo: 1 }; // ok +>r6 : Symbol(r6, Decl(subtypesOfTypeParameterWithConstraints2.ts, 84, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 85, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 83, 40)) +>foo : Symbol(foo, Decl(subtypesOfTypeParameterWithConstraints2.ts, 85, 25)) +} + +function f11 void>(x: T) { +>f11 : Symbol(f11, Decl(subtypesOfTypeParameterWithConstraints2.ts, 86, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 88, 13)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 88, 35)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 88, 13)) + + var r7 = true ? () => { } : x; // ok +>r7 : Symbol(r7, Decl(subtypesOfTypeParameterWithConstraints2.ts, 89, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 90, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 88, 35)) + + var r7 = true ? x : () => { }; // ok +>r7 : Symbol(r7, Decl(subtypesOfTypeParameterWithConstraints2.ts, 89, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 90, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 88, 35)) +} + +function f12(x: U) => U>(x: T) { +>f12 : Symbol(f12, Decl(subtypesOfTypeParameterWithConstraints2.ts, 91, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 13)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 24)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 27)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 24)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 24)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 39)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 13)) + + var r8 = true ? (x: T) => { return x } : x; // ok +>r8 : Symbol(r8, Decl(subtypesOfTypeParameterWithConstraints2.ts, 94, 7)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 94, 21)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 94, 24)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 94, 21)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 94, 24)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 39)) + + var r8b = true ? x : (x: T) => { return x }; // ok, type parameters not identical across declarations +>r8b : Symbol(r8b, Decl(subtypesOfTypeParameterWithConstraints2.ts, 95, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 93, 39)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 95, 26)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 95, 29)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 95, 26)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 95, 29)) +} + +function f13(x: T) { +>f13 : Symbol(f13, Decl(subtypesOfTypeParameterWithConstraints2.ts, 96, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 98, 13)) +>I1 : Symbol(I1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 33, 1)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 98, 27)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 98, 13)) + + var i1: I1; +>i1 : Symbol(i1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 99, 7)) +>I1 : Symbol(I1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 33, 1)) + + var r9 = true ? i1 : x; // ok +>r9 : Symbol(r9, Decl(subtypesOfTypeParameterWithConstraints2.ts, 100, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 101, 7)) +>i1 : Symbol(i1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 99, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 98, 27)) + + var r9 = true ? x : i1; // ok +>r9 : Symbol(r9, Decl(subtypesOfTypeParameterWithConstraints2.ts, 100, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 101, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 98, 27)) +>i1 : Symbol(i1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 99, 7)) +} + +function f14(x: T) { +>f14 : Symbol(f14, Decl(subtypesOfTypeParameterWithConstraints2.ts, 102, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 104, 13)) +>C1 : Symbol(C1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 36, 29)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 104, 27)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 104, 13)) + + var c1: C1; +>c1 : Symbol(c1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 105, 7)) +>C1 : Symbol(C1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 36, 29)) + + var r10 = true ? c1 : x; // ok +>r10 : Symbol(r10, Decl(subtypesOfTypeParameterWithConstraints2.ts, 106, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 107, 7)) +>c1 : Symbol(c1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 105, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 104, 27)) + + var r10 = true ? x : c1; // ok +>r10 : Symbol(r10, Decl(subtypesOfTypeParameterWithConstraints2.ts, 106, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 107, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 104, 27)) +>c1 : Symbol(c1, Decl(subtypesOfTypeParameterWithConstraints2.ts, 105, 7)) +} + +function f15>(x: T) { +>f15 : Symbol(f15, Decl(subtypesOfTypeParameterWithConstraints2.ts, 108, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 110, 13)) +>C2 : Symbol(C2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 37, 25)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 110, 35)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 110, 13)) + + var c2: C2; +>c2 : Symbol(c2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 111, 7)) +>C2 : Symbol(C2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 37, 25)) + + var r12 = true ? c2 : x; // ok +>r12 : Symbol(r12, Decl(subtypesOfTypeParameterWithConstraints2.ts, 112, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 113, 7)) +>c2 : Symbol(c2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 111, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 110, 35)) + + var r12 = true ? x : c2; // ok +>r12 : Symbol(r12, Decl(subtypesOfTypeParameterWithConstraints2.ts, 112, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 113, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 110, 35)) +>c2 : Symbol(c2, Decl(subtypesOfTypeParameterWithConstraints2.ts, 111, 7)) +} + +function f16(x: T) { +>f16 : Symbol(f16, Decl(subtypesOfTypeParameterWithConstraints2.ts, 114, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 116, 13)) +>E : Symbol(E, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 23)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 116, 26)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 116, 13)) + + var r13 = true ? E : x; // ok +>r13 : Symbol(r13, Decl(subtypesOfTypeParameterWithConstraints2.ts, 117, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 118, 7)) +>E : Symbol(E, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 23)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 116, 26)) + + var r13 = true ? x : E; // ok +>r13 : Symbol(r13, Decl(subtypesOfTypeParameterWithConstraints2.ts, 117, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 118, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 116, 26)) +>E : Symbol(E, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 23)) + + var r14 = true ? E.A : x; // ok +>r14 : Symbol(r14, Decl(subtypesOfTypeParameterWithConstraints2.ts, 120, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 121, 7)) +>E.A : Symbol(E.A, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 8)) +>E : Symbol(E, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 23)) +>A : Symbol(E.A, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 8)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 116, 26)) + + var r14 = true ? x : E.A; // ok +>r14 : Symbol(r14, Decl(subtypesOfTypeParameterWithConstraints2.ts, 120, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 121, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 116, 26)) +>E.A : Symbol(E.A, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 8)) +>E : Symbol(E, Decl(subtypesOfTypeParameterWithConstraints2.ts, 38, 23)) +>A : Symbol(E.A, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 8)) +} + +function f17(x: T) { +>f17 : Symbol(f17, Decl(subtypesOfTypeParameterWithConstraints2.ts, 122, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 124, 13)) +>f : Symbol(f, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 12), Decl(subtypesOfTypeParameterWithConstraints2.ts, 40, 16)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 124, 33)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 124, 13)) + + var af: typeof f; +>af : Symbol(af, Decl(subtypesOfTypeParameterWithConstraints2.ts, 125, 7)) +>f : Symbol(f, Decl(subtypesOfTypeParameterWithConstraints2.ts, 39, 12), Decl(subtypesOfTypeParameterWithConstraints2.ts, 40, 16)) + + var r15 = true ? af : x; // ok +>r15 : Symbol(r15, Decl(subtypesOfTypeParameterWithConstraints2.ts, 126, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 127, 7)) +>af : Symbol(af, Decl(subtypesOfTypeParameterWithConstraints2.ts, 125, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 124, 33)) + + var r15 = true ? x : af; // ok +>r15 : Symbol(r15, Decl(subtypesOfTypeParameterWithConstraints2.ts, 126, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 127, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 124, 33)) +>af : Symbol(af, Decl(subtypesOfTypeParameterWithConstraints2.ts, 125, 7)) +} + +function f18(x: T) { +>f18 : Symbol(f18, Decl(subtypesOfTypeParameterWithConstraints2.ts, 128, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 130, 13)) +>c : Symbol(c, Decl(subtypesOfTypeParameterWithConstraints2.ts, 43, 1), Decl(subtypesOfTypeParameterWithConstraints2.ts, 44, 23)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 130, 33)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 130, 13)) + + var ac: typeof c; +>ac : Symbol(ac, Decl(subtypesOfTypeParameterWithConstraints2.ts, 131, 7)) +>c : Symbol(c, Decl(subtypesOfTypeParameterWithConstraints2.ts, 43, 1), Decl(subtypesOfTypeParameterWithConstraints2.ts, 44, 23)) + + var r16 = true ? ac : x; // ok +>r16 : Symbol(r16, Decl(subtypesOfTypeParameterWithConstraints2.ts, 132, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 133, 7)) +>ac : Symbol(ac, Decl(subtypesOfTypeParameterWithConstraints2.ts, 131, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 130, 33)) + + var r16 = true ? x : ac; // ok +>r16 : Symbol(r16, Decl(subtypesOfTypeParameterWithConstraints2.ts, 132, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 133, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 130, 33)) +>ac : Symbol(ac, Decl(subtypesOfTypeParameterWithConstraints2.ts, 131, 7)) +} + +function f19(x: T) { +>f19 : Symbol(f19, Decl(subtypesOfTypeParameterWithConstraints2.ts, 134, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 13)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 16)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 13)) + + function f17(a: U) { +>f17 : Symbol(f17, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 23)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 137, 17)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 13)) +>a : Symbol(a, Decl(subtypesOfTypeParameterWithConstraints2.ts, 137, 30)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 137, 17)) + + var r17 = true ? x : a; // ok +>r17 : Symbol(r17, Decl(subtypesOfTypeParameterWithConstraints2.ts, 138, 11), Decl(subtypesOfTypeParameterWithConstraints2.ts, 139, 11)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 16)) +>a : Symbol(a, Decl(subtypesOfTypeParameterWithConstraints2.ts, 137, 30)) + + var r17 = true ? a : x; // ok +>r17 : Symbol(r17, Decl(subtypesOfTypeParameterWithConstraints2.ts, 138, 11), Decl(subtypesOfTypeParameterWithConstraints2.ts, 139, 11)) +>a : Symbol(a, Decl(subtypesOfTypeParameterWithConstraints2.ts, 137, 30)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 16)) + } + + function f18(a: V) { +>f18 : Symbol(f18, Decl(subtypesOfTypeParameterWithConstraints2.ts, 140, 5)) +>V : Symbol(V, Decl(subtypesOfTypeParameterWithConstraints2.ts, 142, 17)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 142, 29)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints2.ts, 142, 29)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 13)) +>a : Symbol(a, Decl(subtypesOfTypeParameterWithConstraints2.ts, 142, 43)) +>V : Symbol(V, Decl(subtypesOfTypeParameterWithConstraints2.ts, 142, 17)) + + var r18 = true ? x : a; // ok +>r18 : Symbol(r18, Decl(subtypesOfTypeParameterWithConstraints2.ts, 143, 11), Decl(subtypesOfTypeParameterWithConstraints2.ts, 144, 11)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 16)) +>a : Symbol(a, Decl(subtypesOfTypeParameterWithConstraints2.ts, 142, 43)) + + var r18 = true ? a : x; // ok +>r18 : Symbol(r18, Decl(subtypesOfTypeParameterWithConstraints2.ts, 143, 11), Decl(subtypesOfTypeParameterWithConstraints2.ts, 144, 11)) +>a : Symbol(a, Decl(subtypesOfTypeParameterWithConstraints2.ts, 142, 43)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 136, 16)) + } +} + +function f20(x: T) { +>f20 : Symbol(f20, Decl(subtypesOfTypeParameterWithConstraints2.ts, 146, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 148, 13)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 148, 31)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 148, 13)) + + var r19 = true ? new Object() : x; // ok +>r19 : Symbol(r19, Decl(subtypesOfTypeParameterWithConstraints2.ts, 149, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 150, 7)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 148, 31)) + + var r19 = true ? x : new Object(); // ok +>r19 : Symbol(r19, Decl(subtypesOfTypeParameterWithConstraints2.ts, 149, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 150, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 148, 31)) +>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +} + +function f21(x: T) { +>f21 : Symbol(f21, Decl(subtypesOfTypeParameterWithConstraints2.ts, 151, 1)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 153, 13)) +>Number : Symbol(Number, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 153, 31)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints2.ts, 153, 13)) + + var r20 = true ? {} : x; // ok +>r20 : Symbol(r20, Decl(subtypesOfTypeParameterWithConstraints2.ts, 154, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 155, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 153, 31)) + + var r20 = true ? x : {}; // ok +>r20 : Symbol(r20, Decl(subtypesOfTypeParameterWithConstraints2.ts, 154, 7), Decl(subtypesOfTypeParameterWithConstraints2.ts, 155, 7)) +>x : Symbol(x, Decl(subtypesOfTypeParameterWithConstraints2.ts, 153, 31)) +} diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.types b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.types new file mode 100644 index 00000000000..39c50bde355 --- /dev/null +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints2.types @@ -0,0 +1,690 @@ +=== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts === +// checking whether other types are subtypes of type parameters with constraints + +function f1(x: T, y: U) { +>f1 : (x: T, y: U) => void +>T : T +>U : U +>U : U +>x : T +>T : T +>y : U +>U : U + + var r = true ? x : y; +>r : U +>true ? x : y : U +>true : boolean +>x : T +>y : U + + var r = true ? y : x; +>r : U +>true ? y : x : U +>true : boolean +>y : U +>x : T +} + +// V > U > T +function f2(x: T, y: U, z: V) { +>f2 : (x: T, y: U, z: V) => void +>T : T +>U : U +>U : U +>V : V +>V : V +>x : T +>T : T +>y : U +>U : U +>z : V +>V : V + + var r = true ? x : y; +>r : U +>true ? x : y : U +>true : boolean +>x : T +>y : U + + var r = true ? y : x; +>r : U +>true ? y : x : U +>true : boolean +>y : U +>x : T + + // ok + var r2 = true ? z : y; +>r2 : V +>true ? z : y : V +>true : boolean +>z : V +>y : U + + var r2 = true ? y : z; +>r2 : V +>true ? y : z : V +>true : boolean +>y : U +>z : V + + // ok + var r2a = true ? z : x; +>r2a : V +>true ? z : x : V +>true : boolean +>z : V +>x : T + + var r2b = true ? x : z; +>r2b : V +>true ? x : z : V +>true : boolean +>x : T +>z : V +} + +// Date > U > T +function f3(x: T, y: U) { +>f3 : (x: T, y: U) => void +>T : T +>U : U +>U : U +>Date : Date +>x : T +>T : T +>y : U +>U : U + + var r = true ? x : y; +>r : U +>true ? x : y : U +>true : boolean +>x : T +>y : U + + var r = true ? y : x; +>r : U +>true ? y : x : U +>true : boolean +>y : U +>x : T + + // ok + var r2 = true ? x : new Date(); +>r2 : Date +>true ? x : new Date() : Date +>true : boolean +>x : T +>new Date() : Date +>Date : DateConstructor + + var r2 = true ? new Date() : x; +>r2 : Date +>true ? new Date() : x : Date +>true : boolean +>new Date() : Date +>Date : DateConstructor +>x : T + + // ok + var r3 = true ? y : new Date(); +>r3 : Date +>true ? y : new Date() : Date +>true : boolean +>y : U +>new Date() : Date +>Date : DateConstructor + + var r3 = true ? new Date() : y; +>r3 : Date +>true ? new Date() : y : Date +>true : boolean +>new Date() : Date +>Date : DateConstructor +>y : U +} + + +interface I1 { foo: number; } +>I1 : I1 +>foo : number + +class C1 { foo: number; } +>C1 : C1 +>foo : number + +class C2 { foo: T; } +>C2 : C2 +>T : T +>foo : T +>T : T + +enum E { A } +>E : E +>A : E + +function f() { } +>f : typeof f + +module f { +>f : typeof f + + export var bar = 1; +>bar : number +>1 : number +} +class c { baz: string } +>c : c +>baz : string + +module c { +>c : typeof c + + export var bar = 1; +>bar : number +>1 : number +} + +function f4(x: T) { +>f4 : (x: T) => void +>T : T +>Number : Number +>x : T +>T : T + + var r0 = true ? x : null; // ok +>r0 : T +>true ? x : null : T +>true : boolean +>x : T +>null : null + + var r0 = true ? null : x; // ok +>r0 : T +>true ? null : x : T +>true : boolean +>null : null +>x : T + + var u: typeof undefined; +>u : any +>undefined : undefined + + var r0b = true ? u : x; // ok +>r0b : any +>true ? u : x : any +>true : boolean +>u : any +>x : T + + var r0b = true ? x : u; // ok +>r0b : any +>true ? x : u : any +>true : boolean +>x : T +>u : any +} + +function f5(x: T) { +>f5 : (x: T) => void +>T : T +>Number : Number +>x : T +>T : T + + var r1 = true ? 1 : x; // ok +>r1 : number | T +>true ? 1 : x : number | T +>true : boolean +>1 : number +>x : T + + var r1 = true ? x : 1; // ok +>r1 : number | T +>true ? x : 1 : T | number +>true : boolean +>x : T +>1 : number +} + +function f6(x: T) { +>f6 : (x: T) => void +>T : T +>String : String +>x : T +>T : T + + var r2 = true ? '' : x; // ok +>r2 : string | T +>true ? '' : x : string | T +>true : boolean +>'' : string +>x : T + + var r2 = true ? x : ''; // ok +>r2 : string | T +>true ? x : '' : T | string +>true : boolean +>x : T +>'' : string +} + +function f7(x: T) { +>f7 : (x: T) => void +>T : T +>Boolean : Boolean +>x : T +>T : T + + var r3 = true ? true : x; // ok +>r3 : boolean | T +>true ? true : x : boolean | T +>true : boolean +>true : boolean +>x : T + + var r3 = true ? x : true; // ok +>r3 : boolean | T +>true ? x : true : T | boolean +>true : boolean +>x : T +>true : boolean +} + +function f8(x: T) { +>f8 : (x: T) => void +>T : T +>Date : Date +>x : T +>T : T + + var r4 = true ? new Date() : x; // ok +>r4 : Date +>true ? new Date() : x : Date +>true : boolean +>new Date() : Date +>Date : DateConstructor +>x : T + + var r4 = true ? x : new Date(); // ok +>r4 : Date +>true ? x : new Date() : Date +>true : boolean +>x : T +>new Date() : Date +>Date : DateConstructor +} + +function f9(x: T) { +>f9 : (x: T) => void +>T : T +>RegExp : RegExp +>x : T +>T : T + + var r5 = true ? /1/ : x; // ok +>r5 : RegExp +>true ? /1/ : x : RegExp +>true : boolean +>/1/ : RegExp +>x : T + + var r5 = true ? x : /1/; // ok +>r5 : RegExp +>true ? x : /1/ : RegExp +>true : boolean +>x : T +>/1/ : RegExp +} + +function f10(x: T) { +>f10 : (x: T) => void +>T : T +>foo : number +>x : T +>T : T + + var r6 = true ? { foo: 1 } : x; // ok +>r6 : { foo: number; } +>true ? { foo: 1 } : x : { foo: number; } +>true : boolean +>{ foo: 1 } : { foo: number; } +>foo : number +>1 : number +>x : T + + var r6 = true ? x : { foo: 1 }; // ok +>r6 : { foo: number; } +>true ? x : { foo: 1 } : { foo: number; } +>true : boolean +>x : T +>{ foo: 1 } : { foo: number; } +>foo : number +>1 : number +} + +function f11 void>(x: T) { +>f11 : void>(x: T) => void +>T : T +>x : T +>T : T + + var r7 = true ? () => { } : x; // ok +>r7 : () => void +>true ? () => { } : x : () => void +>true : boolean +>() => { } : () => void +>x : T + + var r7 = true ? x : () => { }; // ok +>r7 : () => void +>true ? x : () => { } : () => void +>true : boolean +>x : T +>() => { } : () => void +} + +function f12(x: U) => U>(x: T) { +>f12 : (x: U) => U>(x: T) => void +>T : T +>U : U +>x : U +>U : U +>U : U +>x : T +>T : T + + var r8 = true ? (x: T) => { return x } : x; // ok +>r8 : (x: T) => T +>true ? (x: T) => { return x } : x : (x: T) => T +>true : boolean +>(x: T) => { return x } : (x: T) => T +>T : T +>x : T +>T : T +>x : T +>x : T + + var r8b = true ? x : (x: T) => { return x }; // ok, type parameters not identical across declarations +>r8b : (x: T) => T +>true ? x : (x: T) => { return x } : (x: T) => T +>true : boolean +>x : T +>(x: T) => { return x } : (x: T) => T +>T : T +>x : T +>T : T +>x : T +} + +function f13(x: T) { +>f13 : (x: T) => void +>T : T +>I1 : I1 +>x : T +>T : T + + var i1: I1; +>i1 : I1 +>I1 : I1 + + var r9 = true ? i1 : x; // ok +>r9 : I1 +>true ? i1 : x : I1 +>true : boolean +>i1 : I1 +>x : T + + var r9 = true ? x : i1; // ok +>r9 : I1 +>true ? x : i1 : I1 +>true : boolean +>x : T +>i1 : I1 +} + +function f14(x: T) { +>f14 : (x: T) => void +>T : T +>C1 : C1 +>x : T +>T : T + + var c1: C1; +>c1 : C1 +>C1 : C1 + + var r10 = true ? c1 : x; // ok +>r10 : C1 +>true ? c1 : x : C1 +>true : boolean +>c1 : C1 +>x : T + + var r10 = true ? x : c1; // ok +>r10 : C1 +>true ? x : c1 : C1 +>true : boolean +>x : T +>c1 : C1 +} + +function f15>(x: T) { +>f15 : >(x: T) => void +>T : T +>C2 : C2 +>x : T +>T : T + + var c2: C2; +>c2 : C2 +>C2 : C2 + + var r12 = true ? c2 : x; // ok +>r12 : C2 +>true ? c2 : x : C2 +>true : boolean +>c2 : C2 +>x : T + + var r12 = true ? x : c2; // ok +>r12 : C2 +>true ? x : c2 : C2 +>true : boolean +>x : T +>c2 : C2 +} + +function f16(x: T) { +>f16 : (x: T) => void +>T : T +>E : E +>x : T +>T : T + + var r13 = true ? E : x; // ok +>r13 : typeof E | T +>true ? E : x : typeof E | T +>true : boolean +>E : typeof E +>x : T + + var r13 = true ? x : E; // ok +>r13 : typeof E | T +>true ? x : E : T | typeof E +>true : boolean +>x : T +>E : typeof E + + var r14 = true ? E.A : x; // ok +>r14 : E +>true ? E.A : x : E +>true : boolean +>E.A : E +>E : typeof E +>A : E +>x : T + + var r14 = true ? x : E.A; // ok +>r14 : E +>true ? x : E.A : E +>true : boolean +>x : T +>E.A : E +>E : typeof E +>A : E +} + +function f17(x: T) { +>f17 : (x: T) => void +>T : T +>f : typeof f +>x : T +>T : T + + var af: typeof f; +>af : typeof f +>f : typeof f + + var r15 = true ? af : x; // ok +>r15 : typeof f +>true ? af : x : typeof f +>true : boolean +>af : typeof f +>x : T + + var r15 = true ? x : af; // ok +>r15 : typeof f +>true ? x : af : typeof f +>true : boolean +>x : T +>af : typeof f +} + +function f18(x: T) { +>f18 : (x: T) => void +>T : T +>c : typeof c +>x : T +>T : T + + var ac: typeof c; +>ac : typeof c +>c : typeof c + + var r16 = true ? ac : x; // ok +>r16 : typeof c +>true ? ac : x : typeof c +>true : boolean +>ac : typeof c +>x : T + + var r16 = true ? x : ac; // ok +>r16 : typeof c +>true ? x : ac : typeof c +>true : boolean +>x : T +>ac : typeof c +} + +function f19(x: T) { +>f19 : (x: T) => void +>T : T +>x : T +>T : T + + function f17(a: U) { +>f17 : (a: U) => void +>U : U +>T : T +>a : U +>U : U + + var r17 = true ? x : a; // ok +>r17 : T +>true ? x : a : T +>true : boolean +>x : T +>a : U + + var r17 = true ? a : x; // ok +>r17 : T +>true ? a : x : T +>true : boolean +>a : U +>x : T + } + + function f18(a: V) { +>f18 : (a: V) => void +>V : V +>U : U +>U : U +>T : T +>a : V +>V : V + + var r18 = true ? x : a; // ok +>r18 : T +>true ? x : a : T +>true : boolean +>x : T +>a : V + + var r18 = true ? a : x; // ok +>r18 : T +>true ? a : x : T +>true : boolean +>a : V +>x : T + } +} + +function f20(x: T) { +>f20 : (x: T) => void +>T : T +>Number : Number +>x : T +>T : T + + var r19 = true ? new Object() : x; // ok +>r19 : Object +>true ? new Object() : x : Object +>true : boolean +>new Object() : Object +>Object : ObjectConstructor +>x : T + + var r19 = true ? x : new Object(); // ok +>r19 : Object +>true ? x : new Object() : Object +>true : boolean +>x : T +>new Object() : Object +>Object : ObjectConstructor +} + +function f21(x: T) { +>f21 : (x: T) => void +>T : T +>Number : Number +>x : T +>T : T + + var r20 = true ? {} : x; // ok +>r20 : {} +>true ? {} : x : {} +>true : boolean +>{} : {} +>x : T + + var r20 = true ? x : {}; // ok +>r20 : {} +>true ? x : {} : {} +>true : boolean +>x : T +>{} : {} +} diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.errors.txt b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.errors.txt deleted file mode 100644 index 2a5fa5ad362..00000000000 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints3.ts(3,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints3.ts (1 errors) ==== - // checking whether other types are subtypes of type parameters with constraints - - function f(t: T, u: U, v: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - // ok - var r = true ? t : u; - var r = true ? u : t; - - // ok - var r2 = true ? t : v; - var r2 = true ? v : t; - - // ok - var r3 = true ? v : u; - var r3 = true ? u : v; - } \ No newline at end of file diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.symbols b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.symbols new file mode 100644 index 00000000000..e0223d73574 --- /dev/null +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.symbols @@ -0,0 +1,49 @@ +=== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints3.ts === +// checking whether other types are subtypes of type parameters with constraints + +function f(t: T, u: U, v: V) { +>f : Symbol(f, Decl(subtypesOfTypeParameterWithConstraints3.ts, 0, 0)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 11)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 23)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 23)) +>V : Symbol(V, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 26)) +>t : Symbol(t, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 30)) +>T : Symbol(T, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 11)) +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 35)) +>U : Symbol(U, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 23)) +>v : Symbol(v, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 41)) +>V : Symbol(V, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 26)) + + // ok + var r = true ? t : u; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints3.ts, 4, 7), Decl(subtypesOfTypeParameterWithConstraints3.ts, 5, 7)) +>t : Symbol(t, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 30)) +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 35)) + + var r = true ? u : t; +>r : Symbol(r, Decl(subtypesOfTypeParameterWithConstraints3.ts, 4, 7), Decl(subtypesOfTypeParameterWithConstraints3.ts, 5, 7)) +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 35)) +>t : Symbol(t, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 30)) + + // ok + var r2 = true ? t : v; +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints3.ts, 8, 7), Decl(subtypesOfTypeParameterWithConstraints3.ts, 9, 7)) +>t : Symbol(t, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 30)) +>v : Symbol(v, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 41)) + + var r2 = true ? v : t; +>r2 : Symbol(r2, Decl(subtypesOfTypeParameterWithConstraints3.ts, 8, 7), Decl(subtypesOfTypeParameterWithConstraints3.ts, 9, 7)) +>v : Symbol(v, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 41)) +>t : Symbol(t, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 30)) + + // ok + var r3 = true ? v : u; +>r3 : Symbol(r3, Decl(subtypesOfTypeParameterWithConstraints3.ts, 12, 7), Decl(subtypesOfTypeParameterWithConstraints3.ts, 13, 7)) +>v : Symbol(v, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 41)) +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 35)) + + var r3 = true ? u : v; +>r3 : Symbol(r3, Decl(subtypesOfTypeParameterWithConstraints3.ts, 12, 7), Decl(subtypesOfTypeParameterWithConstraints3.ts, 13, 7)) +>u : Symbol(u, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 35)) +>v : Symbol(v, Decl(subtypesOfTypeParameterWithConstraints3.ts, 2, 41)) +} diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.types b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.types new file mode 100644 index 00000000000..88c58998264 --- /dev/null +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints3.types @@ -0,0 +1,61 @@ +=== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints3.ts === +// checking whether other types are subtypes of type parameters with constraints + +function f(t: T, u: U, v: V) { +>f : (t: T, u: U, v: V) => void +>T : T +>U : U +>U : U +>V : V +>t : T +>T : T +>u : U +>U : U +>v : V +>V : V + + // ok + var r = true ? t : u; +>r : U +>true ? t : u : U +>true : boolean +>t : T +>u : U + + var r = true ? u : t; +>r : U +>true ? u : t : U +>true : boolean +>u : U +>t : T + + // ok + var r2 = true ? t : v; +>r2 : T | V +>true ? t : v : T | V +>true : boolean +>t : T +>v : V + + var r2 = true ? v : t; +>r2 : T | V +>true ? v : t : V | T +>true : boolean +>v : V +>t : T + + // ok + var r3 = true ? v : u; +>r3 : V | U +>true ? v : u : V | U +>true : boolean +>v : V +>u : U + + var r3 = true ? u : v; +>r3 : V | U +>true ? u : v : U | V +>true : boolean +>u : U +>v : V +} diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js index 370bbf2b8ff..f388bd4e047 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js @@ -89,7 +89,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); function f(t, u, v) { // ok var r = true ? t : u; @@ -114,67 +114,67 @@ var B1 = (function () { function B1() { } return B1; -})(); +}()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(B1); +}(B1)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(B1); +}(B1)); var D3 = (function (_super) { __extends(D3, _super); function D3() { _super.apply(this, arguments); } return D3; -})(B1); +}(B1)); var D4 = (function (_super) { __extends(D4, _super); function D4() { _super.apply(this, arguments); } return D4; -})(B1); +}(B1)); var D5 = (function (_super) { __extends(D5, _super); function D5() { _super.apply(this, arguments); } return D5; -})(B1); +}(B1)); var D6 = (function (_super) { __extends(D6, _super); function D6() { _super.apply(this, arguments); } return D6; -})(B1); +}(B1)); var D7 = (function (_super) { __extends(D7, _super); function D7() { _super.apply(this, arguments); } return D7; -})(B1); +}(B1)); var D8 = (function (_super) { __extends(D8, _super); function D8() { _super.apply(this, arguments); } return D8; -})(B1); +}(B1)); var D9 = (function (_super) { __extends(D9, _super); function D9() { _super.apply(this, arguments); } return D9; -})(B1); +}(B1)); diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.errors.txt b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.errors.txt index 22b8c3cfb35..a7f9d3fad7f 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.errors.txt +++ b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.errors.txt @@ -1,109 +1,82 @@ -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(4,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(4,30): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(4,48): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(61,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(61,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(61,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(66,11): error TS2415: Class 'D2' incorrectly extends base class 'Base'. Types of property 'foo' are incompatible. Type 'U' is not assignable to type 'T'. - Type 'Foo' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(66,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(66,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(66,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'Foo' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(68,9): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(71,11): error TS2415: Class 'D3' incorrectly extends base class 'Base'. Types of property 'foo' are incompatible. Type 'V' is not assignable to type 'T'. - Type 'Foo' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(71,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(71,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(71,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'Foo' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(73,9): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(76,11): error TS2415: Class 'D4' incorrectly extends base class 'Base'. Types of property 'foo' are incompatible. Type 'T' is not assignable to type 'U'. - Type 'Foo' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(76,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(76,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(76,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'Foo' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(78,9): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(81,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(81,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(81,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(86,11): error TS2415: Class 'D6' incorrectly extends base class 'Base'. Types of property 'foo' are incompatible. Type 'V' is not assignable to type 'U'. - Type 'Foo' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(86,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(86,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(86,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'Foo' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(88,9): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'U'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(91,11): error TS2415: Class 'D7' incorrectly extends base class 'Base'. Types of property 'foo' are incompatible. Type 'T' is not assignable to type 'V'. - Type 'Foo' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(91,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(91,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(91,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'Foo' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(93,9): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'V'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(96,11): error TS2415: Class 'D8' incorrectly extends base class 'Base'. Types of property 'foo' are incompatible. Type 'U' is not assignable to type 'V'. - Type 'Foo' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(96,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(96,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(96,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + Type 'Foo' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(98,9): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(101,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(101,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(101,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(113,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(113,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(113,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(118,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(118,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(118,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(113,11): error TS2415: Class 'D1' incorrectly extends base class 'Base2'. + Types of property 'foo' are incompatible. + Type 'T' is not assignable to type 'Foo'. + Type 'Foo' is not assignable to type 'Foo'. + Type 'U' is not assignable to type 'T'. + Type 'Foo' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(120,9): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(123,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(123,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(123,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(123,11): error TS2415: Class 'D3' incorrectly extends base class 'Base2'. + Types of property 'foo' are incompatible. + Type 'V' is not assignable to type 'Foo'. + Type 'Foo' is not assignable to type 'Foo'. + Type 'V' is not assignable to type 'T'. + Type 'Foo' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(125,9): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'T'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(128,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(128,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(128,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(130,9): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(133,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(133,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(133,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(138,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(138,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(138,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(133,11): error TS2415: Class 'D5' incorrectly extends base class 'Base2'. + Types of property 'foo' are incompatible. + Type 'U' is not assignable to type 'Foo'. + Type 'Foo' is not assignable to type 'Foo'. + Type 'T' is not assignable to type 'U'. + Type 'Foo' is not assignable to type 'U'. +tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(138,11): error TS2415: Class 'D6' incorrectly extends base class 'Base2'. + Types of property 'foo' are incompatible. + Type 'V' is not assignable to type 'Foo'. + Type 'Foo' is not assignable to type 'Foo'. + Type 'V' is not assignable to type 'U'. + Type 'Foo' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(140,9): error TS2411: Property 'foo' of type 'V' is not assignable to string index type 'U'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(143,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(143,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(143,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(143,11): error TS2415: Class 'D7' incorrectly extends base class 'Base2'. + Types of property 'foo' are incompatible. + Type 'T' is not assignable to type 'Foo'. + Type 'Foo' is not assignable to type 'Foo'. + Type 'U' is not assignable to type 'V'. + Type 'Foo' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(145,9): error TS2411: Property 'foo' of type 'T' is not assignable to string index type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(148,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(148,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(148,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(148,11): error TS2415: Class 'D8' incorrectly extends base class 'Base2'. + Types of property 'foo' are incompatible. + Type 'U' is not assignable to type 'Foo'. + Type 'Foo' is not assignable to type 'Foo'. + Type 'T' is not assignable to type 'V'. + Type 'Foo' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(150,9): error TS2411: Property 'foo' of type 'U' is not assignable to string index type 'V'. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(153,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(153,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts(153,50): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts (75 errors) ==== +==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithRecursiveConstraints.ts (24 errors) ==== // checking whether other types are subtypes of type parameters with constraints class Foo { foo: T; } function f, U extends Foo, V extends Foo>(t: T, u: U, v: V) { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. // ok var r1 = true ? t : u; var r1 = true ? u : t; @@ -161,12 +134,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D1, U extends Foo, V extends Foo> extends Base { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: T } @@ -176,13 +143,7 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D2' incorrectly extends base class 'Base'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'U' is not assignable to type 'T'. -!!! error TS2415: Type 'Foo' is not assignable to type 'T'. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'Foo' is not assignable to type 'T'. [x: string]: T; foo: U ~~~~~~ @@ -194,13 +155,7 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D3' incorrectly extends base class 'Base'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'V' is not assignable to type 'T'. -!!! error TS2415: Type 'Foo' is not assignable to type 'T'. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'Foo' is not assignable to type 'T'. [x: string]: T; foo: V ~~~~~~ @@ -212,13 +167,7 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D4' incorrectly extends base class 'Base'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'T' is not assignable to type 'U'. -!!! error TS2415: Type 'Foo' is not assignable to type 'U'. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'Foo' is not assignable to type 'U'. [x: string]: U; foo: T ~~~~~~ @@ -226,12 +175,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D5, U extends Foo, V extends Foo> extends Base { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: U } @@ -241,13 +184,7 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D6' incorrectly extends base class 'Base'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'V' is not assignable to type 'U'. -!!! error TS2415: Type 'Foo' is not assignable to type 'U'. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'Foo' is not assignable to type 'U'. [x: string]: U; foo: V ~~~~~~ @@ -259,13 +196,7 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D7' incorrectly extends base class 'Base'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'T' is not assignable to type 'V'. -!!! error TS2415: Type 'Foo' is not assignable to type 'V'. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'Foo' is not assignable to type 'V'. [x: string]: V; foo: T ~~~~~~ @@ -277,13 +208,7 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf !!! error TS2415: Class 'D8' incorrectly extends base class 'Base'. !!! error TS2415: Types of property 'foo' are incompatible. !!! error TS2415: Type 'U' is not assignable to type 'V'. -!!! error TS2415: Type 'Foo' is not assignable to type 'V'. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +!!! error TS2415: Type 'Foo' is not assignable to type 'V'. [x: string]: V; foo: U ~~~~~~ @@ -291,12 +216,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D9, U extends Foo, V extends Foo> extends Base { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: V } @@ -309,23 +228,18 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D1, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~~ +!!! error TS2415: Class 'D1' incorrectly extends base class 'Base2'. +!!! error TS2415: Types of property 'foo' are incompatible. +!!! error TS2415: Type 'T' is not assignable to type 'Foo'. +!!! error TS2415: Type 'Foo' is not assignable to type 'Foo'. +!!! error TS2415: Type 'U' is not assignable to type 'T'. +!!! error TS2415: Type 'Foo' is not assignable to type 'T'. [x: string]: T; foo: T } class D2, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: T; foo: U ~~~~~~ @@ -333,12 +247,13 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D3, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~~ +!!! error TS2415: Class 'D3' incorrectly extends base class 'Base2'. +!!! error TS2415: Types of property 'foo' are incompatible. +!!! error TS2415: Type 'V' is not assignable to type 'Foo'. +!!! error TS2415: Type 'Foo' is not assignable to type 'Foo'. +!!! error TS2415: Type 'V' is not assignable to type 'T'. +!!! error TS2415: Type 'Foo' is not assignable to type 'T'. [x: string]: T; foo: V ~~~~~~ @@ -346,12 +261,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D4, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: U; foo: T ~~~~~~ @@ -359,23 +268,25 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D5, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~~ +!!! error TS2415: Class 'D5' incorrectly extends base class 'Base2'. +!!! error TS2415: Types of property 'foo' are incompatible. +!!! error TS2415: Type 'U' is not assignable to type 'Foo'. +!!! error TS2415: Type 'Foo' is not assignable to type 'Foo'. +!!! error TS2415: Type 'T' is not assignable to type 'U'. +!!! error TS2415: Type 'Foo' is not assignable to type 'U'. [x: string]: U; foo: U } class D6, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~~ +!!! error TS2415: Class 'D6' incorrectly extends base class 'Base2'. +!!! error TS2415: Types of property 'foo' are incompatible. +!!! error TS2415: Type 'V' is not assignable to type 'Foo'. +!!! error TS2415: Type 'Foo' is not assignable to type 'Foo'. +!!! error TS2415: Type 'V' is not assignable to type 'U'. +!!! error TS2415: Type 'Foo' is not assignable to type 'U'. [x: string]: U; foo: V ~~~~~~ @@ -383,12 +294,13 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D7, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~~ +!!! error TS2415: Class 'D7' incorrectly extends base class 'Base2'. +!!! error TS2415: Types of property 'foo' are incompatible. +!!! error TS2415: Type 'T' is not assignable to type 'Foo'. +!!! error TS2415: Type 'Foo' is not assignable to type 'Foo'. +!!! error TS2415: Type 'U' is not assignable to type 'V'. +!!! error TS2415: Type 'Foo' is not assignable to type 'V'. [x: string]: V; foo: T ~~~~~~ @@ -396,12 +308,13 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D8, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~~ +!!! error TS2415: Class 'D8' incorrectly extends base class 'Base2'. +!!! error TS2415: Types of property 'foo' are incompatible. +!!! error TS2415: Type 'U' is not assignable to type 'Foo'. +!!! error TS2415: Type 'Foo' is not assignable to type 'Foo'. +!!! error TS2415: Type 'T' is not assignable to type 'V'. +!!! error TS2415: Type 'Foo' is not assignable to type 'V'. [x: string]: V; foo: U ~~~~~~ @@ -409,12 +322,6 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOf } class D9, U extends Foo, V extends Foo> extends Base2 { - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. [x: string]: V; foo: V } diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js index c5d4e68b516..cffda7d7f55 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js +++ b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js @@ -168,7 +168,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); function f(t, u, v) { // ok var r1 = true ? t : u; @@ -213,70 +213,70 @@ var M1; function Base() { } return Base; - })(); + }()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; - })(Base); + }(Base)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; - })(Base); + }(Base)); var D3 = (function (_super) { __extends(D3, _super); function D3() { _super.apply(this, arguments); } return D3; - })(Base); + }(Base)); var D4 = (function (_super) { __extends(D4, _super); function D4() { _super.apply(this, arguments); } return D4; - })(Base); + }(Base)); var D5 = (function (_super) { __extends(D5, _super); function D5() { _super.apply(this, arguments); } return D5; - })(Base); + }(Base)); var D6 = (function (_super) { __extends(D6, _super); function D6() { _super.apply(this, arguments); } return D6; - })(Base); + }(Base)); var D7 = (function (_super) { __extends(D7, _super); function D7() { _super.apply(this, arguments); } return D7; - })(Base); + }(Base)); var D8 = (function (_super) { __extends(D8, _super); function D8() { _super.apply(this, arguments); } return D8; - })(Base); + }(Base)); var D9 = (function (_super) { __extends(D9, _super); function D9() { _super.apply(this, arguments); } return D9; - })(Base); + }(Base)); })(M1 || (M1 = {})); var M2; (function (M2) { @@ -284,68 +284,68 @@ var M2; function Base2() { } return Base2; - })(); + }()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; - })(Base2); + }(Base2)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; - })(Base2); + }(Base2)); var D3 = (function (_super) { __extends(D3, _super); function D3() { _super.apply(this, arguments); } return D3; - })(Base2); + }(Base2)); var D4 = (function (_super) { __extends(D4, _super); function D4() { _super.apply(this, arguments); } return D4; - })(Base2); + }(Base2)); var D5 = (function (_super) { __extends(D5, _super); function D5() { _super.apply(this, arguments); } return D5; - })(Base2); + }(Base2)); var D6 = (function (_super) { __extends(D6, _super); function D6() { _super.apply(this, arguments); } return D6; - })(Base2); + }(Base2)); var D7 = (function (_super) { __extends(D7, _super); function D7() { _super.apply(this, arguments); } return D7; - })(Base2); + }(Base2)); var D8 = (function (_super) { __extends(D8, _super); function D8() { _super.apply(this, arguments); } return D8; - })(Base2); + }(Base2)); var D9 = (function (_super) { __extends(D9, _super); function D9() { _super.apply(this, arguments); } return D9; - })(Base2); + }(Base2)); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/subtypesOfUnion.js b/tests/baselines/reference/subtypesOfUnion.js index 926efc3e921..cc0fdea7346 100644 --- a/tests/baselines/reference/subtypesOfUnion.js +++ b/tests/baselines/reference/subtypesOfUnion.js @@ -62,12 +62,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var A2 = (function () { function A2() { } return A2; -})(); +}()); function f() { } var f; (function (f) { @@ -77,7 +77,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/subtypingTransitivity.js b/tests/baselines/reference/subtypingTransitivity.js index 9bc5cd93209..9d3df207a0c 100644 --- a/tests/baselines/reference/subtypingTransitivity.js +++ b/tests/baselines/reference/subtypingTransitivity.js @@ -29,21 +29,21 @@ var B = (function () { function B() { } return B; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(B); +}(B)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(B); +}(B)); var b; var d; var d2; diff --git a/tests/baselines/reference/subtypingWithCallSignatures2.js b/tests/baselines/reference/subtypingWithCallSignatures2.js index f11b83c4da6..014ce4a3003 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures2.js +++ b/tests/baselines/reference/subtypingWithCallSignatures2.js @@ -183,28 +183,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var r1arg1 = function (x) { return [x]; }; var r1arg2 = function (x) { return [1]; }; var r1 = foo1(r1arg1); // any, return types are not subtype of first overload diff --git a/tests/baselines/reference/subtypingWithCallSignatures3.js b/tests/baselines/reference/subtypingWithCallSignatures3.js index 2b45b75b95f..55f5fa60e71 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures3.js +++ b/tests/baselines/reference/subtypingWithCallSignatures3.js @@ -132,28 +132,28 @@ var Errors; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Derived); + }(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; - })(Base); + }(Base)); var r1 = foo2(function (x) { return null; }); // any var r1a = [function (x) { return ['']; }, function (x) { return null; }]; var r1b = [function (x) { return null; }, function (x) { return ['']; }]; diff --git a/tests/baselines/reference/subtypingWithCallSignatures4.js b/tests/baselines/reference/subtypingWithCallSignatures4.js index d1d30437cd6..b8839316e86 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures4.js +++ b/tests/baselines/reference/subtypingWithCallSignatures4.js @@ -122,28 +122,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var r1arg = function (x) { return null; }; var r1arg2 = function (x) { return null; }; var r1 = foo1(r1arg); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures2.js b/tests/baselines/reference/subtypingWithConstructSignatures2.js index df050ffd6e9..c4168febf4e 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures2.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures2.js @@ -183,28 +183,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var r1arg1; var r1arg2; var r1 = foo1(r1arg1); // any, return types are not subtype of first overload diff --git a/tests/baselines/reference/subtypingWithConstructSignatures3.js b/tests/baselines/reference/subtypingWithConstructSignatures3.js index ccc6fb872c5..171e52505e0 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures3.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures3.js @@ -134,28 +134,28 @@ var Errors; function Base() { } return Base; - })(); + }()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; - })(Base); + }(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; - })(Derived); + }(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; - })(Base); + }(Base)); var r1arg1; var r1arg2; var r1 = foo2(r1arg1); // any diff --git a/tests/baselines/reference/subtypingWithConstructSignatures4.js b/tests/baselines/reference/subtypingWithConstructSignatures4.js index 67b83aa94c9..1152dde04dd 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures4.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures4.js @@ -122,28 +122,28 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); var r1arg; var r1arg2; var r1 = foo1(r1arg); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures5.js b/tests/baselines/reference/subtypingWithConstructSignatures5.js index ec3bad2c1f3..24a5ce77dd0 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures5.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures5.js @@ -60,25 +60,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures6.js b/tests/baselines/reference/subtypingWithConstructSignatures6.js index 1c7a2d883c3..8778255dbd5 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures6.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures6.js @@ -63,25 +63,25 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { _super.apply(this, arguments); } return OtherDerived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/subtypingWithNumericIndexer.js b/tests/baselines/reference/subtypingWithNumericIndexer.js index 2ad6a2ebedc..cd447c116da 100644 --- a/tests/baselines/reference/subtypingWithNumericIndexer.js +++ b/tests/baselines/reference/subtypingWithNumericIndexer.js @@ -50,54 +50,54 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A); +}(A)); var Generics; (function (Generics) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; - })(A); + }(A)); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A); + }(A)); var B4 = (function (_super) { __extends(B4, _super); function B4() { _super.apply(this, arguments); } return B4; - })(A); + }(A)); })(Generics || (Generics = {})); diff --git a/tests/baselines/reference/subtypingWithNumericIndexer3.js b/tests/baselines/reference/subtypingWithNumericIndexer3.js index f4c2d1d9da9..104141b761d 100644 --- a/tests/baselines/reference/subtypingWithNumericIndexer3.js +++ b/tests/baselines/reference/subtypingWithNumericIndexer3.js @@ -54,61 +54,61 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A); +}(A)); var Generics; (function (Generics) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; - })(A); + }(A)); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A); + }(A)); var B4 = (function (_super) { __extends(B4, _super); function B4() { _super.apply(this, arguments); } return B4; - })(A); + }(A)); var B5 = (function (_super) { __extends(B5, _super); function B5() { _super.apply(this, arguments); } return B5; - })(A); + }(A)); })(Generics || (Generics = {})); diff --git a/tests/baselines/reference/subtypingWithNumericIndexer4.js b/tests/baselines/reference/subtypingWithNumericIndexer4.js index 7956464d172..59f8cd95ad0 100644 --- a/tests/baselines/reference/subtypingWithNumericIndexer4.js +++ b/tests/baselines/reference/subtypingWithNumericIndexer4.js @@ -38,33 +38,33 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var Generics; (function (Generics) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A); + }(A)); })(Generics || (Generics = {})); diff --git a/tests/baselines/reference/subtypingWithNumericIndexer5.js b/tests/baselines/reference/subtypingWithNumericIndexer5.js index 4c6f785e1a9..50e54d888e7 100644 --- a/tests/baselines/reference/subtypingWithNumericIndexer5.js +++ b/tests/baselines/reference/subtypingWithNumericIndexer5.js @@ -49,37 +49,37 @@ var B = (function () { function B() { } return B; -})(); +}()); var B2 = (function () { function B2() { } return B2; -})(); +}()); var Generics; (function (Generics) { var B = (function () { function B() { } return B; - })(); + }()); var B2 = (function () { function B2() { } return B2; - })(); + }()); var B3 = (function () { function B3() { } return B3; - })(); + }()); var B4 = (function () { function B4() { } return B4; - })(); + }()); var B5 = (function () { function B5() { } return B5; - })(); + }()); })(Generics || (Generics = {})); diff --git a/tests/baselines/reference/subtypingWithObjectMembers.js b/tests/baselines/reference/subtypingWithObjectMembers.js index fc452ba8cf4..c3cef6601e6 100644 --- a/tests/baselines/reference/subtypingWithObjectMembers.js +++ b/tests/baselines/reference/subtypingWithObjectMembers.js @@ -77,95 +77,95 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Derived); +}(Derived)); // N and M have the same name, same accessibility, same optionality, and N is a subtype of M // foo properties are valid, bar properties cause errors in the derived class declarations var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var A2 = (function () { function A2() { } return A2; -})(); +}()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A2); +}(A2)); var A3 = (function () { function A3() { } return A3; -})(); +}()); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; -})(A3); +}(A3)); var TwoLevels; (function (TwoLevels) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var A2 = (function () { function A2() { } return A2; - })(); + }()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; - })(A2); + }(A2)); var A3 = (function () { function A3() { } return A3; - })(); + }()); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A3); + }(A3)); })(TwoLevels || (TwoLevels = {})); diff --git a/tests/baselines/reference/subtypingWithObjectMembers4.js b/tests/baselines/reference/subtypingWithObjectMembers4.js index 487a5969f71..d5c1107e45d 100644 --- a/tests/baselines/reference/subtypingWithObjectMembers4.js +++ b/tests/baselines/reference/subtypingWithObjectMembers4.js @@ -44,47 +44,47 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var A2 = (function () { function A2() { } return A2; -})(); +}()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A2); +}(A2)); var A3 = (function () { function A3() { } return A3; -})(); +}()); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; -})(A3); +}(A3)); diff --git a/tests/baselines/reference/subtypingWithObjectMembers5.js b/tests/baselines/reference/subtypingWithObjectMembers5.js index 55ea5ade0da..f01a603f563 100644 --- a/tests/baselines/reference/subtypingWithObjectMembers5.js +++ b/tests/baselines/reference/subtypingWithObjectMembers5.js @@ -71,17 +71,17 @@ var NotOptional; function B() { } return B; - })(); + }()); var B2 = (function () { function B2() { } return B2; - })(); + }()); var B3 = (function () { function B3() { } return B3; - })(); + }()); })(NotOptional || (NotOptional = {})); // same cases as above but with optional var Optional; @@ -90,15 +90,15 @@ var Optional; function B() { } return B; - })(); + }()); var B2 = (function () { function B2() { } return B2; - })(); + }()); var B3 = (function () { function B3() { } return B3; - })(); + }()); })(Optional || (Optional = {})); diff --git a/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js b/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js index f08f2367d2c..25faacad88e 100644 --- a/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js +++ b/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js @@ -44,47 +44,47 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var A2 = (function () { function A2() { } return A2; -})(); +}()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A2); +}(A2)); var A3 = (function () { function A3() { } return A3; -})(); +}()); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; -})(A3); +}(A3)); diff --git a/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js b/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js index c23405cd50c..7b0398143a2 100644 --- a/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js +++ b/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js @@ -72,52 +72,52 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { _super.apply(this, arguments); } return Derived; -})(Base); +}(Base)); var ExplicitPublic; (function (ExplicitPublic) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var A2 = (function () { function A2() { } return A2; - })(); + }()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; - })(A2); + }(A2)); var A3 = (function () { function A3() { } return A3; - })(); + }()); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A3); + }(A3)); })(ExplicitPublic || (ExplicitPublic = {})); var ImplicitPublic; (function (ImplicitPublic) { @@ -125,36 +125,36 @@ var ImplicitPublic; function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var A2 = (function () { function A2() { } return A2; - })(); + }()); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; - })(A2); + }(A2)); var A3 = (function () { function A3() { } return A3; - })(); + }()); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A3); + }(A3)); })(ImplicitPublic || (ImplicitPublic = {})); diff --git a/tests/baselines/reference/subtypingWithStringIndexer.js b/tests/baselines/reference/subtypingWithStringIndexer.js index 5f606520a65..0740743a5d9 100644 --- a/tests/baselines/reference/subtypingWithStringIndexer.js +++ b/tests/baselines/reference/subtypingWithStringIndexer.js @@ -51,54 +51,54 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A); +}(A)); var Generics; (function (Generics) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; - })(A); + }(A)); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A); + }(A)); var B4 = (function (_super) { __extends(B4, _super); function B4() { _super.apply(this, arguments); } return B4; - })(A); + }(A)); })(Generics || (Generics = {})); diff --git a/tests/baselines/reference/subtypingWithStringIndexer3.js b/tests/baselines/reference/subtypingWithStringIndexer3.js index 6ce66c4e723..5ed44177d52 100644 --- a/tests/baselines/reference/subtypingWithStringIndexer3.js +++ b/tests/baselines/reference/subtypingWithStringIndexer3.js @@ -54,61 +54,61 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; -})(A); +}(A)); var Generics; (function (Generics) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var B2 = (function (_super) { __extends(B2, _super); function B2() { _super.apply(this, arguments); } return B2; - })(A); + }(A)); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A); + }(A)); var B4 = (function (_super) { __extends(B4, _super); function B4() { _super.apply(this, arguments); } return B4; - })(A); + }(A)); var B5 = (function (_super) { __extends(B5, _super); function B5() { _super.apply(this, arguments); } return B5; - })(A); + }(A)); })(Generics || (Generics = {})); diff --git a/tests/baselines/reference/subtypingWithStringIndexer4.js b/tests/baselines/reference/subtypingWithStringIndexer4.js index 19d36e475c2..d6fb874c090 100644 --- a/tests/baselines/reference/subtypingWithStringIndexer4.js +++ b/tests/baselines/reference/subtypingWithStringIndexer4.js @@ -38,33 +38,33 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; -})(A); +}(A)); var Generics; (function (Generics) { var A = (function () { function A() { } return A; - })(); + }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } return B; - })(A); + }(A)); var B3 = (function (_super) { __extends(B3, _super); function B3() { _super.apply(this, arguments); } return B3; - })(A); + }(A)); })(Generics || (Generics = {})); diff --git a/tests/baselines/reference/super.js b/tests/baselines/reference/super.js index 1d060672ceb..81d76aec62b 100644 --- a/tests/baselines/reference/super.js +++ b/tests/baselines/reference/super.js @@ -54,7 +54,7 @@ var Base = (function () { return "basebar"; }; return Base; -})(); +}()); var Sub1 = (function (_super) { __extends(Sub1, _super); function Sub1() { @@ -64,7 +64,7 @@ var Sub1 = (function (_super) { return "sub1" + _super.prototype.foo.call(this) + _super.prototype.bar.call(this); }; return Sub1; -})(Base); +}(Base)); var SubSub1 = (function (_super) { __extends(SubSub1, _super); function SubSub1() { @@ -74,7 +74,7 @@ var SubSub1 = (function (_super) { return "subsub1" + _super.prototype.foo.call(this); }; return SubSub1; -})(Sub1); +}(Sub1)); var Base2 = (function () { function Base2() { } @@ -82,7 +82,7 @@ var Base2 = (function () { _super.prototype.foo.call(this); }; return Base2; -})(); +}()); var s = new Sub1(); var ss = new SubSub1(); s.foo() + ss.foo(); diff --git a/tests/baselines/reference/super1.js b/tests/baselines/reference/super1.js index 5c2182d8afb..4179843b79a 100644 --- a/tests/baselines/reference/super1.js +++ b/tests/baselines/reference/super1.js @@ -80,7 +80,7 @@ var Base1 = (function () { return "base"; }; return Base1; -})(); +}()); var Sub1 = (function (_super) { __extends(Sub1, _super); function Sub1() { @@ -90,7 +90,7 @@ var Sub1 = (function (_super) { return "base"; }; return Sub1; -})(Base1); +}(Base1)); var SubSub1 = (function (_super) { __extends(SubSub1, _super); function SubSub1() { @@ -100,7 +100,7 @@ var SubSub1 = (function (_super) { return _super.prototype.super.foo; }; return SubSub1; -})(Sub1); +}(Sub1)); // Case 2 var Base2 = (function () { function Base2() { @@ -109,7 +109,7 @@ var Base2 = (function () { return "base"; }; return Base2; -})(); +}()); var SubE2 = (function (_super) { __extends(SubE2, _super); function SubE2() { @@ -119,7 +119,7 @@ var SubE2 = (function (_super) { return _super.prototype.prototype.foo = null; }; return SubE2; -})(Base2); +}(Base2)); // Case 3 var Base3 = (function () { function Base3() { @@ -128,7 +128,7 @@ var Base3 = (function () { return "base"; }; return Base3; -})(); +}()); var SubE3 = (function (_super) { __extends(SubE3, _super); function SubE3() { @@ -138,7 +138,7 @@ var SubE3 = (function (_super) { return _super.prototype.bar.call(this); }; return SubE3; -})(Base3); +}(Base3)); // Case 4 var Base4; (function (Base4) { @@ -149,7 +149,7 @@ var Base4; return "hello"; }; return Sub4; - })(); + }()); var SubSub4 = (function (_super) { __extends(SubSub4, _super); function SubSub4() { @@ -159,7 +159,7 @@ var Base4; return _super.prototype.x.call(this); }; return SubSub4; - })(Sub4); + }(Sub4)); Base4.SubSub4 = SubSub4; var Sub4E = (function () { function Sub4E() { @@ -168,6 +168,6 @@ var Base4; return _super.prototype.x.call(this); }; return Sub4E; - })(); + }()); Base4.Sub4E = Sub4E; })(Base4 || (Base4 = {})); diff --git a/tests/baselines/reference/super2.js b/tests/baselines/reference/super2.js index 9d865194a2a..979bdba84e4 100644 --- a/tests/baselines/reference/super2.js +++ b/tests/baselines/reference/super2.js @@ -67,7 +67,7 @@ var Base5 = (function () { return "BaseY"; }; return Base5; -})(); +}()); var Sub5 = (function (_super) { __extends(Sub5, _super); function Sub5() { @@ -77,7 +77,7 @@ var Sub5 = (function (_super) { return "SubX"; }; return Sub5; -})(Base5); +}(Base5)); var SubSub5 = (function (_super) { __extends(SubSub5, _super); function SubSub5() { @@ -90,7 +90,7 @@ var SubSub5 = (function (_super) { return _super.prototype.y.call(this); }; return SubSub5; -})(Sub5); +}(Sub5)); // Case 6 var Base6 = (function () { function Base6() { @@ -99,7 +99,7 @@ var Base6 = (function () { return "BaseX"; }; return Base6; -})(); +}()); var Sub6 = (function (_super) { __extends(Sub6, _super); function Sub6() { @@ -109,7 +109,7 @@ var Sub6 = (function (_super) { return "SubY"; }; return Sub6; -})(Base6); +}(Base6)); var SubSub6 = (function (_super) { __extends(SubSub6, _super); function SubSub6() { @@ -119,7 +119,7 @@ var SubSub6 = (function (_super) { return _super.prototype.y.call(this); }; return SubSub6; -})(Sub6); +}(Sub6)); var results1 = new SubSub5(); var results2 = new SubSub6(); results1.x() + results1.y() + results2.y(); diff --git a/tests/baselines/reference/superAccess.js b/tests/baselines/reference/superAccess.js index bb5a71a0b8f..37c6a9816a6 100644 --- a/tests/baselines/reference/superAccess.js +++ b/tests/baselines/reference/superAccess.js @@ -26,7 +26,7 @@ var MyBase = (function () { } MyBase.S1 = 5; return MyBase; -})(); +}()); var MyDerived = (function (_super) { __extends(MyDerived, _super); function MyDerived() { @@ -38,4 +38,4 @@ var MyDerived = (function (_super) { var l5 = _super.prototype.f.call(this); // Expected => Error: Only public instance methods of the base class are accessible via the 'super' keyword }; return MyDerived; -})(MyBase); +}(MyBase)); diff --git a/tests/baselines/reference/superAccess2.js b/tests/baselines/reference/superAccess2.js index fd20f424ba3..b27d695cb31 100644 --- a/tests/baselines/reference/superAccess2.js +++ b/tests/baselines/reference/superAccess2.js @@ -36,7 +36,7 @@ var P = (function () { P.prototype.x = function () { }; P.y = function () { }; return P; -})(); +}()); var Q = (function (_super) { __extends(Q, _super); // Super is not allowed in constructor args @@ -61,4 +61,4 @@ var Q = (function (_super) { }; Q.yy = _super.; // error for static initializer accessing super return Q; -})(P); +}(P)); diff --git a/tests/baselines/reference/superAccessInFatArrow1.js b/tests/baselines/reference/superAccessInFatArrow1.js index 0dc69179c92..3cd4e199c62 100644 --- a/tests/baselines/reference/superAccessInFatArrow1.js +++ b/tests/baselines/reference/superAccessInFatArrow1.js @@ -29,7 +29,7 @@ var test; A.prototype.foo = function () { }; return A; - })(); + }()); test.A = A; var B = (function (_super) { __extends(B, _super); @@ -45,6 +45,6 @@ var test; }); }; return B; - })(A); + }(A)); test.B = B; })(test || (test = {})); diff --git a/tests/baselines/reference/superCallArgsMustMatch.js b/tests/baselines/reference/superCallArgsMustMatch.js index 3369cf7e8df..9dcdbda8e31 100644 --- a/tests/baselines/reference/superCallArgsMustMatch.js +++ b/tests/baselines/reference/superCallArgsMustMatch.js @@ -36,7 +36,7 @@ var T5 = (function () { this.bar = bar; } return T5; -})(); +}()); var T6 = (function (_super) { __extends(T6, _super); function T6() { @@ -46,4 +46,4 @@ var T6 = (function (_super) { var x = this.foo; } return T6; -})(T5); +}(T5)); diff --git a/tests/baselines/reference/superCallAssignResult.js b/tests/baselines/reference/superCallAssignResult.js index 24a198e3420..7002f94eb7d 100644 --- a/tests/baselines/reference/superCallAssignResult.js +++ b/tests/baselines/reference/superCallAssignResult.js @@ -20,7 +20,7 @@ var E = (function () { function E(arg) { } return E; -})(); +}()); var H = (function (_super) { __extends(H, _super); function H() { @@ -28,4 +28,4 @@ var H = (function (_super) { x = 5; } return H; -})(E); +}(E)); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js index d59f6f5a578..50830480b1a 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js @@ -23,4 +23,4 @@ var D = (function (_super) { _super.call(this); } return D; -})(B); +}(B)); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js index a3d5d42c822..ef770985888 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js @@ -22,4 +22,4 @@ var D = (function (_super) { _super.call(this); } return D; -})(B); +}(B)); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js index 155258861bf..ebb70023b53 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js @@ -21,11 +21,11 @@ var A = (function () { this.map = map; } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.call(this, function (value) { return String(value); }); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js index 37883b9921a..d619343ba14 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js @@ -21,11 +21,11 @@ var A = (function () { this.map = map; } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.call(this, function (value) { return String(value); }); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js index dbd4528c39f..e9ee84be152 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js @@ -21,11 +21,11 @@ var A = (function () { this.map = map; } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { _super.call(this, function (value) { return String(value); }); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallFromClassThatHasNoBaseType1.js b/tests/baselines/reference/superCallFromClassThatHasNoBaseType1.js index 7818aed7ff8..d793e9bb2ae 100644 --- a/tests/baselines/reference/superCallFromClassThatHasNoBaseType1.js +++ b/tests/baselines/reference/superCallFromClassThatHasNoBaseType1.js @@ -16,10 +16,10 @@ var A = (function () { this.map = map; } return A; -})(); +}()); var B = (function () { function B() { _super.call(this, function (value) { return String(value); }); } return B; -})(); +}()); diff --git a/tests/baselines/reference/superCallInConstructorWithNoBaseType.js b/tests/baselines/reference/superCallInConstructorWithNoBaseType.js index 8d24fc45c29..9b0f63ed871 100644 --- a/tests/baselines/reference/superCallInConstructorWithNoBaseType.js +++ b/tests/baselines/reference/superCallInConstructorWithNoBaseType.js @@ -17,11 +17,11 @@ var C = (function () { _super.call(this); // error } return C; -})(); +}()); var D = (function () { function D(x) { this.x = x; _super.call(this); // error } return D; -})(); +}()); diff --git a/tests/baselines/reference/superCallInNonStaticMethod.js b/tests/baselines/reference/superCallInNonStaticMethod.js index 7de6a100451..3ff07edf4c9 100644 --- a/tests/baselines/reference/superCallInNonStaticMethod.js +++ b/tests/baselines/reference/superCallInNonStaticMethod.js @@ -62,7 +62,7 @@ var Doing = (function () { Doing.prototype.instanceMethod = function () { }; return Doing; -})(); +}()); var Other = (function (_super) { __extends(Other, _super); function Other() { @@ -107,4 +107,4 @@ var Other = (function (_super) { configurable: true }); return Other; -})(Doing); +}(Doing)); diff --git a/tests/baselines/reference/superCallInStaticMethod.js b/tests/baselines/reference/superCallInStaticMethod.js index 9978773739f..91558e47d3f 100644 --- a/tests/baselines/reference/superCallInStaticMethod.js +++ b/tests/baselines/reference/superCallInStaticMethod.js @@ -58,7 +58,7 @@ var Doing = (function () { Doing.staticMethod = function () { }; return Doing; -})(); +}()); var Other = (function (_super) { __extends(Other, _super); function Other() { @@ -104,4 +104,4 @@ var Other = (function (_super) { _super.staticMethod.call(this); }; return Other; -})(Doing); +}(Doing)); diff --git a/tests/baselines/reference/superCallInsideClassDeclaration.js b/tests/baselines/reference/superCallInsideClassDeclaration.js index 6d16aceb247..e677c426e02 100644 --- a/tests/baselines/reference/superCallInsideClassDeclaration.js +++ b/tests/baselines/reference/superCallInsideClassDeclaration.js @@ -26,12 +26,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -41,7 +41,7 @@ var B = (function (_super) { _super.call(this); } return D; - })(C); + }(C)); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallInsideClassExpression.js b/tests/baselines/reference/superCallInsideClassExpression.js index ea24003d9b7..ee373f69f46 100644 --- a/tests/baselines/reference/superCallInsideClassExpression.js +++ b/tests/baselines/reference/superCallInsideClassExpression.js @@ -26,12 +26,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var C = (function () { function C() { } return C; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -41,7 +41,7 @@ var B = (function (_super) { _super.call(this); } return class_1; - })(C); + }(C)); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js index 60513cf43ee..3f9a0a9ce9c 100644 --- a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js +++ b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js @@ -24,7 +24,7 @@ var A = (function () { A.prototype.foo = function () { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -33,4 +33,4 @@ var B = (function (_super) { }; } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallOutsideConstructor.js b/tests/baselines/reference/superCallOutsideConstructor.js index c2152e13db0..202ed531a10 100644 --- a/tests/baselines/reference/superCallOutsideConstructor.js +++ b/tests/baselines/reference/superCallOutsideConstructor.js @@ -33,7 +33,7 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -47,5 +47,5 @@ var D = (function (_super) { }; } return D; -})(C); +}(C)); var d = new D(); diff --git a/tests/baselines/reference/superCallParameterContextualTyping1.js b/tests/baselines/reference/superCallParameterContextualTyping1.js index b7508e4cd7d..5bfe3927a51 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping1.js +++ b/tests/baselines/reference/superCallParameterContextualTyping1.js @@ -23,7 +23,7 @@ var A = (function () { this.map = map; } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); // Ensure 'value' is of type 'number (and not '{}') by using its 'toExponential()' method. @@ -31,4 +31,4 @@ var B = (function (_super) { _super.call(this, function (value) { return String(value.toExponential()); }); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallParameterContextualTyping2.js b/tests/baselines/reference/superCallParameterContextualTyping2.js index 996e0374c7f..539ecbed065 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping2.js +++ b/tests/baselines/reference/superCallParameterContextualTyping2.js @@ -22,7 +22,7 @@ var A = (function () { this.map = map; } return A; -})(); +}()); var C = (function (_super) { __extends(C, _super); // Ensure 'value' is not of type 'any' by invoking it with type arguments. @@ -30,4 +30,4 @@ var C = (function (_super) { _super.call(this, function (value) { return String(value()); }); } return C; -})(A); +}(A)); diff --git a/tests/baselines/reference/superCallParameterContextualTyping3.js b/tests/baselines/reference/superCallParameterContextualTyping3.js index 6f1311e58ab..d35a1707bb7 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping3.js +++ b/tests/baselines/reference/superCallParameterContextualTyping3.js @@ -43,7 +43,7 @@ var CBase = (function () { CBase.prototype.foo = function (param) { }; return CBase; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { @@ -63,4 +63,4 @@ var C = (function (_super) { }); } return C; -})(CBase); +}(CBase)); diff --git a/tests/baselines/reference/superCallWithMissingBaseClass.js b/tests/baselines/reference/superCallWithMissingBaseClass.js index 101e709653e..7758bcfd89d 100644 --- a/tests/baselines/reference/superCallWithMissingBaseClass.js +++ b/tests/baselines/reference/superCallWithMissingBaseClass.js @@ -27,4 +27,4 @@ var Foo = (function (_super) { return _super.m2.call(this); }; return Foo; -})(Bar); +}(Bar)); diff --git a/tests/baselines/reference/superCalls.js b/tests/baselines/reference/superCalls.js index bd54ba34b56..ae8327ec200 100644 --- a/tests/baselines/reference/superCalls.js +++ b/tests/baselines/reference/superCalls.js @@ -41,7 +41,7 @@ var Base = (function () { this.x = 43; } return Base; -})(); +}()); function v() { } var Derived = (function (_super) { __extends(Derived, _super); @@ -54,12 +54,12 @@ var Derived = (function (_super) { var p = v(); } return Derived; -})(Base); +}(Base)); var OtherBase = (function () { function OtherBase() { } return OtherBase; -})(); +}()); var OtherDerived = (function (_super) { __extends(OtherDerived, _super); function OtherDerived() { @@ -67,4 +67,4 @@ var OtherDerived = (function (_super) { _super.call(this); } return OtherDerived; -})(OtherBase); +}(OtherBase)); diff --git a/tests/baselines/reference/superCallsInConstructor.js b/tests/baselines/reference/superCallsInConstructor.js index c238808b959..434f730c76b 100644 --- a/tests/baselines/reference/superCallsInConstructor.js +++ b/tests/baselines/reference/superCallsInConstructor.js @@ -32,12 +32,12 @@ var C = (function () { C.prototype.foo = function () { }; C.prototype.bar = function () { }; return C; -})(); +}()); var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived = (function (_super) { __extends(Derived, _super); function Derived() { @@ -52,4 +52,4 @@ var Derived = (function (_super) { } } return Derived; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/superErrors.js b/tests/baselines/reference/superErrors.js index 3a3de509120..0208e720b0c 100644 --- a/tests/baselines/reference/superErrors.js +++ b/tests/baselines/reference/superErrors.js @@ -71,7 +71,7 @@ var User = (function () { //console.log("Hello, " + this.name); }; return User; -})(); +}()); var RegisteredUser = (function (_super) { __extends(RegisteredUser, _super); function RegisteredUser() { @@ -106,4 +106,4 @@ var RegisteredUser = (function (_super) { var y = function () { return function () { return function () { return _super.; }; }; }; }; return RegisteredUser; -})(User); +}(User)); diff --git a/tests/baselines/reference/superInCatchBlock1.js b/tests/baselines/reference/superInCatchBlock1.js index cf4c69c7b61..9d5cb1affdc 100644 --- a/tests/baselines/reference/superInCatchBlock1.js +++ b/tests/baselines/reference/superInCatchBlock1.js @@ -24,7 +24,7 @@ var A = (function () { } A.prototype.m = function () { }; return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { @@ -38,4 +38,4 @@ var B = (function (_super) { } }; return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superInConstructorParam1.js b/tests/baselines/reference/superInConstructorParam1.js index 7c0cc7bf40d..9c3c11d105c 100644 --- a/tests/baselines/reference/superInConstructorParam1.js +++ b/tests/baselines/reference/superInConstructorParam1.js @@ -23,11 +23,11 @@ var B = (function () { return 0; }; return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C(a) { if (a === void 0) { a = _super.prototype.foo.call(this); } } return C; -})(B); +}(B)); diff --git a/tests/baselines/reference/superInLambdas.js b/tests/baselines/reference/superInLambdas.js index 89d5798f882..b0940b1d538 100644 --- a/tests/baselines/reference/superInLambdas.js +++ b/tests/baselines/reference/superInLambdas.js @@ -81,7 +81,7 @@ var User = (function () { //console.log("Hello, " + this.name); }; return User; -})(); +}()); var RegisteredUser = (function (_super) { __extends(RegisteredUser, _super); function RegisteredUser() { @@ -101,7 +101,7 @@ var RegisteredUser = (function (_super) { var x = function () { return _super.prototype.sayHello.call(_this); }; }; return RegisteredUser; -})(User); +}(User)); var RegisteredUser2 = (function (_super) { __extends(RegisteredUser2, _super); function RegisteredUser2() { @@ -117,7 +117,7 @@ var RegisteredUser2 = (function (_super) { var x = function () { return function () { return function () { return _super.prototype.sayHello.call(_this); }; }; }; }; return RegisteredUser2; -})(User); +}(User)); var RegisteredUser3 = (function (_super) { __extends(RegisteredUser3, _super); function RegisteredUser3() { @@ -133,7 +133,7 @@ var RegisteredUser3 = (function (_super) { var superName = function () { return function () { return function () { return _super.prototype.name; }; }; }; }; return RegisteredUser3; -})(User); +}(User)); var RegisteredUser4 = (function (_super) { __extends(RegisteredUser4, _super); function RegisteredUser4() { @@ -149,4 +149,4 @@ var RegisteredUser4 = (function (_super) { var x = function () { return function () { return _super.prototype.; }; }; }; return RegisteredUser4; -})(User); +}(User)); diff --git a/tests/baselines/reference/superNewCall1.js b/tests/baselines/reference/superNewCall1.js index aa25e65e14d..01ae169b598 100644 --- a/tests/baselines/reference/superNewCall1.js +++ b/tests/baselines/reference/superNewCall1.js @@ -23,11 +23,11 @@ var A = (function () { this.map = map; } return A; -})(); +}()); var B = (function (_super) { __extends(B, _super); function B() { new _super.prototype(function (value) { return String(value); }); } return B; -})(A); +}(A)); diff --git a/tests/baselines/reference/superPropertyAccess.js b/tests/baselines/reference/superPropertyAccess.js index 95dbb2f94e0..0e1e8783448 100644 --- a/tests/baselines/reference/superPropertyAccess.js +++ b/tests/baselines/reference/superPropertyAccess.js @@ -57,7 +57,7 @@ var MyBase = (function () { configurable: true }); return MyBase; -})(); +}()); var MyDerived = (function (_super) { __extends(MyDerived, _super); function MyDerived() { @@ -76,4 +76,4 @@ var MyDerived = (function (_super) { var z = _super.prototype.value; // Should error, instance data property not a public instance member function }; return MyDerived; -})(MyBase); +}(MyBase)); diff --git a/tests/baselines/reference/superPropertyAccess1.js b/tests/baselines/reference/superPropertyAccess1.js index 748331af95f..4df9398024c 100644 --- a/tests/baselines/reference/superPropertyAccess1.js +++ b/tests/baselines/reference/superPropertyAccess1.js @@ -46,7 +46,7 @@ var C = (function () { }); C.prototype.bar = function () { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -68,4 +68,4 @@ var D = (function (_super) { configurable: true }); return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/superPropertyAccess2.js b/tests/baselines/reference/superPropertyAccess2.js index dccd4717ee0..ec74a2ea069 100644 --- a/tests/baselines/reference/superPropertyAccess2.js +++ b/tests/baselines/reference/superPropertyAccess2.js @@ -46,7 +46,7 @@ var C = (function () { }); C.bar = function () { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -68,4 +68,4 @@ var D = (function (_super) { configurable: true }); return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/superPropertyAccessNoError.js b/tests/baselines/reference/superPropertyAccessNoError.js index 44a6910a386..a9d2f88738e 100644 --- a/tests/baselines/reference/superPropertyAccessNoError.js +++ b/tests/baselines/reference/superPropertyAccessNoError.js @@ -82,7 +82,7 @@ var SomeBaseClass = (function () { return 3; }; return SomeBaseClass; -})(); +}()); var SomeDerivedClass = (function (_super) { __extends(SomeDerivedClass, _super); function SomeDerivedClass() { @@ -127,4 +127,4 @@ var SomeDerivedClass = (function (_super) { configurable: true }); return SomeDerivedClass; -})(SomeBaseClass); +}(SomeBaseClass)); diff --git a/tests/baselines/reference/superPropertyAccess_ES5.errors.txt b/tests/baselines/reference/superPropertyAccess_ES5.errors.txt new file mode 100644 index 00000000000..08adcd36e68 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES5.errors.txt @@ -0,0 +1,38 @@ +tests/cases/compiler/superPropertyAccess_ES5.ts(12,22): error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword. +tests/cases/compiler/superPropertyAccess_ES5.ts(27,15): error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword. + + +==== tests/cases/compiler/superPropertyAccess_ES5.ts (2 errors) ==== + + class MyBase { + getValue(): number { return 1; } + get value(): number { return 1; } + } + + class MyDerived extends MyBase { + constructor() { + super(); + + const f1 = super.getValue(); + const f2 = super.value; + ~~~~~ +!!! error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword. + } + } + + var d = new MyDerived(); + var f3 = d.value; + + class A { + private _property: string; + get property() { return this._property; } + set property(value: string) { this._property = value } + } + + class B extends A { + set property(value: string) { + super.property = value + " addition"; + ~~~~~~~~ +!!! error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/superPropertyAccess_ES5.js b/tests/baselines/reference/superPropertyAccess_ES5.js new file mode 100644 index 00000000000..63f5f6f316a --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES5.js @@ -0,0 +1,84 @@ +//// [superPropertyAccess_ES5.ts] + +class MyBase { + getValue(): number { return 1; } + get value(): number { return 1; } +} + +class MyDerived extends MyBase { + constructor() { + super(); + + const f1 = super.getValue(); + const f2 = super.value; + } +} + +var d = new MyDerived(); +var f3 = d.value; + +class A { + private _property: string; + get property() { return this._property; } + set property(value: string) { this._property = value } +} + +class B extends A { + set property(value: string) { + super.property = value + " addition"; + } +} + +//// [superPropertyAccess_ES5.js] +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +var MyBase = (function () { + function MyBase() { + } + MyBase.prototype.getValue = function () { return 1; }; + Object.defineProperty(MyBase.prototype, "value", { + get: function () { return 1; }, + enumerable: true, + configurable: true + }); + return MyBase; +}()); +var MyDerived = (function (_super) { + __extends(MyDerived, _super); + function MyDerived() { + _super.call(this); + var f1 = _super.prototype.getValue.call(this); + var f2 = _super.prototype.value; + } + return MyDerived; +}(MyBase)); +var d = new MyDerived(); +var f3 = d.value; +var A = (function () { + function A() { + } + Object.defineProperty(A.prototype, "property", { + get: function () { return this._property; }, + set: function (value) { this._property = value; }, + enumerable: true, + configurable: true + }); + return A; +}()); +var B = (function (_super) { + __extends(B, _super); + function B() { + _super.apply(this, arguments); + } + Object.defineProperty(B.prototype, "property", { + set: function (value) { + _super.prototype.property = value + " addition"; + }, + enumerable: true, + configurable: true + }); + return B; +}(A)); diff --git a/tests/baselines/reference/superPropertyAccess_ES6.js b/tests/baselines/reference/superPropertyAccess_ES6.js new file mode 100644 index 00000000000..1b23c6ca0d8 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES6.js @@ -0,0 +1,54 @@ +//// [superPropertyAccess_ES6.ts] + +class MyBase { + getValue(): number { return 1; } + get value(): number { return 1; } +} + +class MyDerived extends MyBase { + constructor() { + super(); + + const f1 = super.getValue(); + const f2 = super.value; + } +} + +var d = new MyDerived(); +var f3 = d.value; + +class A { + private _property: string; + get property() { return this._property; } + set property(value: string) { this._property = value } +} + +class B extends A { + set property(value: string) { + super.property = value + " addition"; + } +} + +//// [superPropertyAccess_ES6.js] +class MyBase { + getValue() { return 1; } + get value() { return 1; } +} +class MyDerived extends MyBase { + constructor() { + super(); + const f1 = super.getValue(); + const f2 = super.value; + } +} +var d = new MyDerived(); +var f3 = d.value; +class A { + get property() { return this._property; } + set property(value) { this._property = value; } +} +class B extends A { + set property(value) { + super.property = value + " addition"; + } +} diff --git a/tests/baselines/reference/superPropertyAccess_ES6.symbols b/tests/baselines/reference/superPropertyAccess_ES6.symbols new file mode 100644 index 00000000000..ada6c5b8057 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES6.symbols @@ -0,0 +1,80 @@ +=== tests/cases/compiler/superPropertyAccess_ES6.ts === + +class MyBase { +>MyBase : Symbol(MyBase, Decl(superPropertyAccess_ES6.ts, 0, 0)) + + getValue(): number { return 1; } +>getValue : Symbol(getValue, Decl(superPropertyAccess_ES6.ts, 1, 14)) + + get value(): number { return 1; } +>value : Symbol(value, Decl(superPropertyAccess_ES6.ts, 2, 34)) +} + +class MyDerived extends MyBase { +>MyDerived : Symbol(MyDerived, Decl(superPropertyAccess_ES6.ts, 4, 1)) +>MyBase : Symbol(MyBase, Decl(superPropertyAccess_ES6.ts, 0, 0)) + + constructor() { + super(); +>super : Symbol(MyBase, Decl(superPropertyAccess_ES6.ts, 0, 0)) + + const f1 = super.getValue(); +>f1 : Symbol(f1, Decl(superPropertyAccess_ES6.ts, 10, 9)) +>super.getValue : Symbol(MyBase.getValue, Decl(superPropertyAccess_ES6.ts, 1, 14)) +>super : Symbol(MyBase, Decl(superPropertyAccess_ES6.ts, 0, 0)) +>getValue : Symbol(MyBase.getValue, Decl(superPropertyAccess_ES6.ts, 1, 14)) + + const f2 = super.value; +>f2 : Symbol(f2, Decl(superPropertyAccess_ES6.ts, 11, 9)) +>super.value : Symbol(MyBase.value, Decl(superPropertyAccess_ES6.ts, 2, 34)) +>super : Symbol(MyBase, Decl(superPropertyAccess_ES6.ts, 0, 0)) +>value : Symbol(MyBase.value, Decl(superPropertyAccess_ES6.ts, 2, 34)) + } +} + +var d = new MyDerived(); +>d : Symbol(d, Decl(superPropertyAccess_ES6.ts, 15, 3)) +>MyDerived : Symbol(MyDerived, Decl(superPropertyAccess_ES6.ts, 4, 1)) + +var f3 = d.value; +>f3 : Symbol(f3, Decl(superPropertyAccess_ES6.ts, 16, 3)) +>d.value : Symbol(MyBase.value, Decl(superPropertyAccess_ES6.ts, 2, 34)) +>d : Symbol(d, Decl(superPropertyAccess_ES6.ts, 15, 3)) +>value : Symbol(MyBase.value, Decl(superPropertyAccess_ES6.ts, 2, 34)) + +class A { +>A : Symbol(A, Decl(superPropertyAccess_ES6.ts, 16, 17)) + + private _property: string; +>_property : Symbol(_property, Decl(superPropertyAccess_ES6.ts, 18, 9)) + + get property() { return this._property; } +>property : Symbol(property, Decl(superPropertyAccess_ES6.ts, 19, 30), Decl(superPropertyAccess_ES6.ts, 20, 45)) +>this._property : Symbol(_property, Decl(superPropertyAccess_ES6.ts, 18, 9)) +>this : Symbol(A, Decl(superPropertyAccess_ES6.ts, 16, 17)) +>_property : Symbol(_property, Decl(superPropertyAccess_ES6.ts, 18, 9)) + + set property(value: string) { this._property = value } +>property : Symbol(property, Decl(superPropertyAccess_ES6.ts, 19, 30), Decl(superPropertyAccess_ES6.ts, 20, 45)) +>value : Symbol(value, Decl(superPropertyAccess_ES6.ts, 21, 17)) +>this._property : Symbol(_property, Decl(superPropertyAccess_ES6.ts, 18, 9)) +>this : Symbol(A, Decl(superPropertyAccess_ES6.ts, 16, 17)) +>_property : Symbol(_property, Decl(superPropertyAccess_ES6.ts, 18, 9)) +>value : Symbol(value, Decl(superPropertyAccess_ES6.ts, 21, 17)) +} + +class B extends A { +>B : Symbol(B, Decl(superPropertyAccess_ES6.ts, 22, 1)) +>A : Symbol(A, Decl(superPropertyAccess_ES6.ts, 16, 17)) + + set property(value: string) { +>property : Symbol(property, Decl(superPropertyAccess_ES6.ts, 24, 19)) +>value : Symbol(value, Decl(superPropertyAccess_ES6.ts, 25, 17)) + + super.property = value + " addition"; +>super.property : Symbol(A.property, Decl(superPropertyAccess_ES6.ts, 19, 30), Decl(superPropertyAccess_ES6.ts, 20, 45)) +>super : Symbol(A, Decl(superPropertyAccess_ES6.ts, 16, 17)) +>property : Symbol(A.property, Decl(superPropertyAccess_ES6.ts, 19, 30), Decl(superPropertyAccess_ES6.ts, 20, 45)) +>value : Symbol(value, Decl(superPropertyAccess_ES6.ts, 25, 17)) + } +} diff --git a/tests/baselines/reference/superPropertyAccess_ES6.types b/tests/baselines/reference/superPropertyAccess_ES6.types new file mode 100644 index 00000000000..b10b1944a44 --- /dev/null +++ b/tests/baselines/reference/superPropertyAccess_ES6.types @@ -0,0 +1,89 @@ +=== tests/cases/compiler/superPropertyAccess_ES6.ts === + +class MyBase { +>MyBase : MyBase + + getValue(): number { return 1; } +>getValue : () => number +>1 : number + + get value(): number { return 1; } +>value : number +>1 : number +} + +class MyDerived extends MyBase { +>MyDerived : MyDerived +>MyBase : MyBase + + constructor() { + super(); +>super() : void +>super : typeof MyBase + + const f1 = super.getValue(); +>f1 : number +>super.getValue() : number +>super.getValue : () => number +>super : MyBase +>getValue : () => number + + const f2 = super.value; +>f2 : number +>super.value : number +>super : MyBase +>value : number + } +} + +var d = new MyDerived(); +>d : MyDerived +>new MyDerived() : MyDerived +>MyDerived : typeof MyDerived + +var f3 = d.value; +>f3 : number +>d.value : number +>d : MyDerived +>value : number + +class A { +>A : A + + private _property: string; +>_property : string + + get property() { return this._property; } +>property : string +>this._property : string +>this : this +>_property : string + + set property(value: string) { this._property = value } +>property : string +>value : string +>this._property = value : string +>this._property : string +>this : this +>_property : string +>value : string +} + +class B extends A { +>B : B +>A : A + + set property(value: string) { +>property : string +>value : string + + super.property = value + " addition"; +>super.property = value + " addition" : string +>super.property : string +>super : A +>property : string +>value + " addition" : string +>value : string +>" addition" : string + } +} diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.js b/tests/baselines/reference/superSymbolIndexedAccess5.js index 64a8ac5094c..5bc46dbaed5 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess5.js +++ b/tests/baselines/reference/superSymbolIndexedAccess5.js @@ -27,7 +27,7 @@ var Foo = (function () { return 0; }; return Foo; -})(); +}()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { @@ -37,4 +37,4 @@ var Bar = (function (_super) { return _super.prototype[symbol](); }; return Bar; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/superSymbolIndexedAccess6.js b/tests/baselines/reference/superSymbolIndexedAccess6.js index e014cf47c1a..417edd9c338 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess6.js +++ b/tests/baselines/reference/superSymbolIndexedAccess6.js @@ -27,7 +27,7 @@ var Foo = (function () { return 0; }; return Foo; -})(); +}()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { @@ -37,4 +37,4 @@ var Bar = (function (_super) { return _super[symbol](); }; return Bar; -})(Foo); +}(Foo)); diff --git a/tests/baselines/reference/superWithGenericSpecialization.js b/tests/baselines/reference/superWithGenericSpecialization.js index 3d1ea0f77a9..a54ee1bbcbc 100644 --- a/tests/baselines/reference/superWithGenericSpecialization.js +++ b/tests/baselines/reference/superWithGenericSpecialization.js @@ -24,14 +24,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.call(this); // uses the type parameter type of the base class, ie string } return D; -})(C); +}(C)); var d; var r = d.x; var r2 = d.y; diff --git a/tests/baselines/reference/superWithGenerics.js b/tests/baselines/reference/superWithGenerics.js index 482c7ba0694..b4fe56bee4c 100644 --- a/tests/baselines/reference/superWithGenerics.js +++ b/tests/baselines/reference/superWithGenerics.js @@ -23,4 +23,4 @@ var D = (function (_super) { _super.call(this); } return D; -})(B); +}(B)); diff --git a/tests/baselines/reference/superWithTypeArgument.js b/tests/baselines/reference/superWithTypeArgument.js index 6d5690cd689..766b5f7920e 100644 --- a/tests/baselines/reference/superWithTypeArgument.js +++ b/tests/baselines/reference/superWithTypeArgument.js @@ -19,11 +19,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.prototype..call(this); } return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/superWithTypeArgument2.js b/tests/baselines/reference/superWithTypeArgument2.js index 588094cd864..e0d2a40633f 100644 --- a/tests/baselines/reference/superWithTypeArgument2.js +++ b/tests/baselines/reference/superWithTypeArgument2.js @@ -19,11 +19,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D(x) { _super.prototype..call(this, x); } return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/superWithTypeArgument3.js b/tests/baselines/reference/superWithTypeArgument3.js index 8f0ba6c0861..586dc595b39 100644 --- a/tests/baselines/reference/superWithTypeArgument3.js +++ b/tests/baselines/reference/superWithTypeArgument3.js @@ -24,7 +24,7 @@ var C = (function () { } C.prototype.bar = function (x) { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -34,4 +34,4 @@ var D = (function (_super) { _super.prototype.bar.call(this, null); }; return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js b/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js index d2f240b766d..be70ee33183 100644 --- a/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js +++ b/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js @@ -53,7 +53,7 @@ var F = (function () { } F.prototype.test = function () { return ""; }; return F; -})(); +}()); var SuperObjectTest = (function (_super) { __extends(SuperObjectTest, _super); function SuperObjectTest() { @@ -67,4 +67,4 @@ var SuperObjectTest = (function (_super) { }; }; return SuperObjectTest; -})(F); +}(F)); diff --git a/tests/baselines/reference/switchAssignmentCompat.js b/tests/baselines/reference/switchAssignmentCompat.js index 1e6792ee378..c88b07059a2 100644 --- a/tests/baselines/reference/switchAssignmentCompat.js +++ b/tests/baselines/reference/switchAssignmentCompat.js @@ -11,7 +11,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); switch (0) { case Foo: break; // Error expected } diff --git a/tests/baselines/reference/switchCasesExpressionTypeMismatch.js b/tests/baselines/reference/switchCasesExpressionTypeMismatch.js index ca354779be1..ba929691d25 100644 --- a/tests/baselines/reference/switchCasesExpressionTypeMismatch.js +++ b/tests/baselines/reference/switchCasesExpressionTypeMismatch.js @@ -23,7 +23,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); switch (0) { case Foo: break; // Error case "sss": break; // Error diff --git a/tests/baselines/reference/switchStatements.js b/tests/baselines/reference/switchStatements.js index 39a4b2c901d..093a7fb2f2c 100644 --- a/tests/baselines/reference/switchStatements.js +++ b/tests/baselines/reference/switchStatements.js @@ -94,14 +94,14 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { _super.apply(this, arguments); } return D; -})(C); +}(C)); switch (new C()) { case new D(): case { id: 12, name: '' }: diff --git a/tests/baselines/reference/systemModule17.js b/tests/baselines/reference/systemModule17.js index 7ef4d441823..6daa119d287 100644 --- a/tests/baselines/reference/systemModule17.js +++ b/tests/baselines/reference/systemModule17.js @@ -52,7 +52,7 @@ System.register([], function(exports_1) { function A() { } return A; - })(); + }()); exports_1("A", A); } } diff --git a/tests/baselines/reference/systemModule3.js b/tests/baselines/reference/systemModule3.js index c7aeb7f508c..dbef74f3036 100644 --- a/tests/baselines/reference/systemModule3.js +++ b/tests/baselines/reference/systemModule3.js @@ -50,7 +50,7 @@ System.register([], function(exports_1) { function C() { } return C; - })(); + }()); exports_1("default", C); } } @@ -66,7 +66,7 @@ System.register([], function(exports_1) { function default_1() { } return default_1; - })(); + }()); exports_1("default", default_1); } } diff --git a/tests/baselines/reference/systemModule6.js b/tests/baselines/reference/systemModule6.js index 7d93ee1df03..51c8fbc68fb 100644 --- a/tests/baselines/reference/systemModule6.js +++ b/tests/baselines/reference/systemModule6.js @@ -20,7 +20,7 @@ System.register([], function(exports_1) { function C() { } return C; - })(); + }()); exports_1("C", C); } } diff --git a/tests/baselines/reference/systemModuleDeclarationMerging.js b/tests/baselines/reference/systemModuleDeclarationMerging.js index f11c5d9a360..5ed029a769a 100644 --- a/tests/baselines/reference/systemModuleDeclarationMerging.js +++ b/tests/baselines/reference/systemModuleDeclarationMerging.js @@ -26,7 +26,7 @@ System.register([], function(exports_1) { function C() { } return C; - })(); + }()); exports_1("C", C); (function (C) { var x; diff --git a/tests/baselines/reference/systemModuleExportDefault.js b/tests/baselines/reference/systemModuleExportDefault.js index 6befe63b267..cf1a99a4ad7 100644 --- a/tests/baselines/reference/systemModuleExportDefault.js +++ b/tests/baselines/reference/systemModuleExportDefault.js @@ -48,7 +48,7 @@ System.register([], function(exports_1) { function default_1() { } return default_1; - })(); + }()); exports_1("default", default_1); } } @@ -64,7 +64,7 @@ System.register([], function(exports_1) { function C() { } return C; - })(); + }()); exports_1("default", C); } } diff --git a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.js b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.js index b7ec776e483..ee9858a7fec 100644 --- a/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.js +++ b/tests/baselines/reference/systemModuleNonTopLevelModuleMembers.js @@ -25,7 +25,7 @@ System.register([], function(exports_1) { function TopLevelClass() { } return TopLevelClass; - })(); + }()); exports_1("TopLevelClass", TopLevelClass); (function (TopLevelModule) { var v; @@ -40,7 +40,7 @@ System.register([], function(exports_1) { function NonTopLevelClass() { } return NonTopLevelClass; - })(); + }()); TopLevelModule2.NonTopLevelClass = NonTopLevelClass; var NonTopLevelModule; (function (NonTopLevelModule) { diff --git a/tests/baselines/reference/systemModuleWithSuperClass.js b/tests/baselines/reference/systemModuleWithSuperClass.js index 8b528f281ed..fe9c2742f2d 100644 --- a/tests/baselines/reference/systemModuleWithSuperClass.js +++ b/tests/baselines/reference/systemModuleWithSuperClass.js @@ -23,7 +23,7 @@ System.register([], function(exports_1) { function Foo() { } return Foo; - })(); + }()); exports_1("Foo", Foo); } } @@ -50,7 +50,7 @@ System.register(['./foo'], function(exports_1) { _super.apply(this, arguments); } return Bar; - })(foo_1.Foo); + }(foo_1.Foo)); exports_1("Bar", Bar); } } diff --git a/tests/baselines/reference/targetTypeBaseCalls.js b/tests/baselines/reference/targetTypeBaseCalls.js index 41673a62efd..d028c04d711 100644 --- a/tests/baselines/reference/targetTypeBaseCalls.js +++ b/tests/baselines/reference/targetTypeBaseCalls.js @@ -29,7 +29,7 @@ var Foo = (function () { function Foo(x) { } return Foo; -})(); +}()); foo(function (s) { s = 5; }); // Error, can’t assign number to string new Foo(function (s) { s = 5; }); // error, if types are applied correctly var Bar = (function (_super) { @@ -38,4 +38,4 @@ var Bar = (function (_super) { _super.call(this, function (s) { s = 5; }); } return Bar; -})(Foo); // error, if types are applied correctly +}(Foo)); // error, if types are applied correctly diff --git a/tests/baselines/reference/targetTypeVoidFunc.errors.txt b/tests/baselines/reference/targetTypeVoidFunc.errors.txt index f9434c1d630..d47f811c2ed 100644 --- a/tests/baselines/reference/targetTypeVoidFunc.errors.txt +++ b/tests/baselines/reference/targetTypeVoidFunc.errors.txt @@ -1,4 +1,5 @@ tests/cases/compiler/targetTypeVoidFunc.ts(2,12): error TS2322: Type '() => void' is not assignable to type 'new () => number'. + Type '() => void' provides no match for the signature 'new (): number' ==== tests/cases/compiler/targetTypeVoidFunc.ts (1 errors) ==== @@ -6,6 +7,7 @@ tests/cases/compiler/targetTypeVoidFunc.ts(2,12): error TS2322: Type '() => void return function () { return; } ~~~~~~~~ !!! error TS2322: Type '() => void' is not assignable to type 'new () => number'. +!!! error TS2322: Type '() => void' provides no match for the signature 'new (): number' }; var x = f1(); diff --git a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js index 5d5f925fe69..1ebc479593d 100644 --- a/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js +++ b/tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.js @@ -15,7 +15,7 @@ var TemplateStringsArray = (function () { function TemplateStringsArray() { } return TemplateStringsArray; -})(); +}()); function f(x, y, z) { } f({}, 10, 10); diff --git a/tests/baselines/reference/testContainerList.js b/tests/baselines/reference/testContainerList.js index dca80c7fa51..19e54a2782f 100644 --- a/tests/baselines/reference/testContainerList.js +++ b/tests/baselines/reference/testContainerList.js @@ -16,5 +16,5 @@ var A; this.d = d; } return C; - })(); + }()); })(A || (A = {})); diff --git a/tests/baselines/reference/testTypings.errors.txt b/tests/baselines/reference/testTypings.errors.txt deleted file mode 100644 index 44480aa09fe..00000000000 --- a/tests/baselines/reference/testTypings.errors.txt +++ /dev/null @@ -1,19 +0,0 @@ -tests/cases/compiler/testTypings.ts(5,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/testTypings.ts (1 errors) ==== - interface IComparable { - compareTo(other: T); - } - - declare function sort>(items: U[]): U[]; - ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - - - - - - - \ No newline at end of file diff --git a/tests/baselines/reference/testTypings.symbols b/tests/baselines/reference/testTypings.symbols new file mode 100644 index 00000000000..5e3074a9585 --- /dev/null +++ b/tests/baselines/reference/testTypings.symbols @@ -0,0 +1,27 @@ +=== tests/cases/compiler/testTypings.ts === +interface IComparable { +>IComparable : Symbol(IComparable, Decl(testTypings.ts, 0, 0)) +>T : Symbol(T, Decl(testTypings.ts, 0, 22)) + + compareTo(other: T); +>compareTo : Symbol(compareTo, Decl(testTypings.ts, 0, 26)) +>other : Symbol(other, Decl(testTypings.ts, 1, 13)) +>T : Symbol(T, Decl(testTypings.ts, 0, 22)) +} + +declare function sort>(items: U[]): U[]; +>sort : Symbol(sort, Decl(testTypings.ts, 2, 1)) +>U : Symbol(U, Decl(testTypings.ts, 4, 22)) +>IComparable : Symbol(IComparable, Decl(testTypings.ts, 0, 0)) +>U : Symbol(U, Decl(testTypings.ts, 4, 22)) +>items : Symbol(items, Decl(testTypings.ts, 4, 48)) +>U : Symbol(U, Decl(testTypings.ts, 4, 22)) +>U : Symbol(U, Decl(testTypings.ts, 4, 22)) + + + + + + + + diff --git a/tests/baselines/reference/testTypings.types b/tests/baselines/reference/testTypings.types new file mode 100644 index 00000000000..5883db8b8bb --- /dev/null +++ b/tests/baselines/reference/testTypings.types @@ -0,0 +1,27 @@ +=== tests/cases/compiler/testTypings.ts === +interface IComparable { +>IComparable : IComparable +>T : T + + compareTo(other: T); +>compareTo : (other: T) => any +>other : T +>T : T +} + +declare function sort>(items: U[]): U[]; +>sort : >(items: U[]) => U[] +>U : U +>IComparable : IComparable +>U : U +>items : U[] +>U : U +>U : U + + + + + + + + diff --git a/tests/baselines/reference/thisBinding.js b/tests/baselines/reference/thisBinding.js index 79a27b19fd8..d8d7f5b7c0a 100644 --- a/tests/baselines/reference/thisBinding.js +++ b/tests/baselines/reference/thisBinding.js @@ -34,7 +34,7 @@ var M; x.z; // ok }; return C; - })(); + }()); M.C = C; })(M || (M = {})); var C = (function () { @@ -43,4 +43,4 @@ var C = (function () { C.prototype.f = function (x) { }; return C; -})(); +}()); diff --git a/tests/baselines/reference/thisBinding2.js b/tests/baselines/reference/thisBinding2.js index 76b99797e16..142cd9db4a5 100644 --- a/tests/baselines/reference/thisBinding2.js +++ b/tests/baselines/reference/thisBinding2.js @@ -35,7 +35,7 @@ var C = (function () { }(); } return C; -})(); +}()); var messenger = { message: "Hello World", start: function () { diff --git a/tests/baselines/reference/thisCapture1.js b/tests/baselines/reference/thisCapture1.js index 53d01b8f8ca..8ee3fa2fddc 100644 --- a/tests/baselines/reference/thisCapture1.js +++ b/tests/baselines/reference/thisCapture1.js @@ -22,4 +22,4 @@ var X = (function () { }).promise(); }; return X; -})(); +}()); diff --git a/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js b/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js index 78b06d30dd2..9aea88edf46 100644 --- a/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js +++ b/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js @@ -13,4 +13,4 @@ var C = (function () { [1, 2, 3].map(function (x) { return _this; }); }; return C; -})(); +}()); diff --git a/tests/baselines/reference/thisExpressionOfGenericObject.js b/tests/baselines/reference/thisExpressionOfGenericObject.js index e790050069e..a6cfdeb4d07 100644 --- a/tests/baselines/reference/thisExpressionOfGenericObject.js +++ b/tests/baselines/reference/thisExpressionOfGenericObject.js @@ -14,4 +14,4 @@ var MyClass1 = (function () { (function () { return _this; }); } return MyClass1; -})(); +}()); diff --git a/tests/baselines/reference/thisInAccessors.js b/tests/baselines/reference/thisInAccessors.js index ab521649292..6c0b492d878 100644 --- a/tests/baselines/reference/thisInAccessors.js +++ b/tests/baselines/reference/thisInAccessors.js @@ -47,7 +47,7 @@ var GetterOnly = (function () { configurable: true }); return GetterOnly; -})(); +}()); // this capture only in setter var SetterOnly = (function () { function SetterOnly() { @@ -64,7 +64,7 @@ var SetterOnly = (function () { configurable: true }); return SetterOnly; -})(); +}()); // this capture only in both setter and getter var GetterAndSetter = (function () { function GetterAndSetter() { @@ -83,4 +83,4 @@ var GetterAndSetter = (function () { configurable: true }); return GetterAndSetter; -})(); +}()); diff --git a/tests/baselines/reference/thisInArrowFunctionInStaticInitializer1.js b/tests/baselines/reference/thisInArrowFunctionInStaticInitializer1.js index 03e6ddb64d9..4b23326c7a3 100644 --- a/tests/baselines/reference/thisInArrowFunctionInStaticInitializer1.js +++ b/tests/baselines/reference/thisInArrowFunctionInStaticInitializer1.js @@ -19,4 +19,4 @@ var Vector = (function () { log(_this); }; return Vector; -})(); +}()); diff --git a/tests/baselines/reference/thisInConstructorParameter1.js b/tests/baselines/reference/thisInConstructorParameter1.js index a489999c955..32d50bc1ede 100644 --- a/tests/baselines/reference/thisInConstructorParameter1.js +++ b/tests/baselines/reference/thisInConstructorParameter1.js @@ -10,4 +10,4 @@ var Foo = (function () { if (x === void 0) { x = this.y; } } return Foo; -})(); +}()); diff --git a/tests/baselines/reference/thisInConstructorParameter2.js b/tests/baselines/reference/thisInConstructorParameter2.js index 6d07f66becb..7260ecafcb9 100644 --- a/tests/baselines/reference/thisInConstructorParameter2.js +++ b/tests/baselines/reference/thisInConstructorParameter2.js @@ -27,4 +27,4 @@ var P = (function () { }; P.y = this; return P; -})(); +}()); diff --git a/tests/baselines/reference/thisInGenericStaticMembers.js b/tests/baselines/reference/thisInGenericStaticMembers.js index 9699941206e..11dc7b28081 100644 --- a/tests/baselines/reference/thisInGenericStaticMembers.js +++ b/tests/baselines/reference/thisInGenericStaticMembers.js @@ -38,7 +38,7 @@ var A = (function () { return this.one(source, 42); }; return A; -})(); +}()); var B = (function () { function B() { } @@ -49,4 +49,4 @@ var B = (function () { return this.one(source, 42); }; return B; -})(); +}()); diff --git a/tests/baselines/reference/thisInInnerFunctions.js b/tests/baselines/reference/thisInInnerFunctions.js index d9ba3adfdf3..ec8a387bd1b 100644 --- a/tests/baselines/reference/thisInInnerFunctions.js +++ b/tests/baselines/reference/thisInInnerFunctions.js @@ -30,7 +30,7 @@ var Foo = (function () { } }; return Foo; -})(); +}()); function test() { var _this = this; var x = function () { diff --git a/tests/baselines/reference/thisInInstanceMemberInitializer.js b/tests/baselines/reference/thisInInstanceMemberInitializer.js index 6b7ebb8f056..71db30b0540 100644 --- a/tests/baselines/reference/thisInInstanceMemberInitializer.js +++ b/tests/baselines/reference/thisInInstanceMemberInitializer.js @@ -14,10 +14,10 @@ var C = (function () { this.x = this; } return C; -})(); +}()); var D = (function () { function D() { this.x = this; } return D; -})(); +}()); diff --git a/tests/baselines/reference/thisInInvalidContexts.js b/tests/baselines/reference/thisInInvalidContexts.js index 66cbdb9682c..75ccd12c288 100644 --- a/tests/baselines/reference/thisInInvalidContexts.js +++ b/tests/baselines/reference/thisInInvalidContexts.js @@ -60,12 +60,12 @@ var ErrClass1 = (function () { } ErrClass1.t = this; // Error return ErrClass1; -})(); +}()); var BaseErrClass = (function () { function BaseErrClass(t) { } return BaseErrClass; -})(); +}()); var ClassWithNoInitializer = (function (_super) { __extends(ClassWithNoInitializer, _super); //'this' in optional super call @@ -73,7 +73,7 @@ var ClassWithNoInitializer = (function (_super) { _super.call(this, this); // Error } return ClassWithNoInitializer; -})(BaseErrClass); +}(BaseErrClass)); var ClassWithInitializer = (function (_super) { __extends(ClassWithInitializer, _super); //'this' in required super call @@ -82,7 +82,7 @@ var ClassWithInitializer = (function (_super) { this.t = 4; } return ClassWithInitializer; -})(BaseErrClass); +}(BaseErrClass)); var M; (function (M) { //'this' in module variable @@ -99,7 +99,7 @@ var ErrClass3 = (function (_super) { _super.apply(this, arguments); } return ErrClass3; -})(this); +}(this)); //'this' as a computed enum value var SomeEnum; (function (SomeEnum) { diff --git a/tests/baselines/reference/thisInInvalidContextsExternalModule.errors.txt b/tests/baselines/reference/thisInInvalidContextsExternalModule.errors.txt index c4188993eee..89472de5d1a 100644 --- a/tests/baselines/reference/thisInInvalidContextsExternalModule.errors.txt +++ b/tests/baselines/reference/thisInInvalidContextsExternalModule.errors.txt @@ -6,7 +6,7 @@ tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalMod tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts(38,25): error TS2507: Type 'any' is not a constructor function type. tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts(44,9): error TS2332: 'this' cannot be referenced in current location. tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts(45,9): error TS2332: 'this' cannot be referenced in current location. -tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts(48,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts(48,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. ==== tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalModule.ts (9 errors) ==== @@ -75,4 +75,4 @@ tests/cases/conformance/expressions/thisKeyword/thisInInvalidContextsExternalMod export = this; // Should be an error ~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. \ No newline at end of file +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. \ No newline at end of file diff --git a/tests/baselines/reference/thisInInvalidContextsExternalModule.js b/tests/baselines/reference/thisInInvalidContextsExternalModule.js index df3abd156de..2e7e6d8b47c 100644 --- a/tests/baselines/reference/thisInInvalidContextsExternalModule.js +++ b/tests/baselines/reference/thisInInvalidContextsExternalModule.js @@ -61,12 +61,12 @@ var ErrClass1 = (function () { } ErrClass1.t = this; // Error return ErrClass1; -})(); +}()); var BaseErrClass = (function () { function BaseErrClass(t) { } return BaseErrClass; -})(); +}()); var ClassWithNoInitializer = (function (_super) { __extends(ClassWithNoInitializer, _super); //'this' in optional super call @@ -74,7 +74,7 @@ var ClassWithNoInitializer = (function (_super) { _super.call(this, this); // error: "super" has to be called before "this" accessing } return ClassWithNoInitializer; -})(BaseErrClass); +}(BaseErrClass)); var ClassWithInitializer = (function (_super) { __extends(ClassWithInitializer, _super); //'this' in required super call @@ -83,7 +83,7 @@ var ClassWithInitializer = (function (_super) { this.t = 4; } return ClassWithInitializer; -})(BaseErrClass); +}(BaseErrClass)); var M; (function (M) { //'this' in module variable @@ -100,7 +100,7 @@ var ErrClass3 = (function (_super) { _super.apply(this, arguments); } return ErrClass3; -})(this); +}(this)); //'this' as a computed enum value var SomeEnum; (function (SomeEnum) { diff --git a/tests/baselines/reference/thisInLambda.js b/tests/baselines/reference/thisInLambda.js index 94c86bd5a80..b121947ce9b 100644 --- a/tests/baselines/reference/thisInLambda.js +++ b/tests/baselines/reference/thisInLambda.js @@ -29,7 +29,7 @@ var Foo = (function () { var f = function () { return _this.x; }; // 'this' should be type 'Foo' as well }; return Foo; -})(); +}()); function myFn(a) { } var myCls = (function () { function myCls() { @@ -41,4 +41,4 @@ var myCls = (function () { }); } return myCls; -})(); +}()); diff --git a/tests/baselines/reference/thisInObjectLiterals.js b/tests/baselines/reference/thisInObjectLiterals.js index 79e834be154..4e71347a366 100644 --- a/tests/baselines/reference/thisInObjectLiterals.js +++ b/tests/baselines/reference/thisInObjectLiterals.js @@ -28,7 +28,7 @@ var MyClass = (function () { var t; }; return MyClass; -})(); +}()); //type of 'this' in an object literal property of a function type is Any var obj = { f: function () { diff --git a/tests/baselines/reference/thisInOuterClassBody.js b/tests/baselines/reference/thisInOuterClassBody.js index 0dff441bb1e..40e4a2e2485 100644 --- a/tests/baselines/reference/thisInOuterClassBody.js +++ b/tests/baselines/reference/thisInOuterClassBody.js @@ -38,4 +38,4 @@ var Foo = (function () { }; Foo.y = this; return Foo; -})(); +}()); diff --git a/tests/baselines/reference/thisInPropertyBoundDeclarations.js b/tests/baselines/reference/thisInPropertyBoundDeclarations.js index e5004eed431..0b378cec51a 100644 --- a/tests/baselines/reference/thisInPropertyBoundDeclarations.js +++ b/tests/baselines/reference/thisInPropertyBoundDeclarations.js @@ -80,7 +80,7 @@ var Bug = (function () { } ]; return Bug; -})(); +}()); // Valid use of this in a property bound decl var A = (function () { function A() { @@ -109,7 +109,7 @@ var A = (function () { }; } return A; -})(); +}()); var B = (function () { function B() { var _this = this; @@ -131,4 +131,4 @@ var B = (function () { }; } return B; -})(); +}()); diff --git a/tests/baselines/reference/thisInStaticMethod1.js b/tests/baselines/reference/thisInStaticMethod1.js index 1021e32cc20..a42415c0b62 100644 --- a/tests/baselines/reference/thisInStaticMethod1.js +++ b/tests/baselines/reference/thisInStaticMethod1.js @@ -16,5 +16,5 @@ var foo = (function () { }; foo.x = 3; return foo; -})(); +}()); var x = foo.bar(); diff --git a/tests/baselines/reference/thisInStatics.js b/tests/baselines/reference/thisInStatics.js index a7d6a5890cc..b3f688903c6 100644 --- a/tests/baselines/reference/thisInStatics.js +++ b/tests/baselines/reference/thisInStatics.js @@ -26,4 +26,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/thisInSuperCall.js b/tests/baselines/reference/thisInSuperCall.js index 0bcaf35fcbf..827d101c95a 100644 --- a/tests/baselines/reference/thisInSuperCall.js +++ b/tests/baselines/reference/thisInSuperCall.js @@ -32,14 +32,14 @@ var Base = (function () { function Base(x) { } return Base; -})(); +}()); var Foo = (function (_super) { __extends(Foo, _super); function Foo() { _super.call(this, this); // error: "super" has to be called before "this" accessing } return Foo; -})(Base); +}(Base)); var Foo2 = (function (_super) { __extends(Foo2, _super); function Foo2() { @@ -47,7 +47,7 @@ var Foo2 = (function (_super) { this.p = 0; } return Foo2; -})(Base); +}(Base)); var Foo3 = (function (_super) { __extends(Foo3, _super); function Foo3(p) { @@ -55,4 +55,4 @@ var Foo3 = (function (_super) { this.p = p; } return Foo3; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/thisInSuperCall1.js b/tests/baselines/reference/thisInSuperCall1.js index 4ae43784fe0..a1cfc196ac6 100644 --- a/tests/baselines/reference/thisInSuperCall1.js +++ b/tests/baselines/reference/thisInSuperCall1.js @@ -20,7 +20,7 @@ var Base = (function () { function Base(a) { } return Base; -})(); +}()); var Foo = (function (_super) { __extends(Foo, _super); function Foo(x) { @@ -28,4 +28,4 @@ var Foo = (function (_super) { this.x = x; } return Foo; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/thisInSuperCall2.js b/tests/baselines/reference/thisInSuperCall2.js index 8957a089210..fdffdd27d6d 100644 --- a/tests/baselines/reference/thisInSuperCall2.js +++ b/tests/baselines/reference/thisInSuperCall2.js @@ -29,14 +29,14 @@ var Base = (function () { function Base(a) { } return Base; -})(); +}()); var Foo = (function (_super) { __extends(Foo, _super); function Foo() { _super.call(this, this); // error: "super" has to be called before "this" accessing } return Foo; -})(Base); +}(Base)); var Foo2 = (function (_super) { __extends(Foo2, _super); function Foo2() { @@ -44,4 +44,4 @@ var Foo2 = (function (_super) { this.x = 0; } return Foo2; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/thisInSuperCall3.js b/tests/baselines/reference/thisInSuperCall3.js index ba27add2d97..09ad6b705a9 100644 --- a/tests/baselines/reference/thisInSuperCall3.js +++ b/tests/baselines/reference/thisInSuperCall3.js @@ -22,7 +22,7 @@ var Base = (function () { function Base(a) { } return Base; -})(); +}()); var Foo = (function (_super) { __extends(Foo, _super); function Foo() { @@ -30,4 +30,4 @@ var Foo = (function (_super) { this.x = 0; } return Foo; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/thisTypeAndConstraints.js b/tests/baselines/reference/thisTypeAndConstraints.js index d62ebe6917c..3800b8bc5e3 100644 --- a/tests/baselines/reference/thisTypeAndConstraints.js +++ b/tests/baselines/reference/thisTypeAndConstraints.js @@ -30,7 +30,7 @@ var A = (function () { return this; }; return A; -})(); +}()); function f(x) { function g(x) { x = x.self(); @@ -47,4 +47,4 @@ var B = (function () { x = x.self(); }; return B; -})(); +}()); diff --git a/tests/baselines/reference/thisTypeErrors.js b/tests/baselines/reference/thisTypeErrors.js index 677feb374e1..f246b80f4f4 100644 --- a/tests/baselines/reference/thisTypeErrors.js +++ b/tests/baselines/reference/thisTypeErrors.js @@ -68,7 +68,7 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } @@ -77,7 +77,7 @@ var C2 = (function () { }; C2.y = undefined; return C2; -})(); +}()); var N1; (function (N1) { N1.y = this; @@ -101,4 +101,4 @@ var C3 = (function () { }; }; return C3; -})(); +}()); diff --git a/tests/baselines/reference/thisTypeErrors2.js b/tests/baselines/reference/thisTypeErrors2.js index f48d0874e53..4546dcd2199 100644 --- a/tests/baselines/reference/thisTypeErrors2.js +++ b/tests/baselines/reference/thisTypeErrors2.js @@ -19,12 +19,12 @@ var Base = (function () { function Base(a) { } return Base; -})(); +}()); var Generic = (function () { function Generic() { } return Generic; -})(); +}()); var Derived = (function () { function Derived(host) { this.host = host; @@ -32,4 +32,4 @@ var Derived = (function () { this.n = 12; } return Derived; -})(); +}()); diff --git a/tests/baselines/reference/thisTypeInClasses.js b/tests/baselines/reference/thisTypeInClasses.js index 52ad452aa56..c6790b3d52d 100644 --- a/tests/baselines/reference/thisTypeInClasses.js +++ b/tests/baselines/reference/thisTypeInClasses.js @@ -56,17 +56,17 @@ var C1 = (function () { } C1.prototype.f = function (x) { return undefined; }; return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C5 = (function () { function C5() { } @@ -87,4 +87,4 @@ var C5 = (function () { var x2 = undefined; }; return C5; -})(); +}()); diff --git a/tests/baselines/reference/thisWhenTypeCheckFails.js b/tests/baselines/reference/thisWhenTypeCheckFails.js index 1a3ac7b2da2..fee1ef2d61e 100644 --- a/tests/baselines/reference/thisWhenTypeCheckFails.js +++ b/tests/baselines/reference/thisWhenTypeCheckFails.js @@ -19,4 +19,4 @@ var c = (function () { }; }; return c; -})(); +}()); diff --git a/tests/baselines/reference/throwInEnclosingStatements.js b/tests/baselines/reference/throwInEnclosingStatements.js index 4d9200776e7..83928d71bff 100644 --- a/tests/baselines/reference/throwInEnclosingStatements.js +++ b/tests/baselines/reference/throwInEnclosingStatements.js @@ -84,7 +84,7 @@ var C = (function () { throw this.value; }; return C; -})(); +}()); var aa = { id: 12, biz: function () { diff --git a/tests/baselines/reference/throwStatements.js b/tests/baselines/reference/throwStatements.js index 556ebc55e37..eb25d0a895b 100644 --- a/tests/baselines/reference/throwStatements.js +++ b/tests/baselines/reference/throwStatements.js @@ -92,12 +92,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); function F(x) { return 42; } var M; (function (M) { @@ -105,7 +105,7 @@ var M; function A() { } return A; - })(); + }()); M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; diff --git a/tests/baselines/reference/tooManyTypeParameters1.js b/tests/baselines/reference/tooManyTypeParameters1.js index 892731cbd43..085a6bd13e3 100644 --- a/tests/baselines/reference/tooManyTypeParameters1.js +++ b/tests/baselines/reference/tooManyTypeParameters1.js @@ -20,6 +20,6 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); var i; diff --git a/tests/baselines/reference/topLevel.js b/tests/baselines/reference/topLevel.js index 528ecb58381..1908ab8c729 100644 --- a/tests/baselines/reference/topLevel.js +++ b/tests/baselines/reference/topLevel.js @@ -42,7 +42,7 @@ var Point = (function () { return ("(" + this.x + "," + this.y + ")"); }; return Point; -})(); +}()); var result = ""; result += (new Point(3, 4).move(2, 2)); var M; diff --git a/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js b/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js index 7dd59ee840e..8041025f66a 100644 --- a/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js +++ b/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js @@ -20,4 +20,4 @@ var arrTest = (function () { this.test([1, 2, "hi", 5]); }; return arrTest; -})(); +}()); diff --git a/tests/baselines/reference/transitiveTypeArgumentInference1.js b/tests/baselines/reference/transitiveTypeArgumentInference1.js index 96d14dd4605..3f7aed892e1 100644 --- a/tests/baselines/reference/transitiveTypeArgumentInference1.js +++ b/tests/baselines/reference/transitiveTypeArgumentInference1.js @@ -19,5 +19,5 @@ var C = (function () { function C(p) { } return C; -})(); +}()); var c = new C(i); diff --git a/tests/baselines/reference/tsxAttributeResolution10.js b/tests/baselines/reference/tsxAttributeResolution10.js index e0bb6d8efc1..798bbb4c7af 100644 --- a/tests/baselines/reference/tsxAttributeResolution10.js +++ b/tests/baselines/reference/tsxAttributeResolution10.js @@ -40,7 +40,7 @@ define(["require", "exports"], function (require, exports) { MyComponent.prototype.render = function () { }; return MyComponent; - })(); + }()); exports.MyComponent = MyComponent; // Should be an error ; diff --git a/tests/baselines/reference/tsxAttributeResolution9.js b/tests/baselines/reference/tsxAttributeResolution9.js index 3879372a672..cd6946636a6 100644 --- a/tests/baselines/reference/tsxAttributeResolution9.js +++ b/tests/baselines/reference/tsxAttributeResolution9.js @@ -36,7 +36,7 @@ define(["require", "exports"], function (require, exports) { MyComponent.prototype.render = function () { }; return MyComponent; - })(); + }()); exports.MyComponent = MyComponent; ; // ok ; // should be an error diff --git a/tests/baselines/reference/tsxElementResolution.js b/tests/baselines/reference/tsxElementResolution.js index e7a4ae95e94..fb606aa4ccc 100644 --- a/tests/baselines/reference/tsxElementResolution.js +++ b/tests/baselines/reference/tsxElementResolution.js @@ -30,19 +30,19 @@ var foundFirst = (function () { function foundFirst() { } return foundFirst; -})(); +}()); var Other = (function () { function Other() { } return Other; -})(); +}()); var Dotted; (function (Dotted) { var Name = (function () { function Name() { } return Name; - })(); + }()); Dotted.Name = Name; })(Dotted || (Dotted = {})); // Should find the intrinsic element, not the class element diff --git a/tests/baselines/reference/tsxElementResolution19.js b/tests/baselines/reference/tsxElementResolution19.js index cb1a61dd59f..8114c5e4be5 100644 --- a/tests/baselines/reference/tsxElementResolution19.js +++ b/tests/baselines/reference/tsxElementResolution19.js @@ -28,7 +28,7 @@ define(["require", "exports"], function (require, exports) { function MyClass() { } return MyClass; - })(); + }()); exports.MyClass = MyClass; }); //// [file2.js] diff --git a/tests/baselines/reference/tsxEmit1.js b/tests/baselines/reference/tsxEmit1.js index bfa78a3e96c..dacb3ad621a 100644 --- a/tests/baselines/reference/tsxEmit1.js +++ b/tests/baselines/reference/tsxEmit1.js @@ -67,7 +67,7 @@ var SomeClass = (function () { var rewrites6 =
; }; return SomeClass; -})(); +}()); var whitespace1 =
; var whitespace2 =
{p}
; var whitespace3 =
diff --git a/tests/baselines/reference/tsxEmit3.js b/tests/baselines/reference/tsxEmit3.js index ccb9041e931..9501df4e237 100644 --- a/tests/baselines/reference/tsxEmit3.js +++ b/tests/baselines/reference/tsxEmit3.js @@ -48,7 +48,7 @@ var M; function Foo() { } return Foo; - })(); + }()); M.Foo = Foo; var S; (function (S) { @@ -56,7 +56,7 @@ var M; function Bar() { } return Bar; - })(); + }()); S.Bar = Bar; })(S = M.S || (M.S = {})); })(M || (M = {})); diff --git a/tests/baselines/reference/tsxEmit3.js.map b/tests/baselines/reference/tsxEmit3.js.map index b53526b5d11..1a19c6b6bf3 100644 --- a/tests/baselines/reference/tsxEmit3.js.map +++ b/tests/baselines/reference/tsxEmit3.js.map @@ -1,2 +1,2 @@ //// [file.jsx.map] -{"version":3,"file":"file.jsx","sourceRoot":"","sources":["file.tsx"],"names":["M","M.Foo","M.Foo.constructor","M.S","M.S.Bar","M.S.Bar.constructor"],"mappings":"AAMA,IAAO,CAAC,CAQP;AARD,WAAO,CAAC,EAAC,CAAC;IACTA;QAAmBC;QAAgBC,CAACA;QAACD,UAACA;IAADA,CAACA,AAAtCD,IAAsCA;IAAzBA,KAAGA,MAAsBA,CAAAA;IACtCA,IAAcA,CAACA,CAKdA;IALDA,WAAcA,CAACA,EAACA,CAACA;QAChBG;YAAAC;YAAmBC,CAACA;YAADD,UAACA;QAADA,CAACA,AAApBD,IAAoBA;QAAPA,KAAGA,MAAIA,CAAAA;IAIrBA,CAACA,EALaH,CAACA,GAADA,GAACA,KAADA,GAACA,QAKdA;AACFA,CAACA,EARM,CAAC,KAAD,CAAC,QAQP;AAED,IAAO,CAAC,CAYP;AAZD,WAAO,CAAC,EAAC,CAAC;IACTA,aAAaA;IACbA,KAAGA,EAAEA,CAACA,KAAGA,GAAGA,CAACA;IAEbA,IAAcA,CAACA,CAMdA;IANDA,WAAcA,CAACA,EAACA,CAACA;QAChBG,aAAaA;QACbA,KAAGA,EAAEA,CAACA,KAAGA,GAAGA,CAACA;QAEbA,aAAaA;QACbA,KAAGA,EAAEA,CAACA,KAAGA,GAAGA,CAACA;IACdA,CAACA,EANaH,CAACA,GAADA,GAACA,KAADA,GAACA,QAMdA;AAEFA,CAACA,EAZM,CAAC,KAAD,CAAC,QAYP;AAED,IAAO,CAAC,CAGP;AAHD,WAAO,CAAC,EAAC,CAAC;IACTA,eAAeA;IACfA,GAACA,CAACA,GAAGA,EAAEA,CAACA,GAACA,CAACA,GAAGA,GAAGA,CAACA;AAClBA,CAACA,EAHM,CAAC,KAAD,CAAC,QAGP;AAED,IAAO,CAAC,CAIP;AAJD,WAAO,GAAC,EAAC,CAAC;IACTA,IAAIA,CAACA,GAAGA,GAAGA,CAACA;IACZA,eAAeA;IACfA,OAAGA,EAAEA,CAACA,OAAGA,GAAGA,CAACA;AACdA,CAACA,EAJM,CAAC,KAAD,CAAC,QAIP"} \ No newline at end of file +{"version":3,"file":"file.jsx","sourceRoot":"","sources":["file.tsx"],"names":[],"mappings":"AAMA,IAAO,CAAC,CAQP;AARD,WAAO,CAAC,EAAC,CAAC;IACT;QAAmB;QAAgB,CAAC;QAAC,UAAC;IAAD,CAAC,AAAtC,IAAsC;IAAzB,KAAG,MAAsB,CAAA;IACtC,IAAc,CAAC,CAKd;IALD,WAAc,CAAC,EAAC,CAAC;QAChB;YAAA;YAAmB,CAAC;YAAD,UAAC;QAAD,CAAC,AAApB,IAAoB;QAAP,KAAG,MAAI,CAAA;IAIrB,CAAC,EALa,CAAC,GAAD,GAAC,KAAD,GAAC,QAKd;AACF,CAAC,EARM,CAAC,KAAD,CAAC,QAQP;AAED,IAAO,CAAC,CAYP;AAZD,WAAO,CAAC,EAAC,CAAC;IACT,aAAa;IACb,KAAG,EAAE,CAAC,KAAG,GAAG,CAAC;IAEb,IAAc,CAAC,CAMd;IAND,WAAc,CAAC,EAAC,CAAC;QAChB,aAAa;QACb,KAAG,EAAE,CAAC,KAAG,GAAG,CAAC;QAEb,aAAa;QACb,KAAG,EAAE,CAAC,KAAG,GAAG,CAAC;IACd,CAAC,EANa,CAAC,GAAD,GAAC,KAAD,GAAC,QAMd;AAEF,CAAC,EAZM,CAAC,KAAD,CAAC,QAYP;AAED,IAAO,CAAC,CAGP;AAHD,WAAO,CAAC,EAAC,CAAC;IACT,eAAe;IACf,GAAC,CAAC,GAAG,EAAE,CAAC,GAAC,CAAC,GAAG,GAAG,CAAC;AAClB,CAAC,EAHM,CAAC,KAAD,CAAC,QAGP;AAED,IAAO,CAAC,CAIP;AAJD,WAAO,GAAC,EAAC,CAAC;IACT,IAAI,CAAC,GAAG,GAAG,CAAC;IACZ,eAAe;IACf,OAAG,EAAE,CAAC,OAAG,GAAG,CAAC;AACd,CAAC,EAJM,CAAC,KAAD,CAAC,QAIP"} \ No newline at end of file diff --git a/tests/baselines/reference/tsxEmit3.sourcemap.txt b/tests/baselines/reference/tsxEmit3.sourcemap.txt index 770221ebcb5..b8fdbbfc4ba 100644 --- a/tests/baselines/reference/tsxEmit3.sourcemap.txt +++ b/tests/baselines/reference/tsxEmit3.sourcemap.txt @@ -60,13 +60,13 @@ sourceFile:file.tsx 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(3, 5) Source(8, 2) + SourceIndex(0) name (M) +1->Emitted(3, 5) Source(8, 2) + SourceIndex(0) --- >>> function Foo() { 1->^^^^^^^^ 2 > ^^-> 1->export class Foo { -1->Emitted(4, 9) Source(8, 21) + SourceIndex(0) name (M.Foo) +1->Emitted(4, 9) Source(8, 21) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -74,18 +74,18 @@ sourceFile:file.tsx 3 > ^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(5, 9) Source(8, 37) + SourceIndex(0) name (M.Foo.constructor) -2 >Emitted(5, 10) Source(8, 38) + SourceIndex(0) name (M.Foo.constructor) +1->Emitted(5, 9) Source(8, 37) + SourceIndex(0) +2 >Emitted(5, 10) Source(8, 38) + SourceIndex(0) --- >>> return Foo; 1->^^^^^^^^ 2 > ^^^^^^^^^^ 1-> 2 > } -1->Emitted(6, 9) Source(8, 39) + SourceIndex(0) name (M.Foo) -2 >Emitted(6, 19) Source(8, 40) + SourceIndex(0) name (M.Foo) +1->Emitted(6, 9) Source(8, 39) + SourceIndex(0) +2 >Emitted(6, 19) Source(8, 40) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^ 2 > ^ 3 > @@ -95,10 +95,10 @@ sourceFile:file.tsx 2 > } 3 > 4 > export class Foo { constructor() { } } -1 >Emitted(7, 5) Source(8, 39) + SourceIndex(0) name (M.Foo) -2 >Emitted(7, 6) Source(8, 40) + SourceIndex(0) name (M.Foo) -3 >Emitted(7, 6) Source(8, 2) + SourceIndex(0) name (M) -4 >Emitted(7, 10) Source(8, 40) + SourceIndex(0) name (M) +1 >Emitted(7, 5) Source(8, 39) + SourceIndex(0) +2 >Emitted(7, 6) Source(8, 40) + SourceIndex(0) +3 >Emitted(7, 6) Source(8, 2) + SourceIndex(0) +4 >Emitted(7, 10) Source(8, 40) + SourceIndex(0) --- >>> M.Foo = Foo; 1->^^^^ @@ -109,10 +109,10 @@ sourceFile:file.tsx 2 > Foo 3 > { constructor() { } } 4 > -1->Emitted(8, 5) Source(8, 15) + SourceIndex(0) name (M) -2 >Emitted(8, 10) Source(8, 18) + SourceIndex(0) name (M) -3 >Emitted(8, 16) Source(8, 40) + SourceIndex(0) name (M) -4 >Emitted(8, 17) Source(8, 40) + SourceIndex(0) name (M) +1->Emitted(8, 5) Source(8, 15) + SourceIndex(0) +2 >Emitted(8, 10) Source(8, 18) + SourceIndex(0) +3 >Emitted(8, 16) Source(8, 40) + SourceIndex(0) +4 >Emitted(8, 17) Source(8, 40) + SourceIndex(0) --- >>> var S; 1 >^^^^ @@ -130,10 +130,10 @@ sourceFile:file.tsx > // Emit Foo > // Foo, ; > } -1 >Emitted(9, 5) Source(9, 2) + SourceIndex(0) name (M) -2 >Emitted(9, 9) Source(9, 16) + SourceIndex(0) name (M) -3 >Emitted(9, 10) Source(9, 17) + SourceIndex(0) name (M) -4 >Emitted(9, 11) Source(14, 3) + SourceIndex(0) name (M) +1 >Emitted(9, 5) Source(9, 2) + SourceIndex(0) +2 >Emitted(9, 9) Source(9, 16) + SourceIndex(0) +3 >Emitted(9, 10) Source(9, 17) + SourceIndex(0) +4 >Emitted(9, 11) Source(14, 3) + SourceIndex(0) --- >>> (function (S) { 1->^^^^ @@ -147,24 +147,24 @@ sourceFile:file.tsx 3 > S 4 > 5 > { -1->Emitted(10, 5) Source(9, 2) + SourceIndex(0) name (M) -2 >Emitted(10, 16) Source(9, 16) + SourceIndex(0) name (M) -3 >Emitted(10, 17) Source(9, 17) + SourceIndex(0) name (M) -4 >Emitted(10, 19) Source(9, 18) + SourceIndex(0) name (M) -5 >Emitted(10, 20) Source(9, 19) + SourceIndex(0) name (M) +1->Emitted(10, 5) Source(9, 2) + SourceIndex(0) +2 >Emitted(10, 16) Source(9, 16) + SourceIndex(0) +3 >Emitted(10, 17) Source(9, 17) + SourceIndex(0) +4 >Emitted(10, 19) Source(9, 18) + SourceIndex(0) +5 >Emitted(10, 20) Source(9, 19) + SourceIndex(0) --- >>> var Bar = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(11, 9) Source(10, 3) + SourceIndex(0) name (M.S) +1->Emitted(11, 9) Source(10, 3) + SourceIndex(0) --- >>> function Bar() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(12, 13) Source(10, 3) + SourceIndex(0) name (M.S.Bar) +1->Emitted(12, 13) Source(10, 3) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -172,18 +172,18 @@ sourceFile:file.tsx 3 > ^^^^^^^^^^^-> 1->export class Bar { 2 > } -1->Emitted(13, 13) Source(10, 22) + SourceIndex(0) name (M.S.Bar.constructor) -2 >Emitted(13, 14) Source(10, 23) + SourceIndex(0) name (M.S.Bar.constructor) +1->Emitted(13, 13) Source(10, 22) + SourceIndex(0) +2 >Emitted(13, 14) Source(10, 23) + SourceIndex(0) --- >>> return Bar; 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^ 1-> 2 > } -1->Emitted(14, 13) Source(10, 22) + SourceIndex(0) name (M.S.Bar) -2 >Emitted(14, 23) Source(10, 23) + SourceIndex(0) name (M.S.Bar) +1->Emitted(14, 13) Source(10, 22) + SourceIndex(0) +2 >Emitted(14, 23) Source(10, 23) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^ 2 > ^ 3 > @@ -193,10 +193,10 @@ sourceFile:file.tsx 2 > } 3 > 4 > export class Bar { } -1 >Emitted(15, 9) Source(10, 22) + SourceIndex(0) name (M.S.Bar) -2 >Emitted(15, 10) Source(10, 23) + SourceIndex(0) name (M.S.Bar) -3 >Emitted(15, 10) Source(10, 3) + SourceIndex(0) name (M.S) -4 >Emitted(15, 14) Source(10, 23) + SourceIndex(0) name (M.S) +1 >Emitted(15, 9) Source(10, 22) + SourceIndex(0) +2 >Emitted(15, 10) Source(10, 23) + SourceIndex(0) +3 >Emitted(15, 10) Source(10, 3) + SourceIndex(0) +4 >Emitted(15, 14) Source(10, 23) + SourceIndex(0) --- >>> S.Bar = Bar; 1->^^^^^^^^ @@ -208,10 +208,10 @@ sourceFile:file.tsx 2 > Bar 3 > { } 4 > -1->Emitted(16, 9) Source(10, 16) + SourceIndex(0) name (M.S) -2 >Emitted(16, 14) Source(10, 19) + SourceIndex(0) name (M.S) -3 >Emitted(16, 20) Source(10, 23) + SourceIndex(0) name (M.S) -4 >Emitted(16, 21) Source(10, 23) + SourceIndex(0) name (M.S) +1->Emitted(16, 9) Source(10, 16) + SourceIndex(0) +2 >Emitted(16, 14) Source(10, 19) + SourceIndex(0) +3 >Emitted(16, 20) Source(10, 23) + SourceIndex(0) +4 >Emitted(16, 21) Source(10, 23) + SourceIndex(0) --- >>> })(S = M.S || (M.S = {})); 1->^^^^ @@ -241,15 +241,15 @@ sourceFile:file.tsx > // Emit Foo > // Foo, ; > } -1->Emitted(17, 5) Source(14, 2) + SourceIndex(0) name (M.S) -2 >Emitted(17, 6) Source(14, 3) + SourceIndex(0) name (M.S) -3 >Emitted(17, 8) Source(9, 16) + SourceIndex(0) name (M) -4 >Emitted(17, 9) Source(9, 17) + SourceIndex(0) name (M) -5 >Emitted(17, 12) Source(9, 16) + SourceIndex(0) name (M) -6 >Emitted(17, 15) Source(9, 17) + SourceIndex(0) name (M) -7 >Emitted(17, 20) Source(9, 16) + SourceIndex(0) name (M) -8 >Emitted(17, 23) Source(9, 17) + SourceIndex(0) name (M) -9 >Emitted(17, 31) Source(14, 3) + SourceIndex(0) name (M) +1->Emitted(17, 5) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 6) Source(14, 3) + SourceIndex(0) +3 >Emitted(17, 8) Source(9, 16) + SourceIndex(0) +4 >Emitted(17, 9) Source(9, 17) + SourceIndex(0) +5 >Emitted(17, 12) Source(9, 16) + SourceIndex(0) +6 >Emitted(17, 15) Source(9, 17) + SourceIndex(0) +7 >Emitted(17, 20) Source(9, 16) + SourceIndex(0) +8 >Emitted(17, 23) Source(9, 17) + SourceIndex(0) +9 >Emitted(17, 31) Source(14, 3) + SourceIndex(0) --- >>>})(M || (M = {})); 1 > @@ -275,8 +275,8 @@ sourceFile:file.tsx > // Foo, ; > } > } -1 >Emitted(18, 1) Source(15, 1) + SourceIndex(0) name (M) -2 >Emitted(18, 2) Source(15, 2) + SourceIndex(0) name (M) +1 >Emitted(18, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(18, 2) Source(15, 2) + SourceIndex(0) 3 >Emitted(18, 4) Source(7, 8) + SourceIndex(0) 4 >Emitted(18, 5) Source(7, 9) + SourceIndex(0) 5 >Emitted(18, 10) Source(7, 8) + SourceIndex(0) @@ -337,8 +337,8 @@ sourceFile:file.tsx 1-> > 2 > // Emit M.Foo -1->Emitted(21, 5) Source(18, 2) + SourceIndex(0) name (M) -2 >Emitted(21, 18) Source(18, 15) + SourceIndex(0) name (M) +1->Emitted(21, 5) Source(18, 2) + SourceIndex(0) +2 >Emitted(21, 18) Source(18, 15) + SourceIndex(0) --- >>> M.Foo, ; 1->^^^^ @@ -356,13 +356,13 @@ sourceFile:file.tsx 5 > Foo 6 > /> 7 > ; -1->Emitted(22, 5) Source(19, 2) + SourceIndex(0) name (M) -2 >Emitted(22, 10) Source(19, 5) + SourceIndex(0) name (M) -3 >Emitted(22, 12) Source(19, 7) + SourceIndex(0) name (M) -4 >Emitted(22, 13) Source(19, 8) + SourceIndex(0) name (M) -5 >Emitted(22, 18) Source(19, 11) + SourceIndex(0) name (M) -6 >Emitted(22, 21) Source(19, 14) + SourceIndex(0) name (M) -7 >Emitted(22, 22) Source(19, 15) + SourceIndex(0) name (M) +1->Emitted(22, 5) Source(19, 2) + SourceIndex(0) +2 >Emitted(22, 10) Source(19, 5) + SourceIndex(0) +3 >Emitted(22, 12) Source(19, 7) + SourceIndex(0) +4 >Emitted(22, 13) Source(19, 8) + SourceIndex(0) +5 >Emitted(22, 18) Source(19, 11) + SourceIndex(0) +6 >Emitted(22, 21) Source(19, 14) + SourceIndex(0) +7 >Emitted(22, 22) Source(19, 15) + SourceIndex(0) --- >>> var S; 1 >^^^^ @@ -382,10 +382,10 @@ sourceFile:file.tsx > // Emit S.Bar > Bar, ; > } -1 >Emitted(23, 5) Source(21, 2) + SourceIndex(0) name (M) -2 >Emitted(23, 9) Source(21, 16) + SourceIndex(0) name (M) -3 >Emitted(23, 10) Source(21, 17) + SourceIndex(0) name (M) -4 >Emitted(23, 11) Source(27, 3) + SourceIndex(0) name (M) +1 >Emitted(23, 5) Source(21, 2) + SourceIndex(0) +2 >Emitted(23, 9) Source(21, 16) + SourceIndex(0) +3 >Emitted(23, 10) Source(21, 17) + SourceIndex(0) +4 >Emitted(23, 11) Source(27, 3) + SourceIndex(0) --- >>> (function (S) { 1->^^^^ @@ -399,11 +399,11 @@ sourceFile:file.tsx 3 > S 4 > 5 > { -1->Emitted(24, 5) Source(21, 2) + SourceIndex(0) name (M) -2 >Emitted(24, 16) Source(21, 16) + SourceIndex(0) name (M) -3 >Emitted(24, 17) Source(21, 17) + SourceIndex(0) name (M) -4 >Emitted(24, 19) Source(21, 18) + SourceIndex(0) name (M) -5 >Emitted(24, 20) Source(21, 19) + SourceIndex(0) name (M) +1->Emitted(24, 5) Source(21, 2) + SourceIndex(0) +2 >Emitted(24, 16) Source(21, 16) + SourceIndex(0) +3 >Emitted(24, 17) Source(21, 17) + SourceIndex(0) +4 >Emitted(24, 19) Source(21, 18) + SourceIndex(0) +5 >Emitted(24, 20) Source(21, 19) + SourceIndex(0) --- >>> // Emit M.Foo 1->^^^^^^^^ @@ -412,8 +412,8 @@ sourceFile:file.tsx 1-> > 2 > // Emit M.Foo -1->Emitted(25, 9) Source(22, 3) + SourceIndex(0) name (M.S) -2 >Emitted(25, 22) Source(22, 16) + SourceIndex(0) name (M.S) +1->Emitted(25, 9) Source(22, 3) + SourceIndex(0) +2 >Emitted(25, 22) Source(22, 16) + SourceIndex(0) --- >>> M.Foo, ; 1->^^^^^^^^ @@ -431,13 +431,13 @@ sourceFile:file.tsx 5 > Foo 6 > /> 7 > ; -1->Emitted(26, 9) Source(23, 3) + SourceIndex(0) name (M.S) -2 >Emitted(26, 14) Source(23, 6) + SourceIndex(0) name (M.S) -3 >Emitted(26, 16) Source(23, 8) + SourceIndex(0) name (M.S) -4 >Emitted(26, 17) Source(23, 9) + SourceIndex(0) name (M.S) -5 >Emitted(26, 22) Source(23, 12) + SourceIndex(0) name (M.S) -6 >Emitted(26, 25) Source(23, 15) + SourceIndex(0) name (M.S) -7 >Emitted(26, 26) Source(23, 16) + SourceIndex(0) name (M.S) +1->Emitted(26, 9) Source(23, 3) + SourceIndex(0) +2 >Emitted(26, 14) Source(23, 6) + SourceIndex(0) +3 >Emitted(26, 16) Source(23, 8) + SourceIndex(0) +4 >Emitted(26, 17) Source(23, 9) + SourceIndex(0) +5 >Emitted(26, 22) Source(23, 12) + SourceIndex(0) +6 >Emitted(26, 25) Source(23, 15) + SourceIndex(0) +7 >Emitted(26, 26) Source(23, 16) + SourceIndex(0) --- >>> // Emit S.Bar 1 >^^^^^^^^ @@ -447,8 +447,8 @@ sourceFile:file.tsx > > 2 > // Emit S.Bar -1 >Emitted(27, 9) Source(25, 3) + SourceIndex(0) name (M.S) -2 >Emitted(27, 22) Source(25, 16) + SourceIndex(0) name (M.S) +1 >Emitted(27, 9) Source(25, 3) + SourceIndex(0) +2 >Emitted(27, 22) Source(25, 16) + SourceIndex(0) --- >>> S.Bar, ; 1->^^^^^^^^ @@ -467,13 +467,13 @@ sourceFile:file.tsx 5 > Bar 6 > /> 7 > ; -1->Emitted(28, 9) Source(26, 3) + SourceIndex(0) name (M.S) -2 >Emitted(28, 14) Source(26, 6) + SourceIndex(0) name (M.S) -3 >Emitted(28, 16) Source(26, 8) + SourceIndex(0) name (M.S) -4 >Emitted(28, 17) Source(26, 9) + SourceIndex(0) name (M.S) -5 >Emitted(28, 22) Source(26, 12) + SourceIndex(0) name (M.S) -6 >Emitted(28, 25) Source(26, 15) + SourceIndex(0) name (M.S) -7 >Emitted(28, 26) Source(26, 16) + SourceIndex(0) name (M.S) +1->Emitted(28, 9) Source(26, 3) + SourceIndex(0) +2 >Emitted(28, 14) Source(26, 6) + SourceIndex(0) +3 >Emitted(28, 16) Source(26, 8) + SourceIndex(0) +4 >Emitted(28, 17) Source(26, 9) + SourceIndex(0) +5 >Emitted(28, 22) Source(26, 12) + SourceIndex(0) +6 >Emitted(28, 25) Source(26, 15) + SourceIndex(0) +7 >Emitted(28, 26) Source(26, 16) + SourceIndex(0) --- >>> })(S = M.S || (M.S = {})); 1->^^^^ @@ -501,15 +501,15 @@ sourceFile:file.tsx > // Emit S.Bar > Bar, ; > } -1->Emitted(29, 5) Source(27, 2) + SourceIndex(0) name (M.S) -2 >Emitted(29, 6) Source(27, 3) + SourceIndex(0) name (M.S) -3 >Emitted(29, 8) Source(21, 16) + SourceIndex(0) name (M) -4 >Emitted(29, 9) Source(21, 17) + SourceIndex(0) name (M) -5 >Emitted(29, 12) Source(21, 16) + SourceIndex(0) name (M) -6 >Emitted(29, 15) Source(21, 17) + SourceIndex(0) name (M) -7 >Emitted(29, 20) Source(21, 16) + SourceIndex(0) name (M) -8 >Emitted(29, 23) Source(21, 17) + SourceIndex(0) name (M) -9 >Emitted(29, 31) Source(27, 3) + SourceIndex(0) name (M) +1->Emitted(29, 5) Source(27, 2) + SourceIndex(0) +2 >Emitted(29, 6) Source(27, 3) + SourceIndex(0) +3 >Emitted(29, 8) Source(21, 16) + SourceIndex(0) +4 >Emitted(29, 9) Source(21, 17) + SourceIndex(0) +5 >Emitted(29, 12) Source(21, 16) + SourceIndex(0) +6 >Emitted(29, 15) Source(21, 17) + SourceIndex(0) +7 >Emitted(29, 20) Source(21, 16) + SourceIndex(0) +8 >Emitted(29, 23) Source(21, 17) + SourceIndex(0) +9 >Emitted(29, 31) Source(27, 3) + SourceIndex(0) --- >>>})(M || (M = {})); 1 > @@ -540,8 +540,8 @@ sourceFile:file.tsx > } > > } -1 >Emitted(30, 1) Source(29, 1) + SourceIndex(0) name (M) -2 >Emitted(30, 2) Source(29, 2) + SourceIndex(0) name (M) +1 >Emitted(30, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(30, 2) Source(29, 2) + SourceIndex(0) 3 >Emitted(30, 4) Source(17, 8) + SourceIndex(0) 4 >Emitted(30, 5) Source(17, 9) + SourceIndex(0) 5 >Emitted(30, 10) Source(17, 8) + SourceIndex(0) @@ -593,8 +593,8 @@ sourceFile:file.tsx 1-> > 2 > // Emit M.S.Bar -1->Emitted(33, 5) Source(32, 2) + SourceIndex(0) name (M) -2 >Emitted(33, 20) Source(32, 17) + SourceIndex(0) name (M) +1->Emitted(33, 5) Source(32, 2) + SourceIndex(0) +2 >Emitted(33, 20) Source(32, 17) + SourceIndex(0) --- >>> M.S.Bar, ; 1->^^^^ @@ -620,17 +620,17 @@ sourceFile:file.tsx 9 > Bar 10> /> 11> ; -1->Emitted(34, 5) Source(33, 2) + SourceIndex(0) name (M) -2 >Emitted(34, 8) Source(33, 3) + SourceIndex(0) name (M) -3 >Emitted(34, 9) Source(33, 4) + SourceIndex(0) name (M) -4 >Emitted(34, 12) Source(33, 7) + SourceIndex(0) name (M) -5 >Emitted(34, 14) Source(33, 9) + SourceIndex(0) name (M) -6 >Emitted(34, 15) Source(33, 10) + SourceIndex(0) name (M) -7 >Emitted(34, 18) Source(33, 11) + SourceIndex(0) name (M) -8 >Emitted(34, 19) Source(33, 12) + SourceIndex(0) name (M) -9 >Emitted(34, 22) Source(33, 15) + SourceIndex(0) name (M) -10>Emitted(34, 25) Source(33, 18) + SourceIndex(0) name (M) -11>Emitted(34, 26) Source(33, 19) + SourceIndex(0) name (M) +1->Emitted(34, 5) Source(33, 2) + SourceIndex(0) +2 >Emitted(34, 8) Source(33, 3) + SourceIndex(0) +3 >Emitted(34, 9) Source(33, 4) + SourceIndex(0) +4 >Emitted(34, 12) Source(33, 7) + SourceIndex(0) +5 >Emitted(34, 14) Source(33, 9) + SourceIndex(0) +6 >Emitted(34, 15) Source(33, 10) + SourceIndex(0) +7 >Emitted(34, 18) Source(33, 11) + SourceIndex(0) +8 >Emitted(34, 19) Source(33, 12) + SourceIndex(0) +9 >Emitted(34, 22) Source(33, 15) + SourceIndex(0) +10>Emitted(34, 25) Source(33, 18) + SourceIndex(0) +11>Emitted(34, 26) Source(33, 19) + SourceIndex(0) --- >>>})(M || (M = {})); 1 > @@ -651,8 +651,8 @@ sourceFile:file.tsx > // Emit M.S.Bar > S.Bar, ; > } -1 >Emitted(35, 1) Source(34, 1) + SourceIndex(0) name (M) -2 >Emitted(35, 2) Source(34, 2) + SourceIndex(0) name (M) +1 >Emitted(35, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(35, 2) Source(34, 2) + SourceIndex(0) 3 >Emitted(35, 4) Source(31, 8) + SourceIndex(0) 4 >Emitted(35, 5) Source(31, 9) + SourceIndex(0) 5 >Emitted(35, 10) Source(31, 8) + SourceIndex(0) @@ -712,12 +712,12 @@ sourceFile:file.tsx 4 > = 5 > 100 6 > ; -1 >Emitted(38, 5) Source(37, 2) + SourceIndex(0) name (M) -2 >Emitted(38, 9) Source(37, 6) + SourceIndex(0) name (M) -3 >Emitted(38, 10) Source(37, 7) + SourceIndex(0) name (M) -4 >Emitted(38, 13) Source(37, 10) + SourceIndex(0) name (M) -5 >Emitted(38, 16) Source(37, 13) + SourceIndex(0) name (M) -6 >Emitted(38, 17) Source(37, 14) + SourceIndex(0) name (M) +1 >Emitted(38, 5) Source(37, 2) + SourceIndex(0) +2 >Emitted(38, 9) Source(37, 6) + SourceIndex(0) +3 >Emitted(38, 10) Source(37, 7) + SourceIndex(0) +4 >Emitted(38, 13) Source(37, 10) + SourceIndex(0) +5 >Emitted(38, 16) Source(37, 13) + SourceIndex(0) +6 >Emitted(38, 17) Source(37, 14) + SourceIndex(0) --- >>> // Emit M_1.Foo 1->^^^^ @@ -726,8 +726,8 @@ sourceFile:file.tsx 1-> > 2 > // Emit M_1.Foo -1->Emitted(39, 5) Source(38, 2) + SourceIndex(0) name (M) -2 >Emitted(39, 20) Source(38, 17) + SourceIndex(0) name (M) +1->Emitted(39, 5) Source(38, 2) + SourceIndex(0) +2 >Emitted(39, 20) Source(38, 17) + SourceIndex(0) --- >>> M_1.Foo, ; 1->^^^^ @@ -745,13 +745,13 @@ sourceFile:file.tsx 5 > Foo 6 > /> 7 > ; -1->Emitted(40, 5) Source(39, 2) + SourceIndex(0) name (M) -2 >Emitted(40, 12) Source(39, 5) + SourceIndex(0) name (M) -3 >Emitted(40, 14) Source(39, 7) + SourceIndex(0) name (M) -4 >Emitted(40, 15) Source(39, 8) + SourceIndex(0) name (M) -5 >Emitted(40, 22) Source(39, 11) + SourceIndex(0) name (M) -6 >Emitted(40, 25) Source(39, 14) + SourceIndex(0) name (M) -7 >Emitted(40, 26) Source(39, 15) + SourceIndex(0) name (M) +1->Emitted(40, 5) Source(39, 2) + SourceIndex(0) +2 >Emitted(40, 12) Source(39, 5) + SourceIndex(0) +3 >Emitted(40, 14) Source(39, 7) + SourceIndex(0) +4 >Emitted(40, 15) Source(39, 8) + SourceIndex(0) +5 >Emitted(40, 22) Source(39, 11) + SourceIndex(0) +6 >Emitted(40, 25) Source(39, 14) + SourceIndex(0) +7 >Emitted(40, 26) Source(39, 15) + SourceIndex(0) --- >>>})(M || (M = {})); 1 > @@ -774,8 +774,8 @@ sourceFile:file.tsx > // Emit M_1.Foo > Foo, ; > } -1 >Emitted(41, 1) Source(40, 1) + SourceIndex(0) name (M) -2 >Emitted(41, 2) Source(40, 2) + SourceIndex(0) name (M) +1 >Emitted(41, 1) Source(40, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(40, 2) + SourceIndex(0) 3 >Emitted(41, 4) Source(36, 8) + SourceIndex(0) 4 >Emitted(41, 5) Source(36, 9) + SourceIndex(0) 5 >Emitted(41, 10) Source(36, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/tsxExternalModuleEmit1.js b/tests/baselines/reference/tsxExternalModuleEmit1.js index 2830137f3b0..29aee544b3c 100644 --- a/tests/baselines/reference/tsxExternalModuleEmit1.js +++ b/tests/baselines/reference/tsxExternalModuleEmit1.js @@ -48,7 +48,7 @@ var Button = (function (_super) { return ; }; return Button; -})(React.Component); +}(React.Component)); exports.Button = Button; //// [app.jsx] "use strict"; @@ -69,5 +69,5 @@ var App = (function (_super) { return ; }; return App; -})(React.Component); +}(React.Component)); exports.App = App; diff --git a/tests/baselines/reference/tsxPreserveEmit1.js b/tests/baselines/reference/tsxPreserveEmit1.js index 894d0c3d698..7ac6c18ebca 100644 --- a/tests/baselines/reference/tsxPreserveEmit1.js +++ b/tests/baselines/reference/tsxPreserveEmit1.js @@ -22,12 +22,28 @@ import ReactRouter = require('react-router'); import Route = ReactRouter.Route; -var routes = ; +var routes1 = ; + +module M { + export var X: any; +} +module M { + // Should emit 'M.X' in both opening and closing tags + var y = ; +} //// [test.jsx] define(["require", "exports", 'react-router'], function (require, exports, ReactRouter) { "use strict"; var Route = ReactRouter.Route; - var routes = ; + var routes1 = ; + var M; + (function (M) { + })(M || (M = {})); + var M; + (function (M) { + // Should emit 'M.X' in both opening and closing tags + var y = ; + })(M || (M = {})); }); diff --git a/tests/baselines/reference/tsxPreserveEmit1.symbols b/tests/baselines/reference/tsxPreserveEmit1.symbols index 6dcf4d9ac49..53707b86104 100644 --- a/tests/baselines/reference/tsxPreserveEmit1.symbols +++ b/tests/baselines/reference/tsxPreserveEmit1.symbols @@ -11,10 +11,26 @@ import Route = ReactRouter.Route; >ReactRouter : Symbol(ReactRouter, Decl(react.d.ts, 4, 1)) >Route : Symbol(ReactRouter.Route, Decl(react.d.ts, 7, 4)) -var routes = ; ->routes : Symbol(routes, Decl(test.tsx, 6, 3)) +var routes1 = ; +>routes1 : Symbol(routes1, Decl(test.tsx, 6, 3)) >Route : Symbol(Route, Decl(test.tsx, 2, 45)) +module M { +>M : Symbol(M, Decl(test.tsx, 6, 24), Decl(test.tsx, 10, 1)) + + export var X: any; +>X : Symbol(X, Decl(test.tsx, 9, 11)) +} +module M { +>M : Symbol(M, Decl(test.tsx, 6, 24), Decl(test.tsx, 10, 1)) + + // Should emit 'M.X' in both opening and closing tags + var y = ; +>y : Symbol(y, Decl(test.tsx, 13, 4)) +>X : Symbol(X, Decl(test.tsx, 9, 11)) +>X : Symbol(X, Decl(test.tsx, 9, 11)) +} + === tests/cases/conformance/jsx/react.d.ts === declare module 'react' { diff --git a/tests/baselines/reference/tsxPreserveEmit1.types b/tests/baselines/reference/tsxPreserveEmit1.types index ea64e2d2e94..26da75b39e4 100644 --- a/tests/baselines/reference/tsxPreserveEmit1.types +++ b/tests/baselines/reference/tsxPreserveEmit1.types @@ -11,11 +11,28 @@ import Route = ReactRouter.Route; >ReactRouter : typeof ReactRouter >Route : any -var routes = ; ->routes : any +var routes1 = ; +>routes1 : any > : any >Route : any +module M { +>M : typeof M + + export var X: any; +>X : any +} +module M { +>M : typeof M + + // Should emit 'M.X' in both opening and closing tags + var y = ; +>y : any +> : any +>X : any +>X : any +} + === tests/cases/conformance/jsx/react.d.ts === declare module 'react' { diff --git a/tests/baselines/reference/tsxReactEmit1.js b/tests/baselines/reference/tsxReactEmit1.js index 5b13c463bd6..05781ab8530 100644 --- a/tests/baselines/reference/tsxReactEmit1.js +++ b/tests/baselines/reference/tsxReactEmit1.js @@ -68,7 +68,7 @@ var SomeClass = (function () { var rewrites6 = React.createElement("div", {a: { p: p }}); }; return SomeClass; -})(); +}()); var whitespace1 = React.createElement("div", null, " "); var whitespace2 = React.createElement("div", null, " ", p, " "); var whitespace3 = React.createElement("div", null, p); diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt new file mode 100644 index 00000000000..a40aef38e22 --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt @@ -0,0 +1,37 @@ +tests/cases/conformance/jsx/file.tsx(12,9): error TS2324: Property 'name' is missing in type 'IntrinsicAttributes & { name: string; }'. +tests/cases/conformance/jsx/file.tsx(12,16): error TS2339: Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'. +tests/cases/conformance/jsx/file.tsx(19,15): error TS2322: Type 'number' is not assignable to type 'string'. +tests/cases/conformance/jsx/file.tsx(21,15): error TS2339: Property 'naaaaaaame' does not exist on type 'IntrinsicAttributes & { name?: string; }'. + + +==== tests/cases/conformance/jsx/file.tsx (4 errors) ==== + + function Greet(x: {name: string}) { + return
Hello, {x}
; + } + function Meet({name = 'world'}) { + return
Hello, {name}
; + } + + // OK + let a = ; + // Error + let b = ; + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2324: Property 'name' is missing in type 'IntrinsicAttributes & { name: string; }'. + ~~~~~~ +!!! error TS2339: Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'. + + // OK + let c = ; + // OK + let d = ; + // Error + let e = ; + ~~~~~~~~~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + // Error + let f = ; + ~~~~~~~~~~ +!!! error TS2339: Property 'naaaaaaame' does not exist on type 'IntrinsicAttributes & { name?: string; }'. + \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.js b/tests/baselines/reference/tsxStatelessFunctionComponents1.js new file mode 100644 index 00000000000..864e519f786 --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.js @@ -0,0 +1,44 @@ +//// [file.tsx] + +function Greet(x: {name: string}) { + return
Hello, {x}
; +} +function Meet({name = 'world'}) { + return
Hello, {name}
; +} + +// OK +let a = ; +// Error +let b = ; + +// OK +let c = ; +// OK +let d = ; +// Error +let e = ; +// Error +let f = ; + + +//// [file.jsx] +function Greet(x) { + return
Hello, {x}
; +} +function Meet(_a) { + var _b = _a.name, name = _b === void 0 ? 'world' : _b; + return
Hello, {name}
; +} +// OK +var a = ; +// Error +var b = ; +// OK +var c = ; +// OK +var d = ; +// Error +var e = ; +// Error +var f = ; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt new file mode 100644 index 00000000000..cced3116b5e --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt @@ -0,0 +1,56 @@ +tests/cases/conformance/jsx/file.tsx(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. +tests/cases/conformance/jsx/file.tsx(20,16): error TS2339: Property 'ref' does not exist on type 'IntrinsicAttributes & { name?: string; }'. +tests/cases/conformance/jsx/file.tsx(26,42): error TS2339: Property 'subtr' does not exist on type 'string'. +tests/cases/conformance/jsx/file.tsx(28,33): error TS2339: Property 'notARealProperty' does not exist on type 'BigGreeter'. +tests/cases/conformance/jsx/file.tsx(36,26): error TS2339: Property 'propertyNotOnHtmlDivElement' does not exist on type 'HTMLDivElement'. + + +==== tests/cases/conformance/jsx/file.tsx (5 errors) ==== + + import React = require('react'); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. + + function Greet(x: {name?: string}) { + return
Hello, {x}
; + } + + class BigGreeter extends React.Component<{ name?: string }, {}> { + render() { + return
; + } + greeting: string; + } + + // OK + let a = ; + // OK - always valid to specify 'key' + let b = ; + // Error - not allowed to specify 'ref' on SFCs + let c = ; + ~~~ +!!! error TS2339: Property 'ref' does not exist on type 'IntrinsicAttributes & { name?: string; }'. + + + // OK - ref is valid for classes + let d = x.greeting.substr(10)} />; + // Error ('subtr' not on string) + let e = x.greeting.subtr(10)} />; + ~~~~~ +!!! error TS2339: Property 'subtr' does not exist on type 'string'. + // Error (ref callback is contextually typed) + let f = x.notARealProperty} />; + ~~~~~~~~~~~~~~~~ +!!! error TS2339: Property 'notARealProperty' does not exist on type 'BigGreeter'. + + // OK - key is always valid + let g = ; + + // OK - contextually typed intrinsic ref callback parameter + let h =
x.innerText} />; + // Error - property not on ontextually typed intrinsic ref callback parameter + let i =
x.propertyNotOnHtmlDivElement} />; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2339: Property 'propertyNotOnHtmlDivElement' does not exist on type 'HTMLDivElement'. + + \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.js b/tests/baselines/reference/tsxStatelessFunctionComponents2.js new file mode 100644 index 00000000000..04d61d41218 --- /dev/null +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.js @@ -0,0 +1,79 @@ +//// [file.tsx] + +import React = require('react'); + +function Greet(x: {name?: string}) { + return
Hello, {x}
; +} + +class BigGreeter extends React.Component<{ name?: string }, {}> { + render() { + return
; + } + greeting: string; +} + +// OK +let a = ; +// OK - always valid to specify 'key' +let b = ; +// Error - not allowed to specify 'ref' on SFCs +let c = ; + + +// OK - ref is valid for classes +let d = x.greeting.substr(10)} />; +// Error ('subtr' not on string) +let e = x.greeting.subtr(10)} />; +// Error (ref callback is contextually typed) +let f = x.notARealProperty} />; + +// OK - key is always valid +let g = ; + +// OK - contextually typed intrinsic ref callback parameter +let h =
x.innerText} />; +// Error - property not on ontextually typed intrinsic ref callback parameter +let i =
x.propertyNotOnHtmlDivElement} />; + + + +//// [file.jsx] +"use strict"; +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +var React = require('react'); +function Greet(x) { + return
Hello, {x}
; +} +var BigGreeter = (function (_super) { + __extends(BigGreeter, _super); + function BigGreeter() { + _super.apply(this, arguments); + } + BigGreeter.prototype.render = function () { + return
; + }; + return BigGreeter; +}(React.Component)); +// OK +var a = ; +// OK - always valid to specify 'key' +var b = ; +// Error - not allowed to specify 'ref' on SFCs +var c = ; +// OK - ref is valid for classes +var d = ; +// Error ('subtr' not on string) +var e = ; +// Error (ref callback is contextually typed) +var f = ; +// OK - key is always valid +var g = ; +// OK - contextually typed intrinsic ref callback parameter +var h =
; +// Error - property not on ontextually typed intrinsic ref callback parameter +var i =
; diff --git a/tests/baselines/reference/tsxTypeErrors.js b/tests/baselines/reference/tsxTypeErrors.js index f195a459747..fd28f9a5bcb 100644 --- a/tests/baselines/reference/tsxTypeErrors.js +++ b/tests/baselines/reference/tsxTypeErrors.js @@ -49,7 +49,7 @@ var MyClass = (function () { function MyClass() { } return MyClass; -})(); +}()); // Let's use it // TODO: Error on missing 'reqd' var b1 = ; diff --git a/tests/baselines/reference/twoAccessorsWithSameName.js b/tests/baselines/reference/twoAccessorsWithSameName.js index 1e447ea1205..0021c5ac131 100644 --- a/tests/baselines/reference/twoAccessorsWithSameName.js +++ b/tests/baselines/reference/twoAccessorsWithSameName.js @@ -44,7 +44,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function () { function D() { } @@ -54,7 +54,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); var E = (function () { function E() { } @@ -67,7 +67,7 @@ var E = (function () { configurable: true }); return E; -})(); +}()); var x = { get x() { return 1; diff --git a/tests/baselines/reference/twoAccessorsWithSameName2.js b/tests/baselines/reference/twoAccessorsWithSameName2.js index 847f83e6a70..12210f49dae 100644 --- a/tests/baselines/reference/twoAccessorsWithSameName2.js +++ b/tests/baselines/reference/twoAccessorsWithSameName2.js @@ -26,7 +26,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function () { function D() { } @@ -36,7 +36,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); var E = (function () { function E() { } @@ -49,4 +49,4 @@ var E = (function () { configurable: true }); return E; -})(); +}()); diff --git a/tests/baselines/reference/typeAliasExport.js b/tests/baselines/reference/typeAliasExport.js new file mode 100644 index 00000000000..fa864f571ea --- /dev/null +++ b/tests/baselines/reference/typeAliasExport.js @@ -0,0 +1,8 @@ +//// [typeAliasExport.ts] +declare module "a" { + export default 0 + export var a; + export type a = typeof a; +} + +//// [typeAliasExport.js] diff --git a/tests/baselines/reference/typeAliasExport.symbols b/tests/baselines/reference/typeAliasExport.symbols new file mode 100644 index 00000000000..1f580b03011 --- /dev/null +++ b/tests/baselines/reference/typeAliasExport.symbols @@ -0,0 +1,10 @@ +=== tests/cases/compiler/typeAliasExport.ts === +declare module "a" { + export default 0 + export var a; +>a : Symbol(a, Decl(typeAliasExport.ts, 2, 12), Decl(typeAliasExport.ts, 2, 15)) + + export type a = typeof a; +>a : Symbol(a, Decl(typeAliasExport.ts, 2, 12), Decl(typeAliasExport.ts, 2, 15)) +>a : Symbol(a, Decl(typeAliasExport.ts, 2, 12), Decl(typeAliasExport.ts, 2, 15)) +} diff --git a/tests/baselines/reference/typeAliasExport.types b/tests/baselines/reference/typeAliasExport.types new file mode 100644 index 00000000000..afa26073061 --- /dev/null +++ b/tests/baselines/reference/typeAliasExport.types @@ -0,0 +1,10 @@ +=== tests/cases/compiler/typeAliasExport.ts === +declare module "a" { + export default 0 + export var a; +>a : any + + export type a = typeof a; +>a : any +>a : any +} diff --git a/tests/baselines/reference/typeAliases.js b/tests/baselines/reference/typeAliases.js index c31a52bff45..fd63fc6ca4a 100644 --- a/tests/baselines/reference/typeAliases.js +++ b/tests/baselines/reference/typeAliases.js @@ -98,7 +98,7 @@ var C7 = (function () { function C7() { } return C7; -})(); +}()); var x7; var x7; var x8; diff --git a/tests/baselines/reference/typeAliasesForObjectTypes.js b/tests/baselines/reference/typeAliasesForObjectTypes.js index 0b583528ade..0c78e7f42a4 100644 --- a/tests/baselines/reference/typeAliasesForObjectTypes.js +++ b/tests/baselines/reference/typeAliasesForObjectTypes.js @@ -20,4 +20,4 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); diff --git a/tests/baselines/reference/typeArgumentInferenceOrdering.js b/tests/baselines/reference/typeArgumentInferenceOrdering.js index 96978bfd489..d6e5666b550 100644 --- a/tests/baselines/reference/typeArgumentInferenceOrdering.js +++ b/tests/baselines/reference/typeArgumentInferenceOrdering.js @@ -22,4 +22,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.errors.txt b/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.errors.txt deleted file mode 100644 index 08cb5348c27..00000000000 --- a/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.errors.txt +++ /dev/null @@ -1,17 +0,0 @@ -tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceTransitiveConstraints.ts(2,29): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceTransitiveConstraints.ts(2,42): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceTransitiveConstraints.ts (2 errors) ==== - - function fn(a: A, b: B, c: C) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - return [a, b, c]; - } - - var d = fn(new Date(), new Date(), new Date()); - var d: Date[]; // Should be OK (d should be Date[]) - \ No newline at end of file diff --git a/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.symbols b/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.symbols new file mode 100644 index 00000000000..2d6270bbf5c --- /dev/null +++ b/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.symbols @@ -0,0 +1,34 @@ +=== tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceTransitiveConstraints.ts === + +function fn(a: A, b: B, c: C) { +>fn : Symbol(fn, Decl(typeArgumentInferenceTransitiveConstraints.ts, 0, 0)) +>A : Symbol(A, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 12)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>B : Symbol(B, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 27)) +>A : Symbol(A, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 12)) +>C : Symbol(C, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 40)) +>B : Symbol(B, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 27)) +>a : Symbol(a, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 54)) +>A : Symbol(A, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 12)) +>b : Symbol(b, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 59)) +>B : Symbol(B, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 27)) +>c : Symbol(c, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 65)) +>C : Symbol(C, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 40)) + + return [a, b, c]; +>a : Symbol(a, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 54)) +>b : Symbol(b, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 59)) +>c : Symbol(c, Decl(typeArgumentInferenceTransitiveConstraints.ts, 1, 65)) +} + +var d = fn(new Date(), new Date(), new Date()); +>d : Symbol(d, Decl(typeArgumentInferenceTransitiveConstraints.ts, 5, 3), Decl(typeArgumentInferenceTransitiveConstraints.ts, 6, 3)) +>fn : Symbol(fn, Decl(typeArgumentInferenceTransitiveConstraints.ts, 0, 0)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +var d: Date[]; // Should be OK (d should be Date[]) +>d : Symbol(d, Decl(typeArgumentInferenceTransitiveConstraints.ts, 5, 3), Decl(typeArgumentInferenceTransitiveConstraints.ts, 6, 3)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + diff --git a/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.types b/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.types new file mode 100644 index 00000000000..6f772f10766 --- /dev/null +++ b/tests/baselines/reference/typeArgumentInferenceTransitiveConstraints.types @@ -0,0 +1,39 @@ +=== tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceTransitiveConstraints.ts === + +function fn(a: A, b: B, c: C) { +>fn : (a: A, b: B, c: C) => A[] +>A : A +>Date : Date +>B : B +>A : A +>C : C +>B : B +>a : A +>A : A +>b : B +>B : B +>c : C +>C : C + + return [a, b, c]; +>[a, b, c] : A[] +>a : A +>b : B +>c : C +} + +var d = fn(new Date(), new Date(), new Date()); +>d : Date[] +>fn(new Date(), new Date(), new Date()) : Date[] +>fn : (a: A, b: B, c: C) => A[] +>new Date() : Date +>Date : DateConstructor +>new Date() : Date +>Date : DateConstructor +>new Date() : Date +>Date : DateConstructor + +var d: Date[]; // Should be OK (d should be Date[]) +>d : Date[] +>Date : Date + diff --git a/tests/baselines/reference/typeArgumentInferenceWithClassExpression1.js b/tests/baselines/reference/typeArgumentInferenceWithClassExpression1.js index 25ce3743fa2..d18181dd1dc 100644 --- a/tests/baselines/reference/typeArgumentInferenceWithClassExpression1.js +++ b/tests/baselines/reference/typeArgumentInferenceWithClassExpression1.js @@ -11,7 +11,7 @@ function foo(x) { function class_1() { } return class_1; - })(); } + }()); } return undefined; } foo((function () { @@ -19,4 +19,4 @@ foo((function () { } class_2.prop = "hello"; return class_2; -})()).length; +}())).length; diff --git a/tests/baselines/reference/typeArgumentInferenceWithClassExpression2.js b/tests/baselines/reference/typeArgumentInferenceWithClassExpression2.js index c4a7872b016..66da2ffbff6 100644 --- a/tests/baselines/reference/typeArgumentInferenceWithClassExpression2.js +++ b/tests/baselines/reference/typeArgumentInferenceWithClassExpression2.js @@ -12,7 +12,7 @@ function foo(x) { function class_1() { } return class_1; - })(); } + }()); } return undefined; } // Should not infer string because it is a static property @@ -21,4 +21,4 @@ foo((function () { } class_2.prop = "hello"; return class_2; -})()).length; +}())).length; diff --git a/tests/baselines/reference/typeArgumentInferenceWithClassExpression3.js b/tests/baselines/reference/typeArgumentInferenceWithClassExpression3.js index f3a3470e1c3..1fb9cf8c3cf 100644 --- a/tests/baselines/reference/typeArgumentInferenceWithClassExpression3.js +++ b/tests/baselines/reference/typeArgumentInferenceWithClassExpression3.js @@ -11,7 +11,7 @@ function foo(x) { function class_1() { } return class_1; - })(); } + }()); } return undefined; } foo((function () { @@ -19,4 +19,4 @@ foo((function () { this.prop = "hello"; } return class_2; -})()).length; +}())).length; diff --git a/tests/baselines/reference/typeArgumentInferenceWithConstraints.errors.txt b/tests/baselines/reference/typeArgumentInferenceWithConstraints.errors.txt index 0c1e8cc4e97..e6de840ec54 100644 --- a/tests/baselines/reference/typeArgumentInferenceWithConstraints.errors.txt +++ b/tests/baselines/reference/typeArgumentInferenceWithConstraints.errors.txt @@ -1,6 +1,6 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(11,17): error TS2344: Type '{}' does not satisfy the constraint 'number'. -tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(14,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(16,31): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. +tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(16,23): error TS2344: Type 'number' does not satisfy the constraint 'string'. +tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(17,23): error TS2344: Type '{}' does not satisfy the constraint 'number'. tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(32,34): error TS2304: Cannot find name 'Window'. tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(34,15): error TS2304: Cannot find name 'Window'. tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(41,35): error TS2345: Argument of type '(x: string) => string' is not assignable to parameter of type '(x: number) => void'. @@ -43,13 +43,13 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConst // Generic call with multiple type parameters and only one used in parameter type annotation function someGenerics1(n: T, m: number) { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. someGenerics1(3, 4); // Valid someGenerics1(3, 4); // Error - ~ -!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. + ~~~~~~ +!!! error TS2344: Type 'number' does not satisfy the constraint 'string'. someGenerics1(3, 4); // Error + ~~ +!!! error TS2344: Type '{}' does not satisfy the constraint 'number'. someGenerics1(3, 4); // Generic call with argument of function type whose parameter is of type parameter type diff --git a/tests/baselines/reference/typeAssertions.js b/tests/baselines/reference/typeAssertions.js index 3645e61f2ba..b58a46c37f6 100644 --- a/tests/baselines/reference/typeAssertions.js +++ b/tests/baselines/reference/typeAssertions.js @@ -61,19 +61,19 @@ var SomeBase = (function () { function SomeBase() { } return SomeBase; -})(); +}()); var SomeDerived = (function (_super) { __extends(SomeDerived, _super); function SomeDerived() { _super.apply(this, arguments); } return SomeDerived; -})(SomeBase); +}(SomeBase)); var SomeOther = (function () { function SomeOther() { } return SomeOther; -})(); +}()); // Type assertion should check for assignability in either direction var someBase = new SomeBase(); var someDerived = new SomeDerived(); diff --git a/tests/baselines/reference/typeCheckObjectLiteralMethodBody.errors.txt b/tests/baselines/reference/typeCheckObjectLiteralMethodBody.errors.txt index 7db4c2506cc..5c4a9236e01 100644 --- a/tests/baselines/reference/typeCheckObjectLiteralMethodBody.errors.txt +++ b/tests/baselines/reference/typeCheckObjectLiteralMethodBody.errors.txt @@ -3,5 +3,5 @@ tests/cases/compiler/typeCheckObjectLiteralMethodBody.ts(1,13): error TS7010: 'b ==== tests/cases/compiler/typeCheckObjectLiteralMethodBody.ts (1 errors) ==== var foo = { bar() { return undefined } }; - ~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~ !!! error TS7010: 'bar', which lacks return-type annotation, implicitly has an 'any' return type. \ No newline at end of file diff --git a/tests/baselines/reference/typeCheckTypeArgument.js b/tests/baselines/reference/typeCheckTypeArgument.js index 633eb75ed91..e47fb18b7d6 100644 --- a/tests/baselines/reference/typeCheckTypeArgument.js +++ b/tests/baselines/reference/typeCheckTypeArgument.js @@ -20,12 +20,12 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); function bar() { } var Foo2 = (function () { function Foo2() { } Foo2.prototype.method = function () { }; return Foo2; -})(); +}()); (function (a) { }); diff --git a/tests/baselines/reference/typeConstraintsWithConstructSignatures.js b/tests/baselines/reference/typeConstraintsWithConstructSignatures.js index 749a55de9a4..b5d2574834a 100644 --- a/tests/baselines/reference/typeConstraintsWithConstructSignatures.js +++ b/tests/baselines/reference/typeConstraintsWithConstructSignatures.js @@ -23,4 +23,4 @@ var C = (function () { var x2 = new this.data2(); // should not error }; return C; -})(); +}()); diff --git a/tests/baselines/reference/typeGuardFunction.js b/tests/baselines/reference/typeGuardFunction.js index bff304682af..fcd6435ca1d 100644 --- a/tests/baselines/reference/typeGuardFunction.js +++ b/tests/baselines/reference/typeGuardFunction.js @@ -93,19 +93,19 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var a; var b; // Basic @@ -134,7 +134,7 @@ var D = (function () { return true; }; return D; -})(); +}()); // Arrow function var f1 = function (p1) { return false; }; // Function expressions diff --git a/tests/baselines/reference/typeGuardFunction.types b/tests/baselines/reference/typeGuardFunction.types index 50a5fcaf324..9bab1e7ca2c 100644 --- a/tests/baselines/reference/typeGuardFunction.types +++ b/tests/baselines/reference/typeGuardFunction.types @@ -54,7 +54,7 @@ var b: B; // Basic if (isC(a)) { ->isC(a) : boolean +>isC(a) : p1 is C >isC : (p1: any) => p1 is C >a : A @@ -70,7 +70,7 @@ var subType: C; >C : C if(isA(subType)) { ->isA(subType) : boolean +>isA(subType) : p1 is A >isA : (p1: any) => p1 is A >subType : C @@ -87,7 +87,7 @@ var union: A | B; >B : B if(isA(union)) { ->isA(union) : boolean +>isA(union) : p1 is A >isA : (p1: any) => p1 is A >union : A | B @@ -118,7 +118,7 @@ declare function isC_multipleParams(p1, p2): p1 is C; >C : C if (isC_multipleParams(a, 0)) { ->isC_multipleParams(a, 0) : boolean +>isC_multipleParams(a, 0) : p1 is C >isC_multipleParams : (p1: any, p2: any) => p1 is C >a : A >0 : number @@ -197,7 +197,7 @@ declare function acceptingBoolean(a: boolean); acceptingBoolean(isA(a)); >acceptingBoolean(isA(a)) : any >acceptingBoolean : (a: boolean) => any ->isA(a) : boolean +>isA(a) : p1 is A >isA : (p1: any) => p1 is A >a : A @@ -223,8 +223,8 @@ let union2: C | B; let union3: boolean | B = isA(union2) || union2; >union3 : boolean | B >B : B ->isA(union2) || union2 : boolean | B ->isA(union2) : boolean +>isA(union2) || union2 : p1 is A | B +>isA(union2) : p1 is A >isA : (p1: any) => p1 is A >union2 : C | B >union2 : B diff --git a/tests/baselines/reference/typeGuardFunctionErrors.errors.txt b/tests/baselines/reference/typeGuardFunctionErrors.errors.txt index 92d9d21f0cc..e1fdf303870 100644 --- a/tests/baselines/reference/typeGuardFunctionErrors.errors.txt +++ b/tests/baselines/reference/typeGuardFunctionErrors.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(15,12): error TS2322: Type 'string' is not assignable to type 'boolean'. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(15,12): error TS2322: Type 'string' is not assignable to type 'x is A'. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(22,33): error TS2304: Cannot find name 'x'. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(26,33): error TS1225: Cannot find parameter 'x'. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(30,10): error TS2391: Function implementation is missing or not immediately following the declaration. @@ -16,6 +16,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(70,7): tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(75,46): error TS2345: Argument of type '(p1: any) => p1 is C' is not assignable to parameter of type '(p1: any) => p1 is B'. Type predicate 'p1 is C' is not assignable to 'p1 is B'. Type 'C' is not assignable to type 'B'. + Property 'propB' is missing in type 'C'. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(79,1): error TS2322: Type '(p1: any, p2: any) => boolean' is not assignable to type '(p1: any, p2: any) => p1 is A'. Signature '(p1: any, p2: any): boolean' must have a type predicate. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(85,1): error TS2322: Type '(p1: any, p2: any) => p2 is A' is not assignable to type '(p1: any, p2: any) => p1 is A'. @@ -25,7 +26,6 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(91,1): tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(96,9): error TS1228: A type predicate is only allowed in return type position for functions and methods. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(97,16): error TS1228: A type predicate is only allowed in return type position for functions and methods. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(98,20): error TS1228: A type predicate is only allowed in return type position for functions and methods. -tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(104,25): error TS1228: A type predicate is only allowed in return type position for functions and methods. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(105,16): error TS2322: Type 'boolean' is not assignable to type 'D'. Property 'm1' is missing in type 'Boolean'. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(105,16): error TS2409: Return type of constructor signature must be assignable to the instance type of the class @@ -33,6 +33,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(107,20 tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(110,20): error TS1228: A type predicate is only allowed in return type position for functions and methods. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(111,16): error TS2408: Setters cannot return a value. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(116,18): error TS1228: A type predicate is only allowed in return type position for functions and methods. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(120,22): error TS1225: Cannot find parameter 'p1'. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(120,22): error TS1228: A type predicate is only allowed in return type position for functions and methods. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(124,20): error TS1229: A type predicate cannot reference a rest parameter. tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(129,34): error TS1230: A type predicate cannot reference element 'p1' in a binding pattern. @@ -57,7 +58,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(137,39 function hasANonBooleanReturnStatement(x): x is A { return ''; ~~ -!!! error TS2322: Type 'string' is not assignable to type 'boolean'. +!!! error TS2322: Type 'string' is not assignable to type 'x is A'. } function hasTypeGuardTypeInsideTypeGuardType(x): x is x is A { @@ -149,6 +150,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(137,39 !!! error TS2345: Argument of type '(p1: any) => p1 is C' is not assignable to parameter of type '(p1: any) => p1 is B'. !!! error TS2345: Type predicate 'p1 is C' is not assignable to 'p1 is B'. !!! error TS2345: Type 'C' is not assignable to type 'B'. +!!! error TS2345: Property 'propB' is missing in type 'C'. // Boolean not assignable to type guard var assign1: (p1, p2) => p1 is A; @@ -193,8 +195,6 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(137,39 // Non-compatiable type predicate positions for signature declarations class D { constructor(p1: A): p1 is C { - ~~~~~~~ -!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. return true; ~~~~ !!! error TS2322: Type 'boolean' is not assignable to type 'D'. @@ -224,6 +224,8 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(137,39 interface I2 { [index: number]: p1 is C; + ~~ +!!! error TS1225: Cannot find parameter 'p1'. ~~~~~~~ !!! error TS1228: A type predicate is only allowed in return type position for functions and methods. } diff --git a/tests/baselines/reference/typeGuardFunctionErrors.js b/tests/baselines/reference/typeGuardFunctionErrors.js index 4923f544345..5e69749e582 100644 --- a/tests/baselines/reference/typeGuardFunctionErrors.js +++ b/tests/baselines/reference/typeGuardFunctionErrors.js @@ -155,19 +155,19 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); function hasANonBooleanReturnStatement(x) { return ''; } @@ -251,7 +251,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); // Reference to rest parameter function b4() { var a = []; diff --git a/tests/baselines/reference/typeGuardFunctionGenerics.js b/tests/baselines/reference/typeGuardFunctionGenerics.js index edf5cb97fe4..2b5bd5e8265 100644 --- a/tests/baselines/reference/typeGuardFunctionGenerics.js +++ b/tests/baselines/reference/typeGuardFunctionGenerics.js @@ -43,19 +43,19 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); var C = (function (_super) { __extends(C, _super); function C() { _super.apply(this, arguments); } return C; -})(A); +}(A)); var a; var test1 = funA(isB); if (funB(retC, a)) { diff --git a/tests/baselines/reference/typeGuardFunctionGenerics.types b/tests/baselines/reference/typeGuardFunctionGenerics.types index c4655e71f0c..1f2ad2b69be 100644 --- a/tests/baselines/reference/typeGuardFunctionGenerics.types +++ b/tests/baselines/reference/typeGuardFunctionGenerics.types @@ -100,7 +100,7 @@ let test1: boolean = funA(isB); >isB : (p1: any) => p1 is B if (funB(retC, a)) { ->funB(retC, a) : boolean +>funB(retC, a) : p2 is C >funB : (p1: (p1: any) => T, p2: any) => p2 is T >retC : (x: any) => C >a : A @@ -118,7 +118,7 @@ let test2: B = funC(isB); >isB : (p1: any) => p1 is B if (funD(isC, a)) { ->funD(isC, a) : boolean +>funD(isC, a) : p2 is C >funD : (p1: (p1: any) => p1 is T, p2: any) => p2 is T >isC : (p1: any) => p1 is C >a : A diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.js b/tests/baselines/reference/typeGuardFunctionOfFormThis.js new file mode 100644 index 00000000000..0d1dceccede --- /dev/null +++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.js @@ -0,0 +1,347 @@ +//// [typeGuardFunctionOfFormThis.ts] +class RoyalGuard { + isLeader(): this is LeadGuard { + return this instanceof LeadGuard; + } + isFollower(): this is FollowerGuard { + return this instanceof FollowerGuard; + } +} + +class LeadGuard extends RoyalGuard { + lead(): void {}; +} + +class FollowerGuard extends RoyalGuard { + follow(): void {}; +} + +let a: RoyalGuard = new FollowerGuard(); +if (a.isLeader()) { + a.lead(); +} +else if (a.isFollower()) { + a.follow(); +} + +interface GuardInterface extends RoyalGuard {} + +let b: GuardInterface; +if (b.isLeader()) { + b.lead(); +} +else if (b.isFollower()) { + b.follow(); +} + +if (((a.isLeader)())) { + a.lead(); +} +else if (((a).isFollower())) { + a.follow(); +} + +if (((a["isLeader"])())) { + a.lead(); +} +else if (((a)["isFollower"]())) { + a.follow(); +} + +var holder2 = {a}; + +if (holder2.a.isLeader()) { + holder2.a; +} +else { + holder2.a; +} + +class ArrowGuard { + isElite = (): this is ArrowElite => { + return this instanceof ArrowElite; + } + isMedic = (): this is ArrowMedic => { + return this instanceof ArrowMedic; + } +} + +class ArrowElite extends ArrowGuard { + defend(): void {} +} + +class ArrowMedic extends ArrowGuard { + heal(): void {} +} + +let guard = new ArrowGuard(); +if (guard.isElite()) { + guard.defend(); +} +else if (guard.isMedic()) { + guard.heal(); +} + +interface Supplies { + spoiled: boolean; +} + +interface Sundries { + broken: boolean; +} + +interface Crate { + contents: T; + volume: number; + isSupplies(): this is Crate; + isSundries(): this is Crate; +} + +let crate: Crate<{}>; + +if (crate.isSundries()) { + crate.contents.broken = true; +} +else if (crate.isSupplies()) { + crate.contents.spoiled = true; +} + +// Matching guards should be assignable + +a.isFollower = b.isFollower; +a.isLeader = b.isLeader; + +class MimicGuard { + isLeader(): this is MimicLeader { return this instanceof MimicLeader; }; + isFollower(): this is MimicFollower { return this instanceof MimicFollower; }; +} + +class MimicLeader extends MimicGuard { + lead(): void {} +} + +class MimicFollower extends MimicGuard { + follow(): void {} +} + +let mimic = new MimicGuard(); + +a.isLeader = mimic.isLeader; +a.isFollower = mimic.isFollower; + +if (mimic.isFollower()) { + mimic.follow(); + mimic.isFollower = a.isFollower; +} + + +interface MimicGuardInterface { + isLeader(): this is LeadGuard; + isFollower(): this is FollowerGuard; +} + + +//// [typeGuardFunctionOfFormThis.js] +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +var RoyalGuard = (function () { + function RoyalGuard() { + } + RoyalGuard.prototype.isLeader = function () { + return this instanceof LeadGuard; + }; + RoyalGuard.prototype.isFollower = function () { + return this instanceof FollowerGuard; + }; + return RoyalGuard; +}()); +var LeadGuard = (function (_super) { + __extends(LeadGuard, _super); + function LeadGuard() { + _super.apply(this, arguments); + } + LeadGuard.prototype.lead = function () { }; + ; + return LeadGuard; +}(RoyalGuard)); +var FollowerGuard = (function (_super) { + __extends(FollowerGuard, _super); + function FollowerGuard() { + _super.apply(this, arguments); + } + FollowerGuard.prototype.follow = function () { }; + ; + return FollowerGuard; +}(RoyalGuard)); +var a = new FollowerGuard(); +if (a.isLeader()) { + a.lead(); +} +else if (a.isFollower()) { + a.follow(); +} +var b; +if (b.isLeader()) { + b.lead(); +} +else if (b.isFollower()) { + b.follow(); +} +if (((a.isLeader)())) { + a.lead(); +} +else if (((a).isFollower())) { + a.follow(); +} +if (((a["isLeader"])())) { + a.lead(); +} +else if (((a)["isFollower"]())) { + a.follow(); +} +var holder2 = { a: a }; +if (holder2.a.isLeader()) { + holder2.a; +} +else { + holder2.a; +} +var ArrowGuard = (function () { + function ArrowGuard() { + var _this = this; + this.isElite = function () { + return _this instanceof ArrowElite; + }; + this.isMedic = function () { + return _this instanceof ArrowMedic; + }; + } + return ArrowGuard; +}()); +var ArrowElite = (function (_super) { + __extends(ArrowElite, _super); + function ArrowElite() { + _super.apply(this, arguments); + } + ArrowElite.prototype.defend = function () { }; + return ArrowElite; +}(ArrowGuard)); +var ArrowMedic = (function (_super) { + __extends(ArrowMedic, _super); + function ArrowMedic() { + _super.apply(this, arguments); + } + ArrowMedic.prototype.heal = function () { }; + return ArrowMedic; +}(ArrowGuard)); +var guard = new ArrowGuard(); +if (guard.isElite()) { + guard.defend(); +} +else if (guard.isMedic()) { + guard.heal(); +} +var crate; +if (crate.isSundries()) { + crate.contents.broken = true; +} +else if (crate.isSupplies()) { + crate.contents.spoiled = true; +} +// Matching guards should be assignable +a.isFollower = b.isFollower; +a.isLeader = b.isLeader; +var MimicGuard = (function () { + function MimicGuard() { + } + MimicGuard.prototype.isLeader = function () { return this instanceof MimicLeader; }; + ; + MimicGuard.prototype.isFollower = function () { return this instanceof MimicFollower; }; + ; + return MimicGuard; +}()); +var MimicLeader = (function (_super) { + __extends(MimicLeader, _super); + function MimicLeader() { + _super.apply(this, arguments); + } + MimicLeader.prototype.lead = function () { }; + return MimicLeader; +}(MimicGuard)); +var MimicFollower = (function (_super) { + __extends(MimicFollower, _super); + function MimicFollower() { + _super.apply(this, arguments); + } + MimicFollower.prototype.follow = function () { }; + return MimicFollower; +}(MimicGuard)); +var mimic = new MimicGuard(); +a.isLeader = mimic.isLeader; +a.isFollower = mimic.isFollower; +if (mimic.isFollower()) { + mimic.follow(); + mimic.isFollower = a.isFollower; +} + + +//// [typeGuardFunctionOfFormThis.d.ts] +declare class RoyalGuard { + isLeader(): this is LeadGuard; + isFollower(): this is FollowerGuard; +} +declare class LeadGuard extends RoyalGuard { + lead(): void; +} +declare class FollowerGuard extends RoyalGuard { + follow(): void; +} +declare let a: RoyalGuard; +interface GuardInterface extends RoyalGuard { +} +declare let b: GuardInterface; +declare var holder2: { + a: RoyalGuard; +}; +declare class ArrowGuard { + isElite: () => this is ArrowElite; + isMedic: () => this is ArrowMedic; +} +declare class ArrowElite extends ArrowGuard { + defend(): void; +} +declare class ArrowMedic extends ArrowGuard { + heal(): void; +} +declare let guard: ArrowGuard; +interface Supplies { + spoiled: boolean; +} +interface Sundries { + broken: boolean; +} +interface Crate { + contents: T; + volume: number; + isSupplies(): this is Crate; + isSundries(): this is Crate; +} +declare let crate: Crate<{}>; +declare class MimicGuard { + isLeader(): this is MimicLeader; + isFollower(): this is MimicFollower; +} +declare class MimicLeader extends MimicGuard { + lead(): void; +} +declare class MimicFollower extends MimicGuard { + follow(): void; +} +declare let mimic: MimicGuard; +interface MimicGuardInterface { + isLeader(): this is LeadGuard; + isFollower(): this is FollowerGuard; +} diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.symbols b/tests/baselines/reference/typeGuardFunctionOfFormThis.symbols new file mode 100644 index 00000000000..2968063dc51 --- /dev/null +++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.symbols @@ -0,0 +1,385 @@ +=== tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts === +class RoyalGuard { +>RoyalGuard : Symbol(RoyalGuard, Decl(typeGuardFunctionOfFormThis.ts, 0, 0)) + + isLeader(): this is LeadGuard { +>isLeader : Symbol(isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>LeadGuard : Symbol(LeadGuard, Decl(typeGuardFunctionOfFormThis.ts, 7, 1)) + + return this instanceof LeadGuard; +>this : Symbol(RoyalGuard, Decl(typeGuardFunctionOfFormThis.ts, 0, 0)) +>LeadGuard : Symbol(LeadGuard, Decl(typeGuardFunctionOfFormThis.ts, 7, 1)) + } + isFollower(): this is FollowerGuard { +>isFollower : Symbol(isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>FollowerGuard : Symbol(FollowerGuard, Decl(typeGuardFunctionOfFormThis.ts, 11, 1)) + + return this instanceof FollowerGuard; +>this : Symbol(RoyalGuard, Decl(typeGuardFunctionOfFormThis.ts, 0, 0)) +>FollowerGuard : Symbol(FollowerGuard, Decl(typeGuardFunctionOfFormThis.ts, 11, 1)) + } +} + +class LeadGuard extends RoyalGuard { +>LeadGuard : Symbol(LeadGuard, Decl(typeGuardFunctionOfFormThis.ts, 7, 1)) +>RoyalGuard : Symbol(RoyalGuard, Decl(typeGuardFunctionOfFormThis.ts, 0, 0)) + + lead(): void {}; +>lead : Symbol(lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +} + +class FollowerGuard extends RoyalGuard { +>FollowerGuard : Symbol(FollowerGuard, Decl(typeGuardFunctionOfFormThis.ts, 11, 1)) +>RoyalGuard : Symbol(RoyalGuard, Decl(typeGuardFunctionOfFormThis.ts, 0, 0)) + + follow(): void {}; +>follow : Symbol(follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +} + +let a: RoyalGuard = new FollowerGuard(); +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>RoyalGuard : Symbol(RoyalGuard, Decl(typeGuardFunctionOfFormThis.ts, 0, 0)) +>FollowerGuard : Symbol(FollowerGuard, Decl(typeGuardFunctionOfFormThis.ts, 11, 1)) + +if (a.isLeader()) { +>a.isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) + + a.lead(); +>a.lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +} +else if (a.isFollower()) { +>a.isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) + + a.follow(); +>a.follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +} + +interface GuardInterface extends RoyalGuard {} +>GuardInterface : Symbol(GuardInterface, Decl(typeGuardFunctionOfFormThis.ts, 23, 1)) +>RoyalGuard : Symbol(RoyalGuard, Decl(typeGuardFunctionOfFormThis.ts, 0, 0)) + +let b: GuardInterface; +>b : Symbol(b, Decl(typeGuardFunctionOfFormThis.ts, 27, 3)) +>GuardInterface : Symbol(GuardInterface, Decl(typeGuardFunctionOfFormThis.ts, 23, 1)) + +if (b.isLeader()) { +>b.isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>b : Symbol(b, Decl(typeGuardFunctionOfFormThis.ts, 27, 3)) +>isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) + + b.lead(); +>b.lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +>b : Symbol(b, Decl(typeGuardFunctionOfFormThis.ts, 27, 3)) +>lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +} +else if (b.isFollower()) { +>b.isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>b : Symbol(b, Decl(typeGuardFunctionOfFormThis.ts, 27, 3)) +>isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) + + b.follow(); +>b.follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +>b : Symbol(b, Decl(typeGuardFunctionOfFormThis.ts, 27, 3)) +>follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +} + +if (((a.isLeader)())) { +>a.isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) + + a.lead(); +>a.lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +} +else if (((a).isFollower())) { +>(a).isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) + + a.follow(); +>a.follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +} + +if (((a["isLeader"])())) { +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>"isLeader" : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) + + a.lead(); +>a.lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>lead : Symbol(LeadGuard.lead, Decl(typeGuardFunctionOfFormThis.ts, 9, 36)) +} +else if (((a)["isFollower"]())) { +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>"isFollower" : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) + + a.follow(); +>a.follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>follow : Symbol(FollowerGuard.follow, Decl(typeGuardFunctionOfFormThis.ts, 13, 40)) +} + +var holder2 = {a}; +>holder2 : Symbol(holder2, Decl(typeGuardFunctionOfFormThis.ts, 49, 3)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 49, 15)) + +if (holder2.a.isLeader()) { +>holder2.a.isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>holder2.a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 49, 15)) +>holder2 : Symbol(holder2, Decl(typeGuardFunctionOfFormThis.ts, 49, 3)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 49, 15)) +>isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) + + holder2.a; +>holder2.a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 49, 15)) +>holder2 : Symbol(holder2, Decl(typeGuardFunctionOfFormThis.ts, 49, 3)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 49, 15)) +} +else { + holder2.a; +>holder2.a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 49, 15)) +>holder2 : Symbol(holder2, Decl(typeGuardFunctionOfFormThis.ts, 49, 3)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 49, 15)) +} + +class ArrowGuard { +>ArrowGuard : Symbol(ArrowGuard, Decl(typeGuardFunctionOfFormThis.ts, 56, 1)) + + isElite = (): this is ArrowElite => { +>isElite : Symbol(isElite, Decl(typeGuardFunctionOfFormThis.ts, 58, 18)) +>ArrowElite : Symbol(ArrowElite, Decl(typeGuardFunctionOfFormThis.ts, 65, 1)) + + return this instanceof ArrowElite; +>this : Symbol(ArrowGuard, Decl(typeGuardFunctionOfFormThis.ts, 56, 1)) +>ArrowElite : Symbol(ArrowElite, Decl(typeGuardFunctionOfFormThis.ts, 65, 1)) + } + isMedic = (): this is ArrowMedic => { +>isMedic : Symbol(isMedic, Decl(typeGuardFunctionOfFormThis.ts, 61, 5)) +>ArrowMedic : Symbol(ArrowMedic, Decl(typeGuardFunctionOfFormThis.ts, 69, 1)) + + return this instanceof ArrowMedic; +>this : Symbol(ArrowGuard, Decl(typeGuardFunctionOfFormThis.ts, 56, 1)) +>ArrowMedic : Symbol(ArrowMedic, Decl(typeGuardFunctionOfFormThis.ts, 69, 1)) + } +} + +class ArrowElite extends ArrowGuard { +>ArrowElite : Symbol(ArrowElite, Decl(typeGuardFunctionOfFormThis.ts, 65, 1)) +>ArrowGuard : Symbol(ArrowGuard, Decl(typeGuardFunctionOfFormThis.ts, 56, 1)) + + defend(): void {} +>defend : Symbol(defend, Decl(typeGuardFunctionOfFormThis.ts, 67, 37)) +} + +class ArrowMedic extends ArrowGuard { +>ArrowMedic : Symbol(ArrowMedic, Decl(typeGuardFunctionOfFormThis.ts, 69, 1)) +>ArrowGuard : Symbol(ArrowGuard, Decl(typeGuardFunctionOfFormThis.ts, 56, 1)) + + heal(): void {} +>heal : Symbol(heal, Decl(typeGuardFunctionOfFormThis.ts, 71, 37)) +} + +let guard = new ArrowGuard(); +>guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3)) +>ArrowGuard : Symbol(ArrowGuard, Decl(typeGuardFunctionOfFormThis.ts, 56, 1)) + +if (guard.isElite()) { +>guard.isElite : Symbol(ArrowGuard.isElite, Decl(typeGuardFunctionOfFormThis.ts, 58, 18)) +>guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3)) +>isElite : Symbol(ArrowGuard.isElite, Decl(typeGuardFunctionOfFormThis.ts, 58, 18)) + + guard.defend(); +>guard.defend : Symbol(ArrowElite.defend, Decl(typeGuardFunctionOfFormThis.ts, 67, 37)) +>guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3)) +>defend : Symbol(ArrowElite.defend, Decl(typeGuardFunctionOfFormThis.ts, 67, 37)) +} +else if (guard.isMedic()) { +>guard.isMedic : Symbol(ArrowGuard.isMedic, Decl(typeGuardFunctionOfFormThis.ts, 61, 5)) +>guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3)) +>isMedic : Symbol(ArrowGuard.isMedic, Decl(typeGuardFunctionOfFormThis.ts, 61, 5)) + + guard.heal(); +>guard.heal : Symbol(ArrowMedic.heal, Decl(typeGuardFunctionOfFormThis.ts, 71, 37)) +>guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3)) +>heal : Symbol(ArrowMedic.heal, Decl(typeGuardFunctionOfFormThis.ts, 71, 37)) +} + +interface Supplies { +>Supplies : Symbol(Supplies, Decl(typeGuardFunctionOfFormThis.ts, 81, 1)) + + spoiled: boolean; +>spoiled : Symbol(spoiled, Decl(typeGuardFunctionOfFormThis.ts, 83, 20)) +} + +interface Sundries { +>Sundries : Symbol(Sundries, Decl(typeGuardFunctionOfFormThis.ts, 85, 1)) + + broken: boolean; +>broken : Symbol(broken, Decl(typeGuardFunctionOfFormThis.ts, 87, 20)) +} + +interface Crate { +>Crate : Symbol(Crate, Decl(typeGuardFunctionOfFormThis.ts, 89, 1)) +>T : Symbol(T, Decl(typeGuardFunctionOfFormThis.ts, 91, 16)) + + contents: T; +>contents : Symbol(contents, Decl(typeGuardFunctionOfFormThis.ts, 91, 20)) +>T : Symbol(T, Decl(typeGuardFunctionOfFormThis.ts, 91, 16)) + + volume: number; +>volume : Symbol(volume, Decl(typeGuardFunctionOfFormThis.ts, 92, 16)) + + isSupplies(): this is Crate; +>isSupplies : Symbol(isSupplies, Decl(typeGuardFunctionOfFormThis.ts, 93, 19)) +>Crate : Symbol(Crate, Decl(typeGuardFunctionOfFormThis.ts, 89, 1)) +>Supplies : Symbol(Supplies, Decl(typeGuardFunctionOfFormThis.ts, 81, 1)) + + isSundries(): this is Crate; +>isSundries : Symbol(isSundries, Decl(typeGuardFunctionOfFormThis.ts, 94, 42)) +>Crate : Symbol(Crate, Decl(typeGuardFunctionOfFormThis.ts, 89, 1)) +>Sundries : Symbol(Sundries, Decl(typeGuardFunctionOfFormThis.ts, 85, 1)) +} + +let crate: Crate<{}>; +>crate : Symbol(crate, Decl(typeGuardFunctionOfFormThis.ts, 98, 3)) +>Crate : Symbol(Crate, Decl(typeGuardFunctionOfFormThis.ts, 89, 1)) + +if (crate.isSundries()) { +>crate.isSundries : Symbol(Crate.isSundries, Decl(typeGuardFunctionOfFormThis.ts, 94, 42)) +>crate : Symbol(crate, Decl(typeGuardFunctionOfFormThis.ts, 98, 3)) +>isSundries : Symbol(Crate.isSundries, Decl(typeGuardFunctionOfFormThis.ts, 94, 42)) + + crate.contents.broken = true; +>crate.contents.broken : Symbol(Sundries.broken, Decl(typeGuardFunctionOfFormThis.ts, 87, 20)) +>crate.contents : Symbol(Crate.contents, Decl(typeGuardFunctionOfFormThis.ts, 91, 20)) +>crate : Symbol(crate, Decl(typeGuardFunctionOfFormThis.ts, 98, 3)) +>contents : Symbol(Crate.contents, Decl(typeGuardFunctionOfFormThis.ts, 91, 20)) +>broken : Symbol(Sundries.broken, Decl(typeGuardFunctionOfFormThis.ts, 87, 20)) +} +else if (crate.isSupplies()) { +>crate.isSupplies : Symbol(Crate.isSupplies, Decl(typeGuardFunctionOfFormThis.ts, 93, 19)) +>crate : Symbol(crate, Decl(typeGuardFunctionOfFormThis.ts, 98, 3)) +>isSupplies : Symbol(Crate.isSupplies, Decl(typeGuardFunctionOfFormThis.ts, 93, 19)) + + crate.contents.spoiled = true; +>crate.contents.spoiled : Symbol(Supplies.spoiled, Decl(typeGuardFunctionOfFormThis.ts, 83, 20)) +>crate.contents : Symbol(Crate.contents, Decl(typeGuardFunctionOfFormThis.ts, 91, 20)) +>crate : Symbol(crate, Decl(typeGuardFunctionOfFormThis.ts, 98, 3)) +>contents : Symbol(Crate.contents, Decl(typeGuardFunctionOfFormThis.ts, 91, 20)) +>spoiled : Symbol(Supplies.spoiled, Decl(typeGuardFunctionOfFormThis.ts, 83, 20)) +} + +// Matching guards should be assignable + +a.isFollower = b.isFollower; +>a.isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>b.isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>b : Symbol(b, Decl(typeGuardFunctionOfFormThis.ts, 27, 3)) +>isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) + +a.isLeader = b.isLeader; +>a.isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>b.isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>b : Symbol(b, Decl(typeGuardFunctionOfFormThis.ts, 27, 3)) +>isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) + +class MimicGuard { +>MimicGuard : Symbol(MimicGuard, Decl(typeGuardFunctionOfFormThis.ts, 110, 24)) + + isLeader(): this is MimicLeader { return this instanceof MimicLeader; }; +>isLeader : Symbol(isLeader, Decl(typeGuardFunctionOfFormThis.ts, 112, 18)) +>MimicLeader : Symbol(MimicLeader, Decl(typeGuardFunctionOfFormThis.ts, 115, 1)) +>this : Symbol(MimicGuard, Decl(typeGuardFunctionOfFormThis.ts, 110, 24)) +>MimicLeader : Symbol(MimicLeader, Decl(typeGuardFunctionOfFormThis.ts, 115, 1)) + + isFollower(): this is MimicFollower { return this instanceof MimicFollower; }; +>isFollower : Symbol(isFollower, Decl(typeGuardFunctionOfFormThis.ts, 113, 76)) +>MimicFollower : Symbol(MimicFollower, Decl(typeGuardFunctionOfFormThis.ts, 119, 1)) +>this : Symbol(MimicGuard, Decl(typeGuardFunctionOfFormThis.ts, 110, 24)) +>MimicFollower : Symbol(MimicFollower, Decl(typeGuardFunctionOfFormThis.ts, 119, 1)) +} + +class MimicLeader extends MimicGuard { +>MimicLeader : Symbol(MimicLeader, Decl(typeGuardFunctionOfFormThis.ts, 115, 1)) +>MimicGuard : Symbol(MimicGuard, Decl(typeGuardFunctionOfFormThis.ts, 110, 24)) + + lead(): void {} +>lead : Symbol(lead, Decl(typeGuardFunctionOfFormThis.ts, 117, 38)) +} + +class MimicFollower extends MimicGuard { +>MimicFollower : Symbol(MimicFollower, Decl(typeGuardFunctionOfFormThis.ts, 119, 1)) +>MimicGuard : Symbol(MimicGuard, Decl(typeGuardFunctionOfFormThis.ts, 110, 24)) + + follow(): void {} +>follow : Symbol(follow, Decl(typeGuardFunctionOfFormThis.ts, 121, 40)) +} + +let mimic = new MimicGuard(); +>mimic : Symbol(mimic, Decl(typeGuardFunctionOfFormThis.ts, 125, 3)) +>MimicGuard : Symbol(MimicGuard, Decl(typeGuardFunctionOfFormThis.ts, 110, 24)) + +a.isLeader = mimic.isLeader; +>a.isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isLeader : Symbol(RoyalGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 0, 18)) +>mimic.isLeader : Symbol(MimicGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 112, 18)) +>mimic : Symbol(mimic, Decl(typeGuardFunctionOfFormThis.ts, 125, 3)) +>isLeader : Symbol(MimicGuard.isLeader, Decl(typeGuardFunctionOfFormThis.ts, 112, 18)) + +a.isFollower = mimic.isFollower; +>a.isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>mimic.isFollower : Symbol(MimicGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 113, 76)) +>mimic : Symbol(mimic, Decl(typeGuardFunctionOfFormThis.ts, 125, 3)) +>isFollower : Symbol(MimicGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 113, 76)) + +if (mimic.isFollower()) { +>mimic.isFollower : Symbol(MimicGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 113, 76)) +>mimic : Symbol(mimic, Decl(typeGuardFunctionOfFormThis.ts, 125, 3)) +>isFollower : Symbol(MimicGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 113, 76)) + + mimic.follow(); +>mimic.follow : Symbol(MimicFollower.follow, Decl(typeGuardFunctionOfFormThis.ts, 121, 40)) +>mimic : Symbol(mimic, Decl(typeGuardFunctionOfFormThis.ts, 125, 3)) +>follow : Symbol(MimicFollower.follow, Decl(typeGuardFunctionOfFormThis.ts, 121, 40)) + + mimic.isFollower = a.isFollower; +>mimic.isFollower : Symbol(MimicGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 113, 76)) +>mimic : Symbol(mimic, Decl(typeGuardFunctionOfFormThis.ts, 125, 3)) +>isFollower : Symbol(MimicGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 113, 76)) +>a.isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +>a : Symbol(a, Decl(typeGuardFunctionOfFormThis.ts, 17, 3)) +>isFollower : Symbol(RoyalGuard.isFollower, Decl(typeGuardFunctionOfFormThis.ts, 3, 5)) +} + + +interface MimicGuardInterface { +>MimicGuardInterface : Symbol(MimicGuardInterface, Decl(typeGuardFunctionOfFormThis.ts, 133, 1)) + + isLeader(): this is LeadGuard; +>isLeader : Symbol(isLeader, Decl(typeGuardFunctionOfFormThis.ts, 136, 31)) +>LeadGuard : Symbol(LeadGuard, Decl(typeGuardFunctionOfFormThis.ts, 7, 1)) + + isFollower(): this is FollowerGuard; +>isFollower : Symbol(isFollower, Decl(typeGuardFunctionOfFormThis.ts, 137, 34)) +>FollowerGuard : Symbol(FollowerGuard, Decl(typeGuardFunctionOfFormThis.ts, 11, 1)) +} + diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.types b/tests/baselines/reference/typeGuardFunctionOfFormThis.types new file mode 100644 index 00000000000..e91c77dd07a --- /dev/null +++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.types @@ -0,0 +1,441 @@ +=== tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts === +class RoyalGuard { +>RoyalGuard : RoyalGuard + + isLeader(): this is LeadGuard { +>isLeader : () => this is LeadGuard +>LeadGuard : LeadGuard + + return this instanceof LeadGuard; +>this instanceof LeadGuard : boolean +>this : this +>LeadGuard : typeof LeadGuard + } + isFollower(): this is FollowerGuard { +>isFollower : () => this is FollowerGuard +>FollowerGuard : FollowerGuard + + return this instanceof FollowerGuard; +>this instanceof FollowerGuard : boolean +>this : this +>FollowerGuard : typeof FollowerGuard + } +} + +class LeadGuard extends RoyalGuard { +>LeadGuard : LeadGuard +>RoyalGuard : RoyalGuard + + lead(): void {}; +>lead : () => void +} + +class FollowerGuard extends RoyalGuard { +>FollowerGuard : FollowerGuard +>RoyalGuard : RoyalGuard + + follow(): void {}; +>follow : () => void +} + +let a: RoyalGuard = new FollowerGuard(); +>a : RoyalGuard +>RoyalGuard : RoyalGuard +>new FollowerGuard() : FollowerGuard +>FollowerGuard : typeof FollowerGuard + +if (a.isLeader()) { +>a.isLeader() : this is LeadGuard +>a.isLeader : () => this is LeadGuard +>a : RoyalGuard +>isLeader : () => this is LeadGuard + + a.lead(); +>a.lead() : void +>a.lead : () => void +>a : LeadGuard +>lead : () => void +} +else if (a.isFollower()) { +>a.isFollower() : this is FollowerGuard +>a.isFollower : () => this is FollowerGuard +>a : RoyalGuard +>isFollower : () => this is FollowerGuard + + a.follow(); +>a.follow() : void +>a.follow : () => void +>a : FollowerGuard +>follow : () => void +} + +interface GuardInterface extends RoyalGuard {} +>GuardInterface : GuardInterface +>RoyalGuard : RoyalGuard + +let b: GuardInterface; +>b : GuardInterface +>GuardInterface : GuardInterface + +if (b.isLeader()) { +>b.isLeader() : this is LeadGuard +>b.isLeader : () => this is LeadGuard +>b : GuardInterface +>isLeader : () => this is LeadGuard + + b.lead(); +>b.lead() : void +>b.lead : () => void +>b : LeadGuard +>lead : () => void +} +else if (b.isFollower()) { +>b.isFollower() : this is FollowerGuard +>b.isFollower : () => this is FollowerGuard +>b : GuardInterface +>isFollower : () => this is FollowerGuard + + b.follow(); +>b.follow() : void +>b.follow : () => void +>b : FollowerGuard +>follow : () => void +} + +if (((a.isLeader)())) { +>((a.isLeader)()) : this is LeadGuard +>(a.isLeader)() : this is LeadGuard +>(a.isLeader) : () => this is LeadGuard +>a.isLeader : () => this is LeadGuard +>a : RoyalGuard +>isLeader : () => this is LeadGuard + + a.lead(); +>a.lead() : void +>a.lead : () => void +>a : LeadGuard +>lead : () => void +} +else if (((a).isFollower())) { +>((a).isFollower()) : this is FollowerGuard +>(a).isFollower() : this is FollowerGuard +>(a).isFollower : () => this is FollowerGuard +>(a) : RoyalGuard +>a : RoyalGuard +>isFollower : () => this is FollowerGuard + + a.follow(); +>a.follow() : void +>a.follow : () => void +>a : FollowerGuard +>follow : () => void +} + +if (((a["isLeader"])())) { +>((a["isLeader"])()) : this is LeadGuard +>(a["isLeader"])() : this is LeadGuard +>(a["isLeader"]) : () => this is LeadGuard +>a["isLeader"] : () => this is LeadGuard +>a : RoyalGuard +>"isLeader" : string + + a.lead(); +>a.lead() : void +>a.lead : () => void +>a : LeadGuard +>lead : () => void +} +else if (((a)["isFollower"]())) { +>((a)["isFollower"]()) : this is FollowerGuard +>(a)["isFollower"]() : this is FollowerGuard +>(a)["isFollower"] : () => this is FollowerGuard +>(a) : RoyalGuard +>a : RoyalGuard +>"isFollower" : string + + a.follow(); +>a.follow() : void +>a.follow : () => void +>a : FollowerGuard +>follow : () => void +} + +var holder2 = {a}; +>holder2 : { a: RoyalGuard; } +>{a} : { a: RoyalGuard; } +>a : RoyalGuard + +if (holder2.a.isLeader()) { +>holder2.a.isLeader() : this is LeadGuard +>holder2.a.isLeader : () => this is LeadGuard +>holder2.a : RoyalGuard +>holder2 : { a: RoyalGuard; } +>a : RoyalGuard +>isLeader : () => this is LeadGuard + + holder2.a; +>holder2.a : RoyalGuard +>holder2 : { a: RoyalGuard; } +>a : RoyalGuard +} +else { + holder2.a; +>holder2.a : RoyalGuard +>holder2 : { a: RoyalGuard; } +>a : RoyalGuard +} + +class ArrowGuard { +>ArrowGuard : ArrowGuard + + isElite = (): this is ArrowElite => { +>isElite : () => this is ArrowElite +>(): this is ArrowElite => { return this instanceof ArrowElite; } : () => this is ArrowElite +>ArrowElite : ArrowElite + + return this instanceof ArrowElite; +>this instanceof ArrowElite : boolean +>this : this +>ArrowElite : typeof ArrowElite + } + isMedic = (): this is ArrowMedic => { +>isMedic : () => this is ArrowMedic +>(): this is ArrowMedic => { return this instanceof ArrowMedic; } : () => this is ArrowMedic +>ArrowMedic : ArrowMedic + + return this instanceof ArrowMedic; +>this instanceof ArrowMedic : boolean +>this : this +>ArrowMedic : typeof ArrowMedic + } +} + +class ArrowElite extends ArrowGuard { +>ArrowElite : ArrowElite +>ArrowGuard : ArrowGuard + + defend(): void {} +>defend : () => void +} + +class ArrowMedic extends ArrowGuard { +>ArrowMedic : ArrowMedic +>ArrowGuard : ArrowGuard + + heal(): void {} +>heal : () => void +} + +let guard = new ArrowGuard(); +>guard : ArrowGuard +>new ArrowGuard() : ArrowGuard +>ArrowGuard : typeof ArrowGuard + +if (guard.isElite()) { +>guard.isElite() : this is ArrowElite +>guard.isElite : () => this is ArrowElite +>guard : ArrowGuard +>isElite : () => this is ArrowElite + + guard.defend(); +>guard.defend() : void +>guard.defend : () => void +>guard : ArrowElite +>defend : () => void +} +else if (guard.isMedic()) { +>guard.isMedic() : this is ArrowMedic +>guard.isMedic : () => this is ArrowMedic +>guard : ArrowGuard +>isMedic : () => this is ArrowMedic + + guard.heal(); +>guard.heal() : void +>guard.heal : () => void +>guard : ArrowMedic +>heal : () => void +} + +interface Supplies { +>Supplies : Supplies + + spoiled: boolean; +>spoiled : boolean +} + +interface Sundries { +>Sundries : Sundries + + broken: boolean; +>broken : boolean +} + +interface Crate { +>Crate : Crate +>T : T + + contents: T; +>contents : T +>T : T + + volume: number; +>volume : number + + isSupplies(): this is Crate; +>isSupplies : () => this is Crate +>Crate : Crate +>Supplies : Supplies + + isSundries(): this is Crate; +>isSundries : () => this is Crate +>Crate : Crate +>Sundries : Sundries +} + +let crate: Crate<{}>; +>crate : Crate<{}> +>Crate : Crate + +if (crate.isSundries()) { +>crate.isSundries() : this is Crate +>crate.isSundries : () => this is Crate +>crate : Crate<{}> +>isSundries : () => this is Crate + + crate.contents.broken = true; +>crate.contents.broken = true : boolean +>crate.contents.broken : boolean +>crate.contents : Sundries +>crate : Crate +>contents : Sundries +>broken : boolean +>true : boolean +} +else if (crate.isSupplies()) { +>crate.isSupplies() : this is Crate +>crate.isSupplies : () => this is Crate +>crate : Crate<{}> +>isSupplies : () => this is Crate + + crate.contents.spoiled = true; +>crate.contents.spoiled = true : boolean +>crate.contents.spoiled : boolean +>crate.contents : Supplies +>crate : Crate +>contents : Supplies +>spoiled : boolean +>true : boolean +} + +// Matching guards should be assignable + +a.isFollower = b.isFollower; +>a.isFollower = b.isFollower : () => this is FollowerGuard +>a.isFollower : () => this is FollowerGuard +>a : RoyalGuard +>isFollower : () => this is FollowerGuard +>b.isFollower : () => this is FollowerGuard +>b : GuardInterface +>isFollower : () => this is FollowerGuard + +a.isLeader = b.isLeader; +>a.isLeader = b.isLeader : () => this is LeadGuard +>a.isLeader : () => this is LeadGuard +>a : RoyalGuard +>isLeader : () => this is LeadGuard +>b.isLeader : () => this is LeadGuard +>b : GuardInterface +>isLeader : () => this is LeadGuard + +class MimicGuard { +>MimicGuard : MimicGuard + + isLeader(): this is MimicLeader { return this instanceof MimicLeader; }; +>isLeader : () => this is MimicLeader +>MimicLeader : MimicLeader +>this instanceof MimicLeader : boolean +>this : this +>MimicLeader : typeof MimicLeader + + isFollower(): this is MimicFollower { return this instanceof MimicFollower; }; +>isFollower : () => this is MimicFollower +>MimicFollower : MimicFollower +>this instanceof MimicFollower : boolean +>this : this +>MimicFollower : typeof MimicFollower +} + +class MimicLeader extends MimicGuard { +>MimicLeader : MimicLeader +>MimicGuard : MimicGuard + + lead(): void {} +>lead : () => void +} + +class MimicFollower extends MimicGuard { +>MimicFollower : MimicFollower +>MimicGuard : MimicGuard + + follow(): void {} +>follow : () => void +} + +let mimic = new MimicGuard(); +>mimic : MimicGuard +>new MimicGuard() : MimicGuard +>MimicGuard : typeof MimicGuard + +a.isLeader = mimic.isLeader; +>a.isLeader = mimic.isLeader : () => this is MimicLeader +>a.isLeader : () => this is LeadGuard +>a : RoyalGuard +>isLeader : () => this is LeadGuard +>mimic.isLeader : () => this is MimicLeader +>mimic : MimicGuard +>isLeader : () => this is MimicLeader + +a.isFollower = mimic.isFollower; +>a.isFollower = mimic.isFollower : () => this is MimicFollower +>a.isFollower : () => this is FollowerGuard +>a : RoyalGuard +>isFollower : () => this is FollowerGuard +>mimic.isFollower : () => this is MimicFollower +>mimic : MimicGuard +>isFollower : () => this is MimicFollower + +if (mimic.isFollower()) { +>mimic.isFollower() : this is MimicFollower +>mimic.isFollower : () => this is MimicFollower +>mimic : MimicGuard +>isFollower : () => this is MimicFollower + + mimic.follow(); +>mimic.follow() : void +>mimic.follow : () => void +>mimic : MimicFollower +>follow : () => void + + mimic.isFollower = a.isFollower; +>mimic.isFollower = a.isFollower : () => this is FollowerGuard +>mimic.isFollower : () => this is MimicFollower +>mimic : MimicFollower +>isFollower : () => this is MimicFollower +>a.isFollower : () => this is FollowerGuard +>a : RoyalGuard +>isFollower : () => this is FollowerGuard +} + + +interface MimicGuardInterface { +>MimicGuardInterface : MimicGuardInterface + + isLeader(): this is LeadGuard; +>isLeader : () => this is LeadGuard +>LeadGuard : LeadGuard + + isFollower(): this is FollowerGuard; +>isFollower : () => this is FollowerGuard +>FollowerGuard : FollowerGuard +} + diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.errors.txt b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.errors.txt new file mode 100644 index 00000000000..9f9f5d6533c --- /dev/null +++ b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.errors.txt @@ -0,0 +1,103 @@ +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts(23,1): error TS2322: Type '() => this is LeadGuard' is not assignable to type '() => this is FollowerGuard'. + Type predicate 'this is LeadGuard' is not assignable to 'this is FollowerGuard'. + Type 'LeadGuard' is not assignable to type 'FollowerGuard'. + Property 'follow' is missing in type 'LeadGuard'. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts(24,1): error TS2322: Type '() => this is FollowerGuard' is not assignable to type '() => this is LeadGuard'. + Type predicate 'this is FollowerGuard' is not assignable to 'this is LeadGuard'. + Type 'FollowerGuard' is not assignable to type 'LeadGuard'. + Property 'lead' is missing in type 'FollowerGuard'. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts(26,1): error TS2322: Type '() => this is LeadGuard' is not assignable to type '() => this is FollowerGuard'. + Type predicate 'this is LeadGuard' is not assignable to 'this is FollowerGuard'. + Type 'LeadGuard' is not assignable to type 'FollowerGuard'. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts(27,1): error TS2322: Type '() => this is FollowerGuard' is not assignable to type '() => this is LeadGuard'. + Type predicate 'this is FollowerGuard' is not assignable to 'this is LeadGuard'. + Type 'FollowerGuard' is not assignable to type 'LeadGuard'. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts(29,32): error TS2526: A 'this' type is available only in a non-static member of a class or interface. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts(55,7): error TS2339: Property 'follow' does not exist on type 'RoyalGuard'. +tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts(58,7): error TS2339: Property 'lead' does not exist on type 'RoyalGuard'. + + +==== tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts (7 errors) ==== + class RoyalGuard { + isLeader(): this is LeadGuard { + return this instanceof LeadGuard; + } + isFollower(): this is FollowerGuard { + return this instanceof FollowerGuard; + } + } + + class LeadGuard extends RoyalGuard { + lead(): void {}; + } + + class FollowerGuard extends RoyalGuard { + follow(): void {}; + } + + interface GuardInterface extends RoyalGuard {} + let a: RoyalGuard = new FollowerGuard(); + let b: GuardInterface = new LeadGuard(); + + // Mismatched guards shouldn't be assignable + b.isFollower = b.isLeader; + ~~~~~~~~~~~~ +!!! error TS2322: Type '() => this is LeadGuard' is not assignable to type '() => this is FollowerGuard'. +!!! error TS2322: Type predicate 'this is LeadGuard' is not assignable to 'this is FollowerGuard'. +!!! error TS2322: Type 'LeadGuard' is not assignable to type 'FollowerGuard'. +!!! error TS2322: Property 'follow' is missing in type 'LeadGuard'. + b.isLeader = b.isFollower; + ~~~~~~~~~~ +!!! error TS2322: Type '() => this is FollowerGuard' is not assignable to type '() => this is LeadGuard'. +!!! error TS2322: Type predicate 'this is FollowerGuard' is not assignable to 'this is LeadGuard'. +!!! error TS2322: Type 'FollowerGuard' is not assignable to type 'LeadGuard'. +!!! error TS2322: Property 'lead' is missing in type 'FollowerGuard'. + + a.isFollower = a.isLeader; + ~~~~~~~~~~~~ +!!! error TS2322: Type '() => this is LeadGuard' is not assignable to type '() => this is FollowerGuard'. +!!! error TS2322: Type predicate 'this is LeadGuard' is not assignable to 'this is FollowerGuard'. +!!! error TS2322: Type 'LeadGuard' is not assignable to type 'FollowerGuard'. + a.isLeader = a.isFollower; + ~~~~~~~~~~ +!!! error TS2322: Type '() => this is FollowerGuard' is not assignable to type '() => this is LeadGuard'. +!!! error TS2322: Type predicate 'this is FollowerGuard' is not assignable to 'this is LeadGuard'. +!!! error TS2322: Type 'FollowerGuard' is not assignable to type 'LeadGuard'. + + function invalidGuard(c: any): this is number { + ~~~~ +!!! error TS2526: A 'this' type is available only in a non-static member of a class or interface. + return false; + } + + let c: number | number[]; + if (invalidGuard(c)) { + c; + } + else { + c; + } + + let holder = {invalidGuard}; + + if (holder.invalidGuard(c)) { + c; + holder; + } + else { + c; + holder; + } + + let detached = a.isFollower; + + if (detached()) { + a.follow(); + ~~~~~~ +!!! error TS2339: Property 'follow' does not exist on type 'RoyalGuard'. + } + else { + a.lead(); + ~~~~ +!!! error TS2339: Property 'lead' does not exist on type 'RoyalGuard'. + } \ No newline at end of file diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js new file mode 100644 index 00000000000..73622bf60cc --- /dev/null +++ b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js @@ -0,0 +1,152 @@ +//// [typeGuardFunctionOfFormThisErrors.ts] +class RoyalGuard { + isLeader(): this is LeadGuard { + return this instanceof LeadGuard; + } + isFollower(): this is FollowerGuard { + return this instanceof FollowerGuard; + } +} + +class LeadGuard extends RoyalGuard { + lead(): void {}; +} + +class FollowerGuard extends RoyalGuard { + follow(): void {}; +} + +interface GuardInterface extends RoyalGuard {} +let a: RoyalGuard = new FollowerGuard(); +let b: GuardInterface = new LeadGuard(); + +// Mismatched guards shouldn't be assignable +b.isFollower = b.isLeader; +b.isLeader = b.isFollower; + +a.isFollower = a.isLeader; +a.isLeader = a.isFollower; + +function invalidGuard(c: any): this is number { + return false; +} + +let c: number | number[]; +if (invalidGuard(c)) { + c; +} +else { + c; +} + +let holder = {invalidGuard}; + +if (holder.invalidGuard(c)) { + c; + holder; +} +else { + c; + holder; +} + +let detached = a.isFollower; + +if (detached()) { + a.follow(); +} +else { + a.lead(); +} + +//// [typeGuardFunctionOfFormThisErrors.js] +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +var RoyalGuard = (function () { + function RoyalGuard() { + } + RoyalGuard.prototype.isLeader = function () { + return this instanceof LeadGuard; + }; + RoyalGuard.prototype.isFollower = function () { + return this instanceof FollowerGuard; + }; + return RoyalGuard; +}()); +var LeadGuard = (function (_super) { + __extends(LeadGuard, _super); + function LeadGuard() { + _super.apply(this, arguments); + } + LeadGuard.prototype.lead = function () { }; + ; + return LeadGuard; +}(RoyalGuard)); +var FollowerGuard = (function (_super) { + __extends(FollowerGuard, _super); + function FollowerGuard() { + _super.apply(this, arguments); + } + FollowerGuard.prototype.follow = function () { }; + ; + return FollowerGuard; +}(RoyalGuard)); +var a = new FollowerGuard(); +var b = new LeadGuard(); +// Mismatched guards shouldn't be assignable +b.isFollower = b.isLeader; +b.isLeader = b.isFollower; +a.isFollower = a.isLeader; +a.isLeader = a.isFollower; +function invalidGuard(c) { + return false; +} +var c; +if (invalidGuard(c)) { + c; +} +else { + c; +} +var holder = { invalidGuard: invalidGuard }; +if (holder.invalidGuard(c)) { + c; + holder; +} +else { + c; + holder; +} +var detached = a.isFollower; +if (detached()) { + a.follow(); +} +else { + a.lead(); +} + + +//// [typeGuardFunctionOfFormThisErrors.d.ts] +declare class RoyalGuard { + isLeader(): this is LeadGuard; + isFollower(): this is FollowerGuard; +} +declare class LeadGuard extends RoyalGuard { + lead(): void; +} +declare class FollowerGuard extends RoyalGuard { + follow(): void; +} +interface GuardInterface extends RoyalGuard { +} +declare let a: RoyalGuard; +declare let b: GuardInterface; +declare function invalidGuard(c: any): this is number; +declare let c: number | number[]; +declare let holder: { + invalidGuard: (c: any) => this is number; +}; +declare let detached: () => this is FollowerGuard; diff --git a/tests/baselines/reference/typeGuardInClass.js b/tests/baselines/reference/typeGuardInClass.js index 0ce25a7c11c..4d3eac9d0e3 100644 --- a/tests/baselines/reference/typeGuardInClass.js +++ b/tests/baselines/reference/typeGuardInClass.js @@ -25,7 +25,7 @@ if (typeof x === "string") { var y = x; } return class_1; - })(); + }()); } else { var m = (function () { @@ -33,5 +33,5 @@ else { var y = x; } return class_2; - })(); + }()); } diff --git a/tests/baselines/reference/typeGuardOfFormExpr1AndExpr2.js b/tests/baselines/reference/typeGuardOfFormExpr1AndExpr2.js index 42bab3cdbe7..5724c218ad3 100644 --- a/tests/baselines/reference/typeGuardOfFormExpr1AndExpr2.js +++ b/tests/baselines/reference/typeGuardOfFormExpr1AndExpr2.js @@ -57,7 +57,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var cOrBool; var strOrNumOrBoolOrC; diff --git a/tests/baselines/reference/typeGuardOfFormExpr1OrExpr2.js b/tests/baselines/reference/typeGuardOfFormExpr1OrExpr2.js index 7e38232a738..78a6e7732fb 100644 --- a/tests/baselines/reference/typeGuardOfFormExpr1OrExpr2.js +++ b/tests/baselines/reference/typeGuardOfFormExpr1OrExpr2.js @@ -57,7 +57,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var cOrBool; var strOrNumOrBoolOrC; diff --git a/tests/baselines/reference/typeGuardOfFormInstanceOf.js b/tests/baselines/reference/typeGuardOfFormInstanceOf.js index 1431b4b9c60..a6881cf3cea 100644 --- a/tests/baselines/reference/typeGuardOfFormInstanceOf.js +++ b/tests/baselines/reference/typeGuardOfFormInstanceOf.js @@ -82,24 +82,24 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(C1); +}(C1)); var C3 = (function () { function C3() { } return C3; -})(); +}()); var str; var num; var strOrNum; diff --git a/tests/baselines/reference/typeGuardOfFormIsType.js b/tests/baselines/reference/typeGuardOfFormIsType.js index 8400aef59ad..3f55b9d41ea 100644 --- a/tests/baselines/reference/typeGuardOfFormIsType.js +++ b/tests/baselines/reference/typeGuardOfFormIsType.js @@ -47,19 +47,19 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(C1); +}(C1)); var str; var num; var strOrNum; diff --git a/tests/baselines/reference/typeGuardOfFormIsType.types b/tests/baselines/reference/typeGuardOfFormIsType.types index e2059be7b63..aa8f8cc7d60 100644 --- a/tests/baselines/reference/typeGuardOfFormIsType.types +++ b/tests/baselines/reference/typeGuardOfFormIsType.types @@ -67,7 +67,7 @@ str = isC1(c1Orc2) && c1Orc2.p1; // C1 >str = isC1(c1Orc2) && c1Orc2.p1 : string >str : string >isC1(c1Orc2) && c1Orc2.p1 : string ->isC1(c1Orc2) : boolean +>isC1(c1Orc2) : x is C1 >isC1 : (x: any) => x is C1 >c1Orc2 : C1 | C2 >c1Orc2.p1 : string @@ -78,7 +78,7 @@ num = isC2(c1Orc2) && c1Orc2.p2; // C2 >num = isC2(c1Orc2) && c1Orc2.p2 : number >num : number >isC2(c1Orc2) && c1Orc2.p2 : number ->isC2(c1Orc2) : boolean +>isC2(c1Orc2) : x is C2 >isC2 : (x: any) => x is C2 >c1Orc2 : C1 | C2 >c1Orc2.p2 : number @@ -89,7 +89,7 @@ str = isD1(c1Orc2) && c1Orc2.p1; // D1 >str = isD1(c1Orc2) && c1Orc2.p1 : string >str : string >isD1(c1Orc2) && c1Orc2.p1 : string ->isD1(c1Orc2) : boolean +>isD1(c1Orc2) : x is D1 >isD1 : (x: any) => x is D1 >c1Orc2 : C1 | C2 >c1Orc2.p1 : string @@ -100,7 +100,7 @@ num = isD1(c1Orc2) && c1Orc2.p3; // D1 >num = isD1(c1Orc2) && c1Orc2.p3 : number >num : number >isD1(c1Orc2) && c1Orc2.p3 : number ->isD1(c1Orc2) : boolean +>isD1(c1Orc2) : x is D1 >isD1 : (x: any) => x is D1 >c1Orc2 : C1 | C2 >c1Orc2.p3 : number @@ -116,7 +116,7 @@ num = isC2(c2Ord1) && c2Ord1.p2; // C2 >num = isC2(c2Ord1) && c2Ord1.p2 : number >num : number >isC2(c2Ord1) && c2Ord1.p2 : number ->isC2(c2Ord1) : boolean +>isC2(c2Ord1) : x is C2 >isC2 : (x: any) => x is C2 >c2Ord1 : C2 | D1 >c2Ord1.p2 : number @@ -127,7 +127,7 @@ num = isD1(c2Ord1) && c2Ord1.p3; // D1 >num = isD1(c2Ord1) && c2Ord1.p3 : number >num : number >isD1(c2Ord1) && c2Ord1.p3 : number ->isD1(c2Ord1) : boolean +>isD1(c2Ord1) : x is D1 >isD1 : (x: any) => x is D1 >c2Ord1 : C2 | D1 >c2Ord1.p3 : number @@ -138,7 +138,7 @@ str = isD1(c2Ord1) && c2Ord1.p1; // D1 >str = isD1(c2Ord1) && c2Ord1.p1 : string >str : string >isD1(c2Ord1) && c2Ord1.p1 : string ->isD1(c2Ord1) : boolean +>isD1(c2Ord1) : x is D1 >isD1 : (x: any) => x is D1 >c2Ord1 : C2 | D1 >c2Ord1.p1 : string @@ -150,7 +150,7 @@ var r2: C2 | D1 = isC1(c2Ord1) && c2Ord1; // C2 | D1 >C2 : C2 >D1 : D1 >isC1(c2Ord1) && c2Ord1 : D1 ->isC1(c2Ord1) : boolean +>isC1(c2Ord1) : x is C1 >isC1 : (x: any) => x is C1 >c2Ord1 : C2 | D1 >c2Ord1 : D1 diff --git a/tests/baselines/reference/typeGuardOfFormIsTypeOnInterfaces.types b/tests/baselines/reference/typeGuardOfFormIsTypeOnInterfaces.types index ea169e95413..4e28e6a4d38 100644 --- a/tests/baselines/reference/typeGuardOfFormIsTypeOnInterfaces.types +++ b/tests/baselines/reference/typeGuardOfFormIsTypeOnInterfaces.types @@ -98,7 +98,7 @@ str = isC1(c1Orc2) && c1Orc2.p1; // C1 >str = isC1(c1Orc2) && c1Orc2.p1 : string >str : string >isC1(c1Orc2) && c1Orc2.p1 : string ->isC1(c1Orc2) : boolean +>isC1(c1Orc2) : x is C1 >isC1 : (x: any) => x is C1 >c1Orc2 : C1 | C2 >c1Orc2.p1 : string @@ -109,7 +109,7 @@ num = isC2(c1Orc2) && c1Orc2.p2; // C2 >num = isC2(c1Orc2) && c1Orc2.p2 : number >num : number >isC2(c1Orc2) && c1Orc2.p2 : number ->isC2(c1Orc2) : boolean +>isC2(c1Orc2) : x is C2 >isC2 : (x: any) => x is C2 >c1Orc2 : C1 | C2 >c1Orc2.p2 : number @@ -120,7 +120,7 @@ str = isD1(c1Orc2) && c1Orc2.p1; // D1 >str = isD1(c1Orc2) && c1Orc2.p1 : string >str : string >isD1(c1Orc2) && c1Orc2.p1 : string ->isD1(c1Orc2) : boolean +>isD1(c1Orc2) : x is D1 >isD1 : (x: any) => x is D1 >c1Orc2 : C1 | C2 >c1Orc2.p1 : string @@ -131,7 +131,7 @@ num = isD1(c1Orc2) && c1Orc2.p3; // D1 >num = isD1(c1Orc2) && c1Orc2.p3 : number >num : number >isD1(c1Orc2) && c1Orc2.p3 : number ->isD1(c1Orc2) : boolean +>isD1(c1Orc2) : x is D1 >isD1 : (x: any) => x is D1 >c1Orc2 : C1 | C2 >c1Orc2.p3 : number @@ -147,7 +147,7 @@ num = isC2(c2Ord1) && c2Ord1.p2; // C2 >num = isC2(c2Ord1) && c2Ord1.p2 : number >num : number >isC2(c2Ord1) && c2Ord1.p2 : number ->isC2(c2Ord1) : boolean +>isC2(c2Ord1) : x is C2 >isC2 : (x: any) => x is C2 >c2Ord1 : C2 | D1 >c2Ord1.p2 : number @@ -158,7 +158,7 @@ num = isD1(c2Ord1) && c2Ord1.p3; // D1 >num = isD1(c2Ord1) && c2Ord1.p3 : number >num : number >isD1(c2Ord1) && c2Ord1.p3 : number ->isD1(c2Ord1) : boolean +>isD1(c2Ord1) : x is D1 >isD1 : (x: any) => x is D1 >c2Ord1 : C2 | D1 >c2Ord1.p3 : number @@ -169,7 +169,7 @@ str = isD1(c2Ord1) && c2Ord1.p1; // D1 >str = isD1(c2Ord1) && c2Ord1.p1 : string >str : string >isD1(c2Ord1) && c2Ord1.p1 : string ->isD1(c2Ord1) : boolean +>isD1(c2Ord1) : x is D1 >isD1 : (x: any) => x is D1 >c2Ord1 : C2 | D1 >c2Ord1.p1 : string @@ -181,7 +181,7 @@ var r2: C2 | D1 = isC1(c2Ord1) && c2Ord1; // C2 | D1 >C2 : C2 >D1 : D1 >isC1(c2Ord1) && c2Ord1 : D1 ->isC1(c2Ord1) : boolean +>isC1(c2Ord1) : x is C1 >isC1 : (x: any) => x is C1 >c2Ord1 : C2 | D1 >c2Ord1 : D1 diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.js b/tests/baselines/reference/typeGuardOfFormThisMember.js new file mode 100644 index 00000000000..2f983d2cdf8 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMember.js @@ -0,0 +1,187 @@ +//// [typeGuardOfFormThisMember.ts] +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + get isFile(): this is File { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = false; + file.isFSO = file.isFile; + file.isFile = true; + let x = file.isFile; + if (file.isFile) { + file.content; + if (file.isNetworked) { + file.host; + file.content; + } + } + else if (file.isDirectory) { + file.children; + } + else if (file.isNetworked) { + file.host; + } + + interface GenericLeadGuard extends GenericGuard { + lead(): void; + } + + interface GenericFollowerGuard extends GenericGuard { + follow(): void; + } + + interface GenericGuard { + target: T; + isLeader: this is (GenericLeadGuard); + isFollower: this is GenericFollowerGuard; + } + + let guard: GenericGuard; + if (guard.isLeader) { + guard.lead(); + } + else if (guard.isFollower) { + guard.follow(); + } + + interface SpecificGuard { + isMoreSpecific: this is MoreSpecificGuard; + } + + interface MoreSpecificGuard extends SpecificGuard { + do(): void; + } + + let general: SpecificGuard; + if (general.isMoreSpecific) { + general.do(); + } +} + + +//// [typeGuardOfFormThisMember.js] +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +var Test; +(function (Test) { + var FileSystemObject = (function () { + function FileSystemObject(path) { + this.path = path; + } + Object.defineProperty(FileSystemObject.prototype, "isFile", { + get: function () { + return this instanceof File; + }, + set: function (param) { + // noop + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(FileSystemObject.prototype, "isDirectory", { + get: function () { + return this instanceof Directory; + }, + enumerable: true, + configurable: true + }); + return FileSystemObject; + }()); + Test.FileSystemObject = FileSystemObject; + var File = (function (_super) { + __extends(File, _super); + function File(path, content) { + _super.call(this, path); + this.content = content; + } + return File; + }(FileSystemObject)); + Test.File = File; + var Directory = (function (_super) { + __extends(Directory, _super); + function Directory() { + _super.apply(this, arguments); + } + return Directory; + }(FileSystemObject)); + Test.Directory = Directory; + var file = new File("foo/bar.txt", "foo"); + file.isNetworked = false; + file.isFSO = file.isFile; + file.isFile = true; + var x = file.isFile; + if (file.isFile) { + file.content; + if (file.isNetworked) { + file.host; + file.content; + } + } + else if (file.isDirectory) { + file.children; + } + else if (file.isNetworked) { + file.host; + } + var guard; + if (guard.isLeader) { + guard.lead(); + } + else if (guard.isFollower) { + guard.follow(); + } + var general; + if (general.isMoreSpecific) { + general.do(); + } +})(Test || (Test = {})); + + +//// [typeGuardOfFormThisMember.d.ts] +declare namespace Test { + class FileSystemObject { + path: string; + isFSO: this is FileSystemObject; + isFile: this is File; + isDirectory: this is Directory; + isNetworked: this is (Networked & this); + constructor(path: string); + } + class File extends FileSystemObject { + content: string; + constructor(path: string, content: string); + } + class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + interface Networked { + host: string; + } +} diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.symbols b/tests/baselines/reference/typeGuardOfFormThisMember.symbols new file mode 100644 index 00000000000..50e15b68ca4 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMember.symbols @@ -0,0 +1,240 @@ +=== tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts === +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { +>Test : Symbol(Test, Decl(typeGuardOfFormThisMember.ts, 0, 0)) + + export class FileSystemObject { +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + isFSO: this is FileSystemObject; +>isFSO : Symbol(isFSO, Decl(typeGuardOfFormThisMember.ts, 2, 32)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + get isFile(): this is File { +>isFile : Symbol(isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + + return this instanceof File; +>this : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + } + set isFile(param) { +>isFile : Symbol(isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>param : Symbol(param, Decl(typeGuardOfFormThisMember.ts, 7, 13)) + + // noop + } + get isDirectory(): this is Directory { +>isDirectory : Symbol(isDirectory, Decl(typeGuardOfFormThisMember.ts, 9, 3)) +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMember.ts, 19, 2)) + + return this instanceof Directory; +>this : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMember.ts, 19, 2)) + } + isNetworked: this is (Networked & this); +>isNetworked : Symbol(isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>Networked : Symbol(Networked, Decl(typeGuardOfFormThisMember.ts, 22, 2)) + + constructor(public path: string) {} +>path : Symbol(path, Decl(typeGuardOfFormThisMember.ts, 14, 14)) + } + + export class File extends FileSystemObject { +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + constructor(path: string, public content: string) { super(path); } +>path : Symbol(path, Decl(typeGuardOfFormThisMember.ts, 18, 14)) +>content : Symbol(content, Decl(typeGuardOfFormThisMember.ts, 18, 27)) +>super : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>path : Symbol(path, Decl(typeGuardOfFormThisMember.ts, 18, 14)) + } + export class Directory extends FileSystemObject { +>Directory : Symbol(Directory, Decl(typeGuardOfFormThisMember.ts, 19, 2)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + + children: FileSystemObject[]; +>children : Symbol(children, Decl(typeGuardOfFormThisMember.ts, 20, 50)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) + } + export interface Networked { +>Networked : Symbol(Networked, Decl(typeGuardOfFormThisMember.ts, 22, 2)) + + host: string; +>host : Symbol(host, Decl(typeGuardOfFormThisMember.ts, 23, 29)) + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>FileSystemObject : Symbol(FileSystemObject, Decl(typeGuardOfFormThisMember.ts, 1, 16)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + + file.isNetworked = false; +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) + + file.isFSO = file.isFile; +>file.isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMember.ts, 2, 32)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFSO : Symbol(FileSystemObject.isFSO, Decl(typeGuardOfFormThisMember.ts, 2, 32)) +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + file.isFile = true; +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + let x = file.isFile; +>x : Symbol(x, Decl(typeGuardOfFormThisMember.ts, 31, 4)) +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + if (file.isFile) { +>file.isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isFile : Symbol(FileSystemObject.isFile, Decl(typeGuardOfFormThisMember.ts, 3, 34), Decl(typeGuardOfFormThisMember.ts, 6, 3)) + + file.content; +>file.content : Symbol(File.content, Decl(typeGuardOfFormThisMember.ts, 18, 27)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>content : Symbol(File.content, Decl(typeGuardOfFormThisMember.ts, 18, 27)) + + if (file.isNetworked) { +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) + + file.host; +>file.host : Symbol(Networked.host, Decl(typeGuardOfFormThisMember.ts, 23, 29)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>host : Symbol(Networked.host, Decl(typeGuardOfFormThisMember.ts, 23, 29)) + + file.content; +>file.content : Symbol(File.content, Decl(typeGuardOfFormThisMember.ts, 18, 27)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>content : Symbol(File.content, Decl(typeGuardOfFormThisMember.ts, 18, 27)) + } + } + else if (file.isDirectory) { +>file.isDirectory : Symbol(FileSystemObject.isDirectory, Decl(typeGuardOfFormThisMember.ts, 9, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isDirectory : Symbol(FileSystemObject.isDirectory, Decl(typeGuardOfFormThisMember.ts, 9, 3)) + + file.children; +>file.children : Symbol(Directory.children, Decl(typeGuardOfFormThisMember.ts, 20, 50)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>children : Symbol(Directory.children, Decl(typeGuardOfFormThisMember.ts, 20, 50)) + } + else if (file.isNetworked) { +>file.isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>isNetworked : Symbol(FileSystemObject.isNetworked, Decl(typeGuardOfFormThisMember.ts, 12, 3)) + + file.host; +>file.host : Symbol(Networked.host, Decl(typeGuardOfFormThisMember.ts, 23, 29)) +>file : Symbol(file, Decl(typeGuardOfFormThisMember.ts, 27, 4)) +>host : Symbol(Networked.host, Decl(typeGuardOfFormThisMember.ts, 23, 29)) + } + + interface GenericLeadGuard extends GenericGuard { +>GenericLeadGuard : Symbol(GenericLeadGuard, Decl(typeGuardOfFormThisMember.ts, 44, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 46, 28)) +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 46, 28)) + + lead(): void; +>lead : Symbol(lead, Decl(typeGuardOfFormThisMember.ts, 46, 56)) + } + + interface GenericFollowerGuard extends GenericGuard { +>GenericFollowerGuard : Symbol(GenericFollowerGuard, Decl(typeGuardOfFormThisMember.ts, 48, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 50, 32)) +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 50, 32)) + + follow(): void; +>follow : Symbol(follow, Decl(typeGuardOfFormThisMember.ts, 50, 60)) + } + + interface GenericGuard { +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + + target: T; +>target : Symbol(target, Decl(typeGuardOfFormThisMember.ts, 54, 28)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + + isLeader: this is (GenericLeadGuard); +>isLeader : Symbol(isLeader, Decl(typeGuardOfFormThisMember.ts, 55, 12)) +>GenericLeadGuard : Symbol(GenericLeadGuard, Decl(typeGuardOfFormThisMember.ts, 44, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + + isFollower: this is GenericFollowerGuard; +>isFollower : Symbol(isFollower, Decl(typeGuardOfFormThisMember.ts, 56, 42)) +>GenericFollowerGuard : Symbol(GenericFollowerGuard, Decl(typeGuardOfFormThisMember.ts, 48, 2)) +>T : Symbol(T, Decl(typeGuardOfFormThisMember.ts, 54, 24)) + } + + let guard: GenericGuard; +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4)) +>GenericGuard : Symbol(GenericGuard, Decl(typeGuardOfFormThisMember.ts, 52, 2)) +>File : Symbol(File, Decl(typeGuardOfFormThisMember.ts, 15, 2)) + + if (guard.isLeader) { +>guard.isLeader : Symbol(GenericGuard.isLeader, Decl(typeGuardOfFormThisMember.ts, 55, 12)) +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4)) +>isLeader : Symbol(GenericGuard.isLeader, Decl(typeGuardOfFormThisMember.ts, 55, 12)) + + guard.lead(); +>guard.lead : Symbol(GenericLeadGuard.lead, Decl(typeGuardOfFormThisMember.ts, 46, 56)) +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4)) +>lead : Symbol(GenericLeadGuard.lead, Decl(typeGuardOfFormThisMember.ts, 46, 56)) + } + else if (guard.isFollower) { +>guard.isFollower : Symbol(GenericGuard.isFollower, Decl(typeGuardOfFormThisMember.ts, 56, 42)) +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4)) +>isFollower : Symbol(GenericGuard.isFollower, Decl(typeGuardOfFormThisMember.ts, 56, 42)) + + guard.follow(); +>guard.follow : Symbol(GenericFollowerGuard.follow, Decl(typeGuardOfFormThisMember.ts, 50, 60)) +>guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4)) +>follow : Symbol(GenericFollowerGuard.follow, Decl(typeGuardOfFormThisMember.ts, 50, 60)) + } + + interface SpecificGuard { +>SpecificGuard : Symbol(SpecificGuard, Decl(typeGuardOfFormThisMember.ts, 66, 2)) + + isMoreSpecific: this is MoreSpecificGuard; +>isMoreSpecific : Symbol(isMoreSpecific, Decl(typeGuardOfFormThisMember.ts, 68, 26)) +>MoreSpecificGuard : Symbol(MoreSpecificGuard, Decl(typeGuardOfFormThisMember.ts, 70, 2)) + } + + interface MoreSpecificGuard extends SpecificGuard { +>MoreSpecificGuard : Symbol(MoreSpecificGuard, Decl(typeGuardOfFormThisMember.ts, 70, 2)) +>SpecificGuard : Symbol(SpecificGuard, Decl(typeGuardOfFormThisMember.ts, 66, 2)) + + do(): void; +>do : Symbol(do, Decl(typeGuardOfFormThisMember.ts, 72, 52)) + } + + let general: SpecificGuard; +>general : Symbol(general, Decl(typeGuardOfFormThisMember.ts, 76, 4)) +>SpecificGuard : Symbol(SpecificGuard, Decl(typeGuardOfFormThisMember.ts, 66, 2)) + + if (general.isMoreSpecific) { +>general.isMoreSpecific : Symbol(SpecificGuard.isMoreSpecific, Decl(typeGuardOfFormThisMember.ts, 68, 26)) +>general : Symbol(general, Decl(typeGuardOfFormThisMember.ts, 76, 4)) +>isMoreSpecific : Symbol(SpecificGuard.isMoreSpecific, Decl(typeGuardOfFormThisMember.ts, 68, 26)) + + general.do(); +>general.do : Symbol(MoreSpecificGuard.do, Decl(typeGuardOfFormThisMember.ts, 72, 52)) +>general : Symbol(general, Decl(typeGuardOfFormThisMember.ts, 76, 4)) +>do : Symbol(MoreSpecificGuard.do, Decl(typeGuardOfFormThisMember.ts, 72, 52)) + } +} + diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.types b/tests/baselines/reference/typeGuardOfFormThisMember.types new file mode 100644 index 00000000000..68343947fb4 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMember.types @@ -0,0 +1,254 @@ +=== tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts === +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { +>Test : typeof Test + + export class FileSystemObject { +>FileSystemObject : FileSystemObject + + isFSO: this is FileSystemObject; +>isFSO : this is FileSystemObject +>FileSystemObject : FileSystemObject + + get isFile(): this is File { +>isFile : this is File +>File : File + + return this instanceof File; +>this instanceof File : boolean +>this : this +>File : typeof File + } + set isFile(param) { +>isFile : this is File +>param : boolean + + // noop + } + get isDirectory(): this is Directory { +>isDirectory : this is Directory +>Directory : Directory + + return this instanceof Directory; +>this instanceof Directory : boolean +>this : this +>Directory : typeof Directory + } + isNetworked: this is (Networked & this); +>isNetworked : this is Networked & this +>Networked : Networked + + constructor(public path: string) {} +>path : string + } + + export class File extends FileSystemObject { +>File : File +>FileSystemObject : FileSystemObject + + constructor(path: string, public content: string) { super(path); } +>path : string +>content : string +>super(path) : void +>super : typeof FileSystemObject +>path : string + } + export class Directory extends FileSystemObject { +>Directory : Directory +>FileSystemObject : FileSystemObject + + children: FileSystemObject[]; +>children : FileSystemObject[] +>FileSystemObject : FileSystemObject + } + export interface Networked { +>Networked : Networked + + host: string; +>host : string + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); +>file : FileSystemObject +>FileSystemObject : FileSystemObject +>new File("foo/bar.txt", "foo") : File +>File : typeof File +>"foo/bar.txt" : string +>"foo" : string + + file.isNetworked = false; +>file.isNetworked = false : boolean +>file.isNetworked : this is Networked & FileSystemObject +>file : FileSystemObject +>isNetworked : this is Networked & FileSystemObject +>false : boolean + + file.isFSO = file.isFile; +>file.isFSO = file.isFile : this is File +>file.isFSO : this is FileSystemObject +>file : FileSystemObject +>isFSO : this is FileSystemObject +>file.isFile : this is File +>file : FileSystemObject +>isFile : this is File + + file.isFile = true; +>file.isFile = true : boolean +>file.isFile : this is File +>file : FileSystemObject +>isFile : this is File +>true : boolean + + let x = file.isFile; +>x : boolean +>file.isFile : this is File +>file : FileSystemObject +>isFile : this is File + + if (file.isFile) { +>file.isFile : this is File +>file : FileSystemObject +>isFile : this is File + + file.content; +>file.content : string +>file : File +>content : string + + if (file.isNetworked) { +>file.isNetworked : this is Networked & File +>file : File +>isNetworked : this is Networked & File + + file.host; +>file.host : string +>file : Networked & File +>host : string + + file.content; +>file.content : string +>file : Networked & File +>content : string + } + } + else if (file.isDirectory) { +>file.isDirectory : this is Directory +>file : FileSystemObject +>isDirectory : this is Directory + + file.children; +>file.children : FileSystemObject[] +>file : Directory +>children : FileSystemObject[] + } + else if (file.isNetworked) { +>file.isNetworked : this is Networked & FileSystemObject +>file : FileSystemObject +>isNetworked : this is Networked & FileSystemObject + + file.host; +>file.host : string +>file : Networked & FileSystemObject +>host : string + } + + interface GenericLeadGuard extends GenericGuard { +>GenericLeadGuard : GenericLeadGuard +>T : T +>GenericGuard : GenericGuard +>T : T + + lead(): void; +>lead : () => void + } + + interface GenericFollowerGuard extends GenericGuard { +>GenericFollowerGuard : GenericFollowerGuard +>T : T +>GenericGuard : GenericGuard +>T : T + + follow(): void; +>follow : () => void + } + + interface GenericGuard { +>GenericGuard : GenericGuard +>T : T + + target: T; +>target : T +>T : T + + isLeader: this is (GenericLeadGuard); +>isLeader : this is GenericLeadGuard +>GenericLeadGuard : GenericLeadGuard +>T : T + + isFollower: this is GenericFollowerGuard; +>isFollower : this is GenericFollowerGuard +>GenericFollowerGuard : GenericFollowerGuard +>T : T + } + + let guard: GenericGuard; +>guard : GenericGuard +>GenericGuard : GenericGuard +>File : File + + if (guard.isLeader) { +>guard.isLeader : this is GenericLeadGuard +>guard : GenericGuard +>isLeader : this is GenericLeadGuard + + guard.lead(); +>guard.lead() : void +>guard.lead : () => void +>guard : GenericLeadGuard +>lead : () => void + } + else if (guard.isFollower) { +>guard.isFollower : this is GenericFollowerGuard +>guard : GenericGuard +>isFollower : this is GenericFollowerGuard + + guard.follow(); +>guard.follow() : void +>guard.follow : () => void +>guard : GenericFollowerGuard +>follow : () => void + } + + interface SpecificGuard { +>SpecificGuard : SpecificGuard + + isMoreSpecific: this is MoreSpecificGuard; +>isMoreSpecific : this is MoreSpecificGuard +>MoreSpecificGuard : MoreSpecificGuard + } + + interface MoreSpecificGuard extends SpecificGuard { +>MoreSpecificGuard : MoreSpecificGuard +>SpecificGuard : SpecificGuard + + do(): void; +>do : () => void + } + + let general: SpecificGuard; +>general : SpecificGuard +>SpecificGuard : SpecificGuard + + if (general.isMoreSpecific) { +>general.isMoreSpecific : this is MoreSpecificGuard +>general : SpecificGuard +>isMoreSpecific : this is MoreSpecificGuard + + general.do(); +>general.do() : void +>general.do : () => void +>general : MoreSpecificGuard +>do : () => void + } +} + diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.errors.txt b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.errors.txt new file mode 100644 index 00000000000..754cbffe6e6 --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.errors.txt @@ -0,0 +1,51 @@ +tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts(29,2): error TS1226: Type predicate 'this is File' is not assignable to 'this is Networked & FileSystemObject'. + Type 'File' is not assignable to type 'Networked & FileSystemObject'. + Type 'File' is not assignable to type 'Networked'. + Property 'host' is missing in type 'File'. +tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts(31,2): error TS1226: Type predicate 'this is FileSystemObject' is not assignable to 'this is File'. + Type 'FileSystemObject' is not assignable to type 'File'. + Property 'content' is missing in type 'FileSystemObject'. + + +==== tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts (2 errors) ==== + // There's a 'File' class in the stdlib, wrap with a namespace to avoid collision + namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + get isFile(): this is File { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = file.isFile; + ~~~~~~~~~~~~~~~~ +!!! error TS1226: Type predicate 'this is File' is not assignable to 'this is Networked & FileSystemObject'. +!!! error TS1226: Type 'File' is not assignable to type 'Networked & FileSystemObject'. +!!! error TS1226: Type 'File' is not assignable to type 'Networked'. +!!! error TS1226: Property 'host' is missing in type 'File'. + file.isFSO = file.isNetworked; + file.isFile = file.isFSO; + ~~~~~~~~~~~ +!!! error TS1226: Type predicate 'this is FileSystemObject' is not assignable to 'this is File'. +!!! error TS1226: Type 'FileSystemObject' is not assignable to type 'File'. +!!! error TS1226: Property 'content' is missing in type 'FileSystemObject'. + } \ No newline at end of file diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js new file mode 100644 index 00000000000..6f681ab09cf --- /dev/null +++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js @@ -0,0 +1,112 @@ +//// [typeGuardOfFormThisMemberErrors.ts] +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + get isFile(): this is File { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = file.isFile; + file.isFSO = file.isNetworked; + file.isFile = file.isFSO; +} + +//// [typeGuardOfFormThisMemberErrors.js] +var __extends = (this && this.__extends) || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +}; +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +var Test; +(function (Test) { + var FileSystemObject = (function () { + function FileSystemObject(path) { + this.path = path; + } + Object.defineProperty(FileSystemObject.prototype, "isFile", { + get: function () { + return this instanceof File; + }, + set: function (param) { + // noop + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(FileSystemObject.prototype, "isDirectory", { + get: function () { + return this instanceof Directory; + }, + enumerable: true, + configurable: true + }); + return FileSystemObject; + }()); + Test.FileSystemObject = FileSystemObject; + var File = (function (_super) { + __extends(File, _super); + function File(path, content) { + _super.call(this, path); + this.content = content; + } + return File; + }(FileSystemObject)); + Test.File = File; + var Directory = (function (_super) { + __extends(Directory, _super); + function Directory() { + _super.apply(this, arguments); + } + return Directory; + }(FileSystemObject)); + Test.Directory = Directory; + var file = new File("foo/bar.txt", "foo"); + file.isNetworked = file.isFile; + file.isFSO = file.isNetworked; + file.isFile = file.isFSO; +})(Test || (Test = {})); + + +//// [typeGuardOfFormThisMemberErrors.d.ts] +declare namespace Test { + class FileSystemObject { + path: string; + isFSO: this is FileSystemObject; + isFile: this is File; + isDirectory: this is Directory; + isNetworked: this is (Networked & this); + constructor(path: string); + } + class File extends FileSystemObject { + content: string; + constructor(path: string, content: string); + } + class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + interface Networked { + host: string; + } +} diff --git a/tests/baselines/reference/typeGuardOfFormTypeOfBoolean.js b/tests/baselines/reference/typeGuardOfFormTypeOfBoolean.js index 3b0ead5b3c7..e9e11275d0d 100644 --- a/tests/baselines/reference/typeGuardOfFormTypeOfBoolean.js +++ b/tests/baselines/reference/typeGuardOfFormTypeOfBoolean.js @@ -93,7 +93,7 @@ var C = (function () { function C() { } return C; -})(); +}()); ; var str; var bool; diff --git a/tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.js b/tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.js index 0e7ada149df..b3a3b8028ec 100644 --- a/tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.js +++ b/tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.js @@ -40,7 +40,7 @@ var C = (function () { function C() { } return C; -})(); +}()); ; var strOrNum; var strOrBool; diff --git a/tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.js b/tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.js index 6a9851b51ab..3c095f19507 100644 --- a/tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.js +++ b/tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.js @@ -40,7 +40,7 @@ var C = (function () { function C() { } return C; -})(); +}()); ; var strOrNum; var strOrBool; diff --git a/tests/baselines/reference/typeGuardOfFormTypeOfNumber.js b/tests/baselines/reference/typeGuardOfFormTypeOfNumber.js index b65ccbb882f..66fcff0c387 100644 --- a/tests/baselines/reference/typeGuardOfFormTypeOfNumber.js +++ b/tests/baselines/reference/typeGuardOfFormTypeOfNumber.js @@ -92,7 +92,7 @@ var C = (function () { function C() { } return C; -})(); +}()); ; var str; var bool; diff --git a/tests/baselines/reference/typeGuardOfFormTypeOfOther.js b/tests/baselines/reference/typeGuardOfFormTypeOfOther.js index d1cb4994196..b1e6ca26566 100644 --- a/tests/baselines/reference/typeGuardOfFormTypeOfOther.js +++ b/tests/baselines/reference/typeGuardOfFormTypeOfOther.js @@ -82,7 +82,7 @@ var C = (function () { function C() { } return C; -})(); +}()); ; var str; var bool; diff --git a/tests/baselines/reference/typeGuardOfFormTypeOfString.js b/tests/baselines/reference/typeGuardOfFormTypeOfString.js index 4f6652c440a..5626396f73d 100644 --- a/tests/baselines/reference/typeGuardOfFormTypeOfString.js +++ b/tests/baselines/reference/typeGuardOfFormTypeOfString.js @@ -92,7 +92,7 @@ var C = (function () { function C() { } return C; -})(); +}()); ; var str; var bool; diff --git a/tests/baselines/reference/typeGuardsInClassAccessors.js b/tests/baselines/reference/typeGuardsInClassAccessors.js index 8f487b72535..7aeaf043004 100644 --- a/tests/baselines/reference/typeGuardsInClassAccessors.js +++ b/tests/baselines/reference/typeGuardsInClassAccessors.js @@ -206,4 +206,4 @@ var ClassWithAccessors = (function () { configurable: true }); return ClassWithAccessors; -})(); +}()); diff --git a/tests/baselines/reference/typeGuardsInClassMethods.js b/tests/baselines/reference/typeGuardsInClassMethods.js index cbe6dfe161a..f5ad4e6325d 100644 --- a/tests/baselines/reference/typeGuardsInClassMethods.js +++ b/tests/baselines/reference/typeGuardsInClassMethods.js @@ -125,4 +125,4 @@ var C1 = (function () { num = typeof param === "string" && param.length; // string }; return C1; -})(); +}()); diff --git a/tests/baselines/reference/typeGuardsInProperties.js b/tests/baselines/reference/typeGuardsInProperties.js index 78ad29a28b0..72429b58ca4 100644 --- a/tests/baselines/reference/typeGuardsInProperties.js +++ b/tests/baselines/reference/typeGuardsInProperties.js @@ -48,7 +48,7 @@ var C1 = (function () { strOrNum = typeof this.pp3 === "string" && this.pp3; // string | number }; return C1; -})(); +}()); var c1; strOrNum = typeof c1.pp2 === "string" && c1.pp2; // string | number strOrNum = typeof c1.pp3 === "string" && c1.pp3; // string | number diff --git a/tests/baselines/reference/typeGuardsOnClassProperty.js b/tests/baselines/reference/typeGuardsOnClassProperty.js index de4fcb50638..abe031e96e6 100644 --- a/tests/baselines/reference/typeGuardsOnClassProperty.js +++ b/tests/baselines/reference/typeGuardsOnClassProperty.js @@ -44,7 +44,7 @@ var D = (function () { return typeof this.data === "string" ? this.data : this.data.join(" "); }; return D; -})(); +}()); var o = { prop1: "string", prop2: true diff --git a/tests/baselines/reference/typeIdentityConsidersBrands.js b/tests/baselines/reference/typeIdentityConsidersBrands.js index 2398033c2c6..c3b25239024 100644 --- a/tests/baselines/reference/typeIdentityConsidersBrands.js +++ b/tests/baselines/reference/typeIdentityConsidersBrands.js @@ -37,22 +37,22 @@ var X = (function () { function X() { } return X; -})(); +}()); var Y = (function () { function Y() { } return Y; -})(); +}()); var X_1 = (function () { function X_1() { } return X_1; -})(); +}()); var Y_1 = (function () { function Y_1() { } return Y_1; -})(); +}()); function foo(arg) { } var a = new Y(); var b = new X(); diff --git a/tests/baselines/reference/typeInferenceFBoundedTypeParams.js b/tests/baselines/reference/typeInferenceFBoundedTypeParams.js new file mode 100644 index 00000000000..3e30901df06 --- /dev/null +++ b/tests/baselines/reference/typeInferenceFBoundedTypeParams.js @@ -0,0 +1,39 @@ +//// [typeInferenceFBoundedTypeParams.ts] +// Example from #6037 + +function fold(values: a[], result: r, fold: (result: r, value: a) => r): r { + for (let value of values) { + result = fold(result, value); + } + return result; +} + +function append(values: a[], value: b): a[] { + values.push(value); + return values; +} + +fold( + [1, 2, 3], + [] as [string, string][], + (result, value) => append( + result, + ["", ""] + ) +); + + +//// [typeInferenceFBoundedTypeParams.js] +// Example from #6037 +function fold(values, result, fold) { + for (var _i = 0, values_1 = values; _i < values_1.length; _i++) { + var value = values_1[_i]; + result = fold(result, value); + } + return result; +} +function append(values, value) { + values.push(value); + return values; +} +fold([1, 2, 3], [], function (result, value) { return append(result, ["", ""]); }); diff --git a/tests/baselines/reference/typeInferenceFBoundedTypeParams.symbols b/tests/baselines/reference/typeInferenceFBoundedTypeParams.symbols new file mode 100644 index 00000000000..f49d7b7524e --- /dev/null +++ b/tests/baselines/reference/typeInferenceFBoundedTypeParams.symbols @@ -0,0 +1,71 @@ +=== tests/cases/compiler/typeInferenceFBoundedTypeParams.ts === +// Example from #6037 + +function fold(values: a[], result: r, fold: (result: r, value: a) => r): r { +>fold : Symbol(fold, Decl(typeInferenceFBoundedTypeParams.ts, 0, 0)) +>a : Symbol(a, Decl(typeInferenceFBoundedTypeParams.ts, 2, 14)) +>r : Symbol(r, Decl(typeInferenceFBoundedTypeParams.ts, 2, 16)) +>values : Symbol(values, Decl(typeInferenceFBoundedTypeParams.ts, 2, 20)) +>a : Symbol(a, Decl(typeInferenceFBoundedTypeParams.ts, 2, 14)) +>result : Symbol(result, Decl(typeInferenceFBoundedTypeParams.ts, 2, 32)) +>r : Symbol(r, Decl(typeInferenceFBoundedTypeParams.ts, 2, 16)) +>fold : Symbol(fold, Decl(typeInferenceFBoundedTypeParams.ts, 2, 43)) +>result : Symbol(result, Decl(typeInferenceFBoundedTypeParams.ts, 2, 51)) +>r : Symbol(r, Decl(typeInferenceFBoundedTypeParams.ts, 2, 16)) +>value : Symbol(value, Decl(typeInferenceFBoundedTypeParams.ts, 2, 61)) +>a : Symbol(a, Decl(typeInferenceFBoundedTypeParams.ts, 2, 14)) +>r : Symbol(r, Decl(typeInferenceFBoundedTypeParams.ts, 2, 16)) +>r : Symbol(r, Decl(typeInferenceFBoundedTypeParams.ts, 2, 16)) + + for (let value of values) { +>value : Symbol(value, Decl(typeInferenceFBoundedTypeParams.ts, 3, 12)) +>values : Symbol(values, Decl(typeInferenceFBoundedTypeParams.ts, 2, 20)) + + result = fold(result, value); +>result : Symbol(result, Decl(typeInferenceFBoundedTypeParams.ts, 2, 32)) +>fold : Symbol(fold, Decl(typeInferenceFBoundedTypeParams.ts, 2, 43)) +>result : Symbol(result, Decl(typeInferenceFBoundedTypeParams.ts, 2, 32)) +>value : Symbol(value, Decl(typeInferenceFBoundedTypeParams.ts, 3, 12)) + } + return result; +>result : Symbol(result, Decl(typeInferenceFBoundedTypeParams.ts, 2, 32)) +} + +function append(values: a[], value: b): a[] { +>append : Symbol(append, Decl(typeInferenceFBoundedTypeParams.ts, 7, 1)) +>a : Symbol(a, Decl(typeInferenceFBoundedTypeParams.ts, 9, 16)) +>b : Symbol(b, Decl(typeInferenceFBoundedTypeParams.ts, 9, 18)) +>a : Symbol(a, Decl(typeInferenceFBoundedTypeParams.ts, 9, 16)) +>values : Symbol(values, Decl(typeInferenceFBoundedTypeParams.ts, 9, 32)) +>a : Symbol(a, Decl(typeInferenceFBoundedTypeParams.ts, 9, 16)) +>value : Symbol(value, Decl(typeInferenceFBoundedTypeParams.ts, 9, 44)) +>b : Symbol(b, Decl(typeInferenceFBoundedTypeParams.ts, 9, 18)) +>a : Symbol(a, Decl(typeInferenceFBoundedTypeParams.ts, 9, 16)) + + values.push(value); +>values.push : Symbol(Array.push, Decl(lib.d.ts, --, --)) +>values : Symbol(values, Decl(typeInferenceFBoundedTypeParams.ts, 9, 32)) +>push : Symbol(Array.push, Decl(lib.d.ts, --, --)) +>value : Symbol(value, Decl(typeInferenceFBoundedTypeParams.ts, 9, 44)) + + return values; +>values : Symbol(values, Decl(typeInferenceFBoundedTypeParams.ts, 9, 32)) +} + +fold( +>fold : Symbol(fold, Decl(typeInferenceFBoundedTypeParams.ts, 0, 0)) + + [1, 2, 3], + [] as [string, string][], + (result, value) => append( +>result : Symbol(result, Decl(typeInferenceFBoundedTypeParams.ts, 17, 5)) +>value : Symbol(value, Decl(typeInferenceFBoundedTypeParams.ts, 17, 12)) +>append : Symbol(append, Decl(typeInferenceFBoundedTypeParams.ts, 7, 1)) + + result, +>result : Symbol(result, Decl(typeInferenceFBoundedTypeParams.ts, 17, 5)) + + ["", ""] + ) +); + diff --git a/tests/baselines/reference/typeInferenceFBoundedTypeParams.types b/tests/baselines/reference/typeInferenceFBoundedTypeParams.types new file mode 100644 index 00000000000..0ce04aabddf --- /dev/null +++ b/tests/baselines/reference/typeInferenceFBoundedTypeParams.types @@ -0,0 +1,89 @@ +=== tests/cases/compiler/typeInferenceFBoundedTypeParams.ts === +// Example from #6037 + +function fold(values: a[], result: r, fold: (result: r, value: a) => r): r { +>fold : (values: a[], result: r, fold: (result: r, value: a) => r) => r +>a : a +>r : r +>values : a[] +>a : a +>result : r +>r : r +>fold : (result: r, value: a) => r +>result : r +>r : r +>value : a +>a : a +>r : r +>r : r + + for (let value of values) { +>value : a +>values : a[] + + result = fold(result, value); +>result = fold(result, value) : r +>result : r +>fold(result, value) : r +>fold : (result: r, value: a) => r +>result : r +>value : a + } + return result; +>result : r +} + +function append(values: a[], value: b): a[] { +>append : (values: a[], value: b) => a[] +>a : a +>b : b +>a : a +>values : a[] +>a : a +>value : b +>b : b +>a : a + + values.push(value); +>values.push(value) : number +>values.push : (...items: a[]) => number +>values : a[] +>push : (...items: a[]) => number +>value : b + + return values; +>values : a[] +} + +fold( +>fold( [1, 2, 3], [] as [string, string][], (result, value) => append( result, ["", ""] )) : [string, string][] +>fold : (values: a[], result: r, fold: (result: r, value: a) => r) => r + + [1, 2, 3], +>[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number + + [] as [string, string][], +>[] as [string, string][] : [string, string][] +>[] : undefined[] + + (result, value) => append( +>(result, value) => append( result, ["", ""] ) : (result: [string, string][], value: number) => [string, string][] +>result : [string, string][] +>value : number +>append( result, ["", ""] ) : [string, string][] +>append : (values: a[], value: b) => a[] + + result, +>result : [string, string][] + + ["", ""] +>["", ""] : [string, string] +>"" : string +>"" : string + + ) +); + diff --git a/tests/baselines/reference/typeInferenceReturnTypeCallback.js b/tests/baselines/reference/typeInferenceReturnTypeCallback.js index 1368366f94f..6de0cb5524c 100644 --- a/tests/baselines/reference/typeInferenceReturnTypeCallback.js +++ b/tests/baselines/reference/typeInferenceReturnTypeCallback.js @@ -29,7 +29,7 @@ var Nil = (function () { return null; }; return Nil; -})(); +}()); var Cons = (function () { function Cons() { } @@ -42,4 +42,4 @@ var Cons = (function () { return null; }; return Cons; -})(); +}()); diff --git a/tests/baselines/reference/typeMatch1.js b/tests/baselines/reference/typeMatch1.js index 9f62a9958b4..f78cb04f285 100644 --- a/tests/baselines/reference/typeMatch1.js +++ b/tests/baselines/reference/typeMatch1.js @@ -35,12 +35,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function () { function D() { } return D; -})(); +}()); var x6 = new C(); var x7 = new D(); x6 = x7; diff --git a/tests/baselines/reference/typeMatch2.js b/tests/baselines/reference/typeMatch2.js index c4550750ca2..57ba67752e2 100644 --- a/tests/baselines/reference/typeMatch2.js +++ b/tests/baselines/reference/typeMatch2.js @@ -61,14 +61,14 @@ var Animal = (function () { function Animal() { } return Animal; -})(); +}()); var Giraffe = (function (_super) { __extends(Giraffe, _super); function Giraffe() { _super.apply(this, arguments); } return Giraffe; -})(Animal); +}(Animal)); function f2() { var a = new Animal(); var g = new Giraffe(); diff --git a/tests/baselines/reference/typeName1.js b/tests/baselines/reference/typeName1.js index 4448e9cb8a8..3d65ccd6d00 100644 --- a/tests/baselines/reference/typeName1.js +++ b/tests/baselines/reference/typeName1.js @@ -32,7 +32,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var x1 = 3; var x2 = 3; var x3 = 3; diff --git a/tests/baselines/reference/typeOfPrototype.js b/tests/baselines/reference/typeOfPrototype.js index 8ab4392438e..3e8b3186936 100644 --- a/tests/baselines/reference/typeOfPrototype.js +++ b/tests/baselines/reference/typeOfPrototype.js @@ -13,5 +13,5 @@ var Foo = (function () { } Foo.bar = ''; return Foo; -})(); +}()); Foo.prototype.bar = undefined; // Should be OK diff --git a/tests/baselines/reference/typeOfSuperCall.js b/tests/baselines/reference/typeOfSuperCall.js index 72cdd7d528e..94215d4ae1b 100644 --- a/tests/baselines/reference/typeOfSuperCall.js +++ b/tests/baselines/reference/typeOfSuperCall.js @@ -18,11 +18,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { var x = _super.call(this); } return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/typeOfThis.js b/tests/baselines/reference/typeOfThis.js index 7de34712e15..c1febeae4e4 100644 --- a/tests/baselines/reference/typeOfThis.js +++ b/tests/baselines/reference/typeOfThis.js @@ -248,7 +248,7 @@ var MyTestClass = (function () { configurable: true }); return MyTestClass; -})(); +}()); var MyGenericTestClass = (function () { function MyGenericTestClass() { var _this = this; @@ -318,7 +318,7 @@ var MyGenericTestClass = (function () { configurable: true }); return MyGenericTestClass; -})(); +}()); //type of 'this' in a function declaration param list is Any function fn(s) { if (s === void 0) { s = this; } diff --git a/tests/baselines/reference/typeOfThisInAccessor.js b/tests/baselines/reference/typeOfThisInAccessor.js index 34d1bfaf2d0..eff26c713d7 100644 --- a/tests/baselines/reference/typeOfThisInAccessor.js +++ b/tests/baselines/reference/typeOfThisInAccessor.js @@ -52,7 +52,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var D = (function () { function D() { } @@ -73,7 +73,7 @@ var D = (function () { configurable: true }); return D; -})(); +}()); var x = { get a() { var r3 = this; // any diff --git a/tests/baselines/reference/typeOfThisInConstructorParamList.js b/tests/baselines/reference/typeOfThisInConstructorParamList.js index feabb8dbd13..bee1710ca58 100644 --- a/tests/baselines/reference/typeOfThisInConstructorParamList.js +++ b/tests/baselines/reference/typeOfThisInConstructorParamList.js @@ -14,4 +14,4 @@ var ErrClass = (function () { if (f === void 0) { f = this; } } return ErrClass; -})(); +}()); diff --git a/tests/baselines/reference/typeOfThisInFunctionExpression.js b/tests/baselines/reference/typeOfThisInFunctionExpression.js index 83bad9e6d1a..9fafdcd11b6 100644 --- a/tests/baselines/reference/typeOfThisInFunctionExpression.js +++ b/tests/baselines/reference/typeOfThisInFunctionExpression.js @@ -71,7 +71,7 @@ var C = (function () { }; } return C; -})(); +}()); var M; (function (M) { function fn() { diff --git a/tests/baselines/reference/typeOfThisInInstanceMember.js b/tests/baselines/reference/typeOfThisInInstanceMember.js index 5e4b4f2970d..fce84290d5e 100644 --- a/tests/baselines/reference/typeOfThisInInstanceMember.js +++ b/tests/baselines/reference/typeOfThisInInstanceMember.js @@ -52,7 +52,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var c; // all ok var r = c.x; diff --git a/tests/baselines/reference/typeOfThisInInstanceMember2.js b/tests/baselines/reference/typeOfThisInInstanceMember2.js index b2b81ce3a23..2b8867e7ec8 100644 --- a/tests/baselines/reference/typeOfThisInInstanceMember2.js +++ b/tests/baselines/reference/typeOfThisInInstanceMember2.js @@ -56,7 +56,7 @@ var C = (function () { configurable: true }); return C; -})(); +}()); var c; // all ok var r = c.x; diff --git a/tests/baselines/reference/typeOfThisInMemberFunctions.js b/tests/baselines/reference/typeOfThisInMemberFunctions.js index 3ac02393740..9ef1e3a4d7d 100644 --- a/tests/baselines/reference/typeOfThisInMemberFunctions.js +++ b/tests/baselines/reference/typeOfThisInMemberFunctions.js @@ -42,7 +42,7 @@ var C = (function () { var r2 = this; }; return C; -})(); +}()); var D = (function () { function D() { } @@ -53,7 +53,7 @@ var D = (function () { var r2 = this; }; return D; -})(); +}()); var E = (function () { function E() { } @@ -64,4 +64,4 @@ var E = (function () { var r2 = this; }; return E; -})(); +}()); diff --git a/tests/baselines/reference/typeOfThisInStaticMembers.js b/tests/baselines/reference/typeOfThisInStaticMembers.js index 17754171ab3..039693224b7 100644 --- a/tests/baselines/reference/typeOfThisInStaticMembers.js +++ b/tests/baselines/reference/typeOfThisInStaticMembers.js @@ -44,7 +44,7 @@ var C = (function () { return this; }; return C; -})(); +}()); var t = C.bar(); // all ok var r2 = t.foo + 1; @@ -59,7 +59,7 @@ var C2 = (function () { return this; }; return C2; -})(); +}()); var t2 = C2.bar(); // all ok var r5 = t2.foo + 1; diff --git a/tests/baselines/reference/typeOfThisInStaticMembers2.js b/tests/baselines/reference/typeOfThisInStaticMembers2.js index 9de5695640d..b01770446be 100644 --- a/tests/baselines/reference/typeOfThisInStaticMembers2.js +++ b/tests/baselines/reference/typeOfThisInStaticMembers2.js @@ -13,10 +13,10 @@ var C = (function () { } C.foo = this; // error return C; -})(); +}()); var C2 = (function () { function C2() { } C2.foo = this; // error return C2; -})(); +}()); diff --git a/tests/baselines/reference/typeOfThisInStatics.js b/tests/baselines/reference/typeOfThisInStatics.js index 5d59f6d7eb9..01519018ba2 100644 --- a/tests/baselines/reference/typeOfThisInStatics.js +++ b/tests/baselines/reference/typeOfThisInStatics.js @@ -26,4 +26,4 @@ var C = (function () { configurable: true }); return C; -})(); +}()); diff --git a/tests/baselines/reference/typeParamExtendsOtherTypeParam.errors.txt b/tests/baselines/reference/typeParamExtendsOtherTypeParam.errors.txt index f943eaf5fa5..9b385964c71 100644 --- a/tests/baselines/reference/typeParamExtendsOtherTypeParam.errors.txt +++ b/tests/baselines/reference/typeParamExtendsOtherTypeParam.errors.txt @@ -1,14 +1,25 @@ -tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(1,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(2,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(12,26): error TS2344: Type '{ b: string; }' does not satisfy the constraint '{ a: string; }'. + Property 'a' is missing in type '{ b: string; }'. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(13,26): error TS2344: Type '{ a: number; }' does not satisfy the constraint '{ a: string; }'. + Types of property 'a' are incompatible. + Type 'number' is not assignable to type 'string'. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(14,26): error TS2344: Type '{ b: string; }' does not satisfy the constraint '{ a: string; }'. + Property 'a' is missing in type '{ b: string; }'. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(15,26): error TS2344: Type '{ a: number; }' does not satisfy the constraint '{ a: string; }'. + Types of property 'a' are incompatible. + Type 'number' is not assignable to type 'string'. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(16,37): error TS2344: Type '{ a: string; }' does not satisfy the constraint '{ a: string; b: number; }'. + Property 'b' is missing in type '{ a: string; }'. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(17,37): error TS2344: Type '{ a: string; }' does not satisfy the constraint '{ a: string; b: number; }'. + Property 'b' is missing in type '{ a: string; }'. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(28,15): error TS2344: Type 'I1' does not satisfy the constraint 'I2'. + Property 'b' is missing in type 'I1'. +tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(29,15): error TS2344: Type 'I1' does not satisfy the constraint 'I2'. -==== tests/cases/compiler/typeParamExtendsOtherTypeParam.ts (2 errors) ==== +==== tests/cases/compiler/typeParamExtendsOtherTypeParam.ts (8 errors) ==== class A { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. class B { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. data: A; } @@ -19,11 +30,31 @@ tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(2,27): error TS2313: Cons // Below should be in error var x1: A<{ a: string;}, { b: string }>; + ~~~~~~~~~~~~~ +!!! error TS2344: Type '{ b: string; }' does not satisfy the constraint '{ a: string; }'. +!!! error TS2344: Property 'a' is missing in type '{ b: string; }'. var x2: A<{ a: string;}, { a: number }>; + ~~~~~~~~~~~~~ +!!! error TS2344: Type '{ a: number; }' does not satisfy the constraint '{ a: string; }'. +!!! error TS2344: Types of property 'a' are incompatible. +!!! error TS2344: Type 'number' is not assignable to type 'string'. var x3: B<{ a: string;}, { b: string }>; + ~~~~~~~~~~~~~ +!!! error TS2344: Type '{ b: string; }' does not satisfy the constraint '{ a: string; }'. +!!! error TS2344: Property 'a' is missing in type '{ b: string; }'. var x4: B<{ a: string;}, { a: number }>; + ~~~~~~~~~~~~~ +!!! error TS2344: Type '{ a: number; }' does not satisfy the constraint '{ a: string; }'. +!!! error TS2344: Types of property 'a' are incompatible. +!!! error TS2344: Type 'number' is not assignable to type 'string'. var x5: A<{ a: string; b: number }, { a: string }>; + ~~~~~~~~~~~~~ +!!! error TS2344: Type '{ a: string; }' does not satisfy the constraint '{ a: string; b: number; }'. +!!! error TS2344: Property 'b' is missing in type '{ a: string; }'. var x6: B<{ a: string; b: number }, { a: string }>; + ~~~~~~~~~~~~~ +!!! error TS2344: Type '{ a: string; }' does not satisfy the constraint '{ a: string; b: number; }'. +!!! error TS2344: Property 'b' is missing in type '{ a: string; }'. interface I1 { a: string; @@ -35,5 +66,10 @@ tests/cases/compiler/typeParamExtendsOtherTypeParam.ts(2,27): error TS2313: Cons } var x7: A; + ~~ +!!! error TS2344: Type 'I1' does not satisfy the constraint 'I2'. +!!! error TS2344: Property 'b' is missing in type 'I1'. var x8: B; + ~~ +!!! error TS2344: Type 'I1' does not satisfy the constraint 'I2'. \ No newline at end of file diff --git a/tests/baselines/reference/typeParamExtendsOtherTypeParam.js b/tests/baselines/reference/typeParamExtendsOtherTypeParam.js index 36a83bab712..70c6aa84370 100644 --- a/tests/baselines/reference/typeParamExtendsOtherTypeParam.js +++ b/tests/baselines/reference/typeParamExtendsOtherTypeParam.js @@ -35,12 +35,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var B = (function () { function B() { } return B; -})(); +}()); // Below 2 should compile without error var x; var y; diff --git a/tests/baselines/reference/typeParameterAsBaseClass.js b/tests/baselines/reference/typeParameterAsBaseClass.js index f17db28f657..a01b6a0cac2 100644 --- a/tests/baselines/reference/typeParameterAsBaseClass.js +++ b/tests/baselines/reference/typeParameterAsBaseClass.js @@ -14,9 +14,9 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(T); +}(T)); var C2 = (function () { function C2() { } return C2; -})(); +}()); diff --git a/tests/baselines/reference/typeParameterAsBaseType.js b/tests/baselines/reference/typeParameterAsBaseType.js index de9a0ed2587..9c3a9bcfcd0 100644 --- a/tests/baselines/reference/typeParameterAsBaseType.js +++ b/tests/baselines/reference/typeParameterAsBaseType.js @@ -24,11 +24,11 @@ var C = (function (_super) { _super.apply(this, arguments); } return C; -})(T); +}(T)); var C2 = (function (_super) { __extends(C2, _super); function C2() { _super.apply(this, arguments); } return C2; -})(U); +}(U)); diff --git a/tests/baselines/reference/typeParameterAsTypeArgument.js b/tests/baselines/reference/typeParameterAsTypeArgument.js index cc9bd485852..957177c2735 100644 --- a/tests/baselines/reference/typeParameterAsTypeArgument.js +++ b/tests/baselines/reference/typeParameterAsTypeArgument.js @@ -38,7 +38,7 @@ var C = (function () { function C() { } return C; -})(); +}()); //function foo(x: T, y: U) { // foo(y, y); // return new C(); diff --git a/tests/baselines/reference/typeParameterAsTypeParameterConstraint.errors.txt b/tests/baselines/reference/typeParameterAsTypeParameterConstraint.errors.txt deleted file mode 100644 index b4f8e7544ff..00000000000 --- a/tests/baselines/reference/typeParameterAsTypeParameterConstraint.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint.ts(4,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint.ts(21,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint.ts (2 errors) ==== - // using a type parameter as a constraint for a type parameter is valid - // no errors expected except illegal constraints - - function foo(x: T, y: U): U { return y; } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - var r = foo(1, 2); - var r = foo({}, 1); - - interface A { - foo: string; - } - interface B extends A { - bar: number; - } - var a: A; - var b: B; - - var r2 = foo(a, b); - var r3 = foo({ x: 1 }, { x: 2, y: 3 }); - - function foo2(x: T, y: U) { return y; } - ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - foo2(1, ''); - foo2({}, { length: 2 }); - foo2(1, { width: 3, length: 2 }); - foo2(1, []); - foo2(1, ['']); \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterAsTypeParameterConstraint.symbols b/tests/baselines/reference/typeParameterAsTypeParameterConstraint.symbols new file mode 100644 index 00000000000..569b37e64d1 --- /dev/null +++ b/tests/baselines/reference/typeParameterAsTypeParameterConstraint.symbols @@ -0,0 +1,88 @@ +=== tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint.ts === +// using a type parameter as a constraint for a type parameter is valid +// no errors expected except illegal constraints + +function foo(x: T, y: U): U { return y; } +>foo : Symbol(foo, Decl(typeParameterAsTypeParameterConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 13)) +>U : Symbol(U, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 15)) +>T : Symbol(T, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 13)) +>x : Symbol(x, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 29)) +>T : Symbol(T, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 13)) +>y : Symbol(y, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 34)) +>U : Symbol(U, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 15)) +>U : Symbol(U, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 15)) +>y : Symbol(y, Decl(typeParameterAsTypeParameterConstraint.ts, 3, 34)) + +var r = foo(1, 2); +>r : Symbol(r, Decl(typeParameterAsTypeParameterConstraint.ts, 5, 3), Decl(typeParameterAsTypeParameterConstraint.ts, 6, 3)) +>foo : Symbol(foo, Decl(typeParameterAsTypeParameterConstraint.ts, 0, 0)) + +var r = foo({}, 1); +>r : Symbol(r, Decl(typeParameterAsTypeParameterConstraint.ts, 5, 3), Decl(typeParameterAsTypeParameterConstraint.ts, 6, 3)) +>foo : Symbol(foo, Decl(typeParameterAsTypeParameterConstraint.ts, 0, 0)) + +interface A { +>A : Symbol(A, Decl(typeParameterAsTypeParameterConstraint.ts, 6, 19)) + + foo: string; +>foo : Symbol(foo, Decl(typeParameterAsTypeParameterConstraint.ts, 8, 13)) +} +interface B extends A { +>B : Symbol(B, Decl(typeParameterAsTypeParameterConstraint.ts, 10, 1)) +>A : Symbol(A, Decl(typeParameterAsTypeParameterConstraint.ts, 6, 19)) + + bar: number; +>bar : Symbol(bar, Decl(typeParameterAsTypeParameterConstraint.ts, 11, 23)) +} +var a: A; +>a : Symbol(a, Decl(typeParameterAsTypeParameterConstraint.ts, 14, 3)) +>A : Symbol(A, Decl(typeParameterAsTypeParameterConstraint.ts, 6, 19)) + +var b: B; +>b : Symbol(b, Decl(typeParameterAsTypeParameterConstraint.ts, 15, 3)) +>B : Symbol(B, Decl(typeParameterAsTypeParameterConstraint.ts, 10, 1)) + +var r2 = foo(a, b); +>r2 : Symbol(r2, Decl(typeParameterAsTypeParameterConstraint.ts, 17, 3)) +>foo : Symbol(foo, Decl(typeParameterAsTypeParameterConstraint.ts, 0, 0)) +>a : Symbol(a, Decl(typeParameterAsTypeParameterConstraint.ts, 14, 3)) +>b : Symbol(b, Decl(typeParameterAsTypeParameterConstraint.ts, 15, 3)) + +var r3 = foo({ x: 1 }, { x: 2, y: 3 }); +>r3 : Symbol(r3, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 3)) +>foo : Symbol(foo, Decl(typeParameterAsTypeParameterConstraint.ts, 0, 0)) +>x : Symbol(x, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 14)) +>x : Symbol(x, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 24)) +>y : Symbol(y, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 30)) + +function foo2(x: T, y: U) { return y; } +>foo2 : Symbol(foo2, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 39)) +>T : Symbol(T, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 14)) +>U : Symbol(U, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 16)) +>length : Symbol(length, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 28)) +>T : Symbol(T, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 14)) +>x : Symbol(x, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 42)) +>T : Symbol(T, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 14)) +>y : Symbol(y, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 47)) +>U : Symbol(U, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 16)) +>y : Symbol(y, Decl(typeParameterAsTypeParameterConstraint.ts, 20, 47)) + +foo2(1, ''); +>foo2 : Symbol(foo2, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 39)) + +foo2({}, { length: 2 }); +>foo2 : Symbol(foo2, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 39)) +>length : Symbol(length, Decl(typeParameterAsTypeParameterConstraint.ts, 22, 10)) + +foo2(1, { width: 3, length: 2 }); +>foo2 : Symbol(foo2, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 39)) +>width : Symbol(width, Decl(typeParameterAsTypeParameterConstraint.ts, 23, 9)) +>length : Symbol(length, Decl(typeParameterAsTypeParameterConstraint.ts, 23, 19)) + +foo2(1, []); +>foo2 : Symbol(foo2, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 39)) + +foo2(1, ['']); +>foo2 : Symbol(foo2, Decl(typeParameterAsTypeParameterConstraint.ts, 18, 39)) + diff --git a/tests/baselines/reference/typeParameterAsTypeParameterConstraint.types b/tests/baselines/reference/typeParameterAsTypeParameterConstraint.types new file mode 100644 index 00000000000..c5f15f1ba55 --- /dev/null +++ b/tests/baselines/reference/typeParameterAsTypeParameterConstraint.types @@ -0,0 +1,120 @@ +=== tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint.ts === +// using a type parameter as a constraint for a type parameter is valid +// no errors expected except illegal constraints + +function foo(x: T, y: U): U { return y; } +>foo : (x: T, y: U) => U +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U +>U : U +>y : U + +var r = foo(1, 2); +>r : number +>foo(1, 2) : number +>foo : (x: T, y: U) => U +>1 : number +>2 : number + +var r = foo({}, 1); +>r : number +>foo({}, 1) : number +>foo : (x: T, y: U) => U +>{} : {} +>1 : number + +interface A { +>A : A + + foo: string; +>foo : string +} +interface B extends A { +>B : B +>A : A + + bar: number; +>bar : number +} +var a: A; +>a : A +>A : A + +var b: B; +>b : B +>B : B + +var r2 = foo(a, b); +>r2 : B +>foo(a, b) : B +>foo : (x: T, y: U) => U +>a : A +>b : B + +var r3 = foo({ x: 1 }, { x: 2, y: 3 }); +>r3 : { x: number; y: number; } +>foo({ x: 1 }, { x: 2, y: 3 }) : { x: number; y: number; } +>foo : (x: T, y: U) => U +>{ x: 1 } : { x: number; } +>x : number +>1 : number +>{ x: 2, y: 3 } : { x: number; y: number; } +>x : number +>2 : number +>y : number +>3 : number + +function foo2(x: T, y: U) { return y; } +>foo2 : (x: T, y: U) => U +>T : T +>U : U +>length : T +>T : T +>x : T +>T : T +>y : U +>U : U +>y : U + +foo2(1, ''); +>foo2(1, '') : string +>foo2 : (x: T, y: U) => U +>1 : number +>'' : string + +foo2({}, { length: 2 }); +>foo2({}, { length: 2 }) : { length: number; } +>foo2 : (x: T, y: U) => U +>{} : {} +>{ length: 2 } : { length: number; } +>length : number +>2 : number + +foo2(1, { width: 3, length: 2 }); +>foo2(1, { width: 3, length: 2 }) : { width: number; length: number; } +>foo2 : (x: T, y: U) => U +>1 : number +>{ width: 3, length: 2 } : { width: number; length: number; } +>width : number +>3 : number +>length : number +>2 : number + +foo2(1, []); +>foo2(1, []) : any[] +>foo2 : (x: T, y: U) => U +>1 : number +>[] : undefined[] + +foo2(1, ['']); +>foo2(1, ['']) : string[] +>foo2 : (x: T, y: U) => U +>1 : number +>[''] : string[] +>'' : string + diff --git a/tests/baselines/reference/typeParameterAsTypeParameterConstraint2.errors.txt b/tests/baselines/reference/typeParameterAsTypeParameterConstraint2.errors.txt index 8652bb7aee5..282e942e0f7 100644 --- a/tests/baselines/reference/typeParameterAsTypeParameterConstraint2.errors.txt +++ b/tests/baselines/reference/typeParameterAsTypeParameterConstraint2.errors.txt @@ -1,27 +1,53 @@ -tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(4,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(15,18): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(6,8): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. +tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(7,8): error TS2345: Argument of type '{}' is not assignable to parameter of type 'number'. +tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(13,17): error TS2345: Argument of type 'NumberVariant' is not assignable to parameter of type 'number'. +tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(16,9): error TS2345: Argument of type '{ length: string; }' is not assignable to parameter of type '{ length: number; }'. + Types of property 'length' are incompatible. + Type 'string' is not assignable to type 'number'. +tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(17,9): error TS2345: Argument of type '{ length: {}; }' is not assignable to parameter of type '{ length: number; }'. + Types of property 'length' are incompatible. + Type '{}' is not assignable to type 'number'. +tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts(18,10): error TS2345: Argument of type 'string[]' is not assignable to parameter of type '{ length: any[]; }'. + Types of property 'length' are incompatible. + Type 'number' is not assignable to type 'any[]'. + Property 'length' is missing in type 'Number'. -==== tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts (2 errors) ==== +==== tests/cases/conformance/types/typeParameters/typeArgumentLists/typeParameterAsTypeParameterConstraint2.ts (6 errors) ==== // using a type parameter as a constraint for a type parameter is invalid // these should be errors unless otherwise noted function foo(x: T, y: U): U { return y; } // this is now an error - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo(1, ''); + ~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. foo(1, {}); + ~~ +!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'number'. interface NumberVariant extends Number { x: number; } var n: NumberVariant; var r3 = foo(1, n); + ~ +!!! error TS2345: Argument of type 'NumberVariant' is not assignable to parameter of type 'number'. function foo2(x: T, y: U) { return y; } // this is now an error - ~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. foo2(1, { length: '' }); + ~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '{ length: string; }' is not assignable to parameter of type '{ length: number; }'. +!!! error TS2345: Types of property 'length' are incompatible. +!!! error TS2345: Type 'string' is not assignable to type 'number'. foo2(1, { length: {} }); - foo2([], ['']); \ No newline at end of file + ~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '{ length: {}; }' is not assignable to parameter of type '{ length: number; }'. +!!! error TS2345: Types of property 'length' are incompatible. +!!! error TS2345: Type '{}' is not assignable to type 'number'. + foo2([], ['']); + ~~~~ +!!! error TS2345: Argument of type 'string[]' is not assignable to parameter of type '{ length: any[]; }'. +!!! error TS2345: Types of property 'length' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'any[]'. +!!! error TS2345: Property 'length' is missing in type 'Number'. \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterAssignability2.errors.txt b/tests/baselines/reference/typeParameterAssignability2.errors.txt index ab8803e0478..e6159fd7135 100644 --- a/tests/baselines/reference/typeParameterAssignability2.errors.txt +++ b/tests/baselines/reference/typeParameterAssignability2.errors.txt @@ -1,116 +1,78 @@ -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(3,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(4,5): error TS2322: Type 'U' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(5,5): error TS2322: Type 'T' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(8,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(9,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(10,5): error TS2322: Type 'T' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(13,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(13,28): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(14,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(15,5): error TS2322: Type 'T' is not assignable to type 'U'. + Type 'V' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(17,5): error TS2322: Type 'V' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(18,5): error TS2322: Type 'T' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(20,5): error TS2322: Type 'V' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(21,5): error TS2322: Type 'U' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(24,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(24,28): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(25,5): error TS2322: Type 'U' is not assignable to type 'T'. + Type 'V' is not assignable to type 'T'. + Type 'Date' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(26,5): error TS2322: Type 'V' is not assignable to type 'T'. Type 'Date' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(27,5): error TS2322: Type 'Date' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(29,5): error TS2322: Type 'T' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(30,5): error TS2322: Type 'V' is not assignable to type 'U'. Type 'Date' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(31,5): error TS2322: Type 'Date' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(33,5): error TS2322: Type 'T' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(34,5): error TS2322: Type 'U' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(35,5): error TS2322: Type 'Date' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(38,5): error TS2322: Type 'T' is not assignable to type 'Date'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(39,5): error TS2322: Type 'U' is not assignable to type 'Date'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(44,31): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(44,44): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(45,5): error TS2322: Type 'U' is not assignable to type 'T'. + Type 'V' is not assignable to type 'T'. + Type 'Date' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(46,5): error TS2322: Type 'V' is not assignable to type 'T'. Type 'Date' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(47,5): error TS2322: Type 'Date' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(49,5): error TS2322: Type 'T' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(50,5): error TS2322: Type 'V' is not assignable to type 'U'. Type 'Date' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(51,5): error TS2322: Type 'Date' is not assignable to type 'U'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(53,5): error TS2322: Type 'T' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(54,5): error TS2322: Type 'U' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(55,5): error TS2322: Type 'Date' is not assignable to type 'V'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(58,5): error TS2322: Type 'T' is not assignable to type 'Date'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(59,5): error TS2322: Type 'U' is not assignable to type 'Date'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(63,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(64,5): error TS2322: Type 'U' is not assignable to type 'T'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(65,5): error TS2322: Type 'V' is not assignable to type 'T'. -tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(67,5): error TS2322: Type 'T' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(68,5): error TS2322: Type 'V' is not assignable to type 'U'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(70,5): error TS2322: Type 'T' is not assignable to type 'V'. + Type 'U' is not assignable to type 'V'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts(71,5): error TS2322: Type 'U' is not assignable to type 'V'. -==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts (47 errors) ==== +==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typeParameterAssignability2.ts (22 errors) ==== // type parameters are not assignable to one another unless directly or indirectly constrained to one another function foo(t: T, u: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. t = u; // error - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. u = t; // ok ~ !!! error TS2322: Type 'T' is not assignable to type 'U'. } function foo2(t: T, u: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. t = u; // error ~ !!! error TS2322: Type 'U' is not assignable to type 'T'. u = t; // ok - ~ -!!! error TS2322: Type 'T' is not assignable to type 'U'. } function foo3(t: T, u: U, v: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. t = u; // error ~ !!! error TS2322: Type 'U' is not assignable to type 'T'. +!!! error TS2322: Type 'V' is not assignable to type 'T'. u = t; - ~ -!!! error TS2322: Type 'T' is not assignable to type 'U'. t = v; // error ~ !!! error TS2322: Type 'V' is not assignable to type 'T'. v = t; // ok - ~ -!!! error TS2322: Type 'T' is not assignable to type 'V'. u = v; // error ~ !!! error TS2322: Type 'V' is not assignable to type 'U'. v = u; // ok - ~ -!!! error TS2322: Type 'U' is not assignable to type 'V'. } function foo4(t: T, u: U, v: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. t = u; // error ~ !!! error TS2322: Type 'U' is not assignable to type 'T'. +!!! error TS2322: Type 'V' is not assignable to type 'T'. +!!! error TS2322: Type 'Date' is not assignable to type 'T'. t = v; // error ~ !!! error TS2322: Type 'V' is not assignable to type 'T'. @@ -120,8 +82,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typePara !!! error TS2322: Type 'Date' is not assignable to type 'T'. u = t; - ~ -!!! error TS2322: Type 'T' is not assignable to type 'U'. u = v; // error ~ !!! error TS2322: Type 'V' is not assignable to type 'U'. @@ -131,34 +91,24 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typePara !!! error TS2322: Type 'Date' is not assignable to type 'U'. v = t; - ~ -!!! error TS2322: Type 'T' is not assignable to type 'V'. v = u; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'V'. v = new Date(); // ok ~ !!! error TS2322: Type 'Date' is not assignable to type 'V'. var d: Date; d = t; // ok - ~ -!!! error TS2322: Type 'T' is not assignable to type 'Date'. d = u; // ok - ~ -!!! error TS2322: Type 'U' is not assignable to type 'Date'. d = v; // ok } // same as foo4 with different type parameter ordering function foo5(t: T, u: U, v: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. t = u; // error ~ !!! error TS2322: Type 'U' is not assignable to type 'T'. +!!! error TS2322: Type 'V' is not assignable to type 'T'. +!!! error TS2322: Type 'Date' is not assignable to type 'T'. t = v; // error ~ !!! error TS2322: Type 'V' is not assignable to type 'T'. @@ -168,8 +118,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typePara !!! error TS2322: Type 'Date' is not assignable to type 'T'. u = t; - ~ -!!! error TS2322: Type 'T' is not assignable to type 'U'. u = v; // error ~ !!! error TS2322: Type 'V' is not assignable to type 'U'. @@ -179,28 +127,18 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typePara !!! error TS2322: Type 'Date' is not assignable to type 'U'. v = t; - ~ -!!! error TS2322: Type 'T' is not assignable to type 'V'. v = u; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'V'. v = new Date(); // ok ~ !!! error TS2322: Type 'Date' is not assignable to type 'V'. var d: Date; d = t; // ok - ~ -!!! error TS2322: Type 'T' is not assignable to type 'Date'. d = u; // ok - ~ -!!! error TS2322: Type 'U' is not assignable to type 'Date'. d = v; // ok } function foo6(t: T, u: U, v: V) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. t = u; // error ~ !!! error TS2322: Type 'U' is not assignable to type 'T'. @@ -209,8 +147,6 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typePara !!! error TS2322: Type 'V' is not assignable to type 'T'. u = t; // ok - ~ -!!! error TS2322: Type 'T' is not assignable to type 'U'. u = v; // error ~ !!! error TS2322: Type 'V' is not assignable to type 'U'. @@ -218,6 +154,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/typePara v = t; // error ~ !!! error TS2322: Type 'T' is not assignable to type 'V'. +!!! error TS2322: Type 'U' is not assignable to type 'V'. v = u; // error ~ !!! error TS2322: Type 'U' is not assignable to type 'V'. diff --git a/tests/baselines/reference/typeParameterAssignability3.js b/tests/baselines/reference/typeParameterAssignability3.js index b488bcb5ad2..f0391571e2b 100644 --- a/tests/baselines/reference/typeParameterAssignability3.js +++ b/tests/baselines/reference/typeParameterAssignability3.js @@ -31,7 +31,7 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); function foo(t, u) { var a; var b; @@ -51,4 +51,4 @@ var C = (function () { }; } return C; -})(); +}()); diff --git a/tests/baselines/reference/typeParameterAssignmentCompat1.js b/tests/baselines/reference/typeParameterAssignmentCompat1.js index 995213d0807..c7570a7d065 100644 --- a/tests/baselines/reference/typeParameterAssignmentCompat1.js +++ b/tests/baselines/reference/typeParameterAssignmentCompat1.js @@ -36,4 +36,4 @@ var C = (function () { return x; }; return C; -})(); +}()); diff --git a/tests/baselines/reference/typeParameterAssignmentWithConstraints.errors.txt b/tests/baselines/reference/typeParameterAssignmentWithConstraints.errors.txt deleted file mode 100644 index 3ada2e3c375..00000000000 --- a/tests/baselines/reference/typeParameterAssignmentWithConstraints.errors.txt +++ /dev/null @@ -1,14 +0,0 @@ -tests/cases/compiler/typeParameterAssignmentWithConstraints.ts(1,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/typeParameterAssignmentWithConstraints.ts(4,5): error TS2322: Type 'B' is not assignable to type 'A'. - - -==== tests/cases/compiler/typeParameterAssignmentWithConstraints.ts (2 errors) ==== - function f() { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var a: A; - var b: B; - a = b; // Error: Can't convert B to A - ~ -!!! error TS2322: Type 'B' is not assignable to type 'A'. - } \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterAssignmentWithConstraints.symbols b/tests/baselines/reference/typeParameterAssignmentWithConstraints.symbols new file mode 100644 index 00000000000..c5372354532 --- /dev/null +++ b/tests/baselines/reference/typeParameterAssignmentWithConstraints.symbols @@ -0,0 +1,19 @@ +=== tests/cases/compiler/typeParameterAssignmentWithConstraints.ts === +function f() { +>f : Symbol(f, Decl(typeParameterAssignmentWithConstraints.ts, 0, 0)) +>A : Symbol(A, Decl(typeParameterAssignmentWithConstraints.ts, 0, 11)) +>B : Symbol(B, Decl(typeParameterAssignmentWithConstraints.ts, 0, 13)) +>A : Symbol(A, Decl(typeParameterAssignmentWithConstraints.ts, 0, 11)) + + var a: A; +>a : Symbol(a, Decl(typeParameterAssignmentWithConstraints.ts, 1, 7)) +>A : Symbol(A, Decl(typeParameterAssignmentWithConstraints.ts, 0, 11)) + + var b: B; +>b : Symbol(b, Decl(typeParameterAssignmentWithConstraints.ts, 2, 7)) +>B : Symbol(B, Decl(typeParameterAssignmentWithConstraints.ts, 0, 13)) + + a = b; // Error: Can't convert B to A +>a : Symbol(a, Decl(typeParameterAssignmentWithConstraints.ts, 1, 7)) +>b : Symbol(b, Decl(typeParameterAssignmentWithConstraints.ts, 2, 7)) +} diff --git a/tests/baselines/reference/typeParameterAssignmentWithConstraints.types b/tests/baselines/reference/typeParameterAssignmentWithConstraints.types new file mode 100644 index 00000000000..fc7f7e31830 --- /dev/null +++ b/tests/baselines/reference/typeParameterAssignmentWithConstraints.types @@ -0,0 +1,20 @@ +=== tests/cases/compiler/typeParameterAssignmentWithConstraints.ts === +function f() { +>f : () => void +>A : A +>B : B +>A : A + + var a: A; +>a : A +>A : A + + var b: B; +>b : B +>B : B + + a = b; // Error: Can't convert B to A +>a = b : B +>a : A +>b : B +} diff --git a/tests/baselines/reference/typeParameterConstraintInstantiation.js b/tests/baselines/reference/typeParameterConstraintInstantiation.js new file mode 100644 index 00000000000..225536941ca --- /dev/null +++ b/tests/baselines/reference/typeParameterConstraintInstantiation.js @@ -0,0 +1,15 @@ +//// [typeParameterConstraintInstantiation.ts] +// Check that type parameter constraints are properly instantiated + +interface Mapper { + map(f: (item: T) => U): V; +} + +var m: Mapper; +var a = m.map((x: string) => x); // string[] + + +//// [typeParameterConstraintInstantiation.js] +// Check that type parameter constraints are properly instantiated +var m; +var a = m.map(function (x) { return x; }); // string[] diff --git a/tests/baselines/reference/typeParameterConstraintInstantiation.symbols b/tests/baselines/reference/typeParameterConstraintInstantiation.symbols new file mode 100644 index 00000000000..9103d65c0e9 --- /dev/null +++ b/tests/baselines/reference/typeParameterConstraintInstantiation.symbols @@ -0,0 +1,32 @@ +=== tests/cases/compiler/typeParameterConstraintInstantiation.ts === +// Check that type parameter constraints are properly instantiated + +interface Mapper { +>Mapper : Symbol(Mapper, Decl(typeParameterConstraintInstantiation.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterConstraintInstantiation.ts, 2, 17)) + + map(f: (item: T) => U): V; +>map : Symbol(map, Decl(typeParameterConstraintInstantiation.ts, 2, 21)) +>U : Symbol(U, Decl(typeParameterConstraintInstantiation.ts, 3, 8)) +>T : Symbol(T, Decl(typeParameterConstraintInstantiation.ts, 2, 17)) +>V : Symbol(V, Decl(typeParameterConstraintInstantiation.ts, 3, 20)) +>U : Symbol(U, Decl(typeParameterConstraintInstantiation.ts, 3, 8)) +>f : Symbol(f, Decl(typeParameterConstraintInstantiation.ts, 3, 36)) +>item : Symbol(item, Decl(typeParameterConstraintInstantiation.ts, 3, 40)) +>T : Symbol(T, Decl(typeParameterConstraintInstantiation.ts, 2, 17)) +>U : Symbol(U, Decl(typeParameterConstraintInstantiation.ts, 3, 8)) +>V : Symbol(V, Decl(typeParameterConstraintInstantiation.ts, 3, 20)) +} + +var m: Mapper; +>m : Symbol(m, Decl(typeParameterConstraintInstantiation.ts, 6, 3)) +>Mapper : Symbol(Mapper, Decl(typeParameterConstraintInstantiation.ts, 0, 0)) + +var a = m.map((x: string) => x); // string[] +>a : Symbol(a, Decl(typeParameterConstraintInstantiation.ts, 7, 3)) +>m.map : Symbol(Mapper.map, Decl(typeParameterConstraintInstantiation.ts, 2, 21)) +>m : Symbol(m, Decl(typeParameterConstraintInstantiation.ts, 6, 3)) +>map : Symbol(Mapper.map, Decl(typeParameterConstraintInstantiation.ts, 2, 21)) +>x : Symbol(x, Decl(typeParameterConstraintInstantiation.ts, 7, 15)) +>x : Symbol(x, Decl(typeParameterConstraintInstantiation.ts, 7, 15)) + diff --git a/tests/baselines/reference/typeParameterConstraintInstantiation.types b/tests/baselines/reference/typeParameterConstraintInstantiation.types new file mode 100644 index 00000000000..5f806d57ea2 --- /dev/null +++ b/tests/baselines/reference/typeParameterConstraintInstantiation.types @@ -0,0 +1,34 @@ +=== tests/cases/compiler/typeParameterConstraintInstantiation.ts === +// Check that type parameter constraints are properly instantiated + +interface Mapper { +>Mapper : Mapper +>T : T + + map(f: (item: T) => U): V; +>map : (f: (item: T) => U) => V +>U : U +>T : T +>V : V +>U : U +>f : (item: T) => U +>item : T +>T : T +>U : U +>V : V +} + +var m: Mapper; +>m : Mapper +>Mapper : Mapper + +var a = m.map((x: string) => x); // string[] +>a : string[] +>m.map((x: string) => x) : string[] +>m.map : (f: (item: string) => U) => V +>m : Mapper +>map : (f: (item: string) => U) => V +>(x: string) => x : (x: string) => string +>x : string +>x : string + diff --git a/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.errors.txt b/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.errors.txt index 496d0f3f55a..540ad8346a1 100644 --- a/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.errors.txt +++ b/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.errors.txt @@ -1,51 +1,51 @@ -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(3,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(4,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(6,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(7,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(9,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(10,16): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(13,6): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(14,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(17,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(18,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(3,19): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(4,23): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(6,23): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(7,27): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(9,22): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(10,26): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(13,16): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(14,19): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(17,20): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts(18,24): error TS2313: Type parameter 'U' has a circular constraint. ==== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts (10 errors) ==== // all of the below should be errors class C { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. class C2 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. interface I { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. interface I2 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. function f() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. function f2() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. var a: { (): void; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. (): void; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. } var b = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. var b2 = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. \ No newline at end of file + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.js b/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.js index a14e010515b..bf7106c6e37 100644 --- a/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.js +++ b/tests/baselines/reference/typeParameterDirectlyConstrainedToItself.js @@ -24,12 +24,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); function f() { } function f2() { } var a; diff --git a/tests/baselines/reference/typeParameterExtendingUnion1.js b/tests/baselines/reference/typeParameterExtendingUnion1.js index 3027f119fb9..75614f46d21 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion1.js +++ b/tests/baselines/reference/typeParameterExtendingUnion1.js @@ -23,21 +23,21 @@ var Animal = (function () { } Animal.prototype.run = function () { }; return Animal; -})(); +}()); var Cat = (function (_super) { __extends(Cat, _super); function Cat() { _super.apply(this, arguments); } return Cat; -})(Animal); +}(Animal)); var Dog = (function (_super) { __extends(Dog, _super); function Dog() { _super.apply(this, arguments); } return Dog; -})(Animal); +}(Animal)); function run(a) { a.run(); } diff --git a/tests/baselines/reference/typeParameterExtendingUnion2.js b/tests/baselines/reference/typeParameterExtendingUnion2.js index 55f6d3e07e2..b32c43bc5ec 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion2.js +++ b/tests/baselines/reference/typeParameterExtendingUnion2.js @@ -23,21 +23,21 @@ var Animal = (function () { } Animal.prototype.run = function () { }; return Animal; -})(); +}()); var Cat = (function (_super) { __extends(Cat, _super); function Cat() { _super.apply(this, arguments); } return Cat; -})(Animal); +}(Animal)); var Dog = (function (_super) { __extends(Dog, _super); function Dog() { _super.apply(this, arguments); } return Dog; -})(Animal); +}(Animal)); function run(a) { a.run(); } diff --git a/tests/baselines/reference/typeParameterHasSelfAsConstraint.errors.txt b/tests/baselines/reference/typeParameterHasSelfAsConstraint.errors.txt index 409aa5ebfb6..b459534080f 100644 --- a/tests/baselines/reference/typeParameterHasSelfAsConstraint.errors.txt +++ b/tests/baselines/reference/typeParameterHasSelfAsConstraint.errors.txt @@ -1,11 +1,11 @@ -tests/cases/compiler/typeParameterHasSelfAsConstraint.ts(1,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/compiler/typeParameterHasSelfAsConstraint.ts(1,24): error TS2313: Type parameter 'T' has a circular constraint. tests/cases/compiler/typeParameterHasSelfAsConstraint.ts(2,12): error TS2322: Type 'T' is not assignable to type 'number'. ==== tests/cases/compiler/typeParameterHasSelfAsConstraint.ts (2 errors) ==== function foo(x: T): number { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. return x; ~ !!! error TS2322: Type 'T' is not assignable to type 'number'. diff --git a/tests/baselines/reference/typeParameterInConstraint1.errors.txt b/tests/baselines/reference/typeParameterInConstraint1.errors.txt deleted file mode 100644 index ee8e9dcf37f..00000000000 --- a/tests/baselines/reference/typeParameterInConstraint1.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -tests/cases/compiler/typeParameterInConstraint1.ts(1,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/typeParameterInConstraint1.ts (1 errors) ==== - class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - } \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterInConstraint1.js b/tests/baselines/reference/typeParameterInConstraint1.js index 1cce707112d..d49a72f871a 100644 --- a/tests/baselines/reference/typeParameterInConstraint1.js +++ b/tests/baselines/reference/typeParameterInConstraint1.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/typeParameterInConstraint1.symbols b/tests/baselines/reference/typeParameterInConstraint1.symbols new file mode 100644 index 00000000000..284e73911cf --- /dev/null +++ b/tests/baselines/reference/typeParameterInConstraint1.symbols @@ -0,0 +1,7 @@ +=== tests/cases/compiler/typeParameterInConstraint1.ts === +class C { +>C : Symbol(C, Decl(typeParameterInConstraint1.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterInConstraint1.ts, 0, 8)) +>U : Symbol(U, Decl(typeParameterInConstraint1.ts, 0, 10)) +>T : Symbol(T, Decl(typeParameterInConstraint1.ts, 0, 8)) +} diff --git a/tests/baselines/reference/typeParameterInConstraint1.types b/tests/baselines/reference/typeParameterInConstraint1.types new file mode 100644 index 00000000000..5163f4a053c --- /dev/null +++ b/tests/baselines/reference/typeParameterInConstraint1.types @@ -0,0 +1,7 @@ +=== tests/cases/compiler/typeParameterInConstraint1.ts === +class C { +>C : C +>T : T +>U : U +>T : T +} diff --git a/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.errors.txt b/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.errors.txt index 2b969daf7ee..4cfa9da2133 100644 --- a/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.errors.txt +++ b/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.errors.txt @@ -1,105 +1,102 @@ -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(1,22): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(2,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(2,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(2,36): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(4,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(4,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(5,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(5,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(5,40): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(7,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(7,25): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(8,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(8,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(8,39): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(11,6): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(11,19): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(12,6): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(12,19): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(12,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(15,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(15,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(16,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(16,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(16,37): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(18,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(18,22): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(18,35): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(1,19): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(1,32): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(2,20): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(2,33): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(2,46): error TS2313: Type parameter 'V' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(4,23): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(4,36): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(5,24): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(5,37): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(5,50): error TS2313: Type parameter 'V' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(7,22): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(7,35): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(8,23): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(8,36): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(8,49): error TS2313: Type parameter 'V' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(11,16): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(11,29): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(12,16): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(12,29): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(12,42): error TS2313: Type parameter 'V' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(15,20): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(15,33): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(16,21): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(16,34): error TS2313: Type parameter 'U' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(16,47): error TS2313: Type parameter 'V' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(18,32): error TS2313: Type parameter 'T' has a circular constraint. +tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(18,45): error TS2313: Type parameter 'V' has a circular constraint. -==== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts (28 errors) ==== +==== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts (27 errors) ==== class C { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. class C2 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'V' has a circular constraint. interface I { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. interface I2 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'V' has a circular constraint. function f() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. function f2() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'V' has a circular constraint. var a: { (): void; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. (): void; - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'V' has a circular constraint. } var b = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. var b2 = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'U' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'V' has a circular constraint. class D { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. \ No newline at end of file + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + ~ +!!! error TS2313: Type parameter 'V' has a circular constraint. \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.js b/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.js index 3cdb735adfb..25f410c3a7b 100644 --- a/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.js +++ b/tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.js @@ -23,12 +23,12 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); function f() { } function f2() { } var a; @@ -38,4 +38,4 @@ var D = (function () { function D() { } return D; -})(); +}()); diff --git a/tests/baselines/reference/typeParameterListWithTrailingComma1.js b/tests/baselines/reference/typeParameterListWithTrailingComma1.js index 3891310fcb4..b0121fde8fe 100644 --- a/tests/baselines/reference/typeParameterListWithTrailingComma1.js +++ b/tests/baselines/reference/typeParameterListWithTrailingComma1.js @@ -7,4 +7,4 @@ var C = (function () { function C() { } return C; -})(); +}()); diff --git a/tests/baselines/reference/typeParameterOrderReversal.errors.txt b/tests/baselines/reference/typeParameterOrderReversal.errors.txt deleted file mode 100644 index cb404c8e713..00000000000 --- a/tests/baselines/reference/typeParameterOrderReversal.errors.txt +++ /dev/null @@ -1,22 +0,0 @@ -tests/cases/compiler/typeParameterOrderReversal.ts(6,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/typeParameterOrderReversal.ts(7,20): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/compiler/typeParameterOrderReversal.ts (2 errors) ==== - interface X { - n: T; - } - - // Only difference here is order of type parameters - function uFirst, T>(x: U) { } - ~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function tFirst>(x: U) { } - ~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var z: X = null; - - // Both of these should be allowed - uFirst(z); - tFirst(z); - \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterOrderReversal.symbols b/tests/baselines/reference/typeParameterOrderReversal.symbols new file mode 100644 index 00000000000..6b17ac1da55 --- /dev/null +++ b/tests/baselines/reference/typeParameterOrderReversal.symbols @@ -0,0 +1,42 @@ +=== tests/cases/compiler/typeParameterOrderReversal.ts === +interface X { +>X : Symbol(X, Decl(typeParameterOrderReversal.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterOrderReversal.ts, 0, 12)) + + n: T; +>n : Symbol(n, Decl(typeParameterOrderReversal.ts, 0, 16)) +>T : Symbol(T, Decl(typeParameterOrderReversal.ts, 0, 12)) +} + +// Only difference here is order of type parameters +function uFirst, T>(x: U) { } +>uFirst : Symbol(uFirst, Decl(typeParameterOrderReversal.ts, 2, 1)) +>U : Symbol(U, Decl(typeParameterOrderReversal.ts, 5, 16)) +>X : Symbol(X, Decl(typeParameterOrderReversal.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterOrderReversal.ts, 5, 31)) +>T : Symbol(T, Decl(typeParameterOrderReversal.ts, 5, 31)) +>x : Symbol(x, Decl(typeParameterOrderReversal.ts, 5, 35)) +>U : Symbol(U, Decl(typeParameterOrderReversal.ts, 5, 16)) + +function tFirst>(x: U) { } +>tFirst : Symbol(tFirst, Decl(typeParameterOrderReversal.ts, 5, 44)) +>T : Symbol(T, Decl(typeParameterOrderReversal.ts, 6, 16)) +>U : Symbol(U, Decl(typeParameterOrderReversal.ts, 6, 18)) +>X : Symbol(X, Decl(typeParameterOrderReversal.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterOrderReversal.ts, 6, 16)) +>x : Symbol(x, Decl(typeParameterOrderReversal.ts, 6, 35)) +>U : Symbol(U, Decl(typeParameterOrderReversal.ts, 6, 18)) + +var z: X = null; +>z : Symbol(z, Decl(typeParameterOrderReversal.ts, 7, 3)) +>X : Symbol(X, Decl(typeParameterOrderReversal.ts, 0, 0)) + +// Both of these should be allowed +uFirst(z); +>uFirst : Symbol(uFirst, Decl(typeParameterOrderReversal.ts, 2, 1)) +>z : Symbol(z, Decl(typeParameterOrderReversal.ts, 7, 3)) + +tFirst(z); +>tFirst : Symbol(tFirst, Decl(typeParameterOrderReversal.ts, 5, 44)) +>z : Symbol(z, Decl(typeParameterOrderReversal.ts, 7, 3)) + diff --git a/tests/baselines/reference/typeParameterOrderReversal.types b/tests/baselines/reference/typeParameterOrderReversal.types new file mode 100644 index 00000000000..9b09ea5d6c9 --- /dev/null +++ b/tests/baselines/reference/typeParameterOrderReversal.types @@ -0,0 +1,45 @@ +=== tests/cases/compiler/typeParameterOrderReversal.ts === +interface X { +>X : X +>T : T + + n: T; +>n : T +>T : T +} + +// Only difference here is order of type parameters +function uFirst, T>(x: U) { } +>uFirst : , T>(x: U) => void +>U : U +>X : X +>T : T +>T : T +>x : U +>U : U + +function tFirst>(x: U) { } +>tFirst : >(x: U) => void +>T : T +>U : U +>X : X +>T : T +>x : U +>U : U + +var z: X = null; +>z : X +>X : X +>null : null + +// Both of these should be allowed +uFirst(z); +>uFirst(z) : void +>uFirst : , T>(x: U) => void +>z : X + +tFirst(z); +>tFirst(z) : void +>tFirst : >(x: U) => void +>z : X + diff --git a/tests/baselines/reference/typeParameterUsedAsConstraint.errors.txt b/tests/baselines/reference/typeParameterUsedAsConstraint.errors.txt deleted file mode 100644 index c38900ca00c..00000000000 --- a/tests/baselines/reference/typeParameterUsedAsConstraint.errors.txt +++ /dev/null @@ -1,158 +0,0 @@ -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(1,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(2,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(3,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(4,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(5,10): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(5,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(6,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(6,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(8,16): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(9,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(10,30): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(11,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(12,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(12,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(13,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(13,30): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(15,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(16,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(17,29): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(18,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(19,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(19,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(20,16): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(20,29): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(22,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(23,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(24,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(25,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(26,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(26,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(27,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(27,27): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(29,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(30,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(31,28): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(32,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(33,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(33,25): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(34,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts(34,28): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts (40 errors) ==== - class C { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - class C2 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - class C3 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - class C4 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - class C5 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - class C6 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - interface I { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface I2 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface I3 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface I4 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface I5 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - interface I6 { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - function f() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function f2() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function f3() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function f4() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function f5() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function f6() { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - var e = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var e2 = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var e3 = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var e4 = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var e5 = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var e6 = () => { } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - var a: { (): void } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var a2: { (): void } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var a3: { (): void } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var a4: { (): void } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var a5: { (): void } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - var a6: { (): void } - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterUsedAsConstraint.js b/tests/baselines/reference/typeParameterUsedAsConstraint.js index b1c55343aa0..627eb6cc64e 100644 --- a/tests/baselines/reference/typeParameterUsedAsConstraint.js +++ b/tests/baselines/reference/typeParameterUsedAsConstraint.js @@ -40,32 +40,32 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var C4 = (function () { function C4() { } return C4; -})(); +}()); var C5 = (function () { function C5() { } return C5; -})(); +}()); var C6 = (function () { function C6() { } return C6; -})(); +}()); function f() { } function f2() { } function f3() { } diff --git a/tests/baselines/reference/typeParameterUsedAsConstraint.symbols b/tests/baselines/reference/typeParameterUsedAsConstraint.symbols new file mode 100644 index 00000000000..0b031742e75 --- /dev/null +++ b/tests/baselines/reference/typeParameterUsedAsConstraint.symbols @@ -0,0 +1,211 @@ +=== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts === +class C { } +>C : Symbol(C, Decl(typeParameterUsedAsConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 0, 8)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 0, 10)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 0, 8)) + +class C2 { } +>C2 : Symbol(C2, Decl(typeParameterUsedAsConstraint.ts, 0, 27)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 1, 9)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 1, 21)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 1, 21)) + +class C3 { } +>C3 : Symbol(C3, Decl(typeParameterUsedAsConstraint.ts, 1, 28)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 2, 9)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 2, 24)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 2, 9)) + +class C4 { } +>C4 : Symbol(C4, Decl(typeParameterUsedAsConstraint.ts, 2, 41)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 3, 9)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 3, 21)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 3, 21)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +class C5 { } +>C5 : Symbol(C5, Decl(typeParameterUsedAsConstraint.ts, 3, 41)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 4, 9)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 4, 21)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 4, 21)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 4, 34)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 4, 34)) + +class C6 { } +>C6 : Symbol(C6, Decl(typeParameterUsedAsConstraint.ts, 4, 41)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 5, 9)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 5, 11)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 5, 9)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 5, 24)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 5, 11)) + +interface I { } +>I : Symbol(I, Decl(typeParameterUsedAsConstraint.ts, 5, 41)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 7, 12)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 7, 14)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 7, 12)) + +interface I2 { } +>I2 : Symbol(I2, Decl(typeParameterUsedAsConstraint.ts, 7, 31)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 8, 13)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 8, 25)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 8, 25)) + +interface I3 { } +>I3 : Symbol(I3, Decl(typeParameterUsedAsConstraint.ts, 8, 32)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 9, 13)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 9, 28)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 9, 13)) + +interface I4 { } +>I4 : Symbol(I4, Decl(typeParameterUsedAsConstraint.ts, 9, 45)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 10, 13)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 10, 25)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 10, 25)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +interface I5 { } +>I5 : Symbol(I5, Decl(typeParameterUsedAsConstraint.ts, 10, 45)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 11, 13)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 11, 25)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 11, 25)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 11, 38)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 11, 38)) + +interface I6 { } +>I6 : Symbol(I6, Decl(typeParameterUsedAsConstraint.ts, 11, 45)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 12, 13)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 12, 15)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 12, 13)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 12, 28)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 12, 15)) + +function f() { } +>f : Symbol(f, Decl(typeParameterUsedAsConstraint.ts, 12, 45)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 14, 11)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 14, 13)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 14, 11)) + +function f2() { } +>f2 : Symbol(f2, Decl(typeParameterUsedAsConstraint.ts, 14, 32)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 15, 12)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 15, 24)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 15, 24)) + +function f3() { } +>f3 : Symbol(f3, Decl(typeParameterUsedAsConstraint.ts, 15, 33)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 16, 12)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 16, 27)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 16, 12)) + +function f4() { } +>f4 : Symbol(f4, Decl(typeParameterUsedAsConstraint.ts, 16, 46)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 17, 12)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 17, 24)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 17, 24)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +function f5() { } +>f5 : Symbol(f5, Decl(typeParameterUsedAsConstraint.ts, 17, 46)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 18, 12)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 18, 24)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 18, 24)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 18, 37)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 18, 37)) + +function f6() { } +>f6 : Symbol(f6, Decl(typeParameterUsedAsConstraint.ts, 18, 46)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 19, 12)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 19, 14)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 19, 12)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 19, 27)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 19, 14)) + +var e = () => { } +>e : Symbol(e, Decl(typeParameterUsedAsConstraint.ts, 21, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 21, 9)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 21, 11)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 21, 9)) + +var e2 = () => { } +>e2 : Symbol(e2, Decl(typeParameterUsedAsConstraint.ts, 22, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 22, 10)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 22, 22)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 22, 22)) + +var e3 = () => { } +>e3 : Symbol(e3, Decl(typeParameterUsedAsConstraint.ts, 23, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 23, 10)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 23, 25)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 23, 10)) + +var e4 = () => { } +>e4 : Symbol(e4, Decl(typeParameterUsedAsConstraint.ts, 24, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 24, 10)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 24, 22)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 24, 22)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +var e5 = () => { } +>e5 : Symbol(e5, Decl(typeParameterUsedAsConstraint.ts, 25, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 25, 10)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 25, 22)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 25, 22)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 25, 35)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 25, 35)) + +var e6 = () => { } +>e6 : Symbol(e6, Decl(typeParameterUsedAsConstraint.ts, 26, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 26, 10)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 26, 12)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 26, 10)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 26, 25)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 26, 12)) + +var a: { (): void } +>a : Symbol(a, Decl(typeParameterUsedAsConstraint.ts, 28, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 28, 10)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 28, 12)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 28, 10)) + +var a2: { (): void } +>a2 : Symbol(a2, Decl(typeParameterUsedAsConstraint.ts, 29, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 29, 11)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 29, 23)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 29, 23)) + +var a3: { (): void } +>a3 : Symbol(a3, Decl(typeParameterUsedAsConstraint.ts, 30, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 30, 11)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 30, 26)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 30, 11)) + +var a4: { (): void } +>a4 : Symbol(a4, Decl(typeParameterUsedAsConstraint.ts, 31, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 31, 11)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 31, 23)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 31, 23)) +>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) + +var a5: { (): void } +>a5 : Symbol(a5, Decl(typeParameterUsedAsConstraint.ts, 32, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 32, 11)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 32, 23)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 32, 23)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 32, 36)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 32, 36)) + +var a6: { (): void } +>a6 : Symbol(a6, Decl(typeParameterUsedAsConstraint.ts, 33, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 33, 11)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 33, 13)) +>T : Symbol(T, Decl(typeParameterUsedAsConstraint.ts, 33, 11)) +>V : Symbol(V, Decl(typeParameterUsedAsConstraint.ts, 33, 26)) +>U : Symbol(U, Decl(typeParameterUsedAsConstraint.ts, 33, 13)) + diff --git a/tests/baselines/reference/typeParameterUsedAsConstraint.types b/tests/baselines/reference/typeParameterUsedAsConstraint.types new file mode 100644 index 00000000000..347eeed9009 --- /dev/null +++ b/tests/baselines/reference/typeParameterUsedAsConstraint.types @@ -0,0 +1,217 @@ +=== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts === +class C { } +>C : C +>T : T +>U : U +>T : T + +class C2 { } +>C2 : C2 +>T : T +>U : U +>U : U + +class C3 { } +>C3 : C3 +>T : T +>Date : Date +>U : U +>T : T + +class C4 { } +>C4 : C4 +>T : T +>U : U +>U : U +>Date : Date + +class C5 { } +>C5 : C5 +>T : T +>U : U +>U : U +>V : V +>V : V + +class C6 { } +>C6 : C6 +>T : T +>U : U +>T : T +>V : V +>U : U + +interface I { } +>I : I +>T : T +>U : U +>T : T + +interface I2 { } +>I2 : I2 +>T : T +>U : U +>U : U + +interface I3 { } +>I3 : I3 +>T : T +>Date : Date +>U : U +>T : T + +interface I4 { } +>I4 : I4 +>T : T +>U : U +>U : U +>Date : Date + +interface I5 { } +>I5 : I5 +>T : T +>U : U +>U : U +>V : V +>V : V + +interface I6 { } +>I6 : I6 +>T : T +>U : U +>T : T +>V : V +>U : U + +function f() { } +>f : () => void +>T : T +>U : U +>T : T + +function f2() { } +>f2 : () => void +>T : T +>U : U +>U : U + +function f3() { } +>f3 : () => void +>T : T +>Date : Date +>U : U +>T : T + +function f4() { } +>f4 : () => void +>T : T +>U : U +>U : U +>Date : Date + +function f5() { } +>f5 : () => void +>T : T +>U : U +>U : U +>V : V +>V : V + +function f6() { } +>f6 : () => void +>T : T +>U : U +>T : T +>V : V +>U : U + +var e = () => { } +>e : () => void +>() => { } : () => void +>T : T +>U : U +>T : T + +var e2 = () => { } +>e2 : () => void +>() => { } : () => void +>T : T +>U : U +>U : U + +var e3 = () => { } +>e3 : () => void +>() => { } : () => void +>T : T +>Date : Date +>U : U +>T : T + +var e4 = () => { } +>e4 : () => void +>() => { } : () => void +>T : T +>U : U +>U : U +>Date : Date + +var e5 = () => { } +>e5 : () => void +>() => { } : () => void +>T : T +>U : U +>U : U +>V : V +>V : V + +var e6 = () => { } +>e6 : () => void +>() => { } : () => void +>T : T +>U : U +>T : T +>V : V +>U : U + +var a: { (): void } +>a : () => void +>T : T +>U : U +>T : T + +var a2: { (): void } +>a2 : () => void +>T : T +>U : U +>U : U + +var a3: { (): void } +>a3 : () => void +>T : T +>Date : Date +>U : U +>T : T + +var a4: { (): void } +>a4 : () => void +>T : T +>U : U +>U : U +>Date : Date + +var a5: { (): void } +>a5 : () => void +>T : T +>U : U +>U : U +>V : V +>V : V + +var a6: { (): void } +>a6 : () => void +>T : T +>U : U +>T : T +>V : V +>U : U + diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.errors.txt b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.errors.txt deleted file mode 100644 index 9860b9ac59f..00000000000 --- a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.errors.txt +++ /dev/null @@ -1,88 +0,0 @@ -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(3,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(4,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(5,12): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(8,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(9,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(10,12): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(13,22): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(14,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(15,12): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(18,20): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(19,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(20,12): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(23,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(24,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(25,12): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(28,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(29,5): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts(30,12): error TS2322: Type 'U' is not assignable to type 'T'. - - -==== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts (18 errors) ==== - // Type parameters are in scope in their own and other type parameter lists - - function foo(x: T, y: U): T { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - - function foo2(x: T, y: U): T { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - - var f = function (x: T, y: U): T { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - - var f2 = function (x: T, y: U): T { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - - var f3 = (x: T, y: U): T => { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - - var f4 = (x: T, y: U): T => { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.symbols b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.symbols new file mode 100644 index 00000000000..52ec3d2e29d --- /dev/null +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.symbols @@ -0,0 +1,116 @@ +=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts === +// Type parameters are in scope in their own and other type parameter lists + +function foo(x: T, y: U): T { +>foo : Symbol(foo, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 13)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 15)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 13)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 29)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 13)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 34)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 15)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 13)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 29)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 34)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 2, 34)) +} + +function foo2(x: T, y: U): T { +>foo2 : Symbol(foo2, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 5, 1)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 14)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 26)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 26)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 30)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 26)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 35)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 14)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 26)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 30)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 35)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 7, 35)) +} + +var f = function (x: T, y: U): T { +>f : Symbol(f, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 18)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 20)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 18)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 34)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 18)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 39)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 20)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 18)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 34)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 39)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 12, 39)) +} + +var f2 = function (x: T, y: U): T { +>f2 : Symbol(f2, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 3)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 19)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 31)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 31)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 35)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 31)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 40)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 19)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 31)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 35)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 40)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 17, 40)) +} + +var f3 = (x: T, y: U): T => { +>f3 : Symbol(f3, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 10)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 12)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 10)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 26)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 10)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 31)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 12)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 10)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 26)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 31)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 22, 31)) +} + +var f4 = (x: T, y: U): T => { +>f4 : Symbol(f4, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 3)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 10)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 22)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 22)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 26)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 22)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 31)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 10)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 22)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 26)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 31)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint.ts, 27, 31)) +} diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.types b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.types new file mode 100644 index 00000000000..4b4a05c9e02 --- /dev/null +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint.types @@ -0,0 +1,126 @@ +=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint.ts === +// Type parameters are in scope in their own and other type parameter lists + +function foo(x: T, y: U): T { +>foo : (x: T, y: U) => T +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U +} + +function foo2(x: T, y: U): T { +>foo2 : (x: T, y: U) => T +>U : U +>T : T +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U +} + +var f = function (x: T, y: U): T { +>f : (x: T, y: U) => T +>function (x: T, y: U): T { x = y; return y;} : (x: T, y: U) => T +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U +} + +var f2 = function (x: T, y: U): T { +>f2 : (x: T, y: U) => T +>function (x: T, y: U): T { x = y; return y;} : (x: T, y: U) => T +>U : U +>T : T +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U +} + +var f3 = (x: T, y: U): T => { +>f3 : (x: T, y: U) => T +>(x: T, y: U): T => { x = y; return y;} : (x: T, y: U) => T +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U +} + +var f4 = (x: T, y: U): T => { +>f4 : (x: T, y: U) => T +>(x: T, y: U): T => { x = y; return y;} : (x: T, y: U) => T +>U : U +>T : T +>T : T +>x : T +>T : T +>y : U +>U : U +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U +} diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.errors.txt b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.errors.txt deleted file mode 100644 index 12b90ac8525..00000000000 --- a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.errors.txt +++ /dev/null @@ -1,113 +0,0 @@ -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(4,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(7,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(8,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(13,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(16,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(17,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(22,22): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(25,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(26,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(31,20): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(34,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(35,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(40,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(43,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(44,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(49,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(52,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts(53,20): error TS2322: Type 'U' is not assignable to type 'T'. - - -==== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts (18 errors) ==== - // Type parameters are in scope in their own and other type parameter lists - // Nested local functions - - function foo(x: T, y: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function bar() { - function baz(a: X, b: Y): T { - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - } - } - - function foo2(x: T, y: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function bar() { - function baz(a: X, b: Y): T { - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - } - } - - var f = function (x: T, y: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function bar() { - var g = function (a: X, b: Y): T { - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - } - } - - var f2 = function (x: T, y: U) { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function bar() { - var g = function baz(a: X, b: Y): T { - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - } - } - - var f3 = (x: T, y: U) => { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function bar() { - var g = (a: X, b: Y): T => { - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - } - } - - var f4 = (x: T, y: U) => { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - function bar() { - var g = (a: X, b: Y): T => { - x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. - } - } - } \ No newline at end of file diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.symbols b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.symbols new file mode 100644 index 00000000000..3f19ef8c5f1 --- /dev/null +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.symbols @@ -0,0 +1,238 @@ +=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts === +// Type parameters are in scope in their own and other type parameter lists +// Nested local functions + +function foo(x: T, y: U) { +>foo : Symbol(foo, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 13)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 15)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 13)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 29)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 13)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 34)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 15)) + + function bar() { +>bar : Symbol(bar, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 42)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 4, 17)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 13)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 4, 29)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 15)) + + function baz(a: X, b: Y): T { +>baz : Symbol(baz, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 4, 46)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 5, 21)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 4, 29)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 5, 33)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 4, 17)) +>a : Symbol(a, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 5, 47)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 5, 21)) +>b : Symbol(b, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 5, 52)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 5, 33)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 13)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 29)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 34)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 3, 34)) + } + } +} + +function foo2(x: T, y: U) { +>foo2 : Symbol(foo2, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 10, 1)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 14)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 26)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 26)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 30)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 26)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 35)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 14)) + + function bar() { +>bar : Symbol(bar, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 43)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 13, 17)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 26)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 13, 29)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 14)) + + function baz(a: X, b: Y): T { +>baz : Symbol(baz, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 13, 46)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 14, 21)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 13, 29)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 14, 33)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 13, 17)) +>a : Symbol(a, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 14, 47)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 14, 21)) +>b : Symbol(b, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 14, 52)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 14, 33)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 26)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 30)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 35)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 12, 35)) + } + } +} + +var f = function (x: T, y: U) { +>f : Symbol(f, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 18)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 20)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 18)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 34)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 18)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 39)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 20)) + + function bar() { +>bar : Symbol(bar, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 47)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 22, 17)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 18)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 22, 29)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 20)) + + var g = function (a: X, b: Y): T { +>g : Symbol(g, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 23, 11)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 23, 26)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 22, 29)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 23, 38)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 22, 17)) +>a : Symbol(a, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 23, 52)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 23, 26)) +>b : Symbol(b, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 23, 57)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 23, 38)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 18)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 34)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 39)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 21, 39)) + } + } +} + +var f2 = function (x: T, y: U) { +>f2 : Symbol(f2, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 3)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 19)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 31)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 31)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 35)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 31)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 40)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 19)) + + function bar() { +>bar : Symbol(bar, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 48)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 31, 17)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 31)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 31, 29)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 19)) + + var g = function baz(a: X, b: Y): T { +>g : Symbol(g, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 11)) +>baz : Symbol(baz, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 15)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 29)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 31, 29)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 41)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 31, 17)) +>a : Symbol(a, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 55)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 29)) +>b : Symbol(b, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 60)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 32, 41)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 31)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 35)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 40)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 30, 40)) + } + } +} + +var f3 = (x: T, y: U) => { +>f3 : Symbol(f3, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 3)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 10)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 12)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 10)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 26)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 10)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 31)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 12)) + + function bar() { +>bar : Symbol(bar, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 42)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 40, 17)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 10)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 40, 29)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 12)) + + var g = (a: X, b: Y): T => { +>g : Symbol(g, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 41, 11)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 41, 17)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 40, 29)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 41, 29)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 40, 17)) +>a : Symbol(a, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 41, 43)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 41, 17)) +>b : Symbol(b, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 41, 48)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 41, 29)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 10)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 26)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 31)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 39, 31)) + } + } +} + +var f4 = (x: T, y: U) => { +>f4 : Symbol(f4, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 3)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 10)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 22)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 22)) +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 26)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 22)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 31)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 10)) + + function bar() { +>bar : Symbol(bar, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 42)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 49, 17)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 22)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 49, 29)) +>U : Symbol(U, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 10)) + + var g = (a: X, b: Y): T => { +>g : Symbol(g, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 50, 11)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 50, 17)) +>W : Symbol(W, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 49, 29)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 50, 29)) +>V : Symbol(V, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 49, 17)) +>a : Symbol(a, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 50, 43)) +>X : Symbol(X, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 50, 17)) +>b : Symbol(b, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 50, 48)) +>Y : Symbol(Y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 50, 29)) +>T : Symbol(T, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 22)) + + x = y; +>x : Symbol(x, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 26)) +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 31)) + + return y; +>y : Symbol(y, Decl(typeParameterUsedAsTypeParameterConstraint2.ts, 48, 31)) + } + } +} diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.types b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.types new file mode 100644 index 00000000000..d1e3828a2e1 --- /dev/null +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint2.types @@ -0,0 +1,252 @@ +=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint2.ts === +// Type parameters are in scope in their own and other type parameter lists +// Nested local functions + +function foo(x: T, y: U) { +>foo : (x: T, y: U) => void +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U + + function bar() { +>bar : () => void +>V : V +>T : T +>W : W +>U : U + + function baz(a: X, b: Y): T { +>baz : (a: X, b: Y) => T +>X : X +>W : W +>Y : Y +>V : V +>a : X +>X : X +>b : Y +>Y : Y +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U + } + } +} + +function foo2(x: T, y: U) { +>foo2 : (x: T, y: U) => void +>U : U +>T : T +>T : T +>x : T +>T : T +>y : U +>U : U + + function bar() { +>bar : () => void +>V : V +>T : T +>W : W +>U : U + + function baz(a: X, b: Y): T { +>baz : (a: X, b: Y) => T +>X : X +>W : W +>Y : Y +>V : V +>a : X +>X : X +>b : Y +>Y : Y +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U + } + } +} + +var f = function (x: T, y: U) { +>f : (x: T, y: U) => void +>function (x: T, y: U) { function bar() { var g = function (a: X, b: Y): T { x = y; return y; } }} : (x: T, y: U) => void +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U + + function bar() { +>bar : () => void +>V : V +>T : T +>W : W +>U : U + + var g = function (a: X, b: Y): T { +>g : (a: X, b: Y) => T +>function (a: X, b: Y): T { x = y; return y; } : (a: X, b: Y) => T +>X : X +>W : W +>Y : Y +>V : V +>a : X +>X : X +>b : Y +>Y : Y +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U + } + } +} + +var f2 = function (x: T, y: U) { +>f2 : (x: T, y: U) => void +>function (x: T, y: U) { function bar() { var g = function baz(a: X, b: Y): T { x = y; return y; } }} : (x: T, y: U) => void +>U : U +>T : T +>T : T +>x : T +>T : T +>y : U +>U : U + + function bar() { +>bar : () => void +>V : V +>T : T +>W : W +>U : U + + var g = function baz(a: X, b: Y): T { +>g : (a: X, b: Y) => T +>function baz(a: X, b: Y): T { x = y; return y; } : (a: X, b: Y) => T +>baz : (a: X, b: Y) => T +>X : X +>W : W +>Y : Y +>V : V +>a : X +>X : X +>b : Y +>Y : Y +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U + } + } +} + +var f3 = (x: T, y: U) => { +>f3 : (x: T, y: U) => void +>(x: T, y: U) => { function bar() { var g = (a: X, b: Y): T => { x = y; return y; } }} : (x: T, y: U) => void +>T : T +>U : U +>T : T +>x : T +>T : T +>y : U +>U : U + + function bar() { +>bar : () => void +>V : V +>T : T +>W : W +>U : U + + var g = (a: X, b: Y): T => { +>g : (a: X, b: Y) => T +>(a: X, b: Y): T => { x = y; return y; } : (a: X, b: Y) => T +>X : X +>W : W +>Y : Y +>V : V +>a : X +>X : X +>b : Y +>Y : Y +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U + } + } +} + +var f4 = (x: T, y: U) => { +>f4 : (x: T, y: U) => void +>(x: T, y: U) => { function bar() { var g = (a: X, b: Y): T => { x = y; return y; } }} : (x: T, y: U) => void +>U : U +>T : T +>T : T +>x : T +>T : T +>y : U +>U : U + + function bar() { +>bar : () => void +>V : V +>T : T +>W : W +>U : U + + var g = (a: X, b: Y): T => { +>g : (a: X, b: Y) => T +>(a: X, b: Y): T => { x = y; return y; } : (a: X, b: Y) => T +>X : X +>W : W +>Y : Y +>V : V +>a : X +>X : X +>b : Y +>Y : Y +>T : T + + x = y; +>x = y : U +>x : T +>y : U + + return y; +>y : U + } + } +} diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.errors.txt b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.errors.txt index d78faf74fab..18983107757 100644 --- a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.errors.txt +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.errors.txt @@ -1,57 +1,30 @@ -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(4,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(4,25): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(5,8): error TS2304: Cannot find name 'W'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(8,16): error TS2322: Type 'W' is not assignable to type 'T'. - Type 'V' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(12,16): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(12,29): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(15,8): error TS2304: Cannot find name 'W'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(19,17): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(19,43): error TS2304: Cannot find name 'V'. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(20,47): error TS2304: Cannot find name 'X'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(22,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(23,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(28,15): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(28,44): error TS2304: Cannot find name 'W'. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(29,47): error TS2304: Cannot find name 'Y'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(31,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(32,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(37,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(38,47): error TS2304: Cannot find name 'X'. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(38,53): error TS2304: Cannot find name 'Y'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(40,13): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(41,20): error TS2322: Type 'U' is not assignable to type 'T'. -tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(46,11): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(46,30): error TS2304: Cannot find name 'V'. tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts(46,36): error TS2304: Cannot find name 'X'. -==== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts (25 errors) ==== +==== tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts (10 errors) ==== // Type parameters are in scope in their own and other type parameter lists // Some negative cases class C { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. z: W; // error ~ !!! error TS2304: Cannot find name 'W'. foo(x: W): T { var r: T; return x; - ~ -!!! error TS2322: Type 'W' is not assignable to type 'T'. -!!! error TS2322: Type 'V' is not assignable to type 'T'. } } interface I { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. x: T; y: U; z: W; // error @@ -61,8 +34,6 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsed } function foo(x: T, y: U): V { // error - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~ !!! error TS2304: Cannot find name 'V'. function bar(): X { // error @@ -70,18 +41,12 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsed !!! error TS2304: Cannot find name 'X'. function baz(a: X, b: Y): T { x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. } } } function foo2(x: T, y: U): W { // error - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~ !!! error TS2304: Cannot find name 'W'. function bar(): Y { // error @@ -89,18 +54,12 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsed !!! error TS2304: Cannot find name 'Y'. function baz(a: X, b: Y): T { x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. } } } var f3 = (x: T, y: U) => { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. function bar(r: X, s: Y) { // error ~ !!! error TS2304: Cannot find name 'X'. @@ -108,18 +67,12 @@ tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsed !!! error TS2304: Cannot find name 'Y'. var g = (a: X, b: Y): T => { x = y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. return y; - ~ -!!! error TS2322: Type 'U' is not assignable to type 'T'. } } } var f4 = (x: V, y: X) => { // error - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. ~ !!! error TS2304: Cannot find name 'V'. ~ diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js index 56132d49acc..d78cf2aa366 100644 --- a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js @@ -64,7 +64,7 @@ var C = (function () { return x; }; return C; -})(); +}()); function foo(x, y) { function bar() { function baz(a, b) { diff --git a/tests/baselines/reference/typeParameterWithInvalidConstraintType.errors.txt b/tests/baselines/reference/typeParameterWithInvalidConstraintType.errors.txt index 8201f752e51..79af423f917 100644 --- a/tests/baselines/reference/typeParameterWithInvalidConstraintType.errors.txt +++ b/tests/baselines/reference/typeParameterWithInvalidConstraintType.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/typeParameterWithInvalidConstraintType.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. +tests/cases/compiler/typeParameterWithInvalidConstraintType.ts(1,19): error TS2313: Type parameter 'T' has a circular constraint. ==== tests/cases/compiler/typeParameterWithInvalidConstraintType.ts (1 errors) ==== class A { - ~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. foo() { var x: T; // no error expected below this line diff --git a/tests/baselines/reference/typeParameterWithInvalidConstraintType.js b/tests/baselines/reference/typeParameterWithInvalidConstraintType.js index 4985519911a..a40056f6a59 100644 --- a/tests/baselines/reference/typeParameterWithInvalidConstraintType.js +++ b/tests/baselines/reference/typeParameterWithInvalidConstraintType.js @@ -23,4 +23,4 @@ var A = (function () { var d = x(); }; return A; -})(); +}()); diff --git a/tests/baselines/reference/typeParametersAndParametersInComputedNames.js b/tests/baselines/reference/typeParametersAndParametersInComputedNames.js index 1cb53663fbd..7f2c04c2ec3 100644 --- a/tests/baselines/reference/typeParametersAndParametersInComputedNames.js +++ b/tests/baselines/reference/typeParametersAndParametersInComputedNames.js @@ -18,4 +18,4 @@ var A = (function () { A.prototype[foo(a)] = function (a) { }; return A; -})(); +}()); diff --git a/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js b/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js index c6c624f7e2b..699f3f2f26e 100644 --- a/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js +++ b/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js @@ -92,7 +92,7 @@ var C = (function () { C.prototype.foo3 = function (x) { }; C.prototype.foo4 = function (x) { }; return C; -})(); +}()); var C2 = (function () { function C2() { } @@ -100,4 +100,4 @@ var C2 = (function () { C2.prototype.foo2 = function (a, x) { }; C2.prototype.foo3 = function (x) { }; return C2; -})(); +}()); diff --git a/tests/baselines/reference/typeParametersAvailableInNestedScope.js b/tests/baselines/reference/typeParametersAvailableInNestedScope.js index 7262a867df7..d1b50029d23 100644 --- a/tests/baselines/reference/typeParametersAvailableInNestedScope.js +++ b/tests/baselines/reference/typeParametersAvailableInNestedScope.js @@ -37,7 +37,7 @@ var C = (function () { return temp(null); }; return C; -})(); +}()); var c = new C(); c.data = c.x(null); c.data = c.foo(); diff --git a/tests/baselines/reference/typeParametersInStaticAccessors.js b/tests/baselines/reference/typeParametersInStaticAccessors.js index c621de910bc..d9b33399af1 100644 --- a/tests/baselines/reference/typeParametersInStaticAccessors.js +++ b/tests/baselines/reference/typeParametersInStaticAccessors.js @@ -19,4 +19,4 @@ var foo = (function () { configurable: true }); return foo; -})(); +}()); diff --git a/tests/baselines/reference/typeParametersInStaticMethods.js b/tests/baselines/reference/typeParametersInStaticMethods.js index f0cb2784641..be69c87e599 100644 --- a/tests/baselines/reference/typeParametersInStaticMethods.js +++ b/tests/baselines/reference/typeParametersInStaticMethods.js @@ -11,4 +11,4 @@ var foo = (function () { foo.M = function (x) { }; return foo; -})(); +}()); diff --git a/tests/baselines/reference/typeParametersInStaticProperties.js b/tests/baselines/reference/typeParametersInStaticProperties.js index 5f5b109f8ee..071dbf28dcb 100644 --- a/tests/baselines/reference/typeParametersInStaticProperties.js +++ b/tests/baselines/reference/typeParametersInStaticProperties.js @@ -8,4 +8,4 @@ var foo = (function () { function foo() { } return foo; -})(); +}()); diff --git a/tests/baselines/reference/typeQueryOnClass.js b/tests/baselines/reference/typeQueryOnClass.js index 1c8b2424a7e..85dff0de831 100644 --- a/tests/baselines/reference/typeQueryOnClass.js +++ b/tests/baselines/reference/typeQueryOnClass.js @@ -102,7 +102,7 @@ var C = (function () { C.sa = 1; C.sb = function () { return 1; }; return C; -})(); +}()); var c; // BUG 820454 var r1; @@ -113,7 +113,7 @@ var D = (function () { } D.prototype.foo = function () { }; return D; -})(); +}()); var d; var r3; var r4; diff --git a/tests/baselines/reference/typeQueryWithReservedWords.js b/tests/baselines/reference/typeQueryWithReservedWords.js index e6e7f86541b..7561eeddb75 100644 --- a/tests/baselines/reference/typeQueryWithReservedWords.js +++ b/tests/baselines/reference/typeQueryWithReservedWords.js @@ -26,4 +26,4 @@ var Controller = (function () { Controller.prototype.var = function () { }; return Controller; -})(); +}()); diff --git a/tests/baselines/reference/typeRelationships.js b/tests/baselines/reference/typeRelationships.js index 1e31009f9b7..6f8f1ccd4cc 100644 --- a/tests/baselines/reference/typeRelationships.js +++ b/tests/baselines/reference/typeRelationships.js @@ -68,7 +68,7 @@ var C = (function () { return b ? this.c : this.self; // Should be C }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -91,4 +91,4 @@ var D = (function (_super) { this.c = this.d; }; return D; -})(C); +}(C)); diff --git a/tests/baselines/reference/typeResolution.js b/tests/baselines/reference/typeResolution.js index ed5ae95f23c..cc2bd589bb0 100644 --- a/tests/baselines/reference/typeResolution.js +++ b/tests/baselines/reference/typeResolution.js @@ -147,7 +147,7 @@ define(["require", "exports"], function (require, exports) { d2.XisIn1_1_1(); }; return ClassA; - })(); + }()); SubSubModule1.ClassA = ClassA; var ClassB = (function () { function ClassB() { @@ -180,7 +180,7 @@ define(["require", "exports"], function (require, exports) { d2.XisIn1_1_1(); }; return ClassB; - })(); + }()); SubSubModule1.ClassB = ClassB; var NonExportedClassQ = (function () { function NonExportedClassQ() { @@ -197,7 +197,7 @@ define(["require", "exports"], function (require, exports) { } } return NonExportedClassQ; - })(); + }()); })(SubSubModule1 = SubModule1.SubSubModule1 || (SubModule1.SubSubModule1 = {})); // Should have no effect on S1.SS1.ClassA above because it is not exported var ClassA = (function () { @@ -215,7 +215,7 @@ define(["require", "exports"], function (require, exports) { } } return ClassA; - })(); + }()); })(SubModule1 = TopLevelModule1.SubModule1 || (TopLevelModule1.SubModule1 = {})); var SubModule2; (function (SubModule2) { @@ -227,21 +227,21 @@ define(["require", "exports"], function (require, exports) { } ClassA.prototype.AisIn1_2_2 = function () { }; return ClassA; - })(); + }()); SubSubModule2.ClassA = ClassA; var ClassB = (function () { function ClassB() { } ClassB.prototype.BisIn1_2_2 = function () { }; return ClassB; - })(); + }()); SubSubModule2.ClassB = ClassB; var ClassC = (function () { function ClassC() { } ClassC.prototype.CisIn1_2_2 = function () { }; return ClassC; - })(); + }()); SubSubModule2.ClassC = ClassC; })(SubSubModule2 = SubModule2.SubSubModule2 || (SubModule2.SubSubModule2 = {})); })(SubModule2 = TopLevelModule1.SubModule2 || (TopLevelModule1.SubModule2 = {})); @@ -250,14 +250,14 @@ define(["require", "exports"], function (require, exports) { } ClassA.prototype.AisIn1 = function () { }; return ClassA; - })(); + }()); var NotExportedModule; (function (NotExportedModule) { var ClassA = (function () { function ClassA() { } return ClassA; - })(); + }()); NotExportedModule.ClassA = ClassA; })(NotExportedModule || (NotExportedModule = {})); })(TopLevelModule1 = exports.TopLevelModule1 || (exports.TopLevelModule1 = {})); @@ -270,7 +270,7 @@ define(["require", "exports"], function (require, exports) { } ClassA.prototype.AisIn2_3 = function () { }; return ClassA; - })(); + }()); SubModule3.ClassA = ClassA; })(SubModule3 = TopLevelModule2.SubModule3 || (TopLevelModule2.SubModule3 = {})); })(TopLevelModule2 || (TopLevelModule2 = {})); diff --git a/tests/baselines/reference/typeResolution.js.map b/tests/baselines/reference/typeResolution.js.map index 5fd1e175fa7..7ccf64daf06 100644 --- a/tests/baselines/reference/typeResolution.js.map +++ b/tests/baselines/reference/typeResolution.js.map @@ -1,2 +1,2 @@ //// [typeResolution.js.map] -{"version":3,"file":"typeResolution.js","sourceRoot":"","sources":["typeResolution.ts"],"names":["TopLevelModule1","TopLevelModule1.SubModule1","TopLevelModule1.SubModule1.SubSubModule1","TopLevelModule1.SubModule1.SubSubModule1.ClassA","TopLevelModule1.SubModule1.SubSubModule1.ClassA.constructor","TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1","TopLevelModule1.SubModule1.SubSubModule1.ClassB","TopLevelModule1.SubModule1.SubSubModule1.ClassB.constructor","TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1","TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ","TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor","TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ","TopLevelModule1.SubModule1.ClassA","TopLevelModule1.SubModule1.ClassA.constructor","TopLevelModule1.SubModule1.ClassA.constructor.AA","TopLevelModule1.SubModule2","TopLevelModule1.SubModule2.SubSubModule2","TopLevelModule1.SubModule2.SubSubModule2.ClassA","TopLevelModule1.SubModule2.SubSubModule2.ClassA.constructor","TopLevelModule1.SubModule2.SubSubModule2.ClassA.AisIn1_2_2","TopLevelModule1.SubModule2.SubSubModule2.ClassB","TopLevelModule1.SubModule2.SubSubModule2.ClassB.constructor","TopLevelModule1.SubModule2.SubSubModule2.ClassB.BisIn1_2_2","TopLevelModule1.SubModule2.SubSubModule2.ClassC","TopLevelModule1.SubModule2.SubSubModule2.ClassC.constructor","TopLevelModule1.SubModule2.SubSubModule2.ClassC.CisIn1_2_2","TopLevelModule1.ClassA","TopLevelModule1.ClassA.constructor","TopLevelModule1.ClassA.AisIn1","TopLevelModule1.NotExportedModule","TopLevelModule1.NotExportedModule.ClassA","TopLevelModule1.NotExportedModule.ClassA.constructor","TopLevelModule2","TopLevelModule2.SubModule3","TopLevelModule2.SubModule3.ClassA","TopLevelModule2.SubModule3.ClassA.constructor","TopLevelModule2.SubModule3.ClassA.AisIn2_3"],"mappings":";;IAAA,IAAc,eAAe,CAmG5B;IAnGD,WAAc,eAAe,EAAC,CAAC;QAC3BA,IAAcA,UAAUA,CAwEvBA;QAxEDA,WAAcA,UAAUA,EAACA,CAACA;YACtBC,IAAcA,aAAaA,CAwD1BA;YAxDDA,WAAcA,aAAaA,EAACA,CAACA;gBACzBC;oBAAAC;oBAmBAC,CAACA;oBAlBUD,2BAAUA,GAAjBA;wBACIE,uCAAuCA;wBACvCA,IAAIA,EAAUA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAChCA,IAAIA,EAAwBA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAC9CA,IAAIA,EAAmCA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBACzDA,IAAIA,EAAmDA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAEzEA,yCAAyCA;wBACzCA,IAAIA,EAAUA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAChCA,IAAIA,EAAmDA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAEzEA,qCAAqCA;wBACrCA,IAAIA,EAAmDA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAEzEA,sBAAsBA;wBACtBA,IAAIA,EAAcA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBACpCA,IAAIA,EAA4BA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;oBACtDA,CAACA;oBACLF,aAACA;gBAADA,CAACA,AAnBDD,IAmBCA;gBAnBYA,oBAAMA,SAmBlBA,CAAAA;gBACDA;oBAAAI;oBAsBAC,CAACA;oBArBUD,2BAAUA,GAAjBA;wBACIE,+CAA+CA;wBAE/CA,uCAAuCA;wBACvCA,IAAIA,EAAUA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAChCA,IAAIA,EAAwBA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAC9CA,IAAIA,EAAmCA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBACzDA,IAAIA,EAAmDA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAEzEA,yCAAyCA;wBACzCA,IAAIA,EAAUA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAChCA,IAAIA,EAAmDA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAEzEA,qCAAqCA;wBACrCA,IAAIA,EAAmDA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBACzEA,IAAIA,EAAqCA,CAACA;wBAACA,EAAEA,CAACA,QAAQA,EAAEA,CAACA;wBAEzDA,sBAAsBA;wBACtBA,IAAIA,EAAcA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBACpCA,IAAIA,EAA4BA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;oBACtDA,CAACA;oBACLF,aAACA;gBAADA,CAACA,AAtBDJ,IAsBCA;gBAtBYA,oBAAMA,SAsBlBA,CAAAA;gBAEDA;oBACIO;wBACIC;4BACIC,uCAAuCA;4BACvCA,IAAIA,EAAmDA,CAACA;4BAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;4BACzEA,IAAIA,EAAmDA,CAACA;4BAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;4BACzEA,IAAIA,EAAcA,CAACA;4BAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;4BACpCA,IAAIA,EAAqCA,CAACA;4BAACA,EAAEA,CAACA,QAAQA,EAAEA,CAACA;wBAC7DA,CAACA;oBACLD,CAACA;oBACLD,wBAACA;gBAADA,CAACA,AAVDP,IAUCA;YACLA,CAACA,EAxDaD,aAAaA,GAAbA,wBAAaA,KAAbA,wBAAaA,QAwD1BA;YAEDA,0EAA0EA;YAC1EA;gBACIW;oBACIC;wBACIC,IAAIA,EAAwBA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAC9CA,IAAIA,EAAmCA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBACzDA,IAAIA,EAAmDA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;wBAEzEA,sBAAsBA;wBACtBA,IAAIA,EAA4BA,CAACA;wBAACA,EAAEA,CAACA,UAAUA,EAAEA,CAACA;oBACtDA,CAACA;gBACLD,CAACA;gBACLD,aAACA;YAADA,CAACA,AAXDX,IAWCA;QACLA,CAACA,EAxEaD,UAAUA,GAAVA,0BAAUA,KAAVA,0BAAUA,QAwEvBA;QAEDA,IAAcA,UAAUA,CAWvBA;QAXDA,WAAcA,UAAUA,EAACA,CAACA;YACtBe,IAAcA,aAAaA,CAO1BA;YAPDA,WAAcA,aAAaA,EAACA,CAACA;gBACzBC,6DAA6DA;gBAC7DA;oBAAAC;oBAA8CC,CAACA;oBAAlBD,2BAAUA,GAAjBA,cAAsBE,CAACA;oBAACF,aAACA;gBAADA,CAACA,AAA/CD,IAA+CA;gBAAlCA,oBAAMA,SAA4BA,CAAAA;gBAC/CA;oBAAAI;oBAA8CC,CAACA;oBAAlBD,2BAAUA,GAAjBA,cAAsBE,CAACA;oBAACF,aAACA;gBAADA,CAACA,AAA/CJ,IAA+CA;gBAAlCA,oBAAMA,SAA4BA,CAAAA;gBAC/CA;oBAAAO;oBAA8CC,CAACA;oBAAlBD,2BAAUA,GAAjBA,cAAsBE,CAACA;oBAACF,aAACA;gBAADA,CAACA,AAA/CP,IAA+CA;gBAAlCA,oBAAMA,SAA4BA,CAAAA;YAGnDA,CAACA,EAPaD,aAAaA,GAAbA,wBAAaA,KAAbA,wBAAaA,QAO1BA;QAGLA,CAACA,EAXaf,UAAUA,GAAVA,0BAAUA,KAAVA,0BAAUA,QAWvBA;QAEDA;YAAA0B;YAEAC,CAACA;YADUD,uBAAMA,GAAbA,cAAkBE,CAACA;YACvBF,aAACA;QAADA,CAACA,AAFD1B,IAECA;QAMDA,IAAOA,iBAAiBA,CAEvBA;QAFDA,WAAOA,iBAAiBA,EAACA,CAACA;YACtB6B;gBAAAC;gBAAsBC,CAACA;gBAADD,aAACA;YAADA,CAACA,AAAvBD,IAAuBA;YAAVA,wBAAMA,SAAIA,CAAAA;QAC3BA,CAACA,EAFM7B,iBAAiBA,KAAjBA,iBAAiBA,QAEvBA;IACLA,CAACA,EAnGa,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmG5B;IAED,IAAO,eAAe,CAMrB;IAND,WAAO,eAAe,EAAC,CAAC;QACpBgC,IAAcA,UAAUA,CAIvBA;QAJDA,WAAcA,UAAUA,EAACA,CAACA;YACtBC;gBAAAC;gBAEAC,CAACA;gBADUD,yBAAQA,GAAfA,cAAoBE,CAACA;gBACzBF,aAACA;YAADA,CAACA,AAFDD,IAECA;YAFYA,iBAAMA,SAElBA,CAAAA;QACLA,CAACA,EAJaD,UAAUA,GAAVA,0BAAUA,KAAVA,0BAAUA,QAIvBA;IACLA,CAACA,EANM,eAAe,KAAf,eAAe,QAMrB"} \ No newline at end of file +{"version":3,"file":"typeResolution.js","sourceRoot":"","sources":["typeResolution.ts"],"names":[],"mappings":";;IAAA,IAAc,eAAe,CAmG5B;IAnGD,WAAc,eAAe,EAAC,CAAC;QAC3B,IAAc,UAAU,CAwEvB;QAxED,WAAc,UAAU,EAAC,CAAC;YACtB,IAAc,aAAa,CAwD1B;YAxDD,WAAc,aAAa,EAAC,CAAC;gBACzB;oBAAA;oBAmBA,CAAC;oBAlBU,2BAAU,GAAjB;wBACI,uCAAuC;wBACvC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,yCAAyC;wBACzC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,qCAAqC;wBACrC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,sBAAsB;wBACtB,IAAI,EAAc,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACpC,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;oBACL,aAAC;gBAAD,CAAC,AAnBD,IAmBC;gBAnBY,oBAAM,SAmBlB,CAAA;gBACD;oBAAA;oBAsBA,CAAC;oBArBU,2BAAU,GAAjB;wBACI,+CAA+C;wBAE/C,uCAAuC;wBACvC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,yCAAyC;wBACzC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,qCAAqC;wBACrC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzE,IAAI,EAAqC,CAAC;wBAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;wBAEzD,sBAAsB;wBACtB,IAAI,EAAc,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACpC,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;oBACL,aAAC;gBAAD,CAAC,AAtBD,IAsBC;gBAtBY,oBAAM,SAsBlB,CAAA;gBAED;oBACI;wBACI;4BACI,uCAAuC;4BACvC,IAAI,EAAmD,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACzE,IAAI,EAAmD,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACzE,IAAI,EAAc,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACpC,IAAI,EAAqC,CAAC;4BAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;wBAC7D,CAAC;oBACL,CAAC;oBACL,wBAAC;gBAAD,CAAC,AAVD,IAUC;YACL,CAAC,EAxDa,aAAa,GAAb,wBAAa,KAAb,wBAAa,QAwD1B;YAED,0EAA0E;YAC1E;gBACI;oBACI;wBACI,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,sBAAsB;wBACtB,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;gBACL,CAAC;gBACL,aAAC;YAAD,CAAC,AAXD,IAWC;QACL,CAAC,EAxEa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAwEvB;QAED,IAAc,UAAU,CAWvB;QAXD,WAAc,UAAU,EAAC,CAAC;YACtB,IAAc,aAAa,CAO1B;YAPD,WAAc,aAAa,EAAC,CAAC;gBACzB,6DAA6D;gBAC7D;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;gBAC/C;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;gBAC/C;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;YAGnD,CAAC,EAPa,aAAa,GAAb,wBAAa,KAAb,wBAAa,QAO1B;QAGL,CAAC,EAXa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAWvB;QAED;YAAA;YAEA,CAAC;YADU,uBAAM,GAAb,cAAkB,CAAC;YACvB,aAAC;QAAD,CAAC,AAFD,IAEC;QAMD,IAAO,iBAAiB,CAEvB;QAFD,WAAO,iBAAiB,EAAC,CAAC;YACtB;gBAAA;gBAAsB,CAAC;gBAAD,aAAC;YAAD,CAAC,AAAvB,IAAuB;YAAV,wBAAM,SAAI,CAAA;QAC3B,CAAC,EAFM,iBAAiB,KAAjB,iBAAiB,QAEvB;IACL,CAAC,EAnGa,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmG5B;IAED,IAAO,eAAe,CAMrB;IAND,WAAO,eAAe,EAAC,CAAC;QACpB,IAAc,UAAU,CAIvB;QAJD,WAAc,UAAU,EAAC,CAAC;YACtB;gBAAA;gBAEA,CAAC;gBADU,yBAAQ,GAAf,cAAoB,CAAC;gBACzB,aAAC;YAAD,CAAC,AAFD,IAEC;YAFY,iBAAM,SAElB,CAAA;QACL,CAAC,EAJa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAIvB;IACL,CAAC,EANM,eAAe,KAAf,eAAe,QAMrB"} \ No newline at end of file diff --git a/tests/baselines/reference/typeResolution.sourcemap.txt b/tests/baselines/reference/typeResolution.sourcemap.txt index e58487a7850..2c109916e6c 100644 --- a/tests/baselines/reference/typeResolution.sourcemap.txt +++ b/tests/baselines/reference/typeResolution.sourcemap.txt @@ -224,10 +224,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(5, 9) Source(2, 5) + SourceIndex(0) name (TopLevelModule1) -2 >Emitted(5, 13) Source(2, 19) + SourceIndex(0) name (TopLevelModule1) -3 >Emitted(5, 23) Source(2, 29) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(5, 24) Source(74, 6) + SourceIndex(0) name (TopLevelModule1) +1 >Emitted(5, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(5, 13) Source(2, 19) + SourceIndex(0) +3 >Emitted(5, 23) Source(2, 29) + SourceIndex(0) +4 >Emitted(5, 24) Source(74, 6) + SourceIndex(0) --- >>> (function (SubModule1) { 1->^^^^^^^^ @@ -240,11 +240,11 @@ sourceFile:typeResolution.ts 3 > SubModule1 4 > 5 > { -1->Emitted(6, 9) Source(2, 5) + SourceIndex(0) name (TopLevelModule1) -2 >Emitted(6, 20) Source(2, 19) + SourceIndex(0) name (TopLevelModule1) -3 >Emitted(6, 30) Source(2, 29) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(6, 32) Source(2, 30) + SourceIndex(0) name (TopLevelModule1) -5 >Emitted(6, 33) Source(2, 31) + SourceIndex(0) name (TopLevelModule1) +1->Emitted(6, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(6, 20) Source(2, 19) + SourceIndex(0) +3 >Emitted(6, 30) Source(2, 29) + SourceIndex(0) +4 >Emitted(6, 32) Source(2, 30) + SourceIndex(0) +5 >Emitted(6, 33) Source(2, 31) + SourceIndex(0) --- >>> var SubSubModule1; 1 >^^^^^^^^^^^^ @@ -313,10 +313,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(7, 13) Source(3, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1) -2 >Emitted(7, 17) Source(3, 23) + SourceIndex(0) name (TopLevelModule1.SubModule1) -3 >Emitted(7, 30) Source(3, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1) -4 >Emitted(7, 31) Source(59, 10) + SourceIndex(0) name (TopLevelModule1.SubModule1) +1 >Emitted(7, 13) Source(3, 9) + SourceIndex(0) +2 >Emitted(7, 17) Source(3, 23) + SourceIndex(0) +3 >Emitted(7, 30) Source(3, 36) + SourceIndex(0) +4 >Emitted(7, 31) Source(59, 10) + SourceIndex(0) --- >>> (function (SubSubModule1) { 1->^^^^^^^^^^^^ @@ -330,24 +330,24 @@ sourceFile:typeResolution.ts 3 > SubSubModule1 4 > 5 > { -1->Emitted(8, 13) Source(3, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1) -2 >Emitted(8, 24) Source(3, 23) + SourceIndex(0) name (TopLevelModule1.SubModule1) -3 >Emitted(8, 37) Source(3, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1) -4 >Emitted(8, 39) Source(3, 37) + SourceIndex(0) name (TopLevelModule1.SubModule1) -5 >Emitted(8, 40) Source(3, 38) + SourceIndex(0) name (TopLevelModule1.SubModule1) +1->Emitted(8, 13) Source(3, 9) + SourceIndex(0) +2 >Emitted(8, 24) Source(3, 23) + SourceIndex(0) +3 >Emitted(8, 37) Source(3, 36) + SourceIndex(0) +4 >Emitted(8, 39) Source(3, 37) + SourceIndex(0) +5 >Emitted(8, 40) Source(3, 38) + SourceIndex(0) --- >>> var ClassA = (function () { 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(9, 17) Source(4, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1->Emitted(9, 17) Source(4, 13) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(10, 21) Source(4, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) +1->Emitted(10, 21) Source(4, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -374,8 +374,8 @@ sourceFile:typeResolution.ts > } > 2 > } -1->Emitted(11, 21) Source(23, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.constructor) -2 >Emitted(11, 22) Source(23, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.constructor) +1->Emitted(11, 21) Source(23, 13) + SourceIndex(0) +2 >Emitted(11, 22) Source(23, 14) + SourceIndex(0) --- >>> ClassA.prototype.AisIn1_1_1 = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -385,9 +385,9 @@ sourceFile:typeResolution.ts 1-> 2 > AisIn1_1_1 3 > -1->Emitted(12, 21) Source(5, 24) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) -2 >Emitted(12, 48) Source(5, 34) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) -3 >Emitted(12, 51) Source(5, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) +1->Emitted(12, 21) Source(5, 24) + SourceIndex(0) +2 >Emitted(12, 48) Source(5, 34) + SourceIndex(0) +3 >Emitted(12, 51) Source(5, 17) + SourceIndex(0) --- >>> // Try all qualified names of this type 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -395,8 +395,8 @@ sourceFile:typeResolution.ts 1->public AisIn1_1_1() { > 2 > // Try all qualified names of this type -1->Emitted(13, 25) Source(6, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(13, 64) Source(6, 60) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(13, 25) Source(6, 21) + SourceIndex(0) +2 >Emitted(13, 64) Source(6, 60) + SourceIndex(0) --- >>> var a1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -409,10 +409,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a1: ClassA 4 > ; -1 >Emitted(14, 25) Source(7, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(14, 29) Source(7, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(14, 31) Source(7, 35) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(14, 32) Source(7, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(14, 25) Source(7, 21) + SourceIndex(0) +2 >Emitted(14, 29) Source(7, 25) + SourceIndex(0) +3 >Emitted(14, 31) Source(7, 35) + SourceIndex(0) +4 >Emitted(14, 32) Source(7, 36) + SourceIndex(0) --- >>> a1.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -427,12 +427,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(15, 25) Source(7, 37) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(15, 27) Source(7, 39) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(15, 28) Source(7, 40) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(15, 38) Source(7, 50) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(15, 40) Source(7, 52) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(15, 41) Source(7, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(15, 25) Source(7, 37) + SourceIndex(0) +2 >Emitted(15, 27) Source(7, 39) + SourceIndex(0) +3 >Emitted(15, 28) Source(7, 40) + SourceIndex(0) +4 >Emitted(15, 38) Source(7, 50) + SourceIndex(0) +5 >Emitted(15, 40) Source(7, 52) + SourceIndex(0) +6 >Emitted(15, 41) Source(7, 53) + SourceIndex(0) --- >>> var a2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -445,10 +445,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a2: SubSubModule1.ClassA 4 > ; -1 >Emitted(16, 25) Source(8, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(16, 29) Source(8, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(16, 31) Source(8, 49) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(16, 32) Source(8, 50) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(16, 25) Source(8, 21) + SourceIndex(0) +2 >Emitted(16, 29) Source(8, 25) + SourceIndex(0) +3 >Emitted(16, 31) Source(8, 49) + SourceIndex(0) +4 >Emitted(16, 32) Source(8, 50) + SourceIndex(0) --- >>> a2.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -463,12 +463,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(17, 25) Source(8, 51) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(17, 27) Source(8, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(17, 28) Source(8, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(17, 38) Source(8, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(17, 40) Source(8, 66) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(17, 41) Source(8, 67) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(17, 25) Source(8, 51) + SourceIndex(0) +2 >Emitted(17, 27) Source(8, 53) + SourceIndex(0) +3 >Emitted(17, 28) Source(8, 54) + SourceIndex(0) +4 >Emitted(17, 38) Source(8, 64) + SourceIndex(0) +5 >Emitted(17, 40) Source(8, 66) + SourceIndex(0) +6 >Emitted(17, 41) Source(8, 67) + SourceIndex(0) --- >>> var a3; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -481,10 +481,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a3: SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(18, 25) Source(9, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(18, 29) Source(9, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(18, 31) Source(9, 60) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(18, 32) Source(9, 61) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(18, 25) Source(9, 21) + SourceIndex(0) +2 >Emitted(18, 29) Source(9, 25) + SourceIndex(0) +3 >Emitted(18, 31) Source(9, 60) + SourceIndex(0) +4 >Emitted(18, 32) Source(9, 61) + SourceIndex(0) --- >>> a3.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -499,12 +499,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(19, 25) Source(9, 62) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(19, 27) Source(9, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(19, 28) Source(9, 65) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(19, 38) Source(9, 75) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(19, 40) Source(9, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(19, 41) Source(9, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(19, 25) Source(9, 62) + SourceIndex(0) +2 >Emitted(19, 27) Source(9, 64) + SourceIndex(0) +3 >Emitted(19, 28) Source(9, 65) + SourceIndex(0) +4 >Emitted(19, 38) Source(9, 75) + SourceIndex(0) +5 >Emitted(19, 40) Source(9, 77) + SourceIndex(0) +6 >Emitted(19, 41) Source(9, 78) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -517,10 +517,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(20, 25) Source(10, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(20, 29) Source(10, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(20, 31) Source(10, 76) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(20, 32) Source(10, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(20, 25) Source(10, 21) + SourceIndex(0) +2 >Emitted(20, 29) Source(10, 25) + SourceIndex(0) +3 >Emitted(20, 31) Source(10, 76) + SourceIndex(0) +4 >Emitted(20, 32) Source(10, 77) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -536,12 +536,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(21, 25) Source(10, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(21, 27) Source(10, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(21, 28) Source(10, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(21, 38) Source(10, 91) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(21, 40) Source(10, 93) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(21, 41) Source(10, 94) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(21, 25) Source(10, 78) + SourceIndex(0) +2 >Emitted(21, 27) Source(10, 80) + SourceIndex(0) +3 >Emitted(21, 28) Source(10, 81) + SourceIndex(0) +4 >Emitted(21, 38) Source(10, 91) + SourceIndex(0) +5 >Emitted(21, 40) Source(10, 93) + SourceIndex(0) +6 >Emitted(21, 41) Source(10, 94) + SourceIndex(0) --- >>> // Two variants of qualifying a peer type 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -550,8 +550,8 @@ sourceFile:typeResolution.ts > > 2 > // Two variants of qualifying a peer type -1->Emitted(22, 25) Source(12, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(22, 66) Source(12, 62) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(22, 25) Source(12, 21) + SourceIndex(0) +2 >Emitted(22, 66) Source(12, 62) + SourceIndex(0) --- >>> var b1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -564,10 +564,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b1: ClassB 4 > ; -1 >Emitted(23, 25) Source(13, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(23, 29) Source(13, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(23, 31) Source(13, 35) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(23, 32) Source(13, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(23, 25) Source(13, 21) + SourceIndex(0) +2 >Emitted(23, 29) Source(13, 25) + SourceIndex(0) +3 >Emitted(23, 31) Source(13, 35) + SourceIndex(0) +4 >Emitted(23, 32) Source(13, 36) + SourceIndex(0) --- >>> b1.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -582,12 +582,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(24, 25) Source(13, 37) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(24, 27) Source(13, 39) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(24, 28) Source(13, 40) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(24, 38) Source(13, 50) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(24, 40) Source(13, 52) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(24, 41) Source(13, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(24, 25) Source(13, 37) + SourceIndex(0) +2 >Emitted(24, 27) Source(13, 39) + SourceIndex(0) +3 >Emitted(24, 28) Source(13, 40) + SourceIndex(0) +4 >Emitted(24, 38) Source(13, 50) + SourceIndex(0) +5 >Emitted(24, 40) Source(13, 52) + SourceIndex(0) +6 >Emitted(24, 41) Source(13, 53) + SourceIndex(0) --- >>> var b2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -600,10 +600,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB 4 > ; -1 >Emitted(25, 25) Source(14, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(25, 29) Source(14, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(25, 31) Source(14, 76) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(25, 32) Source(14, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(25, 25) Source(14, 21) + SourceIndex(0) +2 >Emitted(25, 29) Source(14, 25) + SourceIndex(0) +3 >Emitted(25, 31) Source(14, 76) + SourceIndex(0) +4 >Emitted(25, 32) Source(14, 77) + SourceIndex(0) --- >>> b2.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -619,12 +619,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(26, 25) Source(14, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(26, 27) Source(14, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(26, 28) Source(14, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(26, 38) Source(14, 91) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(26, 40) Source(14, 93) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(26, 41) Source(14, 94) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(26, 25) Source(14, 78) + SourceIndex(0) +2 >Emitted(26, 27) Source(14, 80) + SourceIndex(0) +3 >Emitted(26, 28) Source(14, 81) + SourceIndex(0) +4 >Emitted(26, 38) Source(14, 91) + SourceIndex(0) +5 >Emitted(26, 40) Source(14, 93) + SourceIndex(0) +6 >Emitted(26, 41) Source(14, 94) + SourceIndex(0) --- >>> // Type only accessible from the root 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -633,8 +633,8 @@ sourceFile:typeResolution.ts > > 2 > // Type only accessible from the root -1->Emitted(27, 25) Source(16, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(27, 62) Source(16, 58) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(27, 25) Source(16, 21) + SourceIndex(0) +2 >Emitted(27, 62) Source(16, 58) + SourceIndex(0) --- >>> var c1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -647,10 +647,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA 4 > ; -1 >Emitted(28, 25) Source(17, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(28, 29) Source(17, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(28, 31) Source(17, 76) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(28, 32) Source(17, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(28, 25) Source(17, 21) + SourceIndex(0) +2 >Emitted(28, 29) Source(17, 25) + SourceIndex(0) +3 >Emitted(28, 31) Source(17, 76) + SourceIndex(0) +4 >Emitted(28, 32) Source(17, 77) + SourceIndex(0) --- >>> c1.AisIn1_2_2(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -666,12 +666,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_2_2 5 > () 6 > ; -1->Emitted(29, 25) Source(17, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(29, 27) Source(17, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(29, 28) Source(17, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(29, 38) Source(17, 91) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(29, 40) Source(17, 93) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(29, 41) Source(17, 94) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(29, 25) Source(17, 78) + SourceIndex(0) +2 >Emitted(29, 27) Source(17, 80) + SourceIndex(0) +3 >Emitted(29, 28) Source(17, 81) + SourceIndex(0) +4 >Emitted(29, 38) Source(17, 91) + SourceIndex(0) +5 >Emitted(29, 40) Source(17, 93) + SourceIndex(0) +6 >Emitted(29, 41) Source(17, 94) + SourceIndex(0) --- >>> // Interface reference 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -680,8 +680,8 @@ sourceFile:typeResolution.ts > > 2 > // Interface reference -1->Emitted(30, 25) Source(19, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(30, 47) Source(19, 43) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(30, 25) Source(19, 21) + SourceIndex(0) +2 >Emitted(30, 47) Source(19, 43) + SourceIndex(0) --- >>> var d1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -694,10 +694,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d1: InterfaceX 4 > ; -1 >Emitted(31, 25) Source(20, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(31, 29) Source(20, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(31, 31) Source(20, 39) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(31, 32) Source(20, 40) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(31, 25) Source(20, 21) + SourceIndex(0) +2 >Emitted(31, 29) Source(20, 25) + SourceIndex(0) +3 >Emitted(31, 31) Source(20, 39) + SourceIndex(0) +4 >Emitted(31, 32) Source(20, 40) + SourceIndex(0) --- >>> d1.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -712,12 +712,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(32, 25) Source(20, 41) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(32, 27) Source(20, 43) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(32, 28) Source(20, 44) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(32, 38) Source(20, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(32, 40) Source(20, 56) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(32, 41) Source(20, 57) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(32, 25) Source(20, 41) + SourceIndex(0) +2 >Emitted(32, 27) Source(20, 43) + SourceIndex(0) +3 >Emitted(32, 28) Source(20, 44) + SourceIndex(0) +4 >Emitted(32, 38) Source(20, 54) + SourceIndex(0) +5 >Emitted(32, 40) Source(20, 56) + SourceIndex(0) +6 >Emitted(32, 41) Source(20, 57) + SourceIndex(0) --- >>> var d2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -730,10 +730,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d2: SubSubModule1.InterfaceX 4 > ; -1 >Emitted(33, 25) Source(21, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(33, 29) Source(21, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(33, 31) Source(21, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(33, 32) Source(21, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(33, 25) Source(21, 21) + SourceIndex(0) +2 >Emitted(33, 29) Source(21, 25) + SourceIndex(0) +3 >Emitted(33, 31) Source(21, 53) + SourceIndex(0) +4 >Emitted(33, 32) Source(21, 54) + SourceIndex(0) --- >>> d2.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -748,12 +748,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(34, 25) Source(21, 55) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(34, 27) Source(21, 57) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -3 >Emitted(34, 28) Source(21, 58) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -4 >Emitted(34, 38) Source(21, 68) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -5 >Emitted(34, 40) Source(21, 70) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -6 >Emitted(34, 41) Source(21, 71) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1->Emitted(34, 25) Source(21, 55) + SourceIndex(0) +2 >Emitted(34, 27) Source(21, 57) + SourceIndex(0) +3 >Emitted(34, 28) Source(21, 58) + SourceIndex(0) +4 >Emitted(34, 38) Source(21, 68) + SourceIndex(0) +5 >Emitted(34, 40) Source(21, 70) + SourceIndex(0) +6 >Emitted(34, 41) Source(21, 71) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -762,8 +762,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(35, 21) Source(22, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) -2 >Emitted(35, 22) Source(22, 18) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA.AisIn1_1_1) +1 >Emitted(35, 21) Source(22, 17) + SourceIndex(0) +2 >Emitted(35, 22) Source(22, 18) + SourceIndex(0) --- >>> return ClassA; 1->^^^^^^^^^^^^^^^^^^^^ @@ -771,10 +771,10 @@ sourceFile:typeResolution.ts 1-> > 2 > } -1->Emitted(36, 21) Source(23, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) -2 >Emitted(36, 34) Source(23, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) +1->Emitted(36, 21) Source(23, 13) + SourceIndex(0) +2 >Emitted(36, 34) Source(23, 14) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -803,10 +803,10 @@ sourceFile:typeResolution.ts > var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1(); > } > } -1 >Emitted(37, 17) Source(23, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) -2 >Emitted(37, 18) Source(23, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassA) -3 >Emitted(37, 18) Source(4, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -4 >Emitted(37, 22) Source(23, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1 >Emitted(37, 17) Source(23, 13) + SourceIndex(0) +2 >Emitted(37, 18) Source(23, 14) + SourceIndex(0) +3 >Emitted(37, 18) Source(4, 13) + SourceIndex(0) +4 >Emitted(37, 22) Source(23, 14) + SourceIndex(0) --- >>> SubSubModule1.ClassA = ClassA; 1->^^^^^^^^^^^^^^^^ @@ -836,23 +836,23 @@ sourceFile:typeResolution.ts > } > } 4 > -1->Emitted(38, 17) Source(4, 26) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -2 >Emitted(38, 37) Source(4, 32) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -3 >Emitted(38, 46) Source(23, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -4 >Emitted(38, 47) Source(23, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1->Emitted(38, 17) Source(4, 26) + SourceIndex(0) +2 >Emitted(38, 37) Source(4, 32) + SourceIndex(0) +3 >Emitted(38, 46) Source(23, 14) + SourceIndex(0) +4 >Emitted(38, 47) Source(23, 14) + SourceIndex(0) --- >>> var ClassB = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(39, 17) Source(24, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1 >Emitted(39, 17) Source(24, 13) + SourceIndex(0) --- >>> function ClassB() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 21) Source(24, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) +1->Emitted(40, 21) Source(24, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -882,8 +882,8 @@ sourceFile:typeResolution.ts > } > 2 > } -1->Emitted(41, 21) Source(46, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.constructor) -2 >Emitted(41, 22) Source(46, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.constructor) +1->Emitted(41, 21) Source(46, 13) + SourceIndex(0) +2 >Emitted(41, 22) Source(46, 14) + SourceIndex(0) --- >>> ClassB.prototype.BisIn1_1_1 = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -893,9 +893,9 @@ sourceFile:typeResolution.ts 1-> 2 > BisIn1_1_1 3 > -1->Emitted(42, 21) Source(25, 24) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) -2 >Emitted(42, 48) Source(25, 34) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) -3 >Emitted(42, 51) Source(25, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) +1->Emitted(42, 21) Source(25, 24) + SourceIndex(0) +2 >Emitted(42, 48) Source(25, 34) + SourceIndex(0) +3 >Emitted(42, 51) Source(25, 17) + SourceIndex(0) --- >>> /** Exactly the same as above in AisIn1_1_1 **/ 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -903,8 +903,8 @@ sourceFile:typeResolution.ts 1->public BisIn1_1_1() { > 2 > /** Exactly the same as above in AisIn1_1_1 **/ -1->Emitted(43, 25) Source(26, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(43, 72) Source(26, 68) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(43, 25) Source(26, 21) + SourceIndex(0) +2 >Emitted(43, 72) Source(26, 68) + SourceIndex(0) --- >>> // Try all qualified names of this type 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -913,8 +913,8 @@ sourceFile:typeResolution.ts > > 2 > // Try all qualified names of this type -1 >Emitted(44, 25) Source(28, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(44, 64) Source(28, 60) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(44, 25) Source(28, 21) + SourceIndex(0) +2 >Emitted(44, 64) Source(28, 60) + SourceIndex(0) --- >>> var a1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -927,10 +927,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a1: ClassA 4 > ; -1 >Emitted(45, 25) Source(29, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(45, 29) Source(29, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(45, 31) Source(29, 35) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(45, 32) Source(29, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(45, 25) Source(29, 21) + SourceIndex(0) +2 >Emitted(45, 29) Source(29, 25) + SourceIndex(0) +3 >Emitted(45, 31) Source(29, 35) + SourceIndex(0) +4 >Emitted(45, 32) Source(29, 36) + SourceIndex(0) --- >>> a1.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -945,12 +945,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(46, 25) Source(29, 37) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(46, 27) Source(29, 39) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(46, 28) Source(29, 40) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(46, 38) Source(29, 50) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(46, 40) Source(29, 52) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(46, 41) Source(29, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(46, 25) Source(29, 37) + SourceIndex(0) +2 >Emitted(46, 27) Source(29, 39) + SourceIndex(0) +3 >Emitted(46, 28) Source(29, 40) + SourceIndex(0) +4 >Emitted(46, 38) Source(29, 50) + SourceIndex(0) +5 >Emitted(46, 40) Source(29, 52) + SourceIndex(0) +6 >Emitted(46, 41) Source(29, 53) + SourceIndex(0) --- >>> var a2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -963,10 +963,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a2: SubSubModule1.ClassA 4 > ; -1 >Emitted(47, 25) Source(30, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(47, 29) Source(30, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(47, 31) Source(30, 49) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(47, 32) Source(30, 50) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(47, 25) Source(30, 21) + SourceIndex(0) +2 >Emitted(47, 29) Source(30, 25) + SourceIndex(0) +3 >Emitted(47, 31) Source(30, 49) + SourceIndex(0) +4 >Emitted(47, 32) Source(30, 50) + SourceIndex(0) --- >>> a2.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -981,12 +981,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(48, 25) Source(30, 51) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(48, 27) Source(30, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(48, 28) Source(30, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(48, 38) Source(30, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(48, 40) Source(30, 66) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(48, 41) Source(30, 67) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(48, 25) Source(30, 51) + SourceIndex(0) +2 >Emitted(48, 27) Source(30, 53) + SourceIndex(0) +3 >Emitted(48, 28) Source(30, 54) + SourceIndex(0) +4 >Emitted(48, 38) Source(30, 64) + SourceIndex(0) +5 >Emitted(48, 40) Source(30, 66) + SourceIndex(0) +6 >Emitted(48, 41) Source(30, 67) + SourceIndex(0) --- >>> var a3; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -999,10 +999,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a3: SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(49, 25) Source(31, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(49, 29) Source(31, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(49, 31) Source(31, 60) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(49, 32) Source(31, 61) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(49, 25) Source(31, 21) + SourceIndex(0) +2 >Emitted(49, 29) Source(31, 25) + SourceIndex(0) +3 >Emitted(49, 31) Source(31, 60) + SourceIndex(0) +4 >Emitted(49, 32) Source(31, 61) + SourceIndex(0) --- >>> a3.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1017,12 +1017,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(50, 25) Source(31, 62) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(50, 27) Source(31, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(50, 28) Source(31, 65) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(50, 38) Source(31, 75) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(50, 40) Source(31, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(50, 41) Source(31, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(50, 25) Source(31, 62) + SourceIndex(0) +2 >Emitted(50, 27) Source(31, 64) + SourceIndex(0) +3 >Emitted(50, 28) Source(31, 65) + SourceIndex(0) +4 >Emitted(50, 38) Source(31, 75) + SourceIndex(0) +5 >Emitted(50, 40) Source(31, 77) + SourceIndex(0) +6 >Emitted(50, 41) Source(31, 78) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1035,10 +1035,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(51, 25) Source(32, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(51, 29) Source(32, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(51, 31) Source(32, 76) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(51, 32) Source(32, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(51, 25) Source(32, 21) + SourceIndex(0) +2 >Emitted(51, 29) Source(32, 25) + SourceIndex(0) +3 >Emitted(51, 31) Source(32, 76) + SourceIndex(0) +4 >Emitted(51, 32) Source(32, 77) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1054,12 +1054,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(52, 25) Source(32, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(52, 27) Source(32, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(52, 28) Source(32, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(52, 38) Source(32, 91) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(52, 40) Source(32, 93) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(52, 41) Source(32, 94) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(52, 25) Source(32, 78) + SourceIndex(0) +2 >Emitted(52, 27) Source(32, 80) + SourceIndex(0) +3 >Emitted(52, 28) Source(32, 81) + SourceIndex(0) +4 >Emitted(52, 38) Source(32, 91) + SourceIndex(0) +5 >Emitted(52, 40) Source(32, 93) + SourceIndex(0) +6 >Emitted(52, 41) Source(32, 94) + SourceIndex(0) --- >>> // Two variants of qualifying a peer type 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1068,8 +1068,8 @@ sourceFile:typeResolution.ts > > 2 > // Two variants of qualifying a peer type -1->Emitted(53, 25) Source(34, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(53, 66) Source(34, 62) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(53, 25) Source(34, 21) + SourceIndex(0) +2 >Emitted(53, 66) Source(34, 62) + SourceIndex(0) --- >>> var b1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1082,10 +1082,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b1: ClassB 4 > ; -1 >Emitted(54, 25) Source(35, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(54, 29) Source(35, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(54, 31) Source(35, 35) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(54, 32) Source(35, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(54, 25) Source(35, 21) + SourceIndex(0) +2 >Emitted(54, 29) Source(35, 25) + SourceIndex(0) +3 >Emitted(54, 31) Source(35, 35) + SourceIndex(0) +4 >Emitted(54, 32) Source(35, 36) + SourceIndex(0) --- >>> b1.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1100,12 +1100,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(55, 25) Source(35, 37) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(55, 27) Source(35, 39) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(55, 28) Source(35, 40) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(55, 38) Source(35, 50) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(55, 40) Source(35, 52) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(55, 41) Source(35, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(55, 25) Source(35, 37) + SourceIndex(0) +2 >Emitted(55, 27) Source(35, 39) + SourceIndex(0) +3 >Emitted(55, 28) Source(35, 40) + SourceIndex(0) +4 >Emitted(55, 38) Source(35, 50) + SourceIndex(0) +5 >Emitted(55, 40) Source(35, 52) + SourceIndex(0) +6 >Emitted(55, 41) Source(35, 53) + SourceIndex(0) --- >>> var b2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1118,10 +1118,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB 4 > ; -1 >Emitted(56, 25) Source(36, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(56, 29) Source(36, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(56, 31) Source(36, 76) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(56, 32) Source(36, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(56, 25) Source(36, 21) + SourceIndex(0) +2 >Emitted(56, 29) Source(36, 25) + SourceIndex(0) +3 >Emitted(56, 31) Source(36, 76) + SourceIndex(0) +4 >Emitted(56, 32) Source(36, 77) + SourceIndex(0) --- >>> b2.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1137,12 +1137,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(57, 25) Source(36, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(57, 27) Source(36, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(57, 28) Source(36, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(57, 38) Source(36, 91) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(57, 40) Source(36, 93) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(57, 41) Source(36, 94) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(57, 25) Source(36, 78) + SourceIndex(0) +2 >Emitted(57, 27) Source(36, 80) + SourceIndex(0) +3 >Emitted(57, 28) Source(36, 81) + SourceIndex(0) +4 >Emitted(57, 38) Source(36, 91) + SourceIndex(0) +5 >Emitted(57, 40) Source(36, 93) + SourceIndex(0) +6 >Emitted(57, 41) Source(36, 94) + SourceIndex(0) --- >>> // Type only accessible from the root 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1151,8 +1151,8 @@ sourceFile:typeResolution.ts > > 2 > // Type only accessible from the root -1->Emitted(58, 25) Source(38, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(58, 62) Source(38, 58) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(58, 25) Source(38, 21) + SourceIndex(0) +2 >Emitted(58, 62) Source(38, 58) + SourceIndex(0) --- >>> var c1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1165,10 +1165,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA 4 > ; -1 >Emitted(59, 25) Source(39, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(59, 29) Source(39, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(59, 31) Source(39, 76) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(59, 32) Source(39, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(59, 25) Source(39, 21) + SourceIndex(0) +2 >Emitted(59, 29) Source(39, 25) + SourceIndex(0) +3 >Emitted(59, 31) Source(39, 76) + SourceIndex(0) +4 >Emitted(59, 32) Source(39, 77) + SourceIndex(0) --- >>> c1.AisIn1_2_2(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1183,12 +1183,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_2_2 5 > () 6 > ; -1->Emitted(60, 25) Source(39, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(60, 27) Source(39, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(60, 28) Source(39, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(60, 38) Source(39, 91) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(60, 40) Source(39, 93) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(60, 41) Source(39, 94) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(60, 25) Source(39, 78) + SourceIndex(0) +2 >Emitted(60, 27) Source(39, 80) + SourceIndex(0) +3 >Emitted(60, 28) Source(39, 81) + SourceIndex(0) +4 >Emitted(60, 38) Source(39, 91) + SourceIndex(0) +5 >Emitted(60, 40) Source(39, 93) + SourceIndex(0) +6 >Emitted(60, 41) Source(39, 94) + SourceIndex(0) --- >>> var c2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1201,10 +1201,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c2: TopLevelModule2.SubModule3.ClassA 4 > ; -1 >Emitted(61, 25) Source(40, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(61, 29) Source(40, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(61, 31) Source(40, 62) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(61, 32) Source(40, 63) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(61, 25) Source(40, 21) + SourceIndex(0) +2 >Emitted(61, 29) Source(40, 25) + SourceIndex(0) +3 >Emitted(61, 31) Source(40, 62) + SourceIndex(0) +4 >Emitted(61, 32) Source(40, 63) + SourceIndex(0) --- >>> c2.AisIn2_3(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1220,12 +1220,12 @@ sourceFile:typeResolution.ts 4 > AisIn2_3 5 > () 6 > ; -1->Emitted(62, 25) Source(40, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(62, 27) Source(40, 66) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(62, 28) Source(40, 67) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(62, 36) Source(40, 75) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(62, 38) Source(40, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(62, 39) Source(40, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(62, 25) Source(40, 64) + SourceIndex(0) +2 >Emitted(62, 27) Source(40, 66) + SourceIndex(0) +3 >Emitted(62, 28) Source(40, 67) + SourceIndex(0) +4 >Emitted(62, 36) Source(40, 75) + SourceIndex(0) +5 >Emitted(62, 38) Source(40, 77) + SourceIndex(0) +6 >Emitted(62, 39) Source(40, 78) + SourceIndex(0) --- >>> // Interface reference 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1234,8 +1234,8 @@ sourceFile:typeResolution.ts > > 2 > // Interface reference -1->Emitted(63, 25) Source(42, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(63, 47) Source(42, 43) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(63, 25) Source(42, 21) + SourceIndex(0) +2 >Emitted(63, 47) Source(42, 43) + SourceIndex(0) --- >>> var d1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1248,10 +1248,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d1: InterfaceX 4 > ; -1 >Emitted(64, 25) Source(43, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(64, 29) Source(43, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(64, 31) Source(43, 39) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(64, 32) Source(43, 40) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(64, 25) Source(43, 21) + SourceIndex(0) +2 >Emitted(64, 29) Source(43, 25) + SourceIndex(0) +3 >Emitted(64, 31) Source(43, 39) + SourceIndex(0) +4 >Emitted(64, 32) Source(43, 40) + SourceIndex(0) --- >>> d1.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1266,12 +1266,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(65, 25) Source(43, 41) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(65, 27) Source(43, 43) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(65, 28) Source(43, 44) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(65, 38) Source(43, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(65, 40) Source(43, 56) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(65, 41) Source(43, 57) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(65, 25) Source(43, 41) + SourceIndex(0) +2 >Emitted(65, 27) Source(43, 43) + SourceIndex(0) +3 >Emitted(65, 28) Source(43, 44) + SourceIndex(0) +4 >Emitted(65, 38) Source(43, 54) + SourceIndex(0) +5 >Emitted(65, 40) Source(43, 56) + SourceIndex(0) +6 >Emitted(65, 41) Source(43, 57) + SourceIndex(0) --- >>> var d2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1284,10 +1284,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d2: SubSubModule1.InterfaceX 4 > ; -1 >Emitted(66, 25) Source(44, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(66, 29) Source(44, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(66, 31) Source(44, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(66, 32) Source(44, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(66, 25) Source(44, 21) + SourceIndex(0) +2 >Emitted(66, 29) Source(44, 25) + SourceIndex(0) +3 >Emitted(66, 31) Source(44, 53) + SourceIndex(0) +4 >Emitted(66, 32) Source(44, 54) + SourceIndex(0) --- >>> d2.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1302,12 +1302,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(67, 25) Source(44, 55) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(67, 27) Source(44, 57) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -3 >Emitted(67, 28) Source(44, 58) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -4 >Emitted(67, 38) Source(44, 68) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -5 >Emitted(67, 40) Source(44, 70) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -6 >Emitted(67, 41) Source(44, 71) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1->Emitted(67, 25) Source(44, 55) + SourceIndex(0) +2 >Emitted(67, 27) Source(44, 57) + SourceIndex(0) +3 >Emitted(67, 28) Source(44, 58) + SourceIndex(0) +4 >Emitted(67, 38) Source(44, 68) + SourceIndex(0) +5 >Emitted(67, 40) Source(44, 70) + SourceIndex(0) +6 >Emitted(67, 41) Source(44, 71) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1316,8 +1316,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(68, 21) Source(45, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) -2 >Emitted(68, 22) Source(45, 18) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB.BisIn1_1_1) +1 >Emitted(68, 21) Source(45, 17) + SourceIndex(0) +2 >Emitted(68, 22) Source(45, 18) + SourceIndex(0) --- >>> return ClassB; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1325,10 +1325,10 @@ sourceFile:typeResolution.ts 1-> > 2 > } -1->Emitted(69, 21) Source(46, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) -2 >Emitted(69, 34) Source(46, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) +1->Emitted(69, 21) Source(46, 13) + SourceIndex(0) +2 >Emitted(69, 34) Source(46, 14) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -1360,10 +1360,10 @@ sourceFile:typeResolution.ts > var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1(); > } > } -1 >Emitted(70, 17) Source(46, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) -2 >Emitted(70, 18) Source(46, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.ClassB) -3 >Emitted(70, 18) Source(24, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -4 >Emitted(70, 22) Source(46, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1 >Emitted(70, 17) Source(46, 13) + SourceIndex(0) +2 >Emitted(70, 18) Source(46, 14) + SourceIndex(0) +3 >Emitted(70, 18) Source(24, 13) + SourceIndex(0) +4 >Emitted(70, 22) Source(46, 14) + SourceIndex(0) --- >>> SubSubModule1.ClassB = ClassB; 1->^^^^^^^^^^^^^^^^ @@ -1397,10 +1397,10 @@ sourceFile:typeResolution.ts > } > } 4 > -1->Emitted(71, 17) Source(24, 26) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -2 >Emitted(71, 37) Source(24, 32) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -3 >Emitted(71, 46) Source(46, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -4 >Emitted(71, 47) Source(46, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1->Emitted(71, 17) Source(24, 26) + SourceIndex(0) +2 >Emitted(71, 37) Source(24, 32) + SourceIndex(0) +3 >Emitted(71, 46) Source(46, 14) + SourceIndex(0) +4 >Emitted(71, 47) Source(46, 14) + SourceIndex(0) --- >>> var NonExportedClassQ = (function () { 1->^^^^^^^^^^^^^^^^ @@ -1408,21 +1408,21 @@ sourceFile:typeResolution.ts 1-> > export interface InterfaceX { XisIn1_1_1(); } > -1->Emitted(72, 17) Source(48, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1->Emitted(72, 17) Source(48, 13) + SourceIndex(0) --- >>> function NonExportedClassQ() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^-> 1->class NonExportedClassQ { > -1->Emitted(73, 21) Source(49, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ) +1->Emitted(73, 21) Source(49, 17) + SourceIndex(0) --- >>> function QQ() { 1->^^^^^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { > -1->Emitted(74, 25) Source(50, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor) +1->Emitted(74, 25) Source(50, 21) + SourceIndex(0) --- >>> /* Sampling of stuff from AisIn1_1_1 */ 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1430,8 +1430,8 @@ sourceFile:typeResolution.ts 1->function QQ() { > 2 > /* Sampling of stuff from AisIn1_1_1 */ -1->Emitted(75, 29) Source(51, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(75, 68) Source(51, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1->Emitted(75, 29) Source(51, 25) + SourceIndex(0) +2 >Emitted(75, 68) Source(51, 64) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1444,10 +1444,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(76, 29) Source(52, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(76, 33) Source(52, 29) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(76, 35) Source(52, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(76, 36) Source(52, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1 >Emitted(76, 29) Source(52, 25) + SourceIndex(0) +2 >Emitted(76, 33) Source(52, 29) + SourceIndex(0) +3 >Emitted(76, 35) Source(52, 80) + SourceIndex(0) +4 >Emitted(76, 36) Source(52, 81) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1462,12 +1462,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(77, 29) Source(52, 82) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(77, 31) Source(52, 84) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(77, 32) Source(52, 85) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(77, 42) Source(52, 95) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -5 >Emitted(77, 44) Source(52, 97) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -6 >Emitted(77, 45) Source(52, 98) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1->Emitted(77, 29) Source(52, 82) + SourceIndex(0) +2 >Emitted(77, 31) Source(52, 84) + SourceIndex(0) +3 >Emitted(77, 32) Source(52, 85) + SourceIndex(0) +4 >Emitted(77, 42) Source(52, 95) + SourceIndex(0) +5 >Emitted(77, 44) Source(52, 97) + SourceIndex(0) +6 >Emitted(77, 45) Source(52, 98) + SourceIndex(0) --- >>> var c1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1480,10 +1480,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA 4 > ; -1 >Emitted(78, 29) Source(53, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(78, 33) Source(53, 29) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(78, 35) Source(53, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(78, 36) Source(53, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1 >Emitted(78, 29) Source(53, 25) + SourceIndex(0) +2 >Emitted(78, 33) Source(53, 29) + SourceIndex(0) +3 >Emitted(78, 35) Source(53, 80) + SourceIndex(0) +4 >Emitted(78, 36) Source(53, 81) + SourceIndex(0) --- >>> c1.AisIn1_2_2(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1498,12 +1498,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_2_2 5 > () 6 > ; -1->Emitted(79, 29) Source(53, 82) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(79, 31) Source(53, 84) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(79, 32) Source(53, 85) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(79, 42) Source(53, 95) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -5 >Emitted(79, 44) Source(53, 97) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -6 >Emitted(79, 45) Source(53, 98) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1->Emitted(79, 29) Source(53, 82) + SourceIndex(0) +2 >Emitted(79, 31) Source(53, 84) + SourceIndex(0) +3 >Emitted(79, 32) Source(53, 85) + SourceIndex(0) +4 >Emitted(79, 42) Source(53, 95) + SourceIndex(0) +5 >Emitted(79, 44) Source(53, 97) + SourceIndex(0) +6 >Emitted(79, 45) Source(53, 98) + SourceIndex(0) --- >>> var d1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1516,10 +1516,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d1: InterfaceX 4 > ; -1 >Emitted(80, 29) Source(54, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(80, 33) Source(54, 29) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(80, 35) Source(54, 43) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(80, 36) Source(54, 44) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1 >Emitted(80, 29) Source(54, 25) + SourceIndex(0) +2 >Emitted(80, 33) Source(54, 29) + SourceIndex(0) +3 >Emitted(80, 35) Source(54, 43) + SourceIndex(0) +4 >Emitted(80, 36) Source(54, 44) + SourceIndex(0) --- >>> d1.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1534,12 +1534,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(81, 29) Source(54, 45) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(81, 31) Source(54, 47) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(81, 32) Source(54, 48) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(81, 42) Source(54, 58) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -5 >Emitted(81, 44) Source(54, 60) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -6 >Emitted(81, 45) Source(54, 61) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1->Emitted(81, 29) Source(54, 45) + SourceIndex(0) +2 >Emitted(81, 31) Source(54, 47) + SourceIndex(0) +3 >Emitted(81, 32) Source(54, 48) + SourceIndex(0) +4 >Emitted(81, 42) Source(54, 58) + SourceIndex(0) +5 >Emitted(81, 44) Source(54, 60) + SourceIndex(0) +6 >Emitted(81, 45) Source(54, 61) + SourceIndex(0) --- >>> var c2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1552,10 +1552,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c2: TopLevelModule2.SubModule3.ClassA 4 > ; -1 >Emitted(82, 29) Source(55, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(82, 33) Source(55, 29) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(82, 35) Source(55, 66) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(82, 36) Source(55, 67) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1 >Emitted(82, 29) Source(55, 25) + SourceIndex(0) +2 >Emitted(82, 33) Source(55, 29) + SourceIndex(0) +3 >Emitted(82, 35) Source(55, 66) + SourceIndex(0) +4 >Emitted(82, 36) Source(55, 67) + SourceIndex(0) --- >>> c2.AisIn2_3(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1570,12 +1570,12 @@ sourceFile:typeResolution.ts 4 > AisIn2_3 5 > () 6 > ; -1->Emitted(83, 29) Source(55, 68) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(83, 31) Source(55, 70) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -3 >Emitted(83, 32) Source(55, 71) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -4 >Emitted(83, 40) Source(55, 79) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -5 >Emitted(83, 42) Source(55, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -6 >Emitted(83, 43) Source(55, 82) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1->Emitted(83, 29) Source(55, 68) + SourceIndex(0) +2 >Emitted(83, 31) Source(55, 70) + SourceIndex(0) +3 >Emitted(83, 32) Source(55, 71) + SourceIndex(0) +4 >Emitted(83, 40) Source(55, 79) + SourceIndex(0) +5 >Emitted(83, 42) Source(55, 81) + SourceIndex(0) +6 >Emitted(83, 43) Source(55, 82) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1583,8 +1583,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(84, 25) Source(56, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) -2 >Emitted(84, 26) Source(56, 22) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor.QQ) +1 >Emitted(84, 25) Source(56, 21) + SourceIndex(0) +2 >Emitted(84, 26) Source(56, 22) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1593,8 +1593,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(85, 21) Source(57, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor) -2 >Emitted(85, 22) Source(57, 18) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ.constructor) +1 >Emitted(85, 21) Source(57, 17) + SourceIndex(0) +2 >Emitted(85, 22) Source(57, 18) + SourceIndex(0) --- >>> return NonExportedClassQ; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1602,10 +1602,10 @@ sourceFile:typeResolution.ts 1-> > 2 > } -1->Emitted(86, 21) Source(58, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ) -2 >Emitted(86, 45) Source(58, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ) +1->Emitted(86, 21) Source(58, 13) + SourceIndex(0) +2 >Emitted(86, 45) Source(58, 14) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -1625,10 +1625,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(87, 17) Source(58, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ) -2 >Emitted(87, 18) Source(58, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1.NonExportedClassQ) -3 >Emitted(87, 18) Source(48, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -4 >Emitted(87, 22) Source(58, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) +1 >Emitted(87, 17) Source(58, 13) + SourceIndex(0) +2 >Emitted(87, 18) Source(58, 14) + SourceIndex(0) +3 >Emitted(87, 18) Source(48, 13) + SourceIndex(0) +4 >Emitted(87, 22) Source(58, 14) + SourceIndex(0) --- >>> })(SubSubModule1 = SubModule1.SubSubModule1 || (SubModule1.SubSubModule1 = {})); 1->^^^^^^^^^^^^ @@ -1706,15 +1706,15 @@ sourceFile:typeResolution.ts > } > } > } -1->Emitted(88, 13) Source(59, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -2 >Emitted(88, 14) Source(59, 10) + SourceIndex(0) name (TopLevelModule1.SubModule1.SubSubModule1) -3 >Emitted(88, 16) Source(3, 23) + SourceIndex(0) name (TopLevelModule1.SubModule1) -4 >Emitted(88, 29) Source(3, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1) -5 >Emitted(88, 32) Source(3, 23) + SourceIndex(0) name (TopLevelModule1.SubModule1) -6 >Emitted(88, 56) Source(3, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1) -7 >Emitted(88, 61) Source(3, 23) + SourceIndex(0) name (TopLevelModule1.SubModule1) -8 >Emitted(88, 85) Source(3, 36) + SourceIndex(0) name (TopLevelModule1.SubModule1) -9 >Emitted(88, 93) Source(59, 10) + SourceIndex(0) name (TopLevelModule1.SubModule1) +1->Emitted(88, 13) Source(59, 9) + SourceIndex(0) +2 >Emitted(88, 14) Source(59, 10) + SourceIndex(0) +3 >Emitted(88, 16) Source(3, 23) + SourceIndex(0) +4 >Emitted(88, 29) Source(3, 36) + SourceIndex(0) +5 >Emitted(88, 32) Source(3, 23) + SourceIndex(0) +6 >Emitted(88, 56) Source(3, 36) + SourceIndex(0) +7 >Emitted(88, 61) Source(3, 23) + SourceIndex(0) +8 >Emitted(88, 85) Source(3, 36) + SourceIndex(0) +9 >Emitted(88, 93) Source(59, 10) + SourceIndex(0) --- >>> // Should have no effect on S1.SS1.ClassA above because it is not exported 1 >^^^^^^^^^^^^ @@ -1723,29 +1723,29 @@ sourceFile:typeResolution.ts > > 2 > // Should have no effect on S1.SS1.ClassA above because it is not exported -1 >Emitted(89, 13) Source(61, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1) -2 >Emitted(89, 87) Source(61, 83) + SourceIndex(0) name (TopLevelModule1.SubModule1) +1 >Emitted(89, 13) Source(61, 9) + SourceIndex(0) +2 >Emitted(89, 87) Source(61, 83) + SourceIndex(0) --- >>> var ClassA = (function () { 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(90, 13) Source(62, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1) +1 >Emitted(90, 13) Source(62, 9) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^-> 1->class ClassA { > -1->Emitted(91, 17) Source(63, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA) +1->Emitted(91, 17) Source(63, 13) + SourceIndex(0) --- >>> function AA() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^-> 1->constructor() { > -1->Emitted(92, 21) Source(64, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor) +1->Emitted(92, 21) Source(64, 17) + SourceIndex(0) --- >>> var a2; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1758,10 +1758,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a2: SubSubModule1.ClassA 4 > ; -1->Emitted(93, 25) Source(65, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(93, 29) Source(65, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(93, 31) Source(65, 49) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(93, 32) Source(65, 50) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1->Emitted(93, 25) Source(65, 21) + SourceIndex(0) +2 >Emitted(93, 29) Source(65, 25) + SourceIndex(0) +3 >Emitted(93, 31) Source(65, 49) + SourceIndex(0) +4 >Emitted(93, 32) Source(65, 50) + SourceIndex(0) --- >>> a2.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1776,12 +1776,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(94, 25) Source(65, 51) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(94, 27) Source(65, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(94, 28) Source(65, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(94, 38) Source(65, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -5 >Emitted(94, 40) Source(65, 66) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -6 >Emitted(94, 41) Source(65, 67) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1->Emitted(94, 25) Source(65, 51) + SourceIndex(0) +2 >Emitted(94, 27) Source(65, 53) + SourceIndex(0) +3 >Emitted(94, 28) Source(65, 54) + SourceIndex(0) +4 >Emitted(94, 38) Source(65, 64) + SourceIndex(0) +5 >Emitted(94, 40) Source(65, 66) + SourceIndex(0) +6 >Emitted(94, 41) Source(65, 67) + SourceIndex(0) --- >>> var a3; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1794,10 +1794,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a3: SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(95, 25) Source(66, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(95, 29) Source(66, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(95, 31) Source(66, 60) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(95, 32) Source(66, 61) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1 >Emitted(95, 25) Source(66, 21) + SourceIndex(0) +2 >Emitted(95, 29) Source(66, 25) + SourceIndex(0) +3 >Emitted(95, 31) Source(66, 60) + SourceIndex(0) +4 >Emitted(95, 32) Source(66, 61) + SourceIndex(0) --- >>> a3.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1812,12 +1812,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(96, 25) Source(66, 62) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(96, 27) Source(66, 64) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(96, 28) Source(66, 65) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(96, 38) Source(66, 75) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -5 >Emitted(96, 40) Source(66, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -6 >Emitted(96, 41) Source(66, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1->Emitted(96, 25) Source(66, 62) + SourceIndex(0) +2 >Emitted(96, 27) Source(66, 64) + SourceIndex(0) +3 >Emitted(96, 28) Source(66, 65) + SourceIndex(0) +4 >Emitted(96, 38) Source(66, 75) + SourceIndex(0) +5 >Emitted(96, 40) Source(66, 77) + SourceIndex(0) +6 >Emitted(96, 41) Source(66, 78) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1830,10 +1830,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(97, 25) Source(67, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(97, 29) Source(67, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(97, 31) Source(67, 76) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(97, 32) Source(67, 77) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1 >Emitted(97, 25) Source(67, 21) + SourceIndex(0) +2 >Emitted(97, 29) Source(67, 25) + SourceIndex(0) +3 >Emitted(97, 31) Source(67, 76) + SourceIndex(0) +4 >Emitted(97, 32) Source(67, 77) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1849,12 +1849,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(98, 25) Source(67, 78) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(98, 27) Source(67, 80) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(98, 28) Source(67, 81) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(98, 38) Source(67, 91) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -5 >Emitted(98, 40) Source(67, 93) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -6 >Emitted(98, 41) Source(67, 94) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1->Emitted(98, 25) Source(67, 78) + SourceIndex(0) +2 >Emitted(98, 27) Source(67, 80) + SourceIndex(0) +3 >Emitted(98, 28) Source(67, 81) + SourceIndex(0) +4 >Emitted(98, 38) Source(67, 91) + SourceIndex(0) +5 >Emitted(98, 40) Source(67, 93) + SourceIndex(0) +6 >Emitted(98, 41) Source(67, 94) + SourceIndex(0) --- >>> // Interface reference 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1863,8 +1863,8 @@ sourceFile:typeResolution.ts > > 2 > // Interface reference -1->Emitted(99, 25) Source(69, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(99, 47) Source(69, 43) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1->Emitted(99, 25) Source(69, 21) + SourceIndex(0) +2 >Emitted(99, 47) Source(69, 43) + SourceIndex(0) --- >>> var d2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1877,10 +1877,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d2: SubSubModule1.InterfaceX 4 > ; -1 >Emitted(100, 25) Source(70, 21) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(100, 29) Source(70, 25) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(100, 31) Source(70, 53) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(100, 32) Source(70, 54) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1 >Emitted(100, 25) Source(70, 21) + SourceIndex(0) +2 >Emitted(100, 29) Source(70, 25) + SourceIndex(0) +3 >Emitted(100, 31) Source(70, 53) + SourceIndex(0) +4 >Emitted(100, 32) Source(70, 54) + SourceIndex(0) --- >>> d2.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1895,12 +1895,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(101, 25) Source(70, 55) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(101, 27) Source(70, 57) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -3 >Emitted(101, 28) Source(70, 58) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -4 >Emitted(101, 38) Source(70, 68) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -5 >Emitted(101, 40) Source(70, 70) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -6 >Emitted(101, 41) Source(70, 71) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1->Emitted(101, 25) Source(70, 55) + SourceIndex(0) +2 >Emitted(101, 27) Source(70, 57) + SourceIndex(0) +3 >Emitted(101, 28) Source(70, 58) + SourceIndex(0) +4 >Emitted(101, 38) Source(70, 68) + SourceIndex(0) +5 >Emitted(101, 40) Source(70, 70) + SourceIndex(0) +6 >Emitted(101, 41) Source(70, 71) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1908,8 +1908,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(102, 21) Source(71, 17) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) -2 >Emitted(102, 22) Source(71, 18) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor.AA) +1 >Emitted(102, 21) Source(71, 17) + SourceIndex(0) +2 >Emitted(102, 22) Source(71, 18) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1918,8 +1918,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(103, 17) Source(72, 13) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor) -2 >Emitted(103, 18) Source(72, 14) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA.constructor) +1 >Emitted(103, 17) Source(72, 13) + SourceIndex(0) +2 >Emitted(103, 18) Source(72, 14) + SourceIndex(0) --- >>> return ClassA; 1->^^^^^^^^^^^^^^^^ @@ -1927,10 +1927,10 @@ sourceFile:typeResolution.ts 1-> > 2 > } -1->Emitted(104, 17) Source(73, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA) -2 >Emitted(104, 30) Source(73, 10) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA) +1->Emitted(104, 17) Source(73, 9) + SourceIndex(0) +2 >Emitted(104, 30) Source(73, 10) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^ 2 > ^ 3 > @@ -1951,10 +1951,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(105, 13) Source(73, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA) -2 >Emitted(105, 14) Source(73, 10) + SourceIndex(0) name (TopLevelModule1.SubModule1.ClassA) -3 >Emitted(105, 14) Source(62, 9) + SourceIndex(0) name (TopLevelModule1.SubModule1) -4 >Emitted(105, 18) Source(73, 10) + SourceIndex(0) name (TopLevelModule1.SubModule1) +1 >Emitted(105, 13) Source(73, 9) + SourceIndex(0) +2 >Emitted(105, 14) Source(73, 10) + SourceIndex(0) +3 >Emitted(105, 14) Source(62, 9) + SourceIndex(0) +4 >Emitted(105, 18) Source(73, 10) + SourceIndex(0) --- >>> })(SubModule1 = TopLevelModule1.SubModule1 || (TopLevelModule1.SubModule1 = {})); 1->^^^^^^^^ @@ -2048,15 +2048,15 @@ sourceFile:typeResolution.ts > } > } > } -1->Emitted(106, 9) Source(74, 5) + SourceIndex(0) name (TopLevelModule1.SubModule1) -2 >Emitted(106, 10) Source(74, 6) + SourceIndex(0) name (TopLevelModule1.SubModule1) -3 >Emitted(106, 12) Source(2, 19) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(106, 22) Source(2, 29) + SourceIndex(0) name (TopLevelModule1) -5 >Emitted(106, 25) Source(2, 19) + SourceIndex(0) name (TopLevelModule1) -6 >Emitted(106, 51) Source(2, 29) + SourceIndex(0) name (TopLevelModule1) -7 >Emitted(106, 56) Source(2, 19) + SourceIndex(0) name (TopLevelModule1) -8 >Emitted(106, 82) Source(2, 29) + SourceIndex(0) name (TopLevelModule1) -9 >Emitted(106, 90) Source(74, 6) + SourceIndex(0) name (TopLevelModule1) +1->Emitted(106, 9) Source(74, 5) + SourceIndex(0) +2 >Emitted(106, 10) Source(74, 6) + SourceIndex(0) +3 >Emitted(106, 12) Source(2, 19) + SourceIndex(0) +4 >Emitted(106, 22) Source(2, 29) + SourceIndex(0) +5 >Emitted(106, 25) Source(2, 19) + SourceIndex(0) +6 >Emitted(106, 51) Source(2, 29) + SourceIndex(0) +7 >Emitted(106, 56) Source(2, 19) + SourceIndex(0) +8 >Emitted(106, 82) Source(2, 29) + SourceIndex(0) +9 >Emitted(106, 90) Source(74, 6) + SourceIndex(0) --- >>> var SubModule2; 1 >^^^^^^^^ @@ -2081,10 +2081,10 @@ sourceFile:typeResolution.ts > > export interface InterfaceY { YisIn1_2(); } > } -1 >Emitted(107, 9) Source(76, 5) + SourceIndex(0) name (TopLevelModule1) -2 >Emitted(107, 13) Source(76, 19) + SourceIndex(0) name (TopLevelModule1) -3 >Emitted(107, 23) Source(76, 29) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(107, 24) Source(87, 6) + SourceIndex(0) name (TopLevelModule1) +1 >Emitted(107, 9) Source(76, 5) + SourceIndex(0) +2 >Emitted(107, 13) Source(76, 19) + SourceIndex(0) +3 >Emitted(107, 23) Source(76, 29) + SourceIndex(0) +4 >Emitted(107, 24) Source(87, 6) + SourceIndex(0) --- >>> (function (SubModule2) { 1->^^^^^^^^ @@ -2097,11 +2097,11 @@ sourceFile:typeResolution.ts 3 > SubModule2 4 > 5 > { -1->Emitted(108, 9) Source(76, 5) + SourceIndex(0) name (TopLevelModule1) -2 >Emitted(108, 20) Source(76, 19) + SourceIndex(0) name (TopLevelModule1) -3 >Emitted(108, 30) Source(76, 29) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(108, 32) Source(76, 30) + SourceIndex(0) name (TopLevelModule1) -5 >Emitted(108, 33) Source(76, 31) + SourceIndex(0) name (TopLevelModule1) +1->Emitted(108, 9) Source(76, 5) + SourceIndex(0) +2 >Emitted(108, 20) Source(76, 19) + SourceIndex(0) +3 >Emitted(108, 30) Source(76, 29) + SourceIndex(0) +4 >Emitted(108, 32) Source(76, 30) + SourceIndex(0) +5 >Emitted(108, 33) Source(76, 31) + SourceIndex(0) --- >>> var SubSubModule2; 1 >^^^^^^^^^^^^ @@ -2121,10 +2121,10 @@ sourceFile:typeResolution.ts > export interface InterfaceY { YisIn1_2_2(); } > interface NonExportedInterfaceQ { } > } -1 >Emitted(109, 13) Source(77, 9) + SourceIndex(0) name (TopLevelModule1.SubModule2) -2 >Emitted(109, 17) Source(77, 23) + SourceIndex(0) name (TopLevelModule1.SubModule2) -3 >Emitted(109, 30) Source(77, 36) + SourceIndex(0) name (TopLevelModule1.SubModule2) -4 >Emitted(109, 31) Source(84, 10) + SourceIndex(0) name (TopLevelModule1.SubModule2) +1 >Emitted(109, 13) Source(77, 9) + SourceIndex(0) +2 >Emitted(109, 17) Source(77, 23) + SourceIndex(0) +3 >Emitted(109, 30) Source(77, 36) + SourceIndex(0) +4 >Emitted(109, 31) Source(84, 10) + SourceIndex(0) --- >>> (function (SubSubModule2) { 1->^^^^^^^^^^^^ @@ -2138,11 +2138,11 @@ sourceFile:typeResolution.ts 3 > SubSubModule2 4 > 5 > { -1->Emitted(110, 13) Source(77, 9) + SourceIndex(0) name (TopLevelModule1.SubModule2) -2 >Emitted(110, 24) Source(77, 23) + SourceIndex(0) name (TopLevelModule1.SubModule2) -3 >Emitted(110, 37) Source(77, 36) + SourceIndex(0) name (TopLevelModule1.SubModule2) -4 >Emitted(110, 39) Source(77, 37) + SourceIndex(0) name (TopLevelModule1.SubModule2) -5 >Emitted(110, 40) Source(77, 38) + SourceIndex(0) name (TopLevelModule1.SubModule2) +1->Emitted(110, 13) Source(77, 9) + SourceIndex(0) +2 >Emitted(110, 24) Source(77, 23) + SourceIndex(0) +3 >Emitted(110, 37) Source(77, 36) + SourceIndex(0) +4 >Emitted(110, 39) Source(77, 37) + SourceIndex(0) +5 >Emitted(110, 40) Source(77, 38) + SourceIndex(0) --- >>> // No code here since these are the mirror of the above calls 1->^^^^^^^^^^^^^^^^ @@ -2150,21 +2150,21 @@ sourceFile:typeResolution.ts 1-> > 2 > // No code here since these are the mirror of the above calls -1->Emitted(111, 17) Source(78, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -2 >Emitted(111, 78) Source(78, 74) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1->Emitted(111, 17) Source(78, 13) + SourceIndex(0) +2 >Emitted(111, 78) Source(78, 74) + SourceIndex(0) --- >>> var ClassA = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(112, 17) Source(79, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1 >Emitted(112, 17) Source(79, 13) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(113, 21) Source(79, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) +1->Emitted(113, 21) Source(79, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -2172,8 +2172,8 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->export class ClassA { public AisIn1_2_2() { } 2 > } -1->Emitted(114, 21) Source(79, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA.constructor) -2 >Emitted(114, 22) Source(79, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA.constructor) +1->Emitted(114, 21) Source(79, 59) + SourceIndex(0) +2 >Emitted(114, 22) Source(79, 60) + SourceIndex(0) --- >>> ClassA.prototype.AisIn1_2_2 = function () { }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -2186,21 +2186,21 @@ sourceFile:typeResolution.ts 3 > 4 > public AisIn1_2_2() { 5 > } -1->Emitted(115, 21) Source(79, 42) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) -2 >Emitted(115, 48) Source(79, 52) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) -3 >Emitted(115, 51) Source(79, 35) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) -4 >Emitted(115, 65) Source(79, 57) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA.AisIn1_2_2) -5 >Emitted(115, 66) Source(79, 58) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA.AisIn1_2_2) +1->Emitted(115, 21) Source(79, 42) + SourceIndex(0) +2 >Emitted(115, 48) Source(79, 52) + SourceIndex(0) +3 >Emitted(115, 51) Source(79, 35) + SourceIndex(0) +4 >Emitted(115, 65) Source(79, 57) + SourceIndex(0) +5 >Emitted(115, 66) Source(79, 58) + SourceIndex(0) --- >>> return ClassA; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(116, 21) Source(79, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) -2 >Emitted(116, 34) Source(79, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) +1 >Emitted(116, 21) Source(79, 59) + SourceIndex(0) +2 >Emitted(116, 34) Source(79, 60) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -2210,10 +2210,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassA { public AisIn1_2_2() { } } -1 >Emitted(117, 17) Source(79, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) -2 >Emitted(117, 18) Source(79, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassA) -3 >Emitted(117, 18) Source(79, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -4 >Emitted(117, 22) Source(79, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1 >Emitted(117, 17) Source(79, 59) + SourceIndex(0) +2 >Emitted(117, 18) Source(79, 60) + SourceIndex(0) +3 >Emitted(117, 18) Source(79, 13) + SourceIndex(0) +4 >Emitted(117, 22) Source(79, 60) + SourceIndex(0) --- >>> SubSubModule2.ClassA = ClassA; 1->^^^^^^^^^^^^^^^^ @@ -2224,23 +2224,23 @@ sourceFile:typeResolution.ts 2 > ClassA 3 > { public AisIn1_2_2() { } } 4 > -1->Emitted(118, 17) Source(79, 26) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -2 >Emitted(118, 37) Source(79, 32) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -3 >Emitted(118, 46) Source(79, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -4 >Emitted(118, 47) Source(79, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1->Emitted(118, 17) Source(79, 26) + SourceIndex(0) +2 >Emitted(118, 37) Source(79, 32) + SourceIndex(0) +3 >Emitted(118, 46) Source(79, 60) + SourceIndex(0) +4 >Emitted(118, 47) Source(79, 60) + SourceIndex(0) --- >>> var ClassB = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(119, 17) Source(80, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1 >Emitted(119, 17) Source(80, 13) + SourceIndex(0) --- >>> function ClassB() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(120, 21) Source(80, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) +1->Emitted(120, 21) Source(80, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -2248,8 +2248,8 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->export class ClassB { public BisIn1_2_2() { } 2 > } -1->Emitted(121, 21) Source(80, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB.constructor) -2 >Emitted(121, 22) Source(80, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB.constructor) +1->Emitted(121, 21) Source(80, 59) + SourceIndex(0) +2 >Emitted(121, 22) Source(80, 60) + SourceIndex(0) --- >>> ClassB.prototype.BisIn1_2_2 = function () { }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -2262,21 +2262,21 @@ sourceFile:typeResolution.ts 3 > 4 > public BisIn1_2_2() { 5 > } -1->Emitted(122, 21) Source(80, 42) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) -2 >Emitted(122, 48) Source(80, 52) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) -3 >Emitted(122, 51) Source(80, 35) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) -4 >Emitted(122, 65) Source(80, 57) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB.BisIn1_2_2) -5 >Emitted(122, 66) Source(80, 58) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB.BisIn1_2_2) +1->Emitted(122, 21) Source(80, 42) + SourceIndex(0) +2 >Emitted(122, 48) Source(80, 52) + SourceIndex(0) +3 >Emitted(122, 51) Source(80, 35) + SourceIndex(0) +4 >Emitted(122, 65) Source(80, 57) + SourceIndex(0) +5 >Emitted(122, 66) Source(80, 58) + SourceIndex(0) --- >>> return ClassB; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(123, 21) Source(80, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) -2 >Emitted(123, 34) Source(80, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) +1 >Emitted(123, 21) Source(80, 59) + SourceIndex(0) +2 >Emitted(123, 34) Source(80, 60) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -2286,10 +2286,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassB { public BisIn1_2_2() { } } -1 >Emitted(124, 17) Source(80, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) -2 >Emitted(124, 18) Source(80, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassB) -3 >Emitted(124, 18) Source(80, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -4 >Emitted(124, 22) Source(80, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1 >Emitted(124, 17) Source(80, 59) + SourceIndex(0) +2 >Emitted(124, 18) Source(80, 60) + SourceIndex(0) +3 >Emitted(124, 18) Source(80, 13) + SourceIndex(0) +4 >Emitted(124, 22) Source(80, 60) + SourceIndex(0) --- >>> SubSubModule2.ClassB = ClassB; 1->^^^^^^^^^^^^^^^^ @@ -2300,23 +2300,23 @@ sourceFile:typeResolution.ts 2 > ClassB 3 > { public BisIn1_2_2() { } } 4 > -1->Emitted(125, 17) Source(80, 26) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -2 >Emitted(125, 37) Source(80, 32) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -3 >Emitted(125, 46) Source(80, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -4 >Emitted(125, 47) Source(80, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1->Emitted(125, 17) Source(80, 26) + SourceIndex(0) +2 >Emitted(125, 37) Source(80, 32) + SourceIndex(0) +3 >Emitted(125, 46) Source(80, 60) + SourceIndex(0) +4 >Emitted(125, 47) Source(80, 60) + SourceIndex(0) --- >>> var ClassC = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(126, 17) Source(81, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1 >Emitted(126, 17) Source(81, 13) + SourceIndex(0) --- >>> function ClassC() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(127, 21) Source(81, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) +1->Emitted(127, 21) Source(81, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -2324,8 +2324,8 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->export class ClassC { public CisIn1_2_2() { } 2 > } -1->Emitted(128, 21) Source(81, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC.constructor) -2 >Emitted(128, 22) Source(81, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC.constructor) +1->Emitted(128, 21) Source(81, 59) + SourceIndex(0) +2 >Emitted(128, 22) Source(81, 60) + SourceIndex(0) --- >>> ClassC.prototype.CisIn1_2_2 = function () { }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -2338,21 +2338,21 @@ sourceFile:typeResolution.ts 3 > 4 > public CisIn1_2_2() { 5 > } -1->Emitted(129, 21) Source(81, 42) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) -2 >Emitted(129, 48) Source(81, 52) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) -3 >Emitted(129, 51) Source(81, 35) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) -4 >Emitted(129, 65) Source(81, 57) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC.CisIn1_2_2) -5 >Emitted(129, 66) Source(81, 58) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC.CisIn1_2_2) +1->Emitted(129, 21) Source(81, 42) + SourceIndex(0) +2 >Emitted(129, 48) Source(81, 52) + SourceIndex(0) +3 >Emitted(129, 51) Source(81, 35) + SourceIndex(0) +4 >Emitted(129, 65) Source(81, 57) + SourceIndex(0) +5 >Emitted(129, 66) Source(81, 58) + SourceIndex(0) --- >>> return ClassC; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(130, 21) Source(81, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) -2 >Emitted(130, 34) Source(81, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) +1 >Emitted(130, 21) Source(81, 59) + SourceIndex(0) +2 >Emitted(130, 34) Source(81, 60) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^^^^^ 2 > ^ 3 > @@ -2362,10 +2362,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassC { public CisIn1_2_2() { } } -1 >Emitted(131, 17) Source(81, 59) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) -2 >Emitted(131, 18) Source(81, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2.ClassC) -3 >Emitted(131, 18) Source(81, 13) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -4 >Emitted(131, 22) Source(81, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1 >Emitted(131, 17) Source(81, 59) + SourceIndex(0) +2 >Emitted(131, 18) Source(81, 60) + SourceIndex(0) +3 >Emitted(131, 18) Source(81, 13) + SourceIndex(0) +4 >Emitted(131, 22) Source(81, 60) + SourceIndex(0) --- >>> SubSubModule2.ClassC = ClassC; 1->^^^^^^^^^^^^^^^^ @@ -2377,10 +2377,10 @@ sourceFile:typeResolution.ts 2 > ClassC 3 > { public CisIn1_2_2() { } } 4 > -1->Emitted(132, 17) Source(81, 26) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -2 >Emitted(132, 37) Source(81, 32) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -3 >Emitted(132, 46) Source(81, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -4 >Emitted(132, 47) Source(81, 60) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) +1->Emitted(132, 17) Source(81, 26) + SourceIndex(0) +2 >Emitted(132, 37) Source(81, 32) + SourceIndex(0) +3 >Emitted(132, 46) Source(81, 60) + SourceIndex(0) +4 >Emitted(132, 47) Source(81, 60) + SourceIndex(0) --- >>> })(SubSubModule2 = SubModule2.SubSubModule2 || (SubModule2.SubSubModule2 = {})); 1->^^^^^^^^^^^^ @@ -2411,15 +2411,15 @@ sourceFile:typeResolution.ts > export interface InterfaceY { YisIn1_2_2(); } > interface NonExportedInterfaceQ { } > } -1->Emitted(133, 13) Source(84, 9) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -2 >Emitted(133, 14) Source(84, 10) + SourceIndex(0) name (TopLevelModule1.SubModule2.SubSubModule2) -3 >Emitted(133, 16) Source(77, 23) + SourceIndex(0) name (TopLevelModule1.SubModule2) -4 >Emitted(133, 29) Source(77, 36) + SourceIndex(0) name (TopLevelModule1.SubModule2) -5 >Emitted(133, 32) Source(77, 23) + SourceIndex(0) name (TopLevelModule1.SubModule2) -6 >Emitted(133, 56) Source(77, 36) + SourceIndex(0) name (TopLevelModule1.SubModule2) -7 >Emitted(133, 61) Source(77, 23) + SourceIndex(0) name (TopLevelModule1.SubModule2) -8 >Emitted(133, 85) Source(77, 36) + SourceIndex(0) name (TopLevelModule1.SubModule2) -9 >Emitted(133, 93) Source(84, 10) + SourceIndex(0) name (TopLevelModule1.SubModule2) +1->Emitted(133, 13) Source(84, 9) + SourceIndex(0) +2 >Emitted(133, 14) Source(84, 10) + SourceIndex(0) +3 >Emitted(133, 16) Source(77, 23) + SourceIndex(0) +4 >Emitted(133, 29) Source(77, 36) + SourceIndex(0) +5 >Emitted(133, 32) Source(77, 23) + SourceIndex(0) +6 >Emitted(133, 56) Source(77, 36) + SourceIndex(0) +7 >Emitted(133, 61) Source(77, 23) + SourceIndex(0) +8 >Emitted(133, 85) Source(77, 36) + SourceIndex(0) +9 >Emitted(133, 93) Source(84, 10) + SourceIndex(0) --- >>> })(SubModule2 = TopLevelModule1.SubModule2 || (TopLevelModule1.SubModule2 = {})); 1 >^^^^^^^^ @@ -2454,15 +2454,15 @@ sourceFile:typeResolution.ts > > export interface InterfaceY { YisIn1_2(); } > } -1 >Emitted(134, 9) Source(87, 5) + SourceIndex(0) name (TopLevelModule1.SubModule2) -2 >Emitted(134, 10) Source(87, 6) + SourceIndex(0) name (TopLevelModule1.SubModule2) -3 >Emitted(134, 12) Source(76, 19) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(134, 22) Source(76, 29) + SourceIndex(0) name (TopLevelModule1) -5 >Emitted(134, 25) Source(76, 19) + SourceIndex(0) name (TopLevelModule1) -6 >Emitted(134, 51) Source(76, 29) + SourceIndex(0) name (TopLevelModule1) -7 >Emitted(134, 56) Source(76, 19) + SourceIndex(0) name (TopLevelModule1) -8 >Emitted(134, 82) Source(76, 29) + SourceIndex(0) name (TopLevelModule1) -9 >Emitted(134, 90) Source(87, 6) + SourceIndex(0) name (TopLevelModule1) +1 >Emitted(134, 9) Source(87, 5) + SourceIndex(0) +2 >Emitted(134, 10) Source(87, 6) + SourceIndex(0) +3 >Emitted(134, 12) Source(76, 19) + SourceIndex(0) +4 >Emitted(134, 22) Source(76, 29) + SourceIndex(0) +5 >Emitted(134, 25) Source(76, 19) + SourceIndex(0) +6 >Emitted(134, 51) Source(76, 29) + SourceIndex(0) +7 >Emitted(134, 56) Source(76, 19) + SourceIndex(0) +8 >Emitted(134, 82) Source(76, 29) + SourceIndex(0) +9 >Emitted(134, 90) Source(87, 6) + SourceIndex(0) --- >>> var ClassA = (function () { 1 >^^^^^^^^ @@ -2470,13 +2470,13 @@ sourceFile:typeResolution.ts 1 > > > -1 >Emitted(135, 9) Source(89, 5) + SourceIndex(0) name (TopLevelModule1) +1 >Emitted(135, 9) Source(89, 5) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(136, 13) Source(89, 5) + SourceIndex(0) name (TopLevelModule1.ClassA) +1->Emitted(136, 13) Source(89, 5) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -2486,8 +2486,8 @@ sourceFile:typeResolution.ts > public AisIn1() { } > 2 > } -1->Emitted(137, 13) Source(91, 5) + SourceIndex(0) name (TopLevelModule1.ClassA.constructor) -2 >Emitted(137, 14) Source(91, 6) + SourceIndex(0) name (TopLevelModule1.ClassA.constructor) +1->Emitted(137, 13) Source(91, 5) + SourceIndex(0) +2 >Emitted(137, 14) Source(91, 6) + SourceIndex(0) --- >>> ClassA.prototype.AisIn1 = function () { }; 1->^^^^^^^^^^^^ @@ -2500,11 +2500,11 @@ sourceFile:typeResolution.ts 3 > 4 > public AisIn1() { 5 > } -1->Emitted(138, 13) Source(90, 16) + SourceIndex(0) name (TopLevelModule1.ClassA) -2 >Emitted(138, 36) Source(90, 22) + SourceIndex(0) name (TopLevelModule1.ClassA) -3 >Emitted(138, 39) Source(90, 9) + SourceIndex(0) name (TopLevelModule1.ClassA) -4 >Emitted(138, 53) Source(90, 27) + SourceIndex(0) name (TopLevelModule1.ClassA.AisIn1) -5 >Emitted(138, 54) Source(90, 28) + SourceIndex(0) name (TopLevelModule1.ClassA.AisIn1) +1->Emitted(138, 13) Source(90, 16) + SourceIndex(0) +2 >Emitted(138, 36) Source(90, 22) + SourceIndex(0) +3 >Emitted(138, 39) Source(90, 9) + SourceIndex(0) +4 >Emitted(138, 53) Source(90, 27) + SourceIndex(0) +5 >Emitted(138, 54) Source(90, 28) + SourceIndex(0) --- >>> return ClassA; 1 >^^^^^^^^^^^^ @@ -2512,10 +2512,10 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(139, 13) Source(91, 5) + SourceIndex(0) name (TopLevelModule1.ClassA) -2 >Emitted(139, 26) Source(91, 6) + SourceIndex(0) name (TopLevelModule1.ClassA) +1 >Emitted(139, 13) Source(91, 5) + SourceIndex(0) +2 >Emitted(139, 26) Source(91, 6) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^ 2 > ^ 3 > @@ -2527,10 +2527,10 @@ sourceFile:typeResolution.ts 4 > class ClassA { > public AisIn1() { } > } -1 >Emitted(140, 9) Source(91, 5) + SourceIndex(0) name (TopLevelModule1.ClassA) -2 >Emitted(140, 10) Source(91, 6) + SourceIndex(0) name (TopLevelModule1.ClassA) -3 >Emitted(140, 10) Source(89, 5) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(140, 14) Source(91, 6) + SourceIndex(0) name (TopLevelModule1) +1 >Emitted(140, 9) Source(91, 5) + SourceIndex(0) +2 >Emitted(140, 10) Source(91, 6) + SourceIndex(0) +3 >Emitted(140, 10) Source(89, 5) + SourceIndex(0) +4 >Emitted(140, 14) Source(91, 6) + SourceIndex(0) --- >>> var NotExportedModule; 1->^^^^^^^^ @@ -2550,10 +2550,10 @@ sourceFile:typeResolution.ts 4 > { > export class ClassA { } > } -1->Emitted(141, 9) Source(97, 5) + SourceIndex(0) name (TopLevelModule1) -2 >Emitted(141, 13) Source(97, 12) + SourceIndex(0) name (TopLevelModule1) -3 >Emitted(141, 30) Source(97, 29) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(141, 31) Source(99, 6) + SourceIndex(0) name (TopLevelModule1) +1->Emitted(141, 9) Source(97, 5) + SourceIndex(0) +2 >Emitted(141, 13) Source(97, 12) + SourceIndex(0) +3 >Emitted(141, 30) Source(97, 29) + SourceIndex(0) +4 >Emitted(141, 31) Source(99, 6) + SourceIndex(0) --- >>> (function (NotExportedModule) { 1->^^^^^^^^ @@ -2567,24 +2567,24 @@ sourceFile:typeResolution.ts 3 > NotExportedModule 4 > 5 > { -1->Emitted(142, 9) Source(97, 5) + SourceIndex(0) name (TopLevelModule1) -2 >Emitted(142, 20) Source(97, 12) + SourceIndex(0) name (TopLevelModule1) -3 >Emitted(142, 37) Source(97, 29) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(142, 39) Source(97, 30) + SourceIndex(0) name (TopLevelModule1) -5 >Emitted(142, 40) Source(97, 31) + SourceIndex(0) name (TopLevelModule1) +1->Emitted(142, 9) Source(97, 5) + SourceIndex(0) +2 >Emitted(142, 20) Source(97, 12) + SourceIndex(0) +3 >Emitted(142, 37) Source(97, 29) + SourceIndex(0) +4 >Emitted(142, 39) Source(97, 30) + SourceIndex(0) +5 >Emitted(142, 40) Source(97, 31) + SourceIndex(0) --- >>> var ClassA = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(143, 13) Source(98, 9) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) +1->Emitted(143, 13) Source(98, 9) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(144, 17) Source(98, 9) + SourceIndex(0) name (TopLevelModule1.NotExportedModule.ClassA) +1->Emitted(144, 17) Source(98, 9) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -2592,18 +2592,18 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^-> 1->export class ClassA { 2 > } -1->Emitted(145, 17) Source(98, 31) + SourceIndex(0) name (TopLevelModule1.NotExportedModule.ClassA.constructor) -2 >Emitted(145, 18) Source(98, 32) + SourceIndex(0) name (TopLevelModule1.NotExportedModule.ClassA.constructor) +1->Emitted(145, 17) Source(98, 31) + SourceIndex(0) +2 >Emitted(145, 18) Source(98, 32) + SourceIndex(0) --- >>> return ClassA; 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(146, 17) Source(98, 31) + SourceIndex(0) name (TopLevelModule1.NotExportedModule.ClassA) -2 >Emitted(146, 30) Source(98, 32) + SourceIndex(0) name (TopLevelModule1.NotExportedModule.ClassA) +1->Emitted(146, 17) Source(98, 31) + SourceIndex(0) +2 >Emitted(146, 30) Source(98, 32) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^ 2 > ^ 3 > @@ -2613,10 +2613,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassA { } -1 >Emitted(147, 13) Source(98, 31) + SourceIndex(0) name (TopLevelModule1.NotExportedModule.ClassA) -2 >Emitted(147, 14) Source(98, 32) + SourceIndex(0) name (TopLevelModule1.NotExportedModule.ClassA) -3 >Emitted(147, 14) Source(98, 9) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) -4 >Emitted(147, 18) Source(98, 32) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) +1 >Emitted(147, 13) Source(98, 31) + SourceIndex(0) +2 >Emitted(147, 14) Source(98, 32) + SourceIndex(0) +3 >Emitted(147, 14) Source(98, 9) + SourceIndex(0) +4 >Emitted(147, 18) Source(98, 32) + SourceIndex(0) --- >>> NotExportedModule.ClassA = ClassA; 1->^^^^^^^^^^^^ @@ -2628,10 +2628,10 @@ sourceFile:typeResolution.ts 2 > ClassA 3 > { } 4 > -1->Emitted(148, 13) Source(98, 22) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) -2 >Emitted(148, 37) Source(98, 28) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) -3 >Emitted(148, 46) Source(98, 32) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) -4 >Emitted(148, 47) Source(98, 32) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) +1->Emitted(148, 13) Source(98, 22) + SourceIndex(0) +2 >Emitted(148, 37) Source(98, 28) + SourceIndex(0) +3 >Emitted(148, 46) Source(98, 32) + SourceIndex(0) +4 >Emitted(148, 47) Source(98, 32) + SourceIndex(0) --- >>> })(NotExportedModule || (NotExportedModule = {})); 1->^^^^^^^^ @@ -2652,13 +2652,13 @@ sourceFile:typeResolution.ts 7 > { > export class ClassA { } > } -1->Emitted(149, 9) Source(99, 5) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) -2 >Emitted(149, 10) Source(99, 6) + SourceIndex(0) name (TopLevelModule1.NotExportedModule) -3 >Emitted(149, 12) Source(97, 12) + SourceIndex(0) name (TopLevelModule1) -4 >Emitted(149, 29) Source(97, 29) + SourceIndex(0) name (TopLevelModule1) -5 >Emitted(149, 34) Source(97, 12) + SourceIndex(0) name (TopLevelModule1) -6 >Emitted(149, 51) Source(97, 29) + SourceIndex(0) name (TopLevelModule1) -7 >Emitted(149, 59) Source(99, 6) + SourceIndex(0) name (TopLevelModule1) +1->Emitted(149, 9) Source(99, 5) + SourceIndex(0) +2 >Emitted(149, 10) Source(99, 6) + SourceIndex(0) +3 >Emitted(149, 12) Source(97, 12) + SourceIndex(0) +4 >Emitted(149, 29) Source(97, 29) + SourceIndex(0) +5 >Emitted(149, 34) Source(97, 12) + SourceIndex(0) +6 >Emitted(149, 51) Source(97, 29) + SourceIndex(0) +7 >Emitted(149, 59) Source(99, 6) + SourceIndex(0) --- >>> })(TopLevelModule1 = exports.TopLevelModule1 || (exports.TopLevelModule1 = {})); 1->^^^^ @@ -2779,8 +2779,8 @@ sourceFile:typeResolution.ts > export class ClassA { } > } > } -1->Emitted(150, 5) Source(100, 1) + SourceIndex(0) name (TopLevelModule1) -2 >Emitted(150, 6) Source(100, 2) + SourceIndex(0) name (TopLevelModule1) +1->Emitted(150, 5) Source(100, 1) + SourceIndex(0) +2 >Emitted(150, 6) Source(100, 2) + SourceIndex(0) 3 >Emitted(150, 8) Source(1, 15) + SourceIndex(0) 4 >Emitted(150, 23) Source(1, 30) + SourceIndex(0) 5 >Emitted(150, 26) Source(1, 15) + SourceIndex(0) @@ -2844,10 +2844,10 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > } > } -1 >Emitted(153, 9) Source(103, 5) + SourceIndex(0) name (TopLevelModule2) -2 >Emitted(153, 13) Source(103, 19) + SourceIndex(0) name (TopLevelModule2) -3 >Emitted(153, 23) Source(103, 29) + SourceIndex(0) name (TopLevelModule2) -4 >Emitted(153, 24) Source(107, 6) + SourceIndex(0) name (TopLevelModule2) +1 >Emitted(153, 9) Source(103, 5) + SourceIndex(0) +2 >Emitted(153, 13) Source(103, 19) + SourceIndex(0) +3 >Emitted(153, 23) Source(103, 29) + SourceIndex(0) +4 >Emitted(153, 24) Source(107, 6) + SourceIndex(0) --- >>> (function (SubModule3) { 1->^^^^^^^^ @@ -2861,24 +2861,24 @@ sourceFile:typeResolution.ts 3 > SubModule3 4 > 5 > { -1->Emitted(154, 9) Source(103, 5) + SourceIndex(0) name (TopLevelModule2) -2 >Emitted(154, 20) Source(103, 19) + SourceIndex(0) name (TopLevelModule2) -3 >Emitted(154, 30) Source(103, 29) + SourceIndex(0) name (TopLevelModule2) -4 >Emitted(154, 32) Source(103, 30) + SourceIndex(0) name (TopLevelModule2) -5 >Emitted(154, 33) Source(103, 31) + SourceIndex(0) name (TopLevelModule2) +1->Emitted(154, 9) Source(103, 5) + SourceIndex(0) +2 >Emitted(154, 20) Source(103, 19) + SourceIndex(0) +3 >Emitted(154, 30) Source(103, 29) + SourceIndex(0) +4 >Emitted(154, 32) Source(103, 30) + SourceIndex(0) +5 >Emitted(154, 33) Source(103, 31) + SourceIndex(0) --- >>> var ClassA = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(155, 13) Source(104, 9) + SourceIndex(0) name (TopLevelModule2.SubModule3) +1->Emitted(155, 13) Source(104, 9) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(156, 17) Source(104, 9) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) +1->Emitted(156, 17) Source(104, 9) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -2888,8 +2888,8 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > 2 > } -1->Emitted(157, 17) Source(106, 9) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA.constructor) -2 >Emitted(157, 18) Source(106, 10) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA.constructor) +1->Emitted(157, 17) Source(106, 9) + SourceIndex(0) +2 >Emitted(157, 18) Source(106, 10) + SourceIndex(0) --- >>> ClassA.prototype.AisIn2_3 = function () { }; 1->^^^^^^^^^^^^^^^^ @@ -2902,11 +2902,11 @@ sourceFile:typeResolution.ts 3 > 4 > public AisIn2_3() { 5 > } -1->Emitted(158, 17) Source(105, 20) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) -2 >Emitted(158, 42) Source(105, 28) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) -3 >Emitted(158, 45) Source(105, 13) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) -4 >Emitted(158, 59) Source(105, 33) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA.AisIn2_3) -5 >Emitted(158, 60) Source(105, 34) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA.AisIn2_3) +1->Emitted(158, 17) Source(105, 20) + SourceIndex(0) +2 >Emitted(158, 42) Source(105, 28) + SourceIndex(0) +3 >Emitted(158, 45) Source(105, 13) + SourceIndex(0) +4 >Emitted(158, 59) Source(105, 33) + SourceIndex(0) +5 >Emitted(158, 60) Source(105, 34) + SourceIndex(0) --- >>> return ClassA; 1 >^^^^^^^^^^^^^^^^ @@ -2914,10 +2914,10 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(159, 17) Source(106, 9) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) -2 >Emitted(159, 30) Source(106, 10) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) +1 >Emitted(159, 17) Source(106, 9) + SourceIndex(0) +2 >Emitted(159, 30) Source(106, 10) + SourceIndex(0) --- ->>> })(); +>>> }()); 1 >^^^^^^^^^^^^ 2 > ^ 3 > @@ -2929,10 +2929,10 @@ sourceFile:typeResolution.ts 4 > export class ClassA { > public AisIn2_3() { } > } -1 >Emitted(160, 13) Source(106, 9) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) -2 >Emitted(160, 14) Source(106, 10) + SourceIndex(0) name (TopLevelModule2.SubModule3.ClassA) -3 >Emitted(160, 14) Source(104, 9) + SourceIndex(0) name (TopLevelModule2.SubModule3) -4 >Emitted(160, 18) Source(106, 10) + SourceIndex(0) name (TopLevelModule2.SubModule3) +1 >Emitted(160, 13) Source(106, 9) + SourceIndex(0) +2 >Emitted(160, 14) Source(106, 10) + SourceIndex(0) +3 >Emitted(160, 14) Source(104, 9) + SourceIndex(0) +4 >Emitted(160, 18) Source(106, 10) + SourceIndex(0) --- >>> SubModule3.ClassA = ClassA; 1->^^^^^^^^^^^^ @@ -2946,10 +2946,10 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > } 4 > -1->Emitted(161, 13) Source(104, 22) + SourceIndex(0) name (TopLevelModule2.SubModule3) -2 >Emitted(161, 30) Source(104, 28) + SourceIndex(0) name (TopLevelModule2.SubModule3) -3 >Emitted(161, 39) Source(106, 10) + SourceIndex(0) name (TopLevelModule2.SubModule3) -4 >Emitted(161, 40) Source(106, 10) + SourceIndex(0) name (TopLevelModule2.SubModule3) +1->Emitted(161, 13) Source(104, 22) + SourceIndex(0) +2 >Emitted(161, 30) Source(104, 28) + SourceIndex(0) +3 >Emitted(161, 39) Source(106, 10) + SourceIndex(0) +4 >Emitted(161, 40) Source(106, 10) + SourceIndex(0) --- >>> })(SubModule3 = TopLevelModule2.SubModule3 || (TopLevelModule2.SubModule3 = {})); 1->^^^^^^^^ @@ -2975,15 +2975,15 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > } > } -1->Emitted(162, 9) Source(107, 5) + SourceIndex(0) name (TopLevelModule2.SubModule3) -2 >Emitted(162, 10) Source(107, 6) + SourceIndex(0) name (TopLevelModule2.SubModule3) -3 >Emitted(162, 12) Source(103, 19) + SourceIndex(0) name (TopLevelModule2) -4 >Emitted(162, 22) Source(103, 29) + SourceIndex(0) name (TopLevelModule2) -5 >Emitted(162, 25) Source(103, 19) + SourceIndex(0) name (TopLevelModule2) -6 >Emitted(162, 51) Source(103, 29) + SourceIndex(0) name (TopLevelModule2) -7 >Emitted(162, 56) Source(103, 19) + SourceIndex(0) name (TopLevelModule2) -8 >Emitted(162, 82) Source(103, 29) + SourceIndex(0) name (TopLevelModule2) -9 >Emitted(162, 90) Source(107, 6) + SourceIndex(0) name (TopLevelModule2) +1->Emitted(162, 9) Source(107, 5) + SourceIndex(0) +2 >Emitted(162, 10) Source(107, 6) + SourceIndex(0) +3 >Emitted(162, 12) Source(103, 19) + SourceIndex(0) +4 >Emitted(162, 22) Source(103, 29) + SourceIndex(0) +5 >Emitted(162, 25) Source(103, 19) + SourceIndex(0) +6 >Emitted(162, 51) Source(103, 29) + SourceIndex(0) +7 >Emitted(162, 56) Source(103, 19) + SourceIndex(0) +8 >Emitted(162, 82) Source(103, 29) + SourceIndex(0) +9 >Emitted(162, 90) Source(107, 6) + SourceIndex(0) --- >>> })(TopLevelModule2 || (TopLevelModule2 = {})); 1 >^^^^ @@ -3007,8 +3007,8 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(163, 5) Source(108, 1) + SourceIndex(0) name (TopLevelModule2) -2 >Emitted(163, 6) Source(108, 2) + SourceIndex(0) name (TopLevelModule2) +1 >Emitted(163, 5) Source(108, 1) + SourceIndex(0) +2 >Emitted(163, 6) Source(108, 2) + SourceIndex(0) 3 >Emitted(163, 8) Source(102, 8) + SourceIndex(0) 4 >Emitted(163, 23) Source(102, 23) + SourceIndex(0) 5 >Emitted(163, 28) Source(102, 8) + SourceIndex(0) diff --git a/tests/baselines/reference/typeValueConflict1.js b/tests/baselines/reference/typeValueConflict1.js index 0a6e92d0d62..eaca97d31dd 100644 --- a/tests/baselines/reference/typeValueConflict1.js +++ b/tests/baselines/reference/typeValueConflict1.js @@ -23,7 +23,7 @@ var M1; function A() { } return A; - })(); + }()); M1.A = A; })(M1 || (M1 = {})); var M2; @@ -36,5 +36,5 @@ var M2; _super.apply(this, arguments); } return B; - })(M1.A); + }(M1.A)); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/typeValueConflict2.js b/tests/baselines/reference/typeValueConflict2.js index 6e925b535a3..d89ab0fd357 100644 --- a/tests/baselines/reference/typeValueConflict2.js +++ b/tests/baselines/reference/typeValueConflict2.js @@ -30,7 +30,7 @@ var M1; function A(a) { } return A; - })(); + }()); M1.A = A; })(M1 || (M1 = {})); var M2; @@ -43,7 +43,7 @@ var M2; _super.apply(this, arguments); } return B; - })(M1.A); + }(M1.A)); })(M2 || (M2 = {})); var M3; (function (M3) { @@ -54,5 +54,5 @@ var M3; _super.apply(this, arguments); } return B; - })(M1.A); + }(M1.A)); })(M3 || (M3 = {})); diff --git a/tests/baselines/reference/typedGenericPrototypeMember.js b/tests/baselines/reference/typedGenericPrototypeMember.js index e5ba2e0e75f..16b4d93315f 100644 --- a/tests/baselines/reference/typedGenericPrototypeMember.js +++ b/tests/baselines/reference/typedGenericPrototypeMember.js @@ -12,5 +12,5 @@ var List = (function () { } List.prototype.add = function (item) { }; return List; -})(); +}()); List.prototype.add("abc"); // Valid because T is instantiated to any diff --git a/tests/baselines/reference/typeofANonExportedType.errors.txt b/tests/baselines/reference/typeofANonExportedType.errors.txt index d07468f62e1..2399938dcfc 100644 --- a/tests/baselines/reference/typeofANonExportedType.errors.txt +++ b/tests/baselines/reference/typeofANonExportedType.errors.txt @@ -1,12 +1,14 @@ -tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType.ts(2,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. +tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType.ts(20,12): error TS2323: Cannot redeclare exported variable 'r5'. +tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType.ts(21,12): error TS2323: Cannot redeclare exported variable 'r5'. tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType.ts(42,12): error TS2502: 'r12' is referenced directly or indirectly in its own type annotation. -==== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType.ts (2 errors) ==== +==== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType.ts (4 errors) ==== var x = 1; export var r1: typeof x; ~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. var y = { foo: '' }; export var r2: typeof y; class C { @@ -25,7 +27,11 @@ tests/cases/conformance/types/specifyingTypes/typeQueries/typeofANonExportedType export var i: I; var i2: I; export var r5: typeof i; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'r5'. export var r5: typeof i2; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'r5'. module M { export var foo = ''; diff --git a/tests/baselines/reference/typeofANonExportedType.js b/tests/baselines/reference/typeofANonExportedType.js index b575d4f8d4b..76e908e622d 100644 --- a/tests/baselines/reference/typeofANonExportedType.js +++ b/tests/baselines/reference/typeofANonExportedType.js @@ -59,7 +59,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c2; var i2; var M; @@ -69,7 +69,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; })(M || (M = {})); var E; @@ -84,6 +84,6 @@ var foo; function C() { } return C; - })(); + }()); foo.C = C; })(foo || (foo = {})); diff --git a/tests/baselines/reference/typeofAmbientExternalModules.js b/tests/baselines/reference/typeofAmbientExternalModules.js index 258ca3fdc2e..9bcc5a2fa15 100644 --- a/tests/baselines/reference/typeofAmbientExternalModules.js +++ b/tests/baselines/reference/typeofAmbientExternalModules.js @@ -24,7 +24,7 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; //// [typeofAmbientExternalModules_1.js] "use strict"; @@ -32,7 +32,7 @@ var D = (function () { function D() { } return D; -})(); +}()); module.exports = D; //// [typeofAmbientExternalModules_2.js] "use strict"; diff --git a/tests/baselines/reference/typeofAnExportedType.errors.txt b/tests/baselines/reference/typeofAnExportedType.errors.txt index cb6d8c68887..9740909bd59 100644 --- a/tests/baselines/reference/typeofAnExportedType.errors.txt +++ b/tests/baselines/reference/typeofAnExportedType.errors.txt @@ -1,11 +1,13 @@ -tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. +tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts(1,1): error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. +tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts(20,12): error TS2323: Cannot redeclare exported variable 'r5'. +tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts(21,12): error TS2323: Cannot redeclare exported variable 'r5'. tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts(42,12): error TS2502: 'r12' is referenced directly or indirectly in its own type annotation. -==== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts (2 errors) ==== +==== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts (4 errors) ==== export var x = 1; ~~~~~~~~~~~~~~~~~ -!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file. export var r1: typeof x; export var y = { foo: '' }; export var r2: typeof y; @@ -25,7 +27,11 @@ tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.t export var i: I; var i2: I; export var r5: typeof i; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'r5'. export var r5: typeof i2; + ~~ +!!! error TS2323: Cannot redeclare exported variable 'r5'. export module M { export var foo = ''; diff --git a/tests/baselines/reference/typeofAnExportedType.js b/tests/baselines/reference/typeofAnExportedType.js index 83c928fd40a..0930039d253 100644 --- a/tests/baselines/reference/typeofAnExportedType.js +++ b/tests/baselines/reference/typeofAnExportedType.js @@ -59,7 +59,7 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; var c2; var i2; @@ -70,7 +70,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; })(M = exports.M || (exports.M = {})); exports.Z = M; @@ -87,6 +87,6 @@ var foo; function C() { } return C; - })(); + }()); foo.C = C; })(foo = exports.foo || (exports.foo = {})); diff --git a/tests/baselines/reference/typeofClass.js b/tests/baselines/reference/typeofClass.js index 13487fe9c30..8b257583d7b 100644 --- a/tests/baselines/reference/typeofClass.js +++ b/tests/baselines/reference/typeofClass.js @@ -16,7 +16,7 @@ var K = (function () { function K() { } return K; -})(); +}()); var k1; k1.foo; k1.bar; diff --git a/tests/baselines/reference/typeofClass2.js b/tests/baselines/reference/typeofClass2.js index d16abbda6e5..a0c30c1b166 100644 --- a/tests/baselines/reference/typeofClass2.js +++ b/tests/baselines/reference/typeofClass2.js @@ -33,7 +33,7 @@ var C = (function () { C.foo = function (x) { }; C.bar = function (x) { }; return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -42,7 +42,7 @@ var D = (function (_super) { D.baz = function (x) { }; D.prototype.foo = function () { }; return D; -})(C); +}(C)); var d; var r1; var r2; diff --git a/tests/baselines/reference/typeofClassWithPrivates.js b/tests/baselines/reference/typeofClassWithPrivates.js index 53b46c43bbb..e517f6e4712 100644 --- a/tests/baselines/reference/typeofClassWithPrivates.js +++ b/tests/baselines/reference/typeofClassWithPrivates.js @@ -15,7 +15,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var c; var r; var r2; diff --git a/tests/baselines/reference/typeofExternalModules.js b/tests/baselines/reference/typeofExternalModules.js index 95c3202ed36..0bb9f6820f6 100644 --- a/tests/baselines/reference/typeofExternalModules.js +++ b/tests/baselines/reference/typeofExternalModules.js @@ -22,7 +22,7 @@ var C = (function () { function C() { } return C; -})(); +}()); exports.C = C; //// [typeofExternalModules_exportAssign.js] "use strict"; @@ -30,7 +30,7 @@ var D = (function () { function D() { } return D; -})(); +}()); module.exports = D; //// [typeofExternalModules_core.js] "use strict"; diff --git a/tests/baselines/reference/typeofInternalModules.js b/tests/baselines/reference/typeofInternalModules.js index b885d8c9dce..7f15dc87a46 100644 --- a/tests/baselines/reference/typeofInternalModules.js +++ b/tests/baselines/reference/typeofInternalModules.js @@ -33,7 +33,7 @@ var Outer; function C() { } return C; - })(); + }()); instantiated.C = C; })(instantiated = Outer.instantiated || (Outer.instantiated = {})); })(Outer || (Outer = {})); diff --git a/tests/baselines/reference/typeofModuleWithoutExports.js b/tests/baselines/reference/typeofModuleWithoutExports.js index 96034be3c1b..a29bd9b6a37 100644 --- a/tests/baselines/reference/typeofModuleWithoutExports.js +++ b/tests/baselines/reference/typeofModuleWithoutExports.js @@ -16,6 +16,6 @@ var M; function C() { } return C; - })(); + }()); })(M || (M = {})); var r; diff --git a/tests/baselines/reference/typeofOperatorWithAnyOtherType.js b/tests/baselines/reference/typeofOperatorWithAnyOtherType.js index 1c66c5f4d1e..a868aad1815 100644 --- a/tests/baselines/reference/typeofOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/typeofOperatorWithAnyOtherType.js @@ -93,7 +93,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/typeofOperatorWithBooleanType.js b/tests/baselines/reference/typeofOperatorWithBooleanType.js index b9db33b11a4..cf7bbcd5f73 100644 --- a/tests/baselines/reference/typeofOperatorWithBooleanType.js +++ b/tests/baselines/reference/typeofOperatorWithBooleanType.js @@ -60,7 +60,7 @@ var A = (function () { } A.foo = function () { return false; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/typeofOperatorWithNumberType.js b/tests/baselines/reference/typeofOperatorWithNumberType.js index b980b820ce1..ecf3eebe5b6 100644 --- a/tests/baselines/reference/typeofOperatorWithNumberType.js +++ b/tests/baselines/reference/typeofOperatorWithNumberType.js @@ -67,7 +67,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/typeofOperatorWithStringType.js b/tests/baselines/reference/typeofOperatorWithStringType.js index 9b5cbb20b36..14b712397df 100644 --- a/tests/baselines/reference/typeofOperatorWithStringType.js +++ b/tests/baselines/reference/typeofOperatorWithStringType.js @@ -67,7 +67,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/typeofProperty.js b/tests/baselines/reference/typeofProperty.js index 6735883bc8f..b7f1ea68cc4 100644 --- a/tests/baselines/reference/typeofProperty.js +++ b/tests/baselines/reference/typeofProperty.js @@ -53,22 +53,22 @@ var C1 = (function () { function C1() { } return C1; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3() { } return C3; -})(); +}()); var ValidClass = (function () { function ValidClass() { } return ValidClass; -})(); +}()); var vcInstance = new ValidClass(); var viInstance = vcInstance; var x1; // x1: string diff --git a/tests/baselines/reference/typesWithDuplicateTypeParameters.js b/tests/baselines/reference/typesWithDuplicateTypeParameters.js index cc80d4d57b4..d0c6c450e4b 100644 --- a/tests/baselines/reference/typesWithDuplicateTypeParameters.js +++ b/tests/baselines/reference/typesWithDuplicateTypeParameters.js @@ -13,11 +13,11 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); function f() { } function f2() { } diff --git a/tests/baselines/reference/typesWithPrivateConstructor.errors.txt b/tests/baselines/reference/typesWithPrivateConstructor.errors.txt index 2440e51cd39..261038a1f4a 100644 --- a/tests/baselines/reference/typesWithPrivateConstructor.errors.txt +++ b/tests/baselines/reference/typesWithPrivateConstructor.errors.txt @@ -1,5 +1,6 @@ tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(4,5): error TS1089: 'private' modifier cannot appear on a constructor declaration. tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(8,5): error TS2322: Type 'Function' is not assignable to type '() => void'. + Type 'Function' provides no match for the signature '(): void' tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(11,5): error TS1089: 'private' modifier cannot appear on a constructor declaration. tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(12,5): error TS1089: 'private' modifier cannot appear on a constructor declaration. tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(15,10): error TS2346: Supplied parameters do not match any signature of call target. @@ -18,6 +19,7 @@ tests/cases/conformance/types/members/typesWithPrivateConstructor.ts(15,10): err var r: () => void = c.constructor; ~ !!! error TS2322: Type 'Function' is not assignable to type '() => void'. +!!! error TS2322: Type 'Function' provides no match for the signature '(): void' class C2 { private constructor(x: number); diff --git a/tests/baselines/reference/typesWithPrivateConstructor.js b/tests/baselines/reference/typesWithPrivateConstructor.js index 0faaa4428b5..d894eeda49a 100644 --- a/tests/baselines/reference/typesWithPrivateConstructor.js +++ b/tests/baselines/reference/typesWithPrivateConstructor.js @@ -22,13 +22,13 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); var r = c.constructor; var C2 = (function () { function C2(x) { } return C2; -})(); +}()); var c2 = new C2(); var r2 = c2.constructor; diff --git a/tests/baselines/reference/typesWithPublicConstructor.errors.txt b/tests/baselines/reference/typesWithPublicConstructor.errors.txt index a3d66c3520a..54bee79dae0 100644 --- a/tests/baselines/reference/typesWithPublicConstructor.errors.txt +++ b/tests/baselines/reference/typesWithPublicConstructor.errors.txt @@ -1,4 +1,5 @@ tests/cases/conformance/types/members/typesWithPublicConstructor.ts(8,5): error TS2322: Type 'Function' is not assignable to type '() => void'. + Type 'Function' provides no match for the signature '(): void' tests/cases/conformance/types/members/typesWithPublicConstructor.ts(15,10): error TS2346: Supplied parameters do not match any signature of call target. @@ -13,6 +14,7 @@ tests/cases/conformance/types/members/typesWithPublicConstructor.ts(15,10): erro var r: () => void = c.constructor; ~ !!! error TS2322: Type 'Function' is not assignable to type '() => void'. +!!! error TS2322: Type 'Function' provides no match for the signature '(): void' class C2 { public constructor(x: number); diff --git a/tests/baselines/reference/typesWithPublicConstructor.js b/tests/baselines/reference/typesWithPublicConstructor.js index 3a037ec0253..1078c95467c 100644 --- a/tests/baselines/reference/typesWithPublicConstructor.js +++ b/tests/baselines/reference/typesWithPublicConstructor.js @@ -22,13 +22,13 @@ var C = (function () { function C() { } return C; -})(); +}()); var c = new C(); var r = c.constructor; var C2 = (function () { function C2(x) { } return C2; -})(); +}()); var c2 = new C2(); var r2 = c2.constructor; diff --git a/tests/baselines/reference/typesWithSpecializedCallSignatures.js b/tests/baselines/reference/typesWithSpecializedCallSignatures.js index 3de4134789e..e83fd36ae62 100644 --- a/tests/baselines/reference/typesWithSpecializedCallSignatures.js +++ b/tests/baselines/reference/typesWithSpecializedCallSignatures.js @@ -52,21 +52,21 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { _super.apply(this, arguments); } return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var C = (function () { function C() { } @@ -74,7 +74,7 @@ var C = (function () { return x; }; return C; -})(); +}()); var c = new C(); var i; var a; diff --git a/tests/baselines/reference/typesWithSpecializedConstructSignatures.js b/tests/baselines/reference/typesWithSpecializedConstructSignatures.js index c66c471b3a1..63d5e9bb5b2 100644 --- a/tests/baselines/reference/typesWithSpecializedConstructSignatures.js +++ b/tests/baselines/reference/typesWithSpecializedConstructSignatures.js @@ -50,27 +50,27 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var Derived1 = (function (_super) { __extends(Derived1, _super); function Derived1() { _super.apply(this, arguments); } return Derived1; -})(Base); +}(Base)); var Derived2 = (function (_super) { __extends(Derived2, _super); function Derived2() { _super.apply(this, arguments); } return Derived2; -})(Base); +}(Base)); var C = (function () { function C(x) { return x; } return C; -})(); +}()); var c = new C('a'); var i; var a; diff --git a/tests/baselines/reference/undeclaredBase.js b/tests/baselines/reference/undeclaredBase.js index b1efffc0e24..3dd27a3dbfb 100644 --- a/tests/baselines/reference/undeclaredBase.js +++ b/tests/baselines/reference/undeclaredBase.js @@ -17,6 +17,6 @@ var M; _super.apply(this, arguments); } return C; - })(M.I); + }(M.I)); M.C = C; })(M || (M = {})); diff --git a/tests/baselines/reference/undeclaredMethod.js b/tests/baselines/reference/undeclaredMethod.js index 2cef06cc593..f80d9552724 100644 --- a/tests/baselines/reference/undeclaredMethod.js +++ b/tests/baselines/reference/undeclaredMethod.js @@ -21,7 +21,7 @@ var M; } C.prototype.salt = function () { }; return C; - })(); + }()); M.C = C; })(M || (M = {})); var c = new M.C(); diff --git a/tests/baselines/reference/undefinedAssignableToEveryType.js b/tests/baselines/reference/undefinedAssignableToEveryType.js index 08e1c4f1070..9646e7f4e87 100644 --- a/tests/baselines/reference/undefinedAssignableToEveryType.js +++ b/tests/baselines/reference/undefinedAssignableToEveryType.js @@ -47,7 +47,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var ac; var ai; var E; diff --git a/tests/baselines/reference/undefinedIsSubtypeOfEverything.js b/tests/baselines/reference/undefinedIsSubtypeOfEverything.js index c89c3f65381..513464daa85 100644 --- a/tests/baselines/reference/undefinedIsSubtypeOfEverything.js +++ b/tests/baselines/reference/undefinedIsSubtypeOfEverything.js @@ -132,112 +132,112 @@ var Base = (function () { function Base() { } return Base; -})(); +}()); var D0 = (function (_super) { __extends(D0, _super); function D0() { _super.apply(this, arguments); } return D0; -})(Base); +}(Base)); var DA = (function (_super) { __extends(DA, _super); function DA() { _super.apply(this, arguments); } return DA; -})(Base); +}(Base)); var D1 = (function (_super) { __extends(D1, _super); function D1() { _super.apply(this, arguments); } return D1; -})(Base); +}(Base)); var D1A = (function (_super) { __extends(D1A, _super); function D1A() { _super.apply(this, arguments); } return D1A; -})(Base); +}(Base)); var D2 = (function (_super) { __extends(D2, _super); function D2() { _super.apply(this, arguments); } return D2; -})(Base); +}(Base)); var D2A = (function (_super) { __extends(D2A, _super); function D2A() { _super.apply(this, arguments); } return D2A; -})(Base); +}(Base)); var D3 = (function (_super) { __extends(D3, _super); function D3() { _super.apply(this, arguments); } return D3; -})(Base); +}(Base)); var D3A = (function (_super) { __extends(D3A, _super); function D3A() { _super.apply(this, arguments); } return D3A; -})(Base); +}(Base)); var D4 = (function (_super) { __extends(D4, _super); function D4() { _super.apply(this, arguments); } return D4; -})(Base); +}(Base)); var D5 = (function (_super) { __extends(D5, _super); function D5() { _super.apply(this, arguments); } return D5; -})(Base); +}(Base)); var D6 = (function (_super) { __extends(D6, _super); function D6() { _super.apply(this, arguments); } return D6; -})(Base); +}(Base)); var D7 = (function (_super) { __extends(D7, _super); function D7() { _super.apply(this, arguments); } return D7; -})(Base); +}(Base)); var D8 = (function (_super) { __extends(D8, _super); function D8() { _super.apply(this, arguments); } return D8; -})(Base); +}(Base)); var D9 = (function (_super) { __extends(D9, _super); function D9() { _super.apply(this, arguments); } return D9; -})(Base); +}(Base)); var D10 = (function (_super) { __extends(D10, _super); function D10() { _super.apply(this, arguments); } return D10; -})(Base); +}(Base)); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -248,7 +248,7 @@ var D11 = (function (_super) { _super.apply(this, arguments); } return D11; -})(Base); +}(Base)); function f() { } var f; (function (f) { @@ -260,12 +260,12 @@ var D12 = (function (_super) { _super.apply(this, arguments); } return D12; -})(Base); +}(Base)); var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; @@ -276,21 +276,21 @@ var D13 = (function (_super) { _super.apply(this, arguments); } return D13; -})(Base); +}(Base)); var D14 = (function (_super) { __extends(D14, _super); function D14() { _super.apply(this, arguments); } return D14; -})(Base); +}(Base)); var D15 = (function (_super) { __extends(D15, _super); function D15() { _super.apply(this, arguments); } return D15; -})(Base); +}(Base)); //class D15 extends Base { // foo: U; //} @@ -300,11 +300,11 @@ var D16 = (function (_super) { _super.apply(this, arguments); } return D16; -})(Base); +}(Base)); var D17 = (function (_super) { __extends(D17, _super); function D17() { _super.apply(this, arguments); } return D17; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/undefinedTypeAssignment1.errors.txt b/tests/baselines/reference/undefinedTypeAssignment1.errors.txt new file mode 100644 index 00000000000..b8dd74a58a8 --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment1.errors.txt @@ -0,0 +1,11 @@ +tests/cases/compiler/undefinedTypeAssignment1.ts(1,1): error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + + +==== tests/cases/compiler/undefinedTypeAssignment1.ts (1 errors) ==== + type undefined = string; + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + function p(undefined = "wat") { + return undefined; + } + \ No newline at end of file diff --git a/tests/baselines/reference/undefinedTypeAssignment1.js b/tests/baselines/reference/undefinedTypeAssignment1.js new file mode 100644 index 00000000000..1f53c4f6c45 --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment1.js @@ -0,0 +1,12 @@ +//// [undefinedTypeAssignment1.ts] +type undefined = string; +function p(undefined = "wat") { + return undefined; +} + + +//// [undefinedTypeAssignment1.js] +function p(undefined) { + if (undefined === void 0) { undefined = "wat"; } + return undefined; +} diff --git a/tests/baselines/reference/undefinedTypeAssignment2.errors.txt b/tests/baselines/reference/undefinedTypeAssignment2.errors.txt new file mode 100644 index 00000000000..55fdbf0fc1b --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment2.errors.txt @@ -0,0 +1,8 @@ +tests/cases/compiler/undefinedTypeAssignment2.ts(1,5): error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + + +==== tests/cases/compiler/undefinedTypeAssignment2.ts (1 errors) ==== + var undefined = void 0; + ~~~~~~~~~ +!!! error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + \ No newline at end of file diff --git a/tests/baselines/reference/undefinedTypeAssignment2.js b/tests/baselines/reference/undefinedTypeAssignment2.js new file mode 100644 index 00000000000..040bc8c800d --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment2.js @@ -0,0 +1,6 @@ +//// [undefinedTypeAssignment2.ts] +var undefined = void 0; + + +//// [undefinedTypeAssignment2.js] +var undefined = void 0; diff --git a/tests/baselines/reference/undefinedTypeAssignment3.errors.txt b/tests/baselines/reference/undefinedTypeAssignment3.errors.txt new file mode 100644 index 00000000000..88df370940f --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment3.errors.txt @@ -0,0 +1,8 @@ +tests/cases/compiler/undefinedTypeAssignment3.ts(1,5): error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + + +==== tests/cases/compiler/undefinedTypeAssignment3.ts (1 errors) ==== + var undefined = null; + ~~~~~~~~~ +!!! error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + \ No newline at end of file diff --git a/tests/baselines/reference/undefinedTypeAssignment3.js b/tests/baselines/reference/undefinedTypeAssignment3.js new file mode 100644 index 00000000000..4015d49e33a --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment3.js @@ -0,0 +1,6 @@ +//// [undefinedTypeAssignment3.ts] +var undefined = null; + + +//// [undefinedTypeAssignment3.js] +var undefined = null; diff --git a/tests/baselines/reference/undefinedTypeAssignment4.errors.txt b/tests/baselines/reference/undefinedTypeAssignment4.errors.txt new file mode 100644 index 00000000000..dab6ea2a880 --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment4.errors.txt @@ -0,0 +1,24 @@ +tests/cases/compiler/undefinedTypeAssignment4.ts(1,7): error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. +tests/cases/compiler/undefinedTypeAssignment4.ts(4,11): error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. +tests/cases/compiler/undefinedTypeAssignment4.ts(7,11): error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + + +==== tests/cases/compiler/undefinedTypeAssignment4.ts (3 errors) ==== + class undefined { + ~~~~~~~~~ +!!! error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + foo: string; + } + interface undefined { + ~~~~~~~~~ +!!! error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + member: number; + } + namespace undefined { + ~~~~~~~~~ +!!! error TS2397: Declaration name conflicts with built-in global identifier 'undefined'. + export var x = 42; + } + var x: undefined; + var y: typeof undefined; + \ No newline at end of file diff --git a/tests/baselines/reference/undefinedTypeAssignment4.js b/tests/baselines/reference/undefinedTypeAssignment4.js new file mode 100644 index 00000000000..a5d7a117a9d --- /dev/null +++ b/tests/baselines/reference/undefinedTypeAssignment4.js @@ -0,0 +1,26 @@ +//// [undefinedTypeAssignment4.ts] +class undefined { + foo: string; +} +interface undefined { + member: number; +} +namespace undefined { + export var x = 42; +} +var x: undefined; +var y: typeof undefined; + + +//// [undefinedTypeAssignment4.js] +var undefined = (function () { + function undefined() { + } + return undefined; +}()); +var undefined; +(function (undefined) { + undefined.x = 42; +})(undefined || (undefined = {})); +var x; +var y; diff --git a/tests/baselines/reference/underscoreMapFirst.js b/tests/baselines/reference/underscoreMapFirst.js index 4ee69572f1d..a615faea805 100644 --- a/tests/baselines/reference/underscoreMapFirst.js +++ b/tests/baselines/reference/underscoreMapFirst.js @@ -65,4 +65,4 @@ var MyView = (function (_super) { return _.map(allSeries, _.first); }; return MyView; -})(View); +}(View)); diff --git a/tests/baselines/reference/unexpectedStatementBlockTerminator.js b/tests/baselines/reference/unexpectedStatementBlockTerminator.js index 87b4652375a..f06b75c1340 100644 --- a/tests/baselines/reference/unexpectedStatementBlockTerminator.js +++ b/tests/baselines/reference/unexpectedStatementBlockTerminator.js @@ -12,10 +12,10 @@ var Foo = (function () { function Foo() { } return Foo; -})(); +}()); var Bar = (function () { function Bar() { } return Bar; -})(); +}()); function Goo() { return { a: 1, b: 2 }; } diff --git a/tests/baselines/reference/unexportedInstanceClassVariables.js b/tests/baselines/reference/unexportedInstanceClassVariables.js index 95bdbc032b7..7ac4f6d1b16 100644 --- a/tests/baselines/reference/unexportedInstanceClassVariables.js +++ b/tests/baselines/reference/unexportedInstanceClassVariables.js @@ -19,7 +19,7 @@ var M; function A(val) { } return A; - })(); + }()); })(M || (M = {})); var M; (function (M) { @@ -27,6 +27,6 @@ var M; function A() { } return A; - })(); + }()); var a = new A(); })(M || (M = {})); diff --git a/tests/baselines/reference/unionAndIntersectionInference1.types b/tests/baselines/reference/unionAndIntersectionInference1.types index 5d23688f0b7..073a677b659 100644 --- a/tests/baselines/reference/unionAndIntersectionInference1.types +++ b/tests/baselines/reference/unionAndIntersectionInference1.types @@ -110,7 +110,7 @@ function foo1(value: void|a): void { >a : a if (isVoid(value)) { ->isVoid(value) : boolean +>isVoid(value) : value is void >isVoid : (value: void | a) => value is void >value : void | a @@ -130,7 +130,7 @@ function baz1(value: void|a): void { >a : a if (isNonVoid(value)) { ->isNonVoid(value) : boolean +>isNonVoid(value) : value is a >isNonVoid : (value: void | a) => value is a >value : void | a diff --git a/tests/baselines/reference/unionSubtypeIfEveryConstituentTypeIsSubtype.js b/tests/baselines/reference/unionSubtypeIfEveryConstituentTypeIsSubtype.js index d30b78ca2c3..c1c6918c770 100644 --- a/tests/baselines/reference/unionSubtypeIfEveryConstituentTypeIsSubtype.js +++ b/tests/baselines/reference/unionSubtypeIfEveryConstituentTypeIsSubtype.js @@ -153,12 +153,12 @@ var A = (function () { function A() { } return A; -})(); +}()); var A2 = (function () { function A2() { } return A2; -})(); +}()); var E2; (function (E2) { E2[E2["A"] = 0] = "A"; @@ -172,7 +172,7 @@ var c = (function () { function c() { } return c; -})(); +}()); var c; (function (c) { c.bar = 1; diff --git a/tests/baselines/reference/unionTypeEquivalence.js b/tests/baselines/reference/unionTypeEquivalence.js index 3f4ad647dd5..1ff47f68e5f 100644 --- a/tests/baselines/reference/unionTypeEquivalence.js +++ b/tests/baselines/reference/unionTypeEquivalence.js @@ -30,7 +30,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -38,7 +38,7 @@ var D = (function (_super) { } D.prototype.foo = function () { }; return D; -})(C); +}(C)); var x; var x; // A | B is equivalent to B | A. diff --git a/tests/baselines/reference/unionTypeFromArrayLiteral.js b/tests/baselines/reference/unionTypeFromArrayLiteral.js index 1bfadd68ca6..95dd9d39853 100644 --- a/tests/baselines/reference/unionTypeFromArrayLiteral.js +++ b/tests/baselines/reference/unionTypeFromArrayLiteral.js @@ -44,13 +44,13 @@ var C = (function () { } C.prototype.foo = function () { }; return C; -})(); +}()); var D = (function () { function D() { } D.prototype.foo2 = function () { }; return D; -})(); +}()); var E = (function (_super) { __extends(E, _super); function E() { @@ -58,7 +58,7 @@ var E = (function (_super) { } E.prototype.foo3 = function () { }; return E; -})(C); +}(C)); var F = (function (_super) { __extends(F, _super); function F() { @@ -66,7 +66,7 @@ var F = (function (_super) { } F.prototype.foo4 = function () { }; return F; -})(C); +}(C)); var c, d, e, f; var arr6 = [c, d]; // (C | D)[] var arr7 = [c, d, e]; // (C | D)[] diff --git a/tests/baselines/reference/unionTypeParameterInference.js b/tests/baselines/reference/unionTypeParameterInference.js new file mode 100644 index 00000000000..c96e809cd4d --- /dev/null +++ b/tests/baselines/reference/unionTypeParameterInference.js @@ -0,0 +1,17 @@ +//// [unionTypeParameterInference.ts] +// Regression test for #5861 + +interface Foo { prop: T; } + +declare function lift(value: U | Foo): Foo; + +function unlift(value: U | Foo): U { + return lift(value).prop; +} + + +//// [unionTypeParameterInference.js] +// Regression test for #5861 +function unlift(value) { + return lift(value).prop; +} diff --git a/tests/baselines/reference/unionTypeParameterInference.symbols b/tests/baselines/reference/unionTypeParameterInference.symbols new file mode 100644 index 00000000000..f2dbaac31ff --- /dev/null +++ b/tests/baselines/reference/unionTypeParameterInference.symbols @@ -0,0 +1,35 @@ +=== tests/cases/compiler/unionTypeParameterInference.ts === +// Regression test for #5861 + +interface Foo { prop: T; } +>Foo : Symbol(Foo, Decl(unionTypeParameterInference.ts, 0, 0)) +>T : Symbol(T, Decl(unionTypeParameterInference.ts, 2, 14)) +>prop : Symbol(prop, Decl(unionTypeParameterInference.ts, 2, 18)) +>T : Symbol(T, Decl(unionTypeParameterInference.ts, 2, 14)) + +declare function lift(value: U | Foo): Foo; +>lift : Symbol(lift, Decl(unionTypeParameterInference.ts, 2, 29)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 4, 22)) +>value : Symbol(value, Decl(unionTypeParameterInference.ts, 4, 25)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(unionTypeParameterInference.ts, 0, 0)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 4, 22)) +>Foo : Symbol(Foo, Decl(unionTypeParameterInference.ts, 0, 0)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 4, 22)) + +function unlift(value: U | Foo): U { +>unlift : Symbol(unlift, Decl(unionTypeParameterInference.ts, 4, 52)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 6, 16)) +>value : Symbol(value, Decl(unionTypeParameterInference.ts, 6, 19)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 6, 16)) +>Foo : Symbol(Foo, Decl(unionTypeParameterInference.ts, 0, 0)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 6, 16)) +>U : Symbol(U, Decl(unionTypeParameterInference.ts, 6, 16)) + + return lift(value).prop; +>lift(value).prop : Symbol(Foo.prop, Decl(unionTypeParameterInference.ts, 2, 18)) +>lift : Symbol(lift, Decl(unionTypeParameterInference.ts, 2, 29)) +>value : Symbol(value, Decl(unionTypeParameterInference.ts, 6, 19)) +>prop : Symbol(Foo.prop, Decl(unionTypeParameterInference.ts, 2, 18)) +} + diff --git a/tests/baselines/reference/unionTypeParameterInference.types b/tests/baselines/reference/unionTypeParameterInference.types new file mode 100644 index 00000000000..54eaed90ecc --- /dev/null +++ b/tests/baselines/reference/unionTypeParameterInference.types @@ -0,0 +1,36 @@ +=== tests/cases/compiler/unionTypeParameterInference.ts === +// Regression test for #5861 + +interface Foo { prop: T; } +>Foo : Foo +>T : T +>prop : T +>T : T + +declare function lift(value: U | Foo): Foo; +>lift : (value: U | Foo) => Foo +>U : U +>value : U | Foo +>U : U +>Foo : Foo +>U : U +>Foo : Foo +>U : U + +function unlift(value: U | Foo): U { +>unlift : (value: U | Foo) => U +>U : U +>value : U | Foo +>U : U +>Foo : Foo +>U : U +>U : U + + return lift(value).prop; +>lift(value).prop : U +>lift(value) : Foo +>lift : (value: U | Foo) => Foo +>value : U | Foo +>prop : U +} + diff --git a/tests/baselines/reference/unionTypePropertyAccessibility.js b/tests/baselines/reference/unionTypePropertyAccessibility.js index 3c5c4b42fee..afa8d07c242 100644 --- a/tests/baselines/reference/unionTypePropertyAccessibility.js +++ b/tests/baselines/reference/unionTypePropertyAccessibility.js @@ -53,22 +53,22 @@ var Default = (function () { function Default() { } return Default; -})(); +}()); var Public = (function () { function Public() { } return Public; -})(); +}()); var Protected = (function () { function Protected() { } return Protected; -})(); +}()); var Private = (function () { function Private() { } return Private; -})(); +}()); var v1; var v2; var v3; diff --git a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction1.js b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction1.js index f8a5cd96b48..46ca2a40e83 100644 --- a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction1.js +++ b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction1.js @@ -24,21 +24,21 @@ var Module = (function () { function Module() { } return Module; -})(); +}()); var Namespace = (function () { function Namespace() { } return Namespace; -})(); +}()); var Class = (function () { function Class() { } return Class; -})(); +}()); var Property = (function () { function Property() { } return Property; -})(); +}()); var t; t.parent; diff --git a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.js b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.js index 69411b1ffcb..b3eeb8ea244 100644 --- a/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.js +++ b/tests/baselines/reference/unionTypeWithRecursiveSubtypeReduction2.js @@ -26,22 +26,22 @@ var Module = (function () { function Module() { } return Module; -})(); +}()); var Namespace = (function () { function Namespace() { } return Namespace; -})(); +}()); var Class = (function () { function Class() { } return Class; -})(); +}()); var Property = (function () { function Property() { } return Property; -})(); +}()); var c; var p; c = p; diff --git a/tests/baselines/reference/unionTypesAssignability.js b/tests/baselines/reference/unionTypesAssignability.js index 80eafb4f506..e07901347a5 100644 --- a/tests/baselines/reference/unionTypesAssignability.js +++ b/tests/baselines/reference/unionTypesAssignability.js @@ -83,7 +83,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var D = (function (_super) { __extends(D, _super); function D() { @@ -91,7 +91,7 @@ var D = (function (_super) { } D.prototype.foo1 = function () { }; return D; -})(C); +}(C)); var E = (function (_super) { __extends(E, _super); function E() { @@ -99,7 +99,7 @@ var E = (function (_super) { } E.prototype.foo2 = function () { }; return E; -})(C); +}(C)); var unionDE; var num; var str; diff --git a/tests/baselines/reference/unknownSymbolInGenericReturnType.js b/tests/baselines/reference/unknownSymbolInGenericReturnType.js index b3ca034f20d..27788285b24 100644 --- a/tests/baselines/reference/unknownSymbolInGenericReturnType.js +++ b/tests/baselines/reference/unknownSymbolInGenericReturnType.js @@ -24,4 +24,4 @@ var Linq = (function () { return result; }; return Linq; -})(); +}()); diff --git a/tests/baselines/reference/unknownSymbols1.js b/tests/baselines/reference/unknownSymbols1.js index cab42726c73..03ed4990c29 100644 --- a/tests/baselines/reference/unknownSymbols1.js +++ b/tests/baselines/reference/unknownSymbols1.js @@ -49,28 +49,28 @@ var C = (function () { function C() { } return C; -})(); +}()); var C2 = (function () { function C2() { } return C2; -})(); +}()); var C3 = (function () { function C3(x) { } return C3; -})(); +}()); var C4 = (function (_super) { __extends(C4, _super); function C4() { _super.call(this, asdf); } return C4; -})(C3); +}(C3)); var x2 = this.asdf; // no error, this is any var C5 = (function () { function C5() { this.asdf = asdf; } return C5; -})(); +}()); diff --git a/tests/baselines/reference/unknownTypeArgOnCall.js b/tests/baselines/reference/unknownTypeArgOnCall.js index 6e1da3b5257..129e2e351f1 100644 --- a/tests/baselines/reference/unknownTypeArgOnCall.js +++ b/tests/baselines/reference/unknownTypeArgOnCall.js @@ -16,6 +16,6 @@ var Foo = (function () { return null; }; return Foo; -})(); +}()); var f = new Foo(); var r = f.clone(); diff --git a/tests/baselines/reference/unqualifiedCallToClassStatic1.js b/tests/baselines/reference/unqualifiedCallToClassStatic1.js index 6de5634af9c..6c78a737fe8 100644 --- a/tests/baselines/reference/unqualifiedCallToClassStatic1.js +++ b/tests/baselines/reference/unqualifiedCallToClassStatic1.js @@ -15,4 +15,4 @@ var Vector = (function () { foo(); }; return Vector; -})(); +}()); diff --git a/tests/baselines/reference/unspecializedConstraints.errors.txt b/tests/baselines/reference/unspecializedConstraints.errors.txt index fc840f328df..a049e508f80 100644 --- a/tests/baselines/reference/unspecializedConstraints.errors.txt +++ b/tests/baselines/reference/unspecializedConstraints.errors.txt @@ -1,10 +1,7 @@ tests/cases/compiler/unspecializedConstraints.ts(84,44): error TS2304: Cannot find name 'TypeParameter'. -tests/cases/compiler/unspecializedConstraints.ts(127,28): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/unspecializedConstraints.ts(135,26): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -tests/cases/compiler/unspecializedConstraints.ts(144,24): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. -==== tests/cases/compiler/unspecializedConstraints.ts (4 errors) ==== +==== tests/cases/compiler/unspecializedConstraints.ts (1 errors) ==== module ts { interface Map { [index: string]: T; @@ -134,8 +131,6 @@ tests/cases/compiler/unspecializedConstraints.ts(144,24): error TS2313: Constrai } function arrayContains>(a: T[], item: T): boolean { - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var len = a.length; for (var i = 0; i < len; i++) { if (item.equals(a[i])) return true; @@ -144,8 +139,6 @@ tests/cases/compiler/unspecializedConstraints.ts(144,24): error TS2313: Constrai } function arrayEquals>(a: T[], b: T[]): boolean { - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var len = a.length; if (b.length !== len) return false; for (var i = 0; i < len; i++) { @@ -155,8 +148,6 @@ tests/cases/compiler/unspecializedConstraints.ts(144,24): error TS2313: Constrai } function setEquals>(a: T[], b: T[]): boolean { - ~~~~~~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. var len = a.length; if (b.length !== len) return false; for (var i = 0; i < len; i++) { diff --git a/tests/baselines/reference/unspecializedConstraints.js b/tests/baselines/reference/unspecializedConstraints.js index ed844f740ba..7b3938c7099 100644 --- a/tests/baselines/reference/unspecializedConstraints.js +++ b/tests/baselines/reference/unspecializedConstraints.js @@ -165,7 +165,7 @@ var ts; function Symbol() { } return Symbol; - })(); + }()); var Type = (function (_super) { __extends(Type, _super); function Type() { @@ -229,7 +229,7 @@ var ts; Type.prototype.isSubTypeOf = function (type) { }; return Type; - })(Symbol); + }(Symbol)); var Property = (function (_super) { __extends(Property, _super); function Property(name, type, flags) { @@ -244,7 +244,7 @@ var ts; this.type.equals(other.type); }; return Property; - })(Symbol); + }(Symbol)); var PropertyFlags; (function (PropertyFlags) { PropertyFlags[PropertyFlags["Optional"] = 1] = "Optional"; @@ -269,7 +269,7 @@ var ts; this.returnType.equals(other.returnType); }; return Signature; - })(Symbol); + }(Symbol)); var Parameter = (function (_super) { __extends(Parameter, _super); function Parameter(name, type, flags) { @@ -284,7 +284,7 @@ var ts; this.type.equals(other.type); }; return Parameter; - })(Symbol); + }(Symbol)); var ParameterFlags; (function (ParameterFlags) { ParameterFlags[ParameterFlags["Optional"] = 1] = "Optional"; diff --git a/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js b/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js index 2f2d4e87c46..e991db69367 100644 --- a/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js +++ b/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js @@ -64,7 +64,7 @@ var C = (function () { this.caller = function () { }; } return C; -})(); +}()); var c2; var r4 = c2(); // should be an error var C2 = (function (_super) { @@ -73,7 +73,7 @@ var C2 = (function (_super) { _super.apply(this, arguments); } return C2; -})(Function); // error +}(Function)); // error var c3; var r5 = c3(); // error var z; diff --git a/tests/baselines/reference/unusedImportDeclaration.js b/tests/baselines/reference/unusedImportDeclaration.js index 7ed19f775f6..ef1d5018892 100644 --- a/tests/baselines/reference/unusedImportDeclaration.js +++ b/tests/baselines/reference/unusedImportDeclaration.js @@ -21,7 +21,7 @@ var TesterB = (function () { function TesterB() { } return TesterB; -})(); +}()); module.exports = TesterB; //// [unusedImportDeclaration_testerA.js] "use strict"; diff --git a/tests/baselines/reference/usingModuleWithExportImportInValuePosition.js b/tests/baselines/reference/usingModuleWithExportImportInValuePosition.js index 4c5009eca96..a57e18fec72 100644 --- a/tests/baselines/reference/usingModuleWithExportImportInValuePosition.js +++ b/tests/baselines/reference/usingModuleWithExportImportInValuePosition.js @@ -29,7 +29,7 @@ var A; this.y = y; } return Point; - })(); + }()); A.Point = Point; })(A || (A = {})); var C; diff --git a/tests/baselines/reference/validNullAssignments.js b/tests/baselines/reference/validNullAssignments.js index 46ef3807464..8509a46cc97 100644 --- a/tests/baselines/reference/validNullAssignments.js +++ b/tests/baselines/reference/validNullAssignments.js @@ -46,7 +46,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var f; f = null; // ok C = null; // error diff --git a/tests/baselines/reference/validUndefinedAssignments.js b/tests/baselines/reference/validUndefinedAssignments.js index d91875da8a5..792b277ae17 100644 --- a/tests/baselines/reference/validUndefinedAssignments.js +++ b/tests/baselines/reference/validUndefinedAssignments.js @@ -35,7 +35,7 @@ var C = (function () { function C() { } return C; -})(); +}()); var f; f = x; var g; diff --git a/tests/baselines/reference/validUseOfThisInSuper.js b/tests/baselines/reference/validUseOfThisInSuper.js index 4378d89ad4b..027ba254ae0 100644 --- a/tests/baselines/reference/validUseOfThisInSuper.js +++ b/tests/baselines/reference/validUseOfThisInSuper.js @@ -20,7 +20,7 @@ var Base = (function () { this.b = b; } return Base; -})(); +}()); var Super = (function (_super) { __extends(Super, _super); function Super() { @@ -28,4 +28,4 @@ var Super = (function (_super) { _super.call(this, (function () { return _this; })()); // ok since this is not the case: The constructor declares parameter properties or the containing class declares instance member variables with initializers. } return Super; -})(Base); +}(Base)); diff --git a/tests/baselines/reference/varArgConstructorMemberParameter.js b/tests/baselines/reference/varArgConstructorMemberParameter.js index 7f1ef8d5b3a..620642a7514 100644 --- a/tests/baselines/reference/varArgConstructorMemberParameter.js +++ b/tests/baselines/reference/varArgConstructorMemberParameter.js @@ -21,13 +21,13 @@ var Foo1 = (function () { } } return Foo1; -})(); +}()); var Foo2 = (function () { function Foo2(args) { this.args = args; } return Foo2; -})(); +}()); var Foo3 = (function () { function Foo3(public) { var args = []; @@ -36,4 +36,4 @@ var Foo3 = (function () { } } return Foo3; -})(); +}()); diff --git a/tests/baselines/reference/varArgsOnConstructorTypes.js b/tests/baselines/reference/varArgsOnConstructorTypes.js index eb9571c97f5..db8f566702a 100644 --- a/tests/baselines/reference/varArgsOnConstructorTypes.js +++ b/tests/baselines/reference/varArgsOnConstructorTypes.js @@ -36,7 +36,7 @@ define(["require", "exports"], function (require, exports) { function A(ctor) { } return A; - })(); + }()); exports.A = A; var B = (function (_super) { __extends(B, _super); @@ -46,7 +46,7 @@ define(["require", "exports"], function (require, exports) { this.p2 = url; } return B; - })(A); + }(A)); exports.B = B; var reg; reg.register(B); diff --git a/tests/baselines/reference/varAsID.js b/tests/baselines/reference/varAsID.js index d123d10c531..5ce1d82d165 100644 --- a/tests/baselines/reference/varAsID.js +++ b/tests/baselines/reference/varAsID.js @@ -25,12 +25,12 @@ var Foo = (function () { this.x = 1; } return Foo; -})(); +}()); var f = new Foo(); var Foo2 = (function () { function Foo2() { this.x = 1; } return Foo2; -})(); +}()); var f2 = new Foo2(); diff --git a/tests/baselines/reference/vararg.js b/tests/baselines/reference/vararg.js index 038afb90cbc..015c8c9957a 100644 --- a/tests/baselines/reference/vararg.js +++ b/tests/baselines/reference/vararg.js @@ -74,7 +74,7 @@ var M; return builder; }; return C; - })(); + }()); M.C = C; })(M || (M = {})); var x = new M.C(); diff --git a/tests/baselines/reference/vardecl.js b/tests/baselines/reference/vardecl.js index 9b19e1000a9..a7ebb811c50 100644 --- a/tests/baselines/reference/vardecl.js +++ b/tests/baselines/reference/vardecl.js @@ -139,13 +139,13 @@ var m2; this.b = b; } return C; - })(); + }()); var C2 = (function () { function C2(b) { this.b = b; } return C2; - })(); + }()); m2.C2 = C2; var m; var b23; diff --git a/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js b/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js index cddf9ebf254..692c4e3aebe 100644 --- a/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js +++ b/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js @@ -135,7 +135,7 @@ var Errors; function ConnectionError /* extends Error */(request) { } return ConnectionError /* extends Error */; - })(); + }()); Errors.ConnectionError /* extends Error */ = ConnectionError /* extends Error */; })(Errors || (Errors = {})); var FileService = (function () { @@ -160,4 +160,4 @@ var FileService = (function () { }); }; return FileService; -})(); +}()); diff --git a/tests/baselines/reference/visSyntax.js b/tests/baselines/reference/visSyntax.js index be62516fd07..8d7d5991503 100644 --- a/tests/baselines/reference/visSyntax.js +++ b/tests/baselines/reference/visSyntax.js @@ -18,7 +18,7 @@ var M; function C() { } return C; - })(); + }()); M.C = C; M.x = 10; })(M || (M = {})); diff --git a/tests/baselines/reference/visibilityOfTypeParameters.js b/tests/baselines/reference/visibilityOfTypeParameters.js index 170a8ef5d37..e9cd9f4deda 100644 --- a/tests/baselines/reference/visibilityOfTypeParameters.js +++ b/tests/baselines/reference/visibilityOfTypeParameters.js @@ -15,7 +15,7 @@ var MyClass = (function () { return val; }; return MyClass; -})(); +}()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/voidOperatorWithAnyOtherType.js b/tests/baselines/reference/voidOperatorWithAnyOtherType.js index fbe85326d3a..cbae98f67fc 100644 --- a/tests/baselines/reference/voidOperatorWithAnyOtherType.js +++ b/tests/baselines/reference/voidOperatorWithAnyOtherType.js @@ -79,7 +79,7 @@ var A = (function () { return a; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/voidOperatorWithBooleanType.js b/tests/baselines/reference/voidOperatorWithBooleanType.js index 25099108b9b..bd6faedcb2b 100644 --- a/tests/baselines/reference/voidOperatorWithBooleanType.js +++ b/tests/baselines/reference/voidOperatorWithBooleanType.js @@ -47,7 +47,7 @@ var A = (function () { } A.foo = function () { return false; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/voidOperatorWithNumberType.js b/tests/baselines/reference/voidOperatorWithNumberType.js index 9a0a31d4fe5..ca17612c6cc 100644 --- a/tests/baselines/reference/voidOperatorWithNumberType.js +++ b/tests/baselines/reference/voidOperatorWithNumberType.js @@ -55,7 +55,7 @@ var A = (function () { } A.foo = function () { return 1; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/voidOperatorWithStringType.js b/tests/baselines/reference/voidOperatorWithStringType.js index 5949c93acd4..eaaa981528d 100644 --- a/tests/baselines/reference/voidOperatorWithStringType.js +++ b/tests/baselines/reference/voidOperatorWithStringType.js @@ -54,7 +54,7 @@ var A = (function () { } A.foo = function () { return ""; }; return A; -})(); +}()); var M; (function (M) { })(M || (M = {})); diff --git a/tests/baselines/reference/withImportDecl.js b/tests/baselines/reference/withImportDecl.js index 275d5fcadcc..92a90cb2177 100644 --- a/tests/baselines/reference/withImportDecl.js +++ b/tests/baselines/reference/withImportDecl.js @@ -50,7 +50,7 @@ define(["require", "exports"], function (require, exports) { function A() { } return A; - })(); + }()); exports.A = A; }); //// [withImportDecl_1.js] diff --git a/tests/baselines/reference/withStatementErrors.js b/tests/baselines/reference/withStatementErrors.js index 7c496f014a7..de2fb40dac9 100644 --- a/tests/baselines/reference/withStatementErrors.js +++ b/tests/baselines/reference/withStatementErrors.js @@ -28,5 +28,5 @@ with (ooo.eee.oo.ah_ah.ting.tang.walla.walla) { function C() { } return C; - })(); // error + }()); // error } diff --git a/tests/baselines/reference/witness.js b/tests/baselines/reference/witness.js index 82a1298f156..e0a4c356873 100644 --- a/tests/baselines/reference/witness.js +++ b/tests/baselines/reference/witness.js @@ -157,7 +157,7 @@ var InitClass = (function () { var y; }; return InitClass; -})(); +}()); // Return type function fnReturn1() { return fnReturn1(); @@ -231,7 +231,7 @@ var C = (function () { return new a(this.fn3); }; return C; -})(); +}()); function fn5() { var a; return new a(fn5); @@ -255,7 +255,7 @@ var C2 = (function () { this.n = this.n; // n: any } return C2; -})(); +}()); var c2inst = new C2().n; var c2inst; // Constructor function property access @@ -264,7 +264,7 @@ var C3 = (function () { } C3.q = C3.q; return C3; -})(); +}()); var qq = C3.q; var qq; // Parentheses - tested a bunch above diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints.js b/tests/baselines/reference/wrappedAndRecursiveConstraints.js index 91227a03222..06103235ecb 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints.js @@ -26,7 +26,7 @@ var C = (function () { return x; }; return C; -})(); +}()); var y = null; var c = new C(y); var r = c.foo(y); diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints2.errors.txt b/tests/baselines/reference/wrappedAndRecursiveConstraints2.errors.txt deleted file mode 100644 index 0a7bc52f9d2..00000000000 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints2.errors.txt +++ /dev/null @@ -1,12 +0,0 @@ -tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints2.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - - -==== tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints2.ts (1 errors) ==== - class C> { // error - ~~~~~~~~~~~~~~ -!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. - constructor(x: T) { } - } - - var c = new C(1); - var c = new C(new C('')); // error \ No newline at end of file diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints2.js b/tests/baselines/reference/wrappedAndRecursiveConstraints2.js index 4e752fd7ac3..ae8b28c5eb0 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints2.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints2.js @@ -11,6 +11,6 @@ var C = (function () { function C(x) { } return C; -})(); +}()); var c = new C(1); var c = new C(new C('')); // error diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints2.symbols b/tests/baselines/reference/wrappedAndRecursiveConstraints2.symbols new file mode 100644 index 00000000000..c359e5b0c4a --- /dev/null +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints2.symbols @@ -0,0 +1,21 @@ +=== tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints2.ts === +class C> { // error +>C : Symbol(C, Decl(wrappedAndRecursiveConstraints2.ts, 0, 0)) +>T : Symbol(T, Decl(wrappedAndRecursiveConstraints2.ts, 0, 8)) +>C : Symbol(C, Decl(wrappedAndRecursiveConstraints2.ts, 0, 0)) +>T : Symbol(T, Decl(wrappedAndRecursiveConstraints2.ts, 0, 8)) + + constructor(x: T) { } +>x : Symbol(x, Decl(wrappedAndRecursiveConstraints2.ts, 1, 16)) +>T : Symbol(T, Decl(wrappedAndRecursiveConstraints2.ts, 0, 8)) +} + +var c = new C(1); +>c : Symbol(c, Decl(wrappedAndRecursiveConstraints2.ts, 4, 3), Decl(wrappedAndRecursiveConstraints2.ts, 5, 3)) +>C : Symbol(C, Decl(wrappedAndRecursiveConstraints2.ts, 0, 0)) + +var c = new C(new C('')); // error +>c : Symbol(c, Decl(wrappedAndRecursiveConstraints2.ts, 4, 3), Decl(wrappedAndRecursiveConstraints2.ts, 5, 3)) +>C : Symbol(C, Decl(wrappedAndRecursiveConstraints2.ts, 0, 0)) +>C : Symbol(C, Decl(wrappedAndRecursiveConstraints2.ts, 0, 0)) + diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints2.types b/tests/baselines/reference/wrappedAndRecursiveConstraints2.types new file mode 100644 index 00000000000..479cac1d184 --- /dev/null +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints2.types @@ -0,0 +1,26 @@ +=== tests/cases/conformance/types/typeParameters/typeArgumentLists/wrappedAndRecursiveConstraints2.ts === +class C> { // error +>C : C +>T : T +>C : C +>T : T + + constructor(x: T) { } +>x : T +>T : T +} + +var c = new C(1); +>c : C +>new C(1) : C +>C : typeof C +>1 : number + +var c = new C(new C('')); // error +>c : C +>new C(new C('')) : C> +>C : typeof C +>new C('') : C +>C : typeof C +>'' : string + diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints3.js b/tests/baselines/reference/wrappedAndRecursiveConstraints3.js index fb0f5388aaa..b5d6e65a183 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints3.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints3.js @@ -27,7 +27,7 @@ var C = (function () { return bar; }; return C; -})(); +}()); var c = new C({ length: 2 }); var r = c.foo({ length: 3, charAt: function (x) { ''; diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints4.js b/tests/baselines/reference/wrappedAndRecursiveConstraints4.js index 998c16a9f87..2a84f8cc426 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints4.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints4.js @@ -24,7 +24,7 @@ var C = (function () { return bar; }; return C; -})(); +}()); var c = new C({ length: 2 }); var r = c.foo(''); var r2 = r({ length: 3, charAt: function (x) { diff --git a/tests/cases/compiler/ClassDeclaration26.ts b/tests/cases/compiler/ClassDeclaration26.ts new file mode 100644 index 00000000000..0adcbc470e0 --- /dev/null +++ b/tests/cases/compiler/ClassDeclaration26.ts @@ -0,0 +1,5 @@ +class C { + public const var export foo = 10; + + var constructor() { } +} \ No newline at end of file diff --git a/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration.ts b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration.ts new file mode 100644 index 00000000000..06af5a0fdb5 --- /dev/null +++ b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration.ts @@ -0,0 +1,3 @@ +class AtomicNumbers { + static const H = 1; +} \ No newline at end of file diff --git a/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts new file mode 100644 index 00000000000..fe90dded9e3 --- /dev/null +++ b/tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts @@ -0,0 +1,4 @@ +class C { + const + x = 10; +} \ No newline at end of file diff --git a/tests/cases/compiler/circularObjectLiteralAccessors.ts b/tests/cases/compiler/circularObjectLiteralAccessors.ts new file mode 100644 index 00000000000..3546ee75e6f --- /dev/null +++ b/tests/cases/compiler/circularObjectLiteralAccessors.ts @@ -0,0 +1,15 @@ +// @target: es5 + +// Repro from #6000 + +const a = { + b: { + get foo(): string { + return a.foo; + }, + set foo(value: string) { + a.foo = value; + } + }, + foo: '' +}; \ No newline at end of file diff --git a/tests/cases/compiler/circularTypeofWithFunctionModule.ts b/tests/cases/compiler/circularTypeofWithFunctionModule.ts new file mode 100644 index 00000000000..b4c9fdb9fd5 --- /dev/null +++ b/tests/cases/compiler/circularTypeofWithFunctionModule.ts @@ -0,0 +1,11 @@ +// Repro from #6072 + +class Foo {} + +function maker (value: string): typeof maker.Bar { + return maker.Bar; +} + +namespace maker { + export class Bar extends Foo {} +} diff --git a/tests/cases/compiler/declarationEmitFBoundedTypeParams.ts b/tests/cases/compiler/declarationEmitFBoundedTypeParams.ts new file mode 100644 index 00000000000..baa91ab7bb2 --- /dev/null +++ b/tests/cases/compiler/declarationEmitFBoundedTypeParams.ts @@ -0,0 +1,8 @@ +// @declaration: true + +// Repro from #6040 + +function append(result: a[], value: b): a[] { + result.push(value); + return result; +} diff --git a/tests/cases/compiler/errorOnInitializerInInterfaceProperty.ts b/tests/cases/compiler/errorOnInitializerInInterfaceProperty.ts new file mode 100644 index 00000000000..ac600103e72 --- /dev/null +++ b/tests/cases/compiler/errorOnInitializerInInterfaceProperty.ts @@ -0,0 +1,3 @@ +interface Foo { + bar: number = 5; +} diff --git a/tests/cases/compiler/errorOnInitializerInObjectTypeLiteralProperty.ts b/tests/cases/compiler/errorOnInitializerInObjectTypeLiteralProperty.ts new file mode 100644 index 00000000000..a02f8b0f709 --- /dev/null +++ b/tests/cases/compiler/errorOnInitializerInObjectTypeLiteralProperty.ts @@ -0,0 +1,7 @@ +var Foo: { + bar: number = 5; +}; + +let Bar: { + bar: number = 5; +}; diff --git a/tests/cases/compiler/exportStarForValues.ts b/tests/cases/compiler/exportStarForValues.ts new file mode 100644 index 00000000000..3432548c528 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues.ts @@ -0,0 +1,8 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export * from "file1" +var x; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues10.ts b/tests/cases/compiler/exportStarForValues10.ts new file mode 100644 index 00000000000..82cee772b18 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues10.ts @@ -0,0 +1,12 @@ +// @module: system + +// @filename: file0.ts +export var v = 1; + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export * from "file0"; +export * from "file1"; +var x = 1; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues2.ts b/tests/cases/compiler/exportStarForValues2.ts new file mode 100644 index 00000000000..63a880cce0a --- /dev/null +++ b/tests/cases/compiler/exportStarForValues2.ts @@ -0,0 +1,12 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export * from "file1" +var x = 1; + +// @filename: file3.ts +export * from "file2" +var x = 1; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues3.ts b/tests/cases/compiler/exportStarForValues3.ts new file mode 100644 index 00000000000..f0c36db0bda --- /dev/null +++ b/tests/cases/compiler/exportStarForValues3.ts @@ -0,0 +1,24 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export interface A { x } +export * from "file1" +var x = 1; + +// @filename: file3.ts +export interface B { x } +export * from "file1" +var x = 1; + +// @filename: file4.ts +export interface C { x } +export * from "file2" +export * from "file3" +var x = 1; + +// @filename: file5.ts +export * from "file4" +var x = 1; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues4.ts b/tests/cases/compiler/exportStarForValues4.ts new file mode 100644 index 00000000000..d685ba1c8a3 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues4.ts @@ -0,0 +1,15 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export interface A { x } +export * from "file1" +export * from "file3" +var x = 1; + +// @filename: file3.ts +export interface B { x } +export * from "file2" +var x = 1; diff --git a/tests/cases/compiler/exportStarForValues5.ts b/tests/cases/compiler/exportStarForValues5.ts new file mode 100644 index 00000000000..cb716c72002 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues5.ts @@ -0,0 +1,8 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export * from "file1" +export var x; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues6.ts b/tests/cases/compiler/exportStarForValues6.ts new file mode 100644 index 00000000000..a623e31f178 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues6.ts @@ -0,0 +1,8 @@ +// @module: system + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export * from "file1" +export var x = 1; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues7.ts b/tests/cases/compiler/exportStarForValues7.ts new file mode 100644 index 00000000000..c1343a44119 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues7.ts @@ -0,0 +1,12 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export * from "file1" +export var x = 1; + +// @filename: file3.ts +export * from "file2" +export var x = 1; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues8.ts b/tests/cases/compiler/exportStarForValues8.ts new file mode 100644 index 00000000000..0594f8b0877 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues8.ts @@ -0,0 +1,24 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export interface A { x } +export * from "file1" +export var x = 1; + +// @filename: file3.ts +export interface B { x } +export * from "file1" +export var x = 1; + +// @filename: file4.ts +export interface C { x } +export * from "file2" +export * from "file3" +export var x = 1; + +// @filename: file5.ts +export * from "file4" +export var x = 1; \ No newline at end of file diff --git a/tests/cases/compiler/exportStarForValues9.ts b/tests/cases/compiler/exportStarForValues9.ts new file mode 100644 index 00000000000..53ffb1b7954 --- /dev/null +++ b/tests/cases/compiler/exportStarForValues9.ts @@ -0,0 +1,15 @@ +// @module: amd + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export interface A { x } +export * from "file1" +export * from "file3" +export var x = 1; + +// @filename: file3.ts +export interface B { x } +export * from "file2" +export var x = 1; diff --git a/tests/cases/compiler/exportStarForValuesInSystem.ts b/tests/cases/compiler/exportStarForValuesInSystem.ts new file mode 100644 index 00000000000..1f60e8dec6f --- /dev/null +++ b/tests/cases/compiler/exportStarForValuesInSystem.ts @@ -0,0 +1,8 @@ +// @module: system + +// @filename: file1.ts +export interface Foo { x } + +// @filename: file2.ts +export * from "file1" +var x = 1; \ No newline at end of file diff --git a/tests/cases/compiler/extendConstructSignatureInInterface.ts b/tests/cases/compiler/extendConstructSignatureInInterface.ts new file mode 100644 index 00000000000..a0880de69cd --- /dev/null +++ b/tests/cases/compiler/extendConstructSignatureInInterface.ts @@ -0,0 +1,9 @@ +interface C { + new(x: number): C; +} + +var CStatic: C; +class E extends CStatic { +} + +var e: E = new E(1); diff --git a/tests/cases/compiler/genericSignatureIdentity.ts b/tests/cases/compiler/genericSignatureIdentity.ts new file mode 100644 index 00000000000..c685b8cc573 --- /dev/null +++ b/tests/cases/compiler/genericSignatureIdentity.ts @@ -0,0 +1,20 @@ +// This test is here to remind us of our current limits of type identity checking. +// Ideally all of the below declarations would be considered different (and thus errors) +// but they aren't because we erase type parameters to type any and don't check that +// constraints are identical. + +var x: { + (x: T): T; +}; + +var x: { + (x: T): T; +}; + +var x: { + (x: T): T; +}; + +var x: { + (x: any): any; +}; diff --git a/tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts b/tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts new file mode 100644 index 00000000000..03a01204462 --- /dev/null +++ b/tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts @@ -0,0 +1,10 @@ +// @target: es6 +// This should be an error +// More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements + +var let = 10; +for (let of [1,2,3]) {} + +for (let in [1,2,3]) {} + + diff --git a/tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts b/tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts new file mode 100644 index 00000000000..03a01204462 --- /dev/null +++ b/tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts @@ -0,0 +1,10 @@ +// @target: es6 +// This should be an error +// More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements + +var let = 10; +for (let of [1,2,3]) {} + +for (let in [1,2,3]) {} + + diff --git a/tests/cases/compiler/jsFileCompilationBindDuplicateIdentifier.ts b/tests/cases/compiler/jsFileCompilationBindDuplicateIdentifier.ts new file mode 100644 index 00000000000..3433adc17d5 --- /dev/null +++ b/tests/cases/compiler/jsFileCompilationBindDuplicateIdentifier.ts @@ -0,0 +1,6 @@ +// @allowJs: true +// @noEmit: true +// @filename: a.js +var a = 10; +class a { +} \ No newline at end of file diff --git a/tests/cases/compiler/jsFileCompilationBindMultipleDefaultExports.ts b/tests/cases/compiler/jsFileCompilationBindMultipleDefaultExports.ts new file mode 100644 index 00000000000..32a9e77fcc7 --- /dev/null +++ b/tests/cases/compiler/jsFileCompilationBindMultipleDefaultExports.ts @@ -0,0 +1,7 @@ +// @allowJs: true +// @noEmit: true +// @filename: a.js +// @target: es6 +export default class a { +} +export default var a = 10; \ No newline at end of file diff --git a/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts b/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts new file mode 100644 index 00000000000..b95f85c2139 --- /dev/null +++ b/tests/cases/compiler/jsFileCompilationBindReachabilityErrors.ts @@ -0,0 +1,23 @@ +// @allowJs: true +// @noEmit: true +// @filename: a.js +// @noFallthroughCasesInSwitch: true +function foo(a, b) { + switch (a) { + case 10: + if (b) { + return b; + } + case 20: + return a; + } +} + +function bar() { + return x; + function bar2() { + } + var x = 10; // error +} + +label1: var x2 = 10; \ No newline at end of file diff --git a/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts b/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts new file mode 100644 index 00000000000..30b43b1990e --- /dev/null +++ b/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts @@ -0,0 +1,40 @@ +// @allowJs: true +// @noEmit: true +// @filename: a.js +// @target: es6 +"use strict"; +var a = { + a: "hello", // error + b: 10, + a: 10 // error +}; +var let = 10; // error +delete a; // error +try { +} catch (eval) { // error +} +function arguments() { // error +} + +with (a) { + b = 10; +} + +// @filename: b.js +// this is not in strict mode but class definitions are always in strict mode +class c { + a(eval) { //error + } + method() { + var let = 10; // error + } +} + +// @filename: c.js +export var let = 10; // external modules are automatically in strict mode +var eval = function () { +}; + +//@filename: d.js +"use strict"; +var x = 009; // error \ No newline at end of file diff --git a/tests/cases/compiler/jsFileCompilationExternalPackageError.ts b/tests/cases/compiler/jsFileCompilationExternalPackageError.ts new file mode 100644 index 00000000000..cb9d32adb82 --- /dev/null +++ b/tests/cases/compiler/jsFileCompilationExternalPackageError.ts @@ -0,0 +1,16 @@ +// @allowJs: true +// @noEmit: true +// @module: commonjs + +// @filename: moduleA/a.js +import {a} from "b"; +a++; +import {c} from "c"; +c++; + +// @filename: node_modules/b.ts +var a = 10; + +// @filename: node_modules/c.js +exports.a = 10; +c = 10; diff --git a/tests/cases/compiler/letAsIdentifier2.ts b/tests/cases/compiler/letAsIdentifier2.ts new file mode 100644 index 00000000000..7ebbeb0704b --- /dev/null +++ b/tests/cases/compiler/letAsIdentifier2.ts @@ -0,0 +1,3 @@ +// @target: es6 + +function let() {} \ No newline at end of file diff --git a/tests/cases/compiler/letInConstDeclarations_ES5.ts b/tests/cases/compiler/letInConstDeclarations_ES5.ts new file mode 100644 index 00000000000..2898abd1e2a --- /dev/null +++ b/tests/cases/compiler/letInConstDeclarations_ES5.ts @@ -0,0 +1,8 @@ +// @target: es5 + +// All use of let in const declaration should be an error +const x = 50, let = 5; + +{ + const x = 10, let = 20; +} \ No newline at end of file diff --git a/tests/cases/compiler/letInConstDeclarations_ES6.ts b/tests/cases/compiler/letInConstDeclarations_ES6.ts new file mode 100644 index 00000000000..aac2a592d11 --- /dev/null +++ b/tests/cases/compiler/letInConstDeclarations_ES6.ts @@ -0,0 +1,8 @@ +// @target: es6 + +// All use of let in const declaration should be an error +const x = 50, let = 5; + +{ + const x = 10, let = 20; +} \ No newline at end of file diff --git a/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts b/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts new file mode 100644 index 00000000000..7e8b6824329 --- /dev/null +++ b/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES5.ts @@ -0,0 +1,21 @@ +// @target: es5 + +// Should be an error +for (let let of [1,2,3]) {} + +for (const let of [1,2,3]) {} + +for (let let in [1,2,3]) {} + +for (const let in [1,2,3]) {} + +{ + for (let let of [1,2,3]) {} + + for (const let of [1,2,3]) {} + + for (let let in [1,2,3]) {} + + for (const let in [1,2,3]) {} +} + diff --git a/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts b/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts new file mode 100644 index 00000000000..68ba1716199 --- /dev/null +++ b/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts @@ -0,0 +1,21 @@ +// @target: es6 + +// Should be an error +for (let let of [1,2,3]) {} + +for (const let of [1,2,3]) {} + +for (let let in [1,2,3]) {} + +for (const let in [1,2,3]) {} + +{ + for (let let of [1,2,3]) {} + + for (const let of [1,2,3]) {} + + for (let let in [1,2,3]) {} + + for (const let in [1,2,3]) {} +} + diff --git a/tests/cases/compiler/letInLetDeclarations_ES5.ts b/tests/cases/compiler/letInLetDeclarations_ES5.ts new file mode 100644 index 00000000000..8d4a71b85c8 --- /dev/null +++ b/tests/cases/compiler/letInLetDeclarations_ES5.ts @@ -0,0 +1,8 @@ +// @target: es5 + +// All use of let in const declaration should be an error +let x = 50, let = 5; + +{ + let x = 10, let = 20; +} \ No newline at end of file diff --git a/tests/cases/compiler/letInLetDeclarations_ES6.ts b/tests/cases/compiler/letInLetDeclarations_ES6.ts new file mode 100644 index 00000000000..8c4650dd938 --- /dev/null +++ b/tests/cases/compiler/letInLetDeclarations_ES6.ts @@ -0,0 +1,8 @@ +// @target: es6 + +// All use of let in const declaration should be an error +let x = 50, let = 5; + +{ + let x = 10, let = 20; +} \ No newline at end of file diff --git a/tests/cases/compiler/letInLetOrConstDeclarations.ts b/tests/cases/compiler/letInLetOrConstDeclarations.ts deleted file mode 100644 index c622759a459..00000000000 --- a/tests/cases/compiler/letInLetOrConstDeclarations.ts +++ /dev/null @@ -1,12 +0,0 @@ -// @target: es6 -{ - let let = 1; // should error - for (let let in []) { } // should error -} -{ - const let = 1; // should error -} -{ - function let() { // should be ok - } -} \ No newline at end of file diff --git a/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts b/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts new file mode 100644 index 00000000000..684dc3b2e9f --- /dev/null +++ b/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts @@ -0,0 +1,8 @@ +// @target: es5 + +// should not be an error +for (var let in [1,2,3]) {} + +{ + for (var let in [1,2,3]) {} +} diff --git a/tests/cases/compiler/letInVarDeclOfForIn_ES6.ts b/tests/cases/compiler/letInVarDeclOfForIn_ES6.ts new file mode 100644 index 00000000000..8d79f41713e --- /dev/null +++ b/tests/cases/compiler/letInVarDeclOfForIn_ES6.ts @@ -0,0 +1,8 @@ +// @target: es6 + +// should not be an error +for (var let in [1,2,3]) {} + +{ + for (var let in [1,2,3]) {} +} diff --git a/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts b/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts new file mode 100644 index 00000000000..2d369aa162e --- /dev/null +++ b/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts @@ -0,0 +1,8 @@ +// @target: es5 + +// should not be an error +for (var let of [1,2,3]) {} + +{ + for (var let of [1,2,3]) {} +} diff --git a/tests/cases/compiler/letInVarDeclOfForOf_ES6.ts b/tests/cases/compiler/letInVarDeclOfForOf_ES6.ts new file mode 100644 index 00000000000..9e343a45f4b --- /dev/null +++ b/tests/cases/compiler/letInVarDeclOfForOf_ES6.ts @@ -0,0 +1,8 @@ +// @target: es6 + +// should not be an error +for (var let of [1,2,3]) {} + +{ + for (var let of [1,2,3]) {} +} diff --git a/tests/cases/compiler/missingSemicolonInModuleSpecifier.ts b/tests/cases/compiler/missingSemicolonInModuleSpecifier.ts new file mode 100644 index 00000000000..c3db4389504 --- /dev/null +++ b/tests/cases/compiler/missingSemicolonInModuleSpecifier.ts @@ -0,0 +1,8 @@ +// @module: commonjs + +// @filename: a.ts +export const x = 1; + +// @filename: b.ts +import {x} from "./a" +(function() { return 1; }()) \ No newline at end of file diff --git a/tests/cases/compiler/modifiersInObjectLiterals.ts b/tests/cases/compiler/modifiersInObjectLiterals.ts new file mode 100644 index 00000000000..58fa64f82e9 --- /dev/null +++ b/tests/cases/compiler/modifiersInObjectLiterals.ts @@ -0,0 +1,8 @@ +let data = { + public foo: 'hey', + private bar: 'nay', + protected baz: 'oh my', + abstract noWay: 'yes' +}; + +data.foo + data.bar + data.baz + data.noWay diff --git a/tests/cases/compiler/moduleDuplicateIdentifiers.ts b/tests/cases/compiler/moduleDuplicateIdentifiers.ts new file mode 100644 index 00000000000..47be2bc5dbb --- /dev/null +++ b/tests/cases/compiler/moduleDuplicateIdentifiers.ts @@ -0,0 +1,40 @@ +// @module: commonjs +export var Foo = 2; +export var Foo = 42; // Should error + +export interface Bar { + _brand1: any; +} + +export interface Bar { // Shouldn't error + _brand2: any; +} + +export namespace FooBar { + export var member1 = 2; +} + +export namespace FooBar { // Shouldn't error + export var member2 = 42; +} + +export class Kettle { + member1 = 2; +} + +export class Kettle { // Should error + member2 = 42; +} + +export var Pot = 2; +Pot = 42; // Shouldn't error + +export enum Utensils { + Spoon, + Fork, + Knife +} + +export enum Utensils { // Shouldn't error + Spork = 3 +} diff --git a/tests/cases/compiler/moduleSameValueDuplicateExportedBindings1.ts b/tests/cases/compiler/moduleSameValueDuplicateExportedBindings1.ts new file mode 100644 index 00000000000..d51de9c2e5a --- /dev/null +++ b/tests/cases/compiler/moduleSameValueDuplicateExportedBindings1.ts @@ -0,0 +1,10 @@ +// @module: commonjs +// @filename: a.ts +export * from "./b"; +export * from "./c"; + +// @filename: b.ts +export * from "./c"; + +// @filename: c.ts +export var foo = 42; \ No newline at end of file diff --git a/tests/cases/compiler/moduleSameValueDuplicateExportedBindings2.ts b/tests/cases/compiler/moduleSameValueDuplicateExportedBindings2.ts new file mode 100644 index 00000000000..1a30004301a --- /dev/null +++ b/tests/cases/compiler/moduleSameValueDuplicateExportedBindings2.ts @@ -0,0 +1,13 @@ +// @module: commonjs +// @filename: a.ts +export * from "./b"; +export * from "./c"; + +// @filename: b.ts +export {Animals} from "./c"; + +// @filename: c.ts +export enum Animals { + Cat, + Dog +}; \ No newline at end of file diff --git a/tests/cases/compiler/reachabilityChecks7.ts b/tests/cases/compiler/reachabilityChecks7.ts index 11febb320d6..53702037e3f 100644 --- a/tests/cases/compiler/reachabilityChecks7.ts +++ b/tests/cases/compiler/reachabilityChecks7.ts @@ -11,4 +11,22 @@ let x = async function() { // async function with which promised type is void - return can be omitted async function f2(): Promise { -} \ No newline at end of file +} + +async function f3(x) { + if (x) return 10; +} + +async function f4(): Promise { + +} + +function voidFunc(): void { +} + +function calltoVoidFunc(x) { + if (x) return voidFunc(); +} + +declare function use(s: string): void; +let x1 = () => { use("Test"); } \ No newline at end of file diff --git a/tests/cases/compiler/recursiveUnionTypeInference.ts b/tests/cases/compiler/recursiveUnionTypeInference.ts new file mode 100644 index 00000000000..4ffc6fcf4a7 --- /dev/null +++ b/tests/cases/compiler/recursiveUnionTypeInference.ts @@ -0,0 +1,7 @@ +interface Foo { + x: T; +} + +function bar(x: Foo | string): T { + return bar(x); +} diff --git a/tests/cases/compiler/superPropertyAccess_ES5.ts b/tests/cases/compiler/superPropertyAccess_ES5.ts new file mode 100644 index 00000000000..37897b9e549 --- /dev/null +++ b/tests/cases/compiler/superPropertyAccess_ES5.ts @@ -0,0 +1,30 @@ +// @target: ES5 + +class MyBase { + getValue(): number { return 1; } + get value(): number { return 1; } +} + +class MyDerived extends MyBase { + constructor() { + super(); + + const f1 = super.getValue(); + const f2 = super.value; + } +} + +var d = new MyDerived(); +var f3 = d.value; + +class A { + private _property: string; + get property() { return this._property; } + set property(value: string) { this._property = value } +} + +class B extends A { + set property(value: string) { + super.property = value + " addition"; + } +} \ No newline at end of file diff --git a/tests/cases/compiler/superPropertyAccess_ES6.ts b/tests/cases/compiler/superPropertyAccess_ES6.ts new file mode 100644 index 00000000000..ed082b19032 --- /dev/null +++ b/tests/cases/compiler/superPropertyAccess_ES6.ts @@ -0,0 +1,30 @@ +// @target: ES6 + +class MyBase { + getValue(): number { return 1; } + get value(): number { return 1; } +} + +class MyDerived extends MyBase { + constructor() { + super(); + + const f1 = super.getValue(); + const f2 = super.value; + } +} + +var d = new MyDerived(); +var f3 = d.value; + +class A { + private _property: string; + get property() { return this._property; } + set property(value: string) { this._property = value } +} + +class B extends A { + set property(value: string) { + super.property = value + " addition"; + } +} \ No newline at end of file diff --git a/tests/cases/compiler/typeAliasExport.ts b/tests/cases/compiler/typeAliasExport.ts new file mode 100644 index 00000000000..706b731f0ab --- /dev/null +++ b/tests/cases/compiler/typeAliasExport.ts @@ -0,0 +1,5 @@ +declare module "a" { + export default 0 + export var a; + export type a = typeof a; +} \ No newline at end of file diff --git a/tests/cases/compiler/typeInferenceFBoundedTypeParams.ts b/tests/cases/compiler/typeInferenceFBoundedTypeParams.ts new file mode 100644 index 00000000000..26f6be3fad2 --- /dev/null +++ b/tests/cases/compiler/typeInferenceFBoundedTypeParams.ts @@ -0,0 +1,22 @@ +// Example from #6037 + +function fold(values: a[], result: r, fold: (result: r, value: a) => r): r { + for (let value of values) { + result = fold(result, value); + } + return result; +} + +function append(values: a[], value: b): a[] { + values.push(value); + return values; +} + +fold( + [1, 2, 3], + [] as [string, string][], + (result, value) => append( + result, + ["", ""] + ) +); diff --git a/tests/cases/compiler/typeParameterConstraintInstantiation.ts b/tests/cases/compiler/typeParameterConstraintInstantiation.ts new file mode 100644 index 00000000000..f81ddaf8959 --- /dev/null +++ b/tests/cases/compiler/typeParameterConstraintInstantiation.ts @@ -0,0 +1,8 @@ +// Check that type parameter constraints are properly instantiated + +interface Mapper { + map(f: (item: T) => U): V; +} + +var m: Mapper; +var a = m.map((x: string) => x); // string[] diff --git a/tests/cases/compiler/undefinedTypeAssignment1.ts b/tests/cases/compiler/undefinedTypeAssignment1.ts new file mode 100644 index 00000000000..7d340daba69 --- /dev/null +++ b/tests/cases/compiler/undefinedTypeAssignment1.ts @@ -0,0 +1,4 @@ +type undefined = string; +function p(undefined = "wat") { + return undefined; +} diff --git a/tests/cases/compiler/undefinedTypeAssignment2.ts b/tests/cases/compiler/undefinedTypeAssignment2.ts new file mode 100644 index 00000000000..3f42068e24e --- /dev/null +++ b/tests/cases/compiler/undefinedTypeAssignment2.ts @@ -0,0 +1 @@ +var undefined = void 0; diff --git a/tests/cases/compiler/undefinedTypeAssignment3.ts b/tests/cases/compiler/undefinedTypeAssignment3.ts new file mode 100644 index 00000000000..8bada4f946c --- /dev/null +++ b/tests/cases/compiler/undefinedTypeAssignment3.ts @@ -0,0 +1 @@ +var undefined = null; diff --git a/tests/cases/compiler/undefinedTypeAssignment4.ts b/tests/cases/compiler/undefinedTypeAssignment4.ts new file mode 100644 index 00000000000..fc0dc155acd --- /dev/null +++ b/tests/cases/compiler/undefinedTypeAssignment4.ts @@ -0,0 +1,11 @@ +class undefined { + foo: string; +} +interface undefined { + member: number; +} +namespace undefined { + export var x = 42; +} +var x: undefined; +var y: typeof undefined; diff --git a/tests/cases/compiler/unionTypeParameterInference.ts b/tests/cases/compiler/unionTypeParameterInference.ts new file mode 100644 index 00000000000..79c4f3cc0e5 --- /dev/null +++ b/tests/cases/compiler/unionTypeParameterInference.ts @@ -0,0 +1,9 @@ +// Regression test for #5861 + +interface Foo { prop: T; } + +declare function lift(value: U | Foo): Foo; + +function unlift(value: U | Foo): U { + return lift(value).prop; +} diff --git a/tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts b/tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts new file mode 100644 index 00000000000..26d87429269 --- /dev/null +++ b/tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts @@ -0,0 +1,6 @@ +// @target: ES6 +// @noEmitHelpers: true +type PromiseAlias = Promise; + +async function f(): PromiseAlias { +} \ No newline at end of file diff --git a/tests/cases/conformance/async/es6/asyncImportedPromise_es6.ts b/tests/cases/conformance/async/es6/asyncImportedPromise_es6.ts new file mode 100644 index 00000000000..baf7a5f652d --- /dev/null +++ b/tests/cases/conformance/async/es6/asyncImportedPromise_es6.ts @@ -0,0 +1,10 @@ +// @target: es6 +// @module: commonjs +// @filename: task.ts +export class Task extends Promise { } + +// @filename: test.ts +import { Task } from "./task"; +class Test { + async example(): Task { return; } +} \ No newline at end of file diff --git a/tests/cases/conformance/async/es6/asyncMultiFile.ts b/tests/cases/conformance/async/es6/asyncMultiFile.ts new file mode 100644 index 00000000000..55f5e4b9e92 --- /dev/null +++ b/tests/cases/conformance/async/es6/asyncMultiFile.ts @@ -0,0 +1,5 @@ +// @target: es6 +// @filename: a.ts +async function f() {} +// @filename: b.ts +function g() { } \ No newline at end of file diff --git a/tests/cases/conformance/async/es6/asyncQualifiedReturnType_es6.ts b/tests/cases/conformance/async/es6/asyncQualifiedReturnType_es6.ts new file mode 100644 index 00000000000..eb88f8b1174 --- /dev/null +++ b/tests/cases/conformance/async/es6/asyncQualifiedReturnType_es6.ts @@ -0,0 +1,9 @@ +// @target: ES6 +// @noEmitHelpers: true +namespace X { + export class MyPromise extends Promise { + } +} + +async function f(): X.MyPromise { +} \ No newline at end of file diff --git a/tests/cases/conformance/classes/classExpressions/classExpression5.ts b/tests/cases/conformance/classes/classExpressions/classExpression5.ts new file mode 100644 index 00000000000..be2483ade4d --- /dev/null +++ b/tests/cases/conformance/classes/classExpressions/classExpression5.ts @@ -0,0 +1,5 @@ +new class { + hi() { + return "Hi!"; + } +}().hi(); \ No newline at end of file diff --git a/tests/cases/conformance/enums/enumExportMergingES6.ts b/tests/cases/conformance/enums/enumExportMergingES6.ts new file mode 100644 index 00000000000..0a5185ecdd5 --- /dev/null +++ b/tests/cases/conformance/enums/enumExportMergingES6.ts @@ -0,0 +1,10 @@ +// @target: es6 +export enum Animals { + Cat = 1 +} +export enum Animals { + Dog = 2 +} +export enum Animals { + CatDog = Cat | Dog +} diff --git a/tests/cases/conformance/es6/moduleExportsAmd/anonymousDefaultExportsAmd.ts b/tests/cases/conformance/es6/moduleExportsAmd/anonymousDefaultExportsAmd.ts new file mode 100644 index 00000000000..562f4a910c5 --- /dev/null +++ b/tests/cases/conformance/es6/moduleExportsAmd/anonymousDefaultExportsAmd.ts @@ -0,0 +1,7 @@ +// @target: ES6 +// @module: amd +// @filename: a.ts +export default class {} + +// @filename: b.ts +export default function() {} \ No newline at end of file diff --git a/tests/cases/conformance/es6/moduleExportsAmd/decoratedDefaultExportsGetExportedAmd.ts b/tests/cases/conformance/es6/moduleExportsAmd/decoratedDefaultExportsGetExportedAmd.ts index 87fc8afd263..8eb8a90c8d7 100644 --- a/tests/cases/conformance/es6/moduleExportsAmd/decoratedDefaultExportsGetExportedAmd.ts +++ b/tests/cases/conformance/es6/moduleExportsAmd/decoratedDefaultExportsGetExportedAmd.ts @@ -1,8 +1,14 @@ // @target: ES6 // @experimentalDecorators: true // @module: amd - +// @filename: a.ts var decorator: ClassDecorator; @decorator export default class Foo {} + +// @filename: b.ts +var decorator: ClassDecorator; + +@decorator +export default class {} diff --git a/tests/cases/conformance/es6/moduleExportsAmd/defaultExportsGetExportedAmd.ts b/tests/cases/conformance/es6/moduleExportsAmd/defaultExportsGetExportedAmd.ts index ef0f2ffde17..473dfbf6f73 100644 --- a/tests/cases/conformance/es6/moduleExportsAmd/defaultExportsGetExportedAmd.ts +++ b/tests/cases/conformance/es6/moduleExportsAmd/defaultExportsGetExportedAmd.ts @@ -1,3 +1,7 @@ // @target: ES6 // @module: amd +// @filename: a.ts export default class Foo {} + +// @filename: b.ts +export default function foo() {} diff --git a/tests/cases/conformance/es6/moduleExportsAmd/outFilerootDirModuleNamesAmd.ts b/tests/cases/conformance/es6/moduleExportsAmd/outFilerootDirModuleNamesAmd.ts new file mode 100644 index 00000000000..7f6fad73490 --- /dev/null +++ b/tests/cases/conformance/es6/moduleExportsAmd/outFilerootDirModuleNamesAmd.ts @@ -0,0 +1,12 @@ +// @target: ES6 +// @module: amd +// @rootDir: tests/cases/conformance/es6/moduleExportsAmd/src +// @outFile: output.js +// @filename: src/a.ts +import foo from "./b"; +export default class Foo {} +foo(); + +// @filename: src/b.ts +import Foo from "./a"; +export default function foo() { new Foo(); } diff --git a/tests/cases/conformance/es6/moduleExportsCommonjs/anonymousDefaultExportsCommonjs.ts b/tests/cases/conformance/es6/moduleExportsCommonjs/anonymousDefaultExportsCommonjs.ts new file mode 100644 index 00000000000..7637426b0ea --- /dev/null +++ b/tests/cases/conformance/es6/moduleExportsCommonjs/anonymousDefaultExportsCommonjs.ts @@ -0,0 +1,7 @@ +// @target: ES6 +// @module: commonjs +// @filename: a.ts +export default class {} + +// @filename: b.ts +export default function() {} \ No newline at end of file diff --git a/tests/cases/conformance/es6/moduleExportsCommonjs/decoratedDefaultExportsGetExportedCommonjs.ts b/tests/cases/conformance/es6/moduleExportsCommonjs/decoratedDefaultExportsGetExportedCommonjs.ts index aefd07ffdb9..a20a3769afb 100644 --- a/tests/cases/conformance/es6/moduleExportsCommonjs/decoratedDefaultExportsGetExportedCommonjs.ts +++ b/tests/cases/conformance/es6/moduleExportsCommonjs/decoratedDefaultExportsGetExportedCommonjs.ts @@ -1,8 +1,14 @@ // @target: ES6 // @experimentalDecorators: true // @module: commonjs - +// @filename: a.ts var decorator: ClassDecorator; @decorator export default class Foo {} + +// @filename: b.ts +var decorator: ClassDecorator; + +@decorator +export default class {} diff --git a/tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts b/tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts index 994f24df658..d66ffda426f 100644 --- a/tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts +++ b/tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts @@ -1,3 +1,7 @@ // @target: ES6 // @module: commonjs +// @filename: a.ts export default class Foo {} + +// @filename: b.ts +export default function foo() {} diff --git a/tests/cases/conformance/es6/moduleExportsSystem/anonymousDefaultExportsSystem.ts b/tests/cases/conformance/es6/moduleExportsSystem/anonymousDefaultExportsSystem.ts new file mode 100644 index 00000000000..e29f5ab92aa --- /dev/null +++ b/tests/cases/conformance/es6/moduleExportsSystem/anonymousDefaultExportsSystem.ts @@ -0,0 +1,7 @@ +// @target: ES6 +// @module: system +// @filename: a.ts +export default class {} + +// @filename: b.ts +export default function() {} \ No newline at end of file diff --git a/tests/cases/conformance/es6/moduleExportsSystem/decoratedDefaultExportsGetExportedSystem.ts b/tests/cases/conformance/es6/moduleExportsSystem/decoratedDefaultExportsGetExportedSystem.ts index b871b3c7b35..ca9984dc900 100644 --- a/tests/cases/conformance/es6/moduleExportsSystem/decoratedDefaultExportsGetExportedSystem.ts +++ b/tests/cases/conformance/es6/moduleExportsSystem/decoratedDefaultExportsGetExportedSystem.ts @@ -1,8 +1,14 @@ // @target: ES6 // @experimentalDecorators: true // @module: system - +// @filename: a.ts var decorator: ClassDecorator; @decorator export default class Foo {} + +// @filename: b.ts +var decorator: ClassDecorator; + +@decorator +export default class {} \ No newline at end of file diff --git a/tests/cases/conformance/es6/moduleExportsSystem/defaultExportsGetExportedSystem.ts b/tests/cases/conformance/es6/moduleExportsSystem/defaultExportsGetExportedSystem.ts index 3764f2ec36c..b24757a58bc 100644 --- a/tests/cases/conformance/es6/moduleExportsSystem/defaultExportsGetExportedSystem.ts +++ b/tests/cases/conformance/es6/moduleExportsSystem/defaultExportsGetExportedSystem.ts @@ -1,3 +1,7 @@ // @target: ES6 // @module: system +// @filename: a.ts export default class Foo {} + +// @filename: b.ts +export default function foo() {} diff --git a/tests/cases/conformance/es6/moduleExportsSystem/outFilerootDirModuleNamesSystem.ts b/tests/cases/conformance/es6/moduleExportsSystem/outFilerootDirModuleNamesSystem.ts new file mode 100644 index 00000000000..5708c84c4bd --- /dev/null +++ b/tests/cases/conformance/es6/moduleExportsSystem/outFilerootDirModuleNamesSystem.ts @@ -0,0 +1,12 @@ +// @target: ES6 +// @module: system +// @rootDir: tests/cases/conformance/es6/moduleExportsSystem/src +// @outFile: output.js +// @filename: src/a.ts +import foo from "./b"; +export default class Foo {} +foo(); + +// @filename: src/b.ts +import Foo from "./a"; +export default function foo() { new Foo(); } diff --git a/tests/cases/conformance/es6/moduleExportsUmd/anonymousDefaultExportsUmd.ts b/tests/cases/conformance/es6/moduleExportsUmd/anonymousDefaultExportsUmd.ts new file mode 100644 index 00000000000..ea83f4e08b0 --- /dev/null +++ b/tests/cases/conformance/es6/moduleExportsUmd/anonymousDefaultExportsUmd.ts @@ -0,0 +1,7 @@ +// @target: ES6 +// @module: umd +// @filename: a.ts +export default class {} + +// @filename: b.ts +export default function() {} \ No newline at end of file diff --git a/tests/cases/conformance/es6/moduleExportsUmd/decoratedDefaultExportsGetExportedUmd.ts b/tests/cases/conformance/es6/moduleExportsUmd/decoratedDefaultExportsGetExportedUmd.ts index 9b0a7d773ef..2ae3f00d254 100644 --- a/tests/cases/conformance/es6/moduleExportsUmd/decoratedDefaultExportsGetExportedUmd.ts +++ b/tests/cases/conformance/es6/moduleExportsUmd/decoratedDefaultExportsGetExportedUmd.ts @@ -1,8 +1,14 @@ // @target: ES6 // @experimentalDecorators: true // @module: umd - +// @filename: a.ts var decorator: ClassDecorator; @decorator export default class Foo {} + +// @filename: b.ts +var decorator: ClassDecorator; + +@decorator +export default class {} diff --git a/tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts b/tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts index 39784fc7188..9ce5a7546eb 100644 --- a/tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts +++ b/tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts @@ -1,3 +1,7 @@ // @target: ES6 // @module: umd +// @filename: a.ts export default class Foo {} + +// @filename: b.ts +export default function foo() {} diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts new file mode 100644 index 00000000000..aadbf3cd9c5 --- /dev/null +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts @@ -0,0 +1,141 @@ +// @declaration: true +class RoyalGuard { + isLeader(): this is LeadGuard { + return this instanceof LeadGuard; + } + isFollower(): this is FollowerGuard { + return this instanceof FollowerGuard; + } +} + +class LeadGuard extends RoyalGuard { + lead(): void {}; +} + +class FollowerGuard extends RoyalGuard { + follow(): void {}; +} + +let a: RoyalGuard = new FollowerGuard(); +if (a.isLeader()) { + a.lead(); +} +else if (a.isFollower()) { + a.follow(); +} + +interface GuardInterface extends RoyalGuard {} + +let b: GuardInterface; +if (b.isLeader()) { + b.lead(); +} +else if (b.isFollower()) { + b.follow(); +} + +if (((a.isLeader)())) { + a.lead(); +} +else if (((a).isFollower())) { + a.follow(); +} + +if (((a["isLeader"])())) { + a.lead(); +} +else if (((a)["isFollower"]())) { + a.follow(); +} + +var holder2 = {a}; + +if (holder2.a.isLeader()) { + holder2.a; +} +else { + holder2.a; +} + +class ArrowGuard { + isElite = (): this is ArrowElite => { + return this instanceof ArrowElite; + } + isMedic = (): this is ArrowMedic => { + return this instanceof ArrowMedic; + } +} + +class ArrowElite extends ArrowGuard { + defend(): void {} +} + +class ArrowMedic extends ArrowGuard { + heal(): void {} +} + +let guard = new ArrowGuard(); +if (guard.isElite()) { + guard.defend(); +} +else if (guard.isMedic()) { + guard.heal(); +} + +interface Supplies { + spoiled: boolean; +} + +interface Sundries { + broken: boolean; +} + +interface Crate { + contents: T; + volume: number; + isSupplies(): this is Crate; + isSundries(): this is Crate; +} + +let crate: Crate<{}>; + +if (crate.isSundries()) { + crate.contents.broken = true; +} +else if (crate.isSupplies()) { + crate.contents.spoiled = true; +} + +// Matching guards should be assignable + +a.isFollower = b.isFollower; +a.isLeader = b.isLeader; + +class MimicGuard { + isLeader(): this is MimicLeader { return this instanceof MimicLeader; }; + isFollower(): this is MimicFollower { return this instanceof MimicFollower; }; +} + +class MimicLeader extends MimicGuard { + lead(): void {} +} + +class MimicFollower extends MimicGuard { + follow(): void {} +} + +let mimic = new MimicGuard(); + +a.isLeader = mimic.isLeader; +a.isFollower = mimic.isFollower; + +if (mimic.isFollower()) { + mimic.follow(); + mimic.isFollower = a.isFollower; +} + + +interface MimicGuardInterface { + isLeader(): this is LeadGuard; + isFollower(): this is FollowerGuard; +} diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts new file mode 100644 index 00000000000..1c449e624f1 --- /dev/null +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts @@ -0,0 +1,60 @@ +// @declaration: true +class RoyalGuard { + isLeader(): this is LeadGuard { + return this instanceof LeadGuard; + } + isFollower(): this is FollowerGuard { + return this instanceof FollowerGuard; + } +} + +class LeadGuard extends RoyalGuard { + lead(): void {}; +} + +class FollowerGuard extends RoyalGuard { + follow(): void {}; +} + +interface GuardInterface extends RoyalGuard {} +let a: RoyalGuard = new FollowerGuard(); +let b: GuardInterface = new LeadGuard(); + +// Mismatched guards shouldn't be assignable +b.isFollower = b.isLeader; +b.isLeader = b.isFollower; + +a.isFollower = a.isLeader; +a.isLeader = a.isFollower; + +function invalidGuard(c: any): this is number { + return false; +} + +let c: number | number[]; +if (invalidGuard(c)) { + c; +} +else { + c; +} + +let holder = {invalidGuard}; + +if (holder.invalidGuard(c)) { + c; + holder; +} +else { + c; + holder; +} + +let detached = a.isFollower; + +if (detached()) { + a.follow(); +} +else { + a.lead(); +} \ No newline at end of file diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts new file mode 100644 index 00000000000..decf6d99353 --- /dev/null +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts @@ -0,0 +1,83 @@ +// @target: es5 +// @declaration: true +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + get isFile(): this is File { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = false; + file.isFSO = file.isFile; + file.isFile = true; + let x = file.isFile; + if (file.isFile) { + file.content; + if (file.isNetworked) { + file.host; + file.content; + } + } + else if (file.isDirectory) { + file.children; + } + else if (file.isNetworked) { + file.host; + } + + interface GenericLeadGuard extends GenericGuard { + lead(): void; + } + + interface GenericFollowerGuard extends GenericGuard { + follow(): void; + } + + interface GenericGuard { + target: T; + isLeader: this is (GenericLeadGuard); + isFollower: this is GenericFollowerGuard; + } + + let guard: GenericGuard; + if (guard.isLeader) { + guard.lead(); + } + else if (guard.isFollower) { + guard.follow(); + } + + interface SpecificGuard { + isMoreSpecific: this is MoreSpecificGuard; + } + + interface MoreSpecificGuard extends SpecificGuard { + do(): void; + } + + let general: SpecificGuard; + if (general.isMoreSpecific) { + general.do(); + } +} diff --git a/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts new file mode 100644 index 00000000000..d629a2a1cdd --- /dev/null +++ b/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts @@ -0,0 +1,34 @@ +// @target: es5 +// @declaration: true +// There's a 'File' class in the stdlib, wrap with a namespace to avoid collision +namespace Test { + export class FileSystemObject { + isFSO: this is FileSystemObject; + get isFile(): this is File { + return this instanceof File; + } + set isFile(param) { + // noop + } + get isDirectory(): this is Directory { + return this instanceof Directory; + } + isNetworked: this is (Networked & this); + constructor(public path: string) {} + } + + export class File extends FileSystemObject { + constructor(path: string, public content: string) { super(path); } + } + export class Directory extends FileSystemObject { + children: FileSystemObject[]; + } + export interface Networked { + host: string; + } + + let file: FileSystemObject = new File("foo/bar.txt", "foo"); + file.isNetworked = file.isFile; + file.isFSO = file.isNetworked; + file.isFile = file.isFSO; +} \ No newline at end of file diff --git a/tests/cases/conformance/jsx/jsxParsingError1.tsx b/tests/cases/conformance/jsx/jsxParsingError1.tsx new file mode 100644 index 00000000000..2668f04e885 --- /dev/null +++ b/tests/cases/conformance/jsx/jsxParsingError1.tsx @@ -0,0 +1,14 @@ +//@jsx: preserve + +//@filename: file.tsx +declare module JSX { + interface Element { } + interface IntrinsicElements { + [s: string]: any; + } +} + +// This should be a parse error +const class1 = "foo"; +const class2 = "bar"; +const elem =
; diff --git a/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx b/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx index e75a1dbfde2..179a3116b43 100644 --- a/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx +++ b/tests/cases/conformance/jsx/tsxPreserveEmit1.tsx @@ -23,4 +23,12 @@ import ReactRouter = require('react-router'); import Route = ReactRouter.Route; -var routes = ; +var routes1 = ; + +module M { + export var X: any; +} +module M { + // Should emit 'M.X' in both opening and closing tags + var y = ; +} diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents1.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents1.tsx new file mode 100644 index 00000000000..5d64d22c757 --- /dev/null +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents1.tsx @@ -0,0 +1,25 @@ +// @filename: file.tsx +// @jsx: preserve +// @noLib: true +// @libFiles: react.d.ts,lib.d.ts + +function Greet(x: {name: string}) { + return
Hello, {x}
; +} +function Meet({name = 'world'}) { + return
Hello, {name}
; +} + +// OK +let a = ; +// Error +let b = ; + +// OK +let c = ; +// OK +let d = ; +// Error +let e = ; +// Error +let f = ; diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx new file mode 100644 index 00000000000..d2a6586b436 --- /dev/null +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx @@ -0,0 +1,41 @@ +// @filename: file.tsx +// @jsx: preserve +// @noLib: true +// @libFiles: react.d.ts,lib.d.ts + +import React = require('react'); + +function Greet(x: {name?: string}) { + return
Hello, {x}
; +} + +class BigGreeter extends React.Component<{ name?: string }, {}> { + render() { + return
; + } + greeting: string; +} + +// OK +let a = ; +// OK - always valid to specify 'key' +let b = ; +// Error - not allowed to specify 'ref' on SFCs +let c = ; + + +// OK - ref is valid for classes +let d = x.greeting.substr(10)} />; +// Error ('subtr' not on string) +let e = x.greeting.subtr(10)} />; +// Error (ref callback is contextually typed) +let f = x.notARealProperty} />; + +// OK - key is always valid +let g = ; + +// OK - contextually typed intrinsic ref callback parameter +let h =
x.innerText} />; +// Error - property not on ontextually typed intrinsic ref callback parameter +let i =
x.propertyNotOnHtmlDivElement} />; + diff --git a/tests/cases/fourslash/breakpointValidationDecorators.ts b/tests/cases/fourslash/breakpointValidationDecorators.ts new file mode 100644 index 00000000000..9eb4463e002 --- /dev/null +++ b/tests/cases/fourslash/breakpointValidationDecorators.ts @@ -0,0 +1,60 @@ +/// + +// @BaselineFile: bpSpan_decorators.baseline +// @Filename: bpSpan_decorators.ts +////declare function ClassDecorator1(target: Function): void; +////declare function ClassDecorator2(x: number): (target: Function) => void; +////declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; +////declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void; +////declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; +////declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; +//// +////@ClassDecorator1 +////@ClassDecorator2(10) +////class Greeter { +//// constructor( +//// @ParameterDecorator1 +//// @ParameterDecorator2(20) +//// public greeting: string, +//// +//// @ParameterDecorator1 +//// @ParameterDecorator2(30) +//// ...b: string[]) { +//// } +//// +//// @PropertyDecorator1 +//// @PropertyDecorator2(40) +//// greet() { +//// return "

" + this.greeting + "

"; +//// } +//// +//// @PropertyDecorator1 +//// @PropertyDecorator2(50) +//// private x: string; +//// +//// @PropertyDecorator1 +//// @PropertyDecorator2(60) +//// private static x1: number = 10; +//// +//// private fn( +//// @ParameterDecorator1 +//// @ParameterDecorator2(70) +//// x: number) { +//// return this.greeting; +//// } +//// +//// @PropertyDecorator1 +//// @PropertyDecorator2(80) +//// get greetings() { +//// return this.greeting; +//// } +//// +//// set greetings( +//// @ParameterDecorator1 +//// @ParameterDecorator2(90) +//// greetings: string) { +//// this.greeting = greetings; +//// } +////} + +verify.baselineCurrentFileBreakpointLocations(); \ No newline at end of file diff --git a/tests/cases/fourslash/completionListImplementingInterfaceFunctions.ts b/tests/cases/fourslash/completionListImplementingInterfaceFunctions.ts new file mode 100644 index 00000000000..06a1c24230c --- /dev/null +++ b/tests/cases/fourslash/completionListImplementingInterfaceFunctions.ts @@ -0,0 +1,21 @@ +/// + +////interface I1 { +//// a(): void; +//// b(): void; +////} +//// +////var imp1: I1 { +//// a() {}, +//// /*0*/ +////} +//// +////var imp2: I1 { +//// a: () => {}, +//// /*1*/ +////} + +goTo.marker("0"); +verify.not.completionListContains("a"); +goTo.marker("1"); +verify.not.completionListContains("a"); diff --git a/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias3.ts b/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias3.ts new file mode 100644 index 00000000000..59cceda2aad --- /dev/null +++ b/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias3.ts @@ -0,0 +1,13 @@ +/// + +//// type constructorType = new 1 ;/*1*/ //// ( arg ) => 2 ;/*2*/ //// arg => 2 ;/*3*/ +//// arg=>2 ;/*3a*/ //// ( arg = 1 ) => 3 ;/*4*/ //// ( arg ? ) => 4 ;/*5*/ //// ( arg : number ) => 5 ;/*6*/ @@ -118,7 +119,9 @@ verify.currentLineContentIs("() => 1;"); goTo.marker("2"); verify.currentLineContentIs("(arg) => 2;"); goTo.marker("3"); -verify.currentLineContentIs("arg => 2;"); +verify.currentLineContentIs("arg => 2;"); +goTo.marker("3a"); +verify.currentLineContentIs("arg => 2;"); goTo.marker("4"); verify.currentLineContentIs("(arg = 1) => 3;"); goTo.marker("5"); diff --git a/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts b/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts index 9ab29b41798..198c39abe42 100644 --- a/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts +++ b/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts @@ -11,5 +11,12 @@ verify.getSemanticDiagnostics(`[ "length": 11, "category": "error", "code": 8003 + }, + { + "message": "Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file.", + "start": 0, + "length": 11, + "category": "error", + "code": 1148 } ]`); \ No newline at end of file diff --git a/tests/cases/fourslash/getOccurrencesConst04.ts b/tests/cases/fourslash/getOccurrencesConst04.ts index c7f293450d3..2a8ee4c9e2c 100644 --- a/tests/cases/fourslash/getOccurrencesConst04.ts +++ b/tests/cases/fourslash/getOccurrencesConst04.ts @@ -1,12 +1,14 @@ /// ////export const class C { -//// private static c/*1*/onst foo; -//// constructor(public con/*2*/st foo) { +//// private static c/*1*/onst f/*2*/oo; +//// constructor(public con/*3*/st foo) { //// } ////} goTo.marker("1"); -verify.occurrencesAtPositionCount(1); +verify.occurrencesAtPositionCount(0); goTo.marker("2"); +verify.occurrencesAtPositionCount(1); +goTo.marker("3"); verify.occurrencesAtPositionCount(0); \ No newline at end of file diff --git a/tests/cases/fourslash/javaScriptPrototype1.ts b/tests/cases/fourslash/javaScriptPrototype1.ts new file mode 100644 index 00000000000..c9c454cfb2c --- /dev/null +++ b/tests/cases/fourslash/javaScriptPrototype1.ts @@ -0,0 +1,46 @@ +/// + +// Assignments to the 'prototype' property of a function create a class + +// @allowNonTsExtensions: true +// @Filename: myMod.js +//// function myCtor(x) { +//// } +//// myCtor.prototype.foo = function() { return 32 }; +//// myCtor.prototype.bar = function() { return '' }; +//// +//// var m = new myCtor(10); +//// m/*1*/ +//// var a = m.foo; +//// a/*2*/ +//// var b = a(); +//// b/*3*/ +//// var c = m.bar(); +//// c/*4*/ + + +// Members of the class instance +goTo.marker('1'); +edit.insert('.'); +verify.memberListContains('foo', undefined, undefined, 'property'); +verify.memberListContains('bar', undefined, undefined, 'property'); +edit.backspace(); + +// Members of a class method (1) +goTo.marker('2'); +edit.insert('.'); +verify.memberListContains('length', undefined, undefined, 'property'); +edit.backspace(); + +// Members of the invocation of a class method (1) +goTo.marker('3'); +edit.insert('.'); +verify.memberListContains('toFixed', undefined, undefined, 'method'); +verify.not.memberListContains('substr', undefined, undefined, 'method'); +edit.backspace(); + +// Members of the invocation of a class method (2) +goTo.marker('4'); +edit.insert('.'); +verify.memberListContains('substr', undefined, undefined, 'method'); +verify.not.memberListContains('toFixed', undefined, undefined, 'method'); diff --git a/tests/cases/fourslash/javaScriptPrototype2.ts b/tests/cases/fourslash/javaScriptPrototype2.ts new file mode 100644 index 00000000000..ab6afff3d2c --- /dev/null +++ b/tests/cases/fourslash/javaScriptPrototype2.ts @@ -0,0 +1,36 @@ +/// + +// Assignments to 'this' in the constructorish body create +// properties with those names + +// @allowNonTsExtensions: true +// @Filename: myMod.js +//// function myCtor(x) { +//// this.qua = 10; +//// } +//// myCtor.prototype.foo = function() { return 32 }; +//// myCtor.prototype.bar = function() { return '' }; +//// +//// var m = new myCtor(10); +//// m/*1*/ +//// var x = m.qua; +//// x/*2*/ +//// myCtor/*3*/ + +// Verify the instance property exists +goTo.marker('1'); +edit.insert('.'); +verify.completionListContains('qua', undefined, undefined, 'property'); +edit.backspace(); + +// Verify the type of the instance property +goTo.marker('2'); +edit.insert('.'); +verify.completionListContains('toFixed', undefined, undefined, 'method'); + +goTo.marker('3'); +edit.insert('.'); +// Make sure symbols don't leak out into the constructor +verify.completionListContains('qua', undefined, undefined, 'warning'); +verify.completionListContains('foo', undefined, undefined, 'warning'); +verify.completionListContains('bar', undefined, undefined, 'warning'); diff --git a/tests/cases/fourslash/javaScriptPrototype3.ts b/tests/cases/fourslash/javaScriptPrototype3.ts new file mode 100644 index 00000000000..7b3f63eca57 --- /dev/null +++ b/tests/cases/fourslash/javaScriptPrototype3.ts @@ -0,0 +1,20 @@ +/// + +// Inside an inferred method body, the type of 'this' is the class type + +// @allowNonTsExtensions: true +// @Filename: myMod.js +//// function myCtor(x) { +//// this.qua = 10; +//// } +//// myCtor.prototype.foo = function() { return this/**/; }; +//// myCtor.prototype.bar = function() { return '' }; +//// + +goTo.marker(); +edit.insert('.'); + +// Check members of the function +verify.completionListContains('foo', undefined, undefined, 'property'); +verify.completionListContains('bar', undefined, undefined, 'property'); +verify.completionListContains('qua', undefined, undefined, 'property'); diff --git a/tests/cases/fourslash/javaScriptPrototype4.ts b/tests/cases/fourslash/javaScriptPrototype4.ts new file mode 100644 index 00000000000..81cb5fe3784 --- /dev/null +++ b/tests/cases/fourslash/javaScriptPrototype4.ts @@ -0,0 +1,21 @@ +/// + +// Check for any odd symbol leakage + +// @allowNonTsExtensions: true +// @Filename: myMod.js +//// function myCtor(x) { +//// this.qua = 10; +//// } +//// myCtor.prototype.foo = function() { return 32 }; +//// myCtor.prototype.bar = function() { return '' }; +//// +//// myCtor/*1*/ + +goTo.marker('1'); +edit.insert('.'); + +// Check members of the function +verify.completionListContains('foo', undefined, undefined, 'warning'); +verify.completionListContains('bar', undefined, undefined, 'warning'); +verify.completionListContains('qua', undefined, undefined, 'warning'); diff --git a/tests/cases/fourslash/javaScriptPrototype5.ts b/tests/cases/fourslash/javaScriptPrototype5.ts new file mode 100644 index 00000000000..a0125e47512 --- /dev/null +++ b/tests/cases/fourslash/javaScriptPrototype5.ts @@ -0,0 +1,19 @@ +/// + +// No prototype assignments are needed to enable class inference + +// @allowNonTsExtensions: true +// @Filename: myMod.js +//// function myCtor() { +//// this.foo = 'hello'; +//// this.bar = 10; +//// } +//// let x = new myCtor(); +//// x/**/ + +goTo.marker(); +edit.insert('.'); + +// Check members of the function +verify.completionListContains('foo', undefined, undefined, 'property'); +verify.completionListContains('bar', undefined, undefined, 'property'); diff --git a/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts b/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts new file mode 100644 index 00000000000..b6ae5ea1c6b --- /dev/null +++ b/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias.ts @@ -0,0 +1,22 @@ +/// + +//// type MixinCtor
= new () => /*0*/A & { constructor: MixinCtor }; +//// type MixinCtor = new () => A & { constructor: { constructor: MixinCtor } }; + +let typeAliashDisplayParts = [{ text: "type", kind: "keyword" }, { text: " ", kind: "space" }, { text: "MixinCtor", kind: "aliasName" }, + { text: "<", kind: "punctuation" }, { text: "A", kind: "typeParameterName" }, { text: ">", kind: "punctuation" }]; + +let typeParameterDisplayParts = [{ text: "(", kind: "punctuation" }, { text: "type parameter", kind: "text" }, { text: ")", kind: "punctuation" }, { text: " ", kind: "space" }, + { text: "A", kind: "typeParameterName" }, { text: " ", kind: "space" }, { text: "in", kind: "keyword" }, { text: " ", kind: "space" }]; + +goTo.marker('0'); +verify.verifyQuickInfoDisplayParts("type parameter", "", { start: test.markerByName("0").position, length: "A".length }, + typeParameterDisplayParts.concat(typeAliashDisplayParts), []); + +goTo.marker('1'); +verify.verifyQuickInfoDisplayParts("type parameter", "", { start: test.markerByName("1").position, length: "A".length }, + typeParameterDisplayParts.concat(typeAliashDisplayParts), []);; + +goTo.marker('2'); +verify.verifyQuickInfoDisplayParts("type parameter", "", { start: test.markerByName("2").position, length: "A".length }, + typeParameterDisplayParts.concat(typeAliashDisplayParts), []); \ No newline at end of file diff --git a/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.ts b/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.ts index b6a10e086c2..5dbcfa93d78 100644 --- a/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.ts +++ b/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.ts @@ -3,9 +3,6 @@ ////type /*0*/List = /*2*/T[] ////type /*3*/List2 = /*5*/T[]; -type List2 = T[]; - -type L = T[] let typeAliashDisplayParts = [{ text: "type", kind: "keyword" }, { text: " ", kind: "space" }, { text: "List", kind: "aliasName" }, { text: "<", kind: "punctuation" }, { text: "T", kind: "typeParameterName" }, { text: ">", kind: "punctuation" }]; diff --git a/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterOfFunctionLikeInTypeAlias.ts b/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterOfFunctionLikeInTypeAlias.ts new file mode 100644 index 00000000000..917358fde57 --- /dev/null +++ b/tests/cases/fourslash/quickInfoDisplayPartsTypeParameterOfFunctionLikeInTypeAlias.ts @@ -0,0 +1,41 @@ +/// + +//// type jamming = new () => jamming; +//// type jamming = (new () => jamming) & { constructor: /*2*/A }; +//// type jamming = new () => jamming & { constructor: /*3*/A }; + +let typeAliashDisplayParts = [{ text: "type", kind: "keyword" }, { text: " ", kind: "space" }, { text: "jamming", kind: "aliasName" }, + { text: "<", kind: "punctuation" }, { text: "A", kind: "typeParameterName" }, { text: ">", kind: "punctuation" }]; + +let typeParameterDisplayParts = [{ text: "(", kind: "punctuation" }, { text: "type parameter", kind: "text" }, { text: ")", kind: "punctuation" }, { text: " ", kind: "space" }, + { text: "A", kind: "typeParameterName" }, { text: " ", kind: "space" }, { text: "in", kind: "keyword" }, { text: " ", kind: "space" }]; + +let constructorTypeDisplayParts = [{ text: "<", kind: "punctuation" }, { text: "A", kind: "typeParameterName" }, { text: ">", kind: "punctuation" }, + { text: "(", kind: "punctuation" }, { text: ")", kind: "punctuation" }, { text: ":", kind: "punctuation" }, { text: " ", kind: "space" }, + { text: "new", kind: "keyword" }, { "text": " ", kind: "space" }, { text: "<", kind: "punctuation" }, { text: "A", kind: "typeParameterName" }, + { text: ">", kind: "punctuation" }, { text: "(", kind: "punctuation" }, { text: ")", kind: "punctuation" }, {"text": " ", kind: "space" }, + { text: "=>", kind: "punctuation" }, { "text": " ", kind: "space" }, { text: "jamming", kind: "aliasName" }]; + +let constructorTypeWithLongReturnTypeDisplayParts = [{ "text": "<", kind: "punctuation" }, { "text": "A", kind: "typeParameterName" }, { "text": ">", kind: "punctuation" }, + { "text": "(", kind: "punctuation" }, { "text": ")", kind: "punctuation" }, { "text": ":", kind: "punctuation" }, { "text": " ", kind: "space" }, { "text": "(", kind: "punctuation" }, + { "text": "new", kind: "keyword" }, { "text": " ", kind: "space" }, { "text": "<", kind: "punctuation" }, { "text": "A", kind: "typeParameterName" }, { "text": ">", kind: "punctuation" }, + { "text": "(", kind: "punctuation" }, { "text": ")", kind: "punctuation" }, { "text": " ", kind: "space" }, { "text": "=>", kind: "punctuation" }, { "text": " ", kind: "space" }, + { "text": "jamming", kind: "aliasName" }, { "text": ")", kind: "punctuation" }, { "text": " ", kind: "space" }, { "text": "&", kind: "punctuation" }, { "text": " ", kind: "space" }, + { "text": "{", kind: "punctuation" }, { "text": "\n", kind: "lineBreak" }, { "text": " ", kind: "space" }, { "text": "constructor", kind: "propertyName" }, { "text": ":", kind: "punctuation" }, + { "text": " ", kind: "space" }, { "text": "A", kind: "typeParameterName" }, {"text":";", kind: "punctuation" }, {"text":"\n", kind: "lineBreak" }, {"text":"}", kind: "punctuation" }]; + +goTo.marker('0'); +verify.verifyQuickInfoDisplayParts("type parameter", "", { start: test.markerByName("0").position, length: "A".length }, + typeParameterDisplayParts.concat(constructorTypeDisplayParts), []); + +goTo.marker('1'); +verify.verifyQuickInfoDisplayParts("type parameter", "", { start: test.markerByName("1").position, length: "A".length }, + typeParameterDisplayParts.concat(constructorTypeDisplayParts), []); + +goTo.marker('2'); +verify.verifyQuickInfoDisplayParts("type parameter", "", { start: test.markerByName("2").position, length: "A".length }, + typeParameterDisplayParts.concat(typeAliashDisplayParts), []); + +goTo.marker('3'); +verify.verifyQuickInfoDisplayParts("type parameter", "", { start: test.markerByName("3").position, length: "A".length }, + typeParameterDisplayParts.concat(constructorTypeWithLongReturnTypeDisplayParts), []); \ No newline at end of file diff --git a/tests/cases/fourslash/quickInfoForTypeParameterInTypeAlias1.ts b/tests/cases/fourslash/quickInfoForTypeParameterInTypeAlias1.ts new file mode 100644 index 00000000000..7f5f6df4d5b --- /dev/null +++ b/tests/cases/fourslash/quickInfoForTypeParameterInTypeAlias1.ts @@ -0,0 +1,19 @@ +/// + +//// type Ctor = new () => A/*1*/A; +//// type MixinCtor = new () => AA & { constructor: MixinCtor }; +//// type NestedCtor = new() => AA & (new () => AA & { constructor: NestedCtor }); +//// type Method = { method(): A/*4*/A }; +//// type Construct = { new(): A/*5*/A }; + + +goTo.marker('1'); +verify.quickInfoIs('(type parameter) AA in type Ctor'); +goTo.marker('2'); +verify.quickInfoIs('(type parameter) AA in type MixinCtor'); +goTo.marker('3'); +verify.quickInfoIs('(type parameter) AA in type NestedCtor'); +goTo.marker('4'); +verify.quickInfoIs('(type parameter) AA in type Method'); +goTo.marker('5'); +verify.quickInfoIs('(type parameter) AA in type Construct'); \ No newline at end of file diff --git a/tests/cases/fourslash/quickInfoForTypeParameterInTypeAlias2.ts b/tests/cases/fourslash/quickInfoForTypeParameterInTypeAlias2.ts new file mode 100644 index 00000000000..89a648470d6 --- /dev/null +++ b/tests/cases/fourslash/quickInfoForTypeParameterInTypeAlias2.ts @@ -0,0 +1,22 @@ +/// + +//// type Call = { (): A/*1*/A }; +//// type Index = {[foo: string]: A/*2*/A}; +//// type GenericMethod = { method(): A/*3*/A & B/*4*/B } +//// type Nesting = { method(): new () => T/*5*/T & U/*6*/U & W/*7*/W }; + +goTo.marker('1'); +verify.quickInfoIs('(type parameter) AA in type Call'); +goTo.marker('2'); +verify.quickInfoIs('(type parameter) AA in type Index'); +goTo.marker('3'); +verify.quickInfoIs('(type parameter) AA in type GenericMethod'); +goTo.marker('4'); +verify.quickInfoIs('(type parameter) BB in method(): AA & BB'); +goTo.marker('5'); +verify.quickInfoIs('(type parameter) TT in type Nesting'); +goTo.marker('6'); +verify.quickInfoIs('(type parameter) UU in method(): new () => TT & UU & WW'); +goTo.marker('7'); +verify.quickInfoIs('(type parameter) WW in (): TT & UU & WW'); + diff --git a/tests/cases/fourslash/smartIndentNamedImport.ts b/tests/cases/fourslash/smartIndentNamedImport.ts new file mode 100644 index 00000000000..37ef80f6316 --- /dev/null +++ b/tests/cases/fourslash/smartIndentNamedImport.ts @@ -0,0 +1,12 @@ +/// + +////import {/*0*/ +//// numbers as bn,/*1*/ +//// list/*2*/ +////} from '@bykov/basics';/*3*/ + +format.document(); +goTo.marker("0"); verify.currentLineContentIs("import {"); +goTo.marker("1"); verify.currentLineContentIs(" numbers as bn,"); +goTo.marker("2"); verify.currentLineContentIs(" list"); +goTo.marker("3"); verify.currentLineContentIs("} from '@bykov/basics';"); \ No newline at end of file diff --git a/tests/cases/fourslash/thisPredicateFunctionCompletions.ts b/tests/cases/fourslash/thisPredicateFunctionCompletions.ts new file mode 100644 index 00000000000..3c93a859bf3 --- /dev/null +++ b/tests/cases/fourslash/thisPredicateFunctionCompletions.ts @@ -0,0 +1,80 @@ +/// + +//// class RoyalGuard { +//// isLeader(): this is LeadGuard { +//// return this instanceof LeadGuard; +//// } +//// isFollower(): this is FollowerGuard { +//// return this instanceof FollowerGuard; +//// } +//// } +//// +//// class LeadGuard extends RoyalGuard { +//// lead(): void {}; +//// } +//// +//// class FollowerGuard extends RoyalGuard { +//// follow(): void {}; +//// } +//// +//// let a: RoyalGuard = new FollowerGuard(); +//// if (a.is/*1*/Leader()) { +//// a./*2*/; +//// } +//// else if (a.is/*3*/Follower()) { +//// a./*4*/; +//// } +//// +//// interface GuardInterface { +//// isLeader(): this is LeadGuard; +//// isFollower(): this is FollowerGuard; +//// } +//// +//// let b: GuardInterface; +//// if (b.is/*5*/Leader()) { +//// b./*6*/; +//// } +//// else if (b.is/*7*/Follower()) { +//// b./*8*/; +//// } +//// +//// if (((a.isLeader)())) { +//// a./*9*/; +//// } +//// else if (((a).isFollower())) { +//// a./*10*/; +//// } +//// +//// if (((a["isLeader"])())) { +//// a./*11*/; +//// } +//// else if (((a)["isFollower"]())) { +//// a./*12*/; +//// } +//// +//// let leader/*13*/Status = a.isLeader(); +//// function isLeaderGuard(g: RoyalGuard) { +//// return g.isLeader(); +//// } +//// let checked/*14*/LeaderStatus = isLeader/*15*/Guard(a); + + +goTo.marker("2"); +verify.completionListContains("lead"); +goTo.marker("4"); +verify.completionListContains("follow"); + +goTo.marker("6"); +verify.completionListContains("lead"); +goTo.marker("8"); +verify.completionListContains("follow"); + +goTo.marker("9"); +verify.completionListContains("lead"); +goTo.marker("10"); +verify.completionListContains("follow"); + +goTo.marker("11"); +verify.completionListContains("lead"); +goTo.marker("12"); +verify.completionListContains("follow"); \ No newline at end of file diff --git a/tests/cases/fourslash/thisPredicateFunctionQuickInfo.ts b/tests/cases/fourslash/thisPredicateFunctionQuickInfo.ts new file mode 100644 index 00000000000..3b7adc460c5 --- /dev/null +++ b/tests/cases/fourslash/thisPredicateFunctionQuickInfo.ts @@ -0,0 +1,77 @@ +/// + +//// class RoyalGuard { +//// isLeader(): this is LeadGuard { +//// return this instanceof LeadGuard; +//// } +//// isFollower(): this is FollowerGuard { +//// return this instanceof FollowerGuard; +//// } +//// } +//// +//// class LeadGuard extends RoyalGuard { +//// lead(): void {}; +//// } +//// +//// class FollowerGuard extends RoyalGuard { +//// follow(): void {}; +//// } +//// +//// let a: RoyalGuard = new FollowerGuard(); +//// if (a.is/*1*/Leader()) { +//// a./*2*/; +//// } +//// else if (a.is/*3*/Follower()) { +//// a./*4*/; +//// } +//// +//// interface GuardInterface { +//// isLeader(): this is LeadGuard; +//// isFollower(): this is FollowerGuard; +//// } +//// +//// let b: GuardInterface; +//// if (b.is/*5*/Leader()) { +//// b./*6*/; +//// } +//// else if (b.is/*7*/Follower()) { +//// b./*8*/; +//// } +//// +//// if (((a.isLeader)())) { +//// a./*9*/; +//// } +//// else if (((a).isFollower())) { +//// a./*10*/; +//// } +//// +//// if (((a["isLeader"])())) { +//// a./*11*/; +//// } +//// else if (((a)["isFollower"]())) { +//// a./*12*/; +//// } +//// +//// let leader/*13*/Status = a.isLeader(); +//// function isLeaderGuard(g: RoyalGuard) { +//// return g.isLeader(); +//// } +//// let checked/*14*/LeaderStatus = isLeader/*15*/Guard(a); + + +goTo.marker("1"); +verify.quickInfoIs("(method) RoyalGuard.isLeader(): this is LeadGuard"); +goTo.marker("3"); +verify.quickInfoIs("(method) RoyalGuard.isFollower(): this is FollowerGuard"); + +goTo.marker("5"); +verify.quickInfoIs("(method) GuardInterface.isLeader(): this is LeadGuard"); +goTo.marker("7"); +verify.quickInfoIs("(method) GuardInterface.isFollower(): this is FollowerGuard"); + +goTo.marker("13"); +verify.quickInfoIs("let leaderStatus: boolean"); +goTo.marker("14"); +verify.quickInfoIs("let checkedLeaderStatus: boolean"); +goTo.marker("15"); +verify.quickInfoIs("function isLeaderGuard(g: RoyalGuard): boolean"); \ No newline at end of file diff --git a/tests/cases/fourslash/thisPredicateMemberCompletions.ts b/tests/cases/fourslash/thisPredicateMemberCompletions.ts new file mode 100644 index 00000000000..24ce742faac --- /dev/null +++ b/tests/cases/fourslash/thisPredicateMemberCompletions.ts @@ -0,0 +1,95 @@ +/// + +//// class FileSystemObject { +//// get is/*1*/File(): this is Item { +//// return this instanceof Item; +//// } +//// set is/*2*/File(param) { +//// // noop +//// } +//// get is/*3*/Directory(): this is Directory { +//// return this instanceof Directory; +//// } +//// is/*4*/Networked: this is (Networked & this); +//// constructor(public path: string) {} +//// } +//// +//// class Item extends FileSystemObject { +//// constructor(path: string, public content: string) { super(path); } +//// } +//// class Directory extends FileSystemObject { +//// children: FileSystemObject[]; +//// } +//// interface Networked { +//// host: string; +//// } +//// +//// interface Sundries { +//// broken: boolean; +//// } +//// +//// interface Supplies { +//// spoiled: boolean; +//// } +//// +//// interface Crate { +//// contents: T; +//// is/*5*/Sundries: this is Crate; +//// is/*6*/Supplies: this is Crate; +//// is/*7*/PackedTight: this is (this & {extraContents: T}); +//// } +//// +//// const obj: FileSystemObject = new Item("/foo", ""); +//// if (obj.is/*8*/File) { +//// obj./*9*/; +//// if (obj.is/*10*/Networked) { +//// obj./*11*/; +//// } +//// } +//// if (obj.is/*12*/Directory) { +//// obj./*13*/; +//// if (obj.is/*14*/Networked) { +//// obj./*15*/; +//// } +//// } +//// if (obj.is/*16*/Networked) { +//// obj./*17*/; +//// } +//// +//// const crate: Crate; +//// if (crate.is/*18*/PackedTight) { +//// crate./*19*/; +//// } +//// if (crate.is/*20*/Sundries) { +//// crate.contents./*21*/; +//// if (crate.is/*22*/PackedTight) { +//// crate./*23*/ +//// } +//// } +//// if (crate.is/*24*/Supplies) { +//// crate.contents./*25*/; +//// if (crate.is/*26*/PackedTight) { +//// crate./*27*/ +//// } +//// } + +goTo.marker("9"); +verify.completionListContains("content"); +goTo.marker("11"); +verify.completionListContains("host"); +goTo.marker("13"); +verify.completionListContains("children"); +goTo.marker("15"); +verify.completionListContains("host"); +goTo.marker("17"); +verify.completionListContains("host"); +goTo.marker("19"); +verify.completionListContains("extraContents"); +goTo.marker("21"); +verify.completionListContains("broken"); +goTo.marker("23"); +verify.completionListContains("extraContents"); +goTo.marker("25"); +verify.completionListContains("spoiled"); +goTo.marker("27"); +verify.completionListContains("extraContents"); \ No newline at end of file diff --git a/tests/cases/fourslash/thisPredicateMemberQuickInfo.ts b/tests/cases/fourslash/thisPredicateMemberQuickInfo.ts new file mode 100644 index 00000000000..20d519e0008 --- /dev/null +++ b/tests/cases/fourslash/thisPredicateMemberQuickInfo.ts @@ -0,0 +1,117 @@ +/// + +//// class FileSystemObject { +//// get is/*1*/File(): this is Item { +//// return this instanceof Item; +//// } +//// set is/*2*/File(param) { +//// // noop +//// } +//// get is/*3*/Directory(): this is Directory { +//// return this instanceof Directory; +//// } +//// is/*4*/Networked: this is (Networked & this); +//// constructor(public path: string) {} +//// } +//// +//// class Item extends FileSystemObject { +//// constructor(path: string, public content: string) { super(path); } +//// } +//// class Directory extends FileSystemObject { +//// children: FileSystemObject[]; +//// } +//// interface Networked { +//// host: string; +//// } +//// +//// interface Sundries { +//// broken: boolean; +//// } +//// +//// interface Supplies { +//// spoiled: boolean; +//// } +//// +//// interface Crate { +//// contents: T; +//// is/*5*/Sundries: this is Crate; +//// is/*6*/Supplies: this is Crate; +//// is/*7*/PackedTight: this is (this & {extraContents: T}); +//// } +//// +//// const obj: FileSystemObject = new Item("/foo", ""); +//// if (obj.is/*8*/File) { +//// obj./*9*/; +//// if (obj.is/*10*/Networked) { +//// obj./*11*/; +//// } +//// } +//// if (obj.is/*12*/Directory) { +//// obj./*13*/; +//// if (obj.is/*14*/Networked) { +//// obj./*15*/; +//// } +//// } +//// if (obj.is/*16*/Networked) { +//// obj./*17*/; +//// } +//// +//// const crate: Crate; +//// if (crate.is/*18*/PackedTight) { +//// crate./*19*/; +//// } +//// if (crate.is/*20*/Sundries) { +//// crate.contents./*21*/; +//// if (crate.is/*22*/PackedTight) { +//// crate./*23*/ +//// } +//// } +//// if (crate.is/*24*/Supplies) { +//// crate.contents./*25*/; +//// if (crate.is/*26*/PackedTight) { +//// crate./*27*/ +//// } +//// } + +goTo.marker("1"); +verify.quickInfoIs("(property) FileSystemObject.isFile: this is Item"); +goTo.marker("2"); +verify.quickInfoIs("(property) FileSystemObject.isFile: this is Item"); +goTo.marker("3"); +verify.quickInfoIs("(property) FileSystemObject.isDirectory: this is Directory"); +goTo.marker("4"); +verify.quickInfoIs("(property) FileSystemObject.isNetworked: this is Networked & this"); +goTo.marker("5"); +verify.quickInfoIs("(property) Crate.isSundries: this is Crate"); +goTo.marker("6"); +verify.quickInfoIs("(property) Crate.isSupplies: this is Crate"); +goTo.marker("7"); +verify.quickInfoIs(`(property) Crate.isPackedTight: this is this & { + extraContents: T; +}`); +goTo.marker("8"); +verify.quickInfoIs("(property) FileSystemObject.isFile: this is Item"); +goTo.marker("10"); +verify.quickInfoIs("(property) FileSystemObject.isNetworked: this is Networked & Item"); +goTo.marker("12"); +verify.quickInfoIs("(property) FileSystemObject.isDirectory: this is Directory"); +goTo.marker("14"); +verify.quickInfoIs("(property) FileSystemObject.isNetworked: this is Networked & Directory"); +goTo.marker("16"); +verify.quickInfoIs("(property) FileSystemObject.isNetworked: this is Networked & FileSystemObject"); +goTo.marker("18"); +verify.quickInfoIs(`(property) Crate.isPackedTight: this is Crate & { + extraContents: any; +}`); +goTo.marker("20"); +verify.quickInfoIs("(property) Crate.isSundries: this is Crate"); +goTo.marker("22"); +verify.quickInfoIs(`(property) Crate.isPackedTight: this is Crate & { + extraContents: Sundries; +}`); +goTo.marker("24"); +verify.quickInfoIs("(property) Crate.isSupplies: this is Crate"); +goTo.marker("26"); +verify.quickInfoIs(`(property) Crate.isPackedTight: this is Crate & { + extraContents: Supplies; +}`); \ No newline at end of file diff --git a/tests/cases/unittests/moduleResolution.ts b/tests/cases/unittests/moduleResolution.ts index c4c17ebb223..5b924650401 100644 --- a/tests/cases/unittests/moduleResolution.ts +++ b/tests/cases/unittests/moduleResolution.ts @@ -99,13 +99,34 @@ module ts { assert.equal(resolution.failedLookupLocations.length, supportedTypeScriptExtensions.length); } - it("module name as directory - load from typings", () => { + it("module name as directory - load from 'typings'", () => { testLoadingFromPackageJson("/a/b/c/d.ts", "/a/b/c/bar/package.json", "c/d/e.d.ts", "/a/b/c/bar/c/d/e.d.ts", "./bar"); testLoadingFromPackageJson("/a/b/c/d.ts", "/a/bar/package.json", "e.d.ts", "/a/bar/e.d.ts", "../../bar"); testLoadingFromPackageJson("/a/b/c/d.ts", "/bar/package.json", "e.d.ts", "/bar/e.d.ts", "/bar"); testLoadingFromPackageJson("c:/a/b/c/d.ts", "c:/bar/package.json", "e.d.ts", "c:/bar/e.d.ts", "c:/bar"); }); + function testTypingsIgnored(typings: any): void { + let containingFile = { name: "/a/b.ts" }; + let packageJson = { name: "/node_modules/b/package.json", content: JSON.stringify({ "typings": typings }) }; + let moduleFile = { name: "/a/b.d.ts" }; + + let indexPath = "/node_modules/b/index.d.ts"; + let indexFile = { name: indexPath } + + let resolution = nodeModuleNameResolver("b", containingFile.name, {}, createModuleResolutionHost(containingFile, packageJson, moduleFile, indexFile)); + + assert.equal(resolution.resolvedModule.resolvedFileName, indexPath); + } + + it("module name as directory - handle invalid 'typings'", () => { + testTypingsIgnored(["a", "b"]); + testTypingsIgnored({ "a": "b" }); + testTypingsIgnored(true); + testTypingsIgnored(null); + testTypingsIgnored(undefined); + }); + it("module name as directory - load index.d.ts", () => { let containingFile = { name: "/a/b/c.ts" }; let packageJson = { name: "/a/b/foo/package.json", content: JSON.stringify({ main: "/c/d" }) }; diff --git a/tests/cases/unittests/transpile.ts b/tests/cases/unittests/transpile.ts index 4781182224b..513d37673bb 100644 --- a/tests/cases/unittests/transpile.ts +++ b/tests/cases/unittests/transpile.ts @@ -256,7 +256,7 @@ var x = 0;`, ` ], MyClass);\n` + ` return MyClass;\n` + ` var _a;\n` + - `})();\n` + + `}());\n` + `exports.MyClass = MyClass;\n`; test(input, diff --git a/tests/lib/lib.d.ts b/tests/lib/lib.d.ts new file mode 100644 index 00000000000..fd4c05da220 --- /dev/null +++ b/tests/lib/lib.d.ts @@ -0,0 +1,17264 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +/// + +///////////////////////////// +/// ECMAScript APIs +///////////////////////////// + +declare var NaN: number; +declare var Infinity: number; + +/** + * Evaluates JavaScript code and executes it. + * @param x A String value that contains valid JavaScript code. + */ +declare function eval(x: string): any; + +/** + * Converts A string to an integer. + * @param s A string to convert into a number. + * @param radix A value between 2 and 36 that specifies the base of the number in numString. + * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. + * All other strings are considered decimal. + */ +declare function parseInt(s: string, radix?: number): number; + +/** + * Converts a string to a floating-point number. + * @param string A string that contains a floating-point number. + */ +declare function parseFloat(string: string): number; + +/** + * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). + * @param number A numeric value. + */ +declare function isNaN(number: number): boolean; + +/** + * Determines whether a supplied number is finite. + * @param number Any numeric value. + */ +declare function isFinite(number: number): boolean; + +/** + * Gets the unencoded version of an encoded Uniform Resource Identifier (URI). + * @param encodedURI A value representing an encoded URI. + */ +declare function decodeURI(encodedURI: string): string; + +/** + * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI). + * @param encodedURIComponent A value representing an encoded URI component. + */ +declare function decodeURIComponent(encodedURIComponent: string): string; + +/** + * Encodes a text string as a valid Uniform Resource Identifier (URI) + * @param uri A value representing an encoded URI. + */ +declare function encodeURI(uri: string): string; + +/** + * Encodes a text string as a valid component of a Uniform Resource Identifier (URI). + * @param uriComponent A value representing an encoded URI component. + */ +declare function encodeURIComponent(uriComponent: string): string; + +interface PropertyDescriptor { + configurable?: boolean; + enumerable?: boolean; + value?: any; + writable?: boolean; + get? (): any; + set? (v: any): void; +} + +interface PropertyDescriptorMap { + [s: string]: PropertyDescriptor; +} + +interface Object { + /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */ + constructor: Function; + + /** Returns a string representation of an object. */ + toString(): string; + + /** Returns a date converted to a string using the current locale. */ + toLocaleString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Object; + + /** + * Determines whether an object has a property with the specified name. + * @param v A property name. + */ + hasOwnProperty(v: string): boolean; + + /** + * Determines whether an object exists in another object's prototype chain. + * @param v Another object whose prototype chain is to be checked. + */ + isPrototypeOf(v: Object): boolean; + + /** + * Determines whether a specified property is enumerable. + * @param v A property name. + */ + propertyIsEnumerable(v: string): boolean; +} + +interface ObjectConstructor { + new (value?: any): Object; + (): any; + (value: any): any; + + /** A reference to the prototype for a class of objects. */ + prototype: Object; + + /** + * Returns the prototype of an object. + * @param o The object that references the prototype. + */ + getPrototypeOf(o: any): any; + + /** + * Gets the own property descriptor of the specified object. + * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype. + * @param o Object that contains the property. + * @param p Name of the property. + */ + getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor; + + /** + * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly + * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions. + * @param o Object that contains the own properties. + */ + getOwnPropertyNames(o: any): string[]; + + /** + * Creates an object that has the specified prototype, and that optionally contains specified properties. + * @param o Object to use as a prototype. May be null + * @param properties JavaScript object that contains one or more property descriptors. + */ + create(o: any, properties?: PropertyDescriptorMap): any; + + /** + * Adds a property to an object, or modifies attributes of an existing property. + * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object. + * @param p The property name. + * @param attributes Descriptor for the property. It can be for a data property or an accessor property. + */ + defineProperty(o: any, p: string, attributes: PropertyDescriptor): any; + + /** + * Adds one or more properties to an object, and/or modifies attributes of existing properties. + * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object. + * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property. + */ + defineProperties(o: any, properties: PropertyDescriptorMap): any; + + /** + * Prevents the modification of attributes of existing properties, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + seal(o: T): T; + + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + freeze(o: T): T; + + /** + * Prevents the addition of new properties to an object. + * @param o Object to make non-extensible. + */ + preventExtensions(o: T): T; + + /** + * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object. + * @param o Object to test. + */ + isSealed(o: any): boolean; + + /** + * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object. + * @param o Object to test. + */ + isFrozen(o: any): boolean; + + /** + * Returns a value that indicates whether new properties can be added to an object. + * @param o Object to test. + */ + isExtensible(o: any): boolean; + + /** + * Returns the names of the enumerable properties and methods of an object. + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + keys(o: any): string[]; +} + +/** + * Provides functionality common to all JavaScript objects. + */ +declare var Object: ObjectConstructor; + +/** + * Creates a new function. + */ +interface Function { + /** + * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. + * @param thisArg The object to be used as the this object. + * @param argArray A set of arguments to be passed to the function. + */ + apply(thisArg: any, argArray?: any): any; + + /** + * Calls a method of an object, substituting another object for the current object. + * @param thisArg The object to be used as the current object. + * @param argArray A list of arguments to be passed to the method. + */ + call(thisArg: any, ...argArray: any[]): any; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg An object to which the this keyword can refer inside the new function. + * @param argArray A list of arguments to be passed to the new function. + */ + bind(thisArg: any, ...argArray: any[]): any; + + prototype: any; + length: number; + + // Non-standard extensions + arguments: any; + caller: Function; +} + +interface FunctionConstructor { + /** + * Creates a new function. + * @param args A list of arguments the function accepts. + */ + new (...args: string[]): Function; + (...args: string[]): Function; + prototype: Function; +} + +declare var Function: FunctionConstructor; + +interface IArguments { + [index: number]: any; + length: number; + callee: Function; +} + +interface String { + /** Returns a string representation of a string. */ + toString(): string; + + /** + * Returns the character at the specified index. + * @param pos The zero-based index of the desired character. + */ + charAt(pos: number): string; + + /** + * Returns the Unicode value of the character at the specified location. + * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. + */ + charCodeAt(index: number): number; + + /** + * Returns a string that contains the concatenation of two or more strings. + * @param strings The strings to append to the end of the string. + */ + concat(...strings: string[]): string; + + /** + * Returns the position of the first occurrence of a substring. + * @param searchString The substring to search for in the string + * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. + */ + indexOf(searchString: string, position?: number): number; + + /** + * Returns the last occurrence of a substring in the string. + * @param searchString The substring to search for. + * @param position The index at which to begin searching. If omitted, the search begins at the end of the string. + */ + lastIndexOf(searchString: string, position?: number): number; + + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + */ + localeCompare(that: string): number; + + /** + * Matches a string with a regular expression, and returns an array containing the results of that search. + * @param regexp A variable name or string literal containing the regular expression pattern and flags. + */ + match(regexp: string): RegExpMatchArray; + + /** + * Matches a string with a regular expression, and returns an array containing the results of that search. + * @param regexp A regular expression object that contains the regular expression pattern and applicable flags. + */ + match(regexp: RegExp): RegExpMatchArray; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A string that represents the regular expression. + * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. + */ + replace(searchValue: string, replaceValue: string): string; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A string that represents the regular expression. + * @param replacer A function that returns the replacement text. + */ + replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags. + * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. + */ + replace(searchValue: RegExp, replaceValue: string): string; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags + * @param replacer A function that returns the replacement text. + */ + replace(searchValue: RegExp, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Finds the first substring match in a regular expression search. + * @param regexp The regular expression pattern and applicable flags. + */ + search(regexp: string): number; + + /** + * Finds the first substring match in a regular expression search. + * @param regexp The regular expression pattern and applicable flags. + */ + search(regexp: RegExp): number; + + /** + * Returns a section of a string. + * @param start The index to the beginning of the specified portion of stringObj. + * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. + * If this value is not specified, the substring continues to the end of stringObj. + */ + slice(start?: number, end?: number): string; + + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + split(separator: string, limit?: number): string[]; + + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + split(separator: RegExp, limit?: number): string[]; + + /** + * Returns the substring at the specified location within a String object. + * @param start The zero-based index number indicating the beginning of the substring. + * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. + * If end is omitted, the characters from start through the end of the original string are returned. + */ + substring(start: number, end?: number): string; + + /** Converts all the alphabetic characters in a string to lowercase. */ + toLowerCase(): string; + + /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ + toLocaleLowerCase(): string; + + /** Converts all the alphabetic characters in a string to uppercase. */ + toUpperCase(): string; + + /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ + toLocaleUpperCase(): string; + + /** Removes the leading and trailing white space and line terminator characters from a string. */ + trim(): string; + + /** Returns the length of a String object. */ + length: number; + + // IE extensions + /** + * Gets a substring beginning at the specified location and having the specified length. + * @param from The starting position of the desired substring. The index of the first character in the string is zero. + * @param length The number of characters to include in the returned substring. + */ + substr(from: number, length?: number): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): string; + + [index: number]: string; +} + +interface StringConstructor { + new (value?: any): String; + (value?: any): string; + prototype: String; + fromCharCode(...codes: number[]): string; +} + +/** + * Allows manipulation and formatting of text strings and determination and location of substrings within strings. + */ +declare var String: StringConstructor; + +interface Boolean { + /** Returns the primitive value of the specified object. */ + valueOf(): boolean; +} + +interface BooleanConstructor { + new (value?: any): Boolean; + (value?: any): boolean; + prototype: Boolean; +} + +declare var Boolean: BooleanConstructor; + +interface Number { + /** + * Returns a string representation of an object. + * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers. + */ + toString(radix?: number): string; + + /** + * Returns a string representing a number in fixed-point notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + toFixed(fractionDigits?: number): string; + + /** + * Returns a string containing a number represented in exponential notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + toExponential(fractionDigits?: number): string; + + /** + * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. + * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive. + */ + toPrecision(precision?: number): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): number; +} + +interface NumberConstructor { + new (value?: any): Number; + (value?: any): number; + prototype: Number; + + /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */ + MAX_VALUE: number; + + /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */ + MIN_VALUE: number; + + /** + * A value that is not a number. + * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function. + */ + NaN: number; + + /** + * A value that is less than the largest negative number that can be represented in JavaScript. + * JavaScript displays NEGATIVE_INFINITY values as -infinity. + */ + NEGATIVE_INFINITY: number; + + /** + * A value greater than the largest number that can be represented in JavaScript. + * JavaScript displays POSITIVE_INFINITY values as infinity. + */ + POSITIVE_INFINITY: number; +} + +/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */ +declare var Number: NumberConstructor; + +interface TemplateStringsArray extends Array { + raw: string[]; +} + +interface Math { + /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */ + E: number; + /** The natural logarithm of 10. */ + LN10: number; + /** The natural logarithm of 2. */ + LN2: number; + /** The base-2 logarithm of e. */ + LOG2E: number; + /** The base-10 logarithm of e. */ + LOG10E: number; + /** Pi. This is the ratio of the circumference of a circle to its diameter. */ + PI: number; + /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */ + SQRT1_2: number; + /** The square root of 2. */ + SQRT2: number; + /** + * Returns the absolute value of a number (the value without regard to whether it is positive or negative). + * For example, the absolute value of -5 is the same as the absolute value of 5. + * @param x A numeric expression for which the absolute value is needed. + */ + abs(x: number): number; + /** + * Returns the arc cosine (or inverse cosine) of a number. + * @param x A numeric expression. + */ + acos(x: number): number; + /** + * Returns the arcsine of a number. + * @param x A numeric expression. + */ + asin(x: number): number; + /** + * Returns the arctangent of a number. + * @param x A numeric expression for which the arctangent is needed. + */ + atan(x: number): number; + /** + * Returns the angle (in radians) from the X axis to a point. + * @param y A numeric expression representing the cartesian y-coordinate. + * @param x A numeric expression representing the cartesian x-coordinate. + */ + atan2(y: number, x: number): number; + /** + * Returns the smallest number greater than or equal to its numeric argument. + * @param x A numeric expression. + */ + ceil(x: number): number; + /** + * Returns the cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + cos(x: number): number; + /** + * Returns e (the base of natural logarithms) raised to a power. + * @param x A numeric expression representing the power of e. + */ + exp(x: number): number; + /** + * Returns the greatest number less than or equal to its numeric argument. + * @param x A numeric expression. + */ + floor(x: number): number; + /** + * Returns the natural logarithm (base e) of a number. + * @param x A numeric expression. + */ + log(x: number): number; + /** + * Returns the larger of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + max(...values: number[]): number; + /** + * Returns the smaller of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + min(...values: number[]): number; + /** + * Returns the value of a base expression taken to a specified power. + * @param x The base value of the expression. + * @param y The exponent value of the expression. + */ + pow(x: number, y: number): number; + /** Returns a pseudorandom number between 0 and 1. */ + random(): number; + /** + * Returns a supplied numeric expression rounded to the nearest number. + * @param x The value to be rounded to the nearest number. + */ + round(x: number): number; + /** + * Returns the sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + sin(x: number): number; + /** + * Returns the square root of a number. + * @param x A numeric expression. + */ + sqrt(x: number): number; + /** + * Returns the tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + tan(x: number): number; +} +/** An intrinsic object that provides basic mathematics functionality and constants. */ +declare var Math: Math; + +/** Enables basic storage and retrieval of dates and times. */ +interface Date { + /** Returns a string representation of a date. The format of the string depends on the locale. */ + toString(): string; + /** Returns a date as a string value. */ + toDateString(): string; + /** Returns a time as a string value. */ + toTimeString(): string; + /** Returns a value as a string value appropriate to the host environment's current locale. */ + toLocaleString(): string; + /** Returns a date as a string value appropriate to the host environment's current locale. */ + toLocaleDateString(): string; + /** Returns a time as a string value appropriate to the host environment's current locale. */ + toLocaleTimeString(): string; + /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ + valueOf(): number; + /** Gets the time value in milliseconds. */ + getTime(): number; + /** Gets the year, using local time. */ + getFullYear(): number; + /** Gets the year using Universal Coordinated Time (UTC). */ + getUTCFullYear(): number; + /** Gets the month, using local time. */ + getMonth(): number; + /** Gets the month of a Date object using Universal Coordinated Time (UTC). */ + getUTCMonth(): number; + /** Gets the day-of-the-month, using local time. */ + getDate(): number; + /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */ + getUTCDate(): number; + /** Gets the day of the week, using local time. */ + getDay(): number; + /** Gets the day of the week using Universal Coordinated Time (UTC). */ + getUTCDay(): number; + /** Gets the hours in a date, using local time. */ + getHours(): number; + /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */ + getUTCHours(): number; + /** Gets the minutes of a Date object, using local time. */ + getMinutes(): number; + /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */ + getUTCMinutes(): number; + /** Gets the seconds of a Date object, using local time. */ + getSeconds(): number; + /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */ + getUTCSeconds(): number; + /** Gets the milliseconds of a Date, using local time. */ + getMilliseconds(): number; + /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ + getUTCMilliseconds(): number; + /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */ + getTimezoneOffset(): number; + /** + * Sets the date and time value in the Date object. + * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. + */ + setTime(time: number): number; + /** + * Sets the milliseconds value in the Date object using local time. + * @param ms A numeric value equal to the millisecond value. + */ + setMilliseconds(ms: number): number; + /** + * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). + * @param ms A numeric value equal to the millisecond value. + */ + setUTCMilliseconds(ms: number): number; + + /** + * Sets the seconds value in the Date object using local time. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setSeconds(sec: number, ms?: number): number; + /** + * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCSeconds(sec: number, ms?: number): number; + /** + * Sets the minutes value in the Date object using local time. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setMinutes(min: number, sec?: number, ms?: number): number; + /** + * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCMinutes(min: number, sec?: number, ms?: number): number; + /** + * Sets the hour value in the Date object using local time. + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setHours(hours: number, min?: number, sec?: number, ms?: number): number; + /** + * Sets the hours value in the Date object using Universal Coordinated Time (UTC). + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number; + /** + * Sets the numeric day-of-the-month value of the Date object using local time. + * @param date A numeric value equal to the day of the month. + */ + setDate(date: number): number; + /** + * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). + * @param date A numeric value equal to the day of the month. + */ + setUTCDate(date: number): number; + /** + * Sets the month value in the Date object using local time. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. + */ + setMonth(month: number, date?: number): number; + /** + * Sets the month value in the Date object using Universal Coordinated Time (UTC). + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. + */ + setUTCMonth(month: number, date?: number): number; + /** + * Sets the year of the Date object using local time. + * @param year A numeric value for the year. + * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. + * @param date A numeric value equal for the day of the month. + */ + setFullYear(year: number, month?: number, date?: number): number; + /** + * Sets the year value in the Date object using Universal Coordinated Time (UTC). + * @param year A numeric value equal to the year. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. + * @param date A numeric value equal to the day of the month. + */ + setUTCFullYear(year: number, month?: number, date?: number): number; + /** Returns a date converted to a string using Universal Coordinated Time (UTC). */ + toUTCString(): string; + /** Returns a date as a string value in ISO format. */ + toISOString(): string; + /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */ + toJSON(key?: any): string; +} + +interface DateConstructor { + new (): Date; + new (value: number): Date; + new (value: string): Date; + new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; + (): string; + prototype: Date; + /** + * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. + * @param s A date string + */ + parse(s: string): number; + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; + now(): number; +} + +declare var Date: DateConstructor; + +interface RegExpMatchArray extends Array { + index?: number; + input?: string; +} + +interface RegExpExecArray extends Array { + index: number; + input: string; +} + +interface RegExp { + /** + * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. + * @param string The String object or string literal on which to perform the search. + */ + exec(string: string): RegExpExecArray; + + /** + * Returns a Boolean value that indicates whether or not a pattern exists in a searched string. + * @param string String on which to perform the search. + */ + test(string: string): boolean; + + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ + source: string; + + /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ + global: boolean; + + /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */ + ignoreCase: boolean; + + /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */ + multiline: boolean; + + lastIndex: number; + + // Non-standard extensions + compile(): RegExp; +} + +interface RegExpConstructor { + new (pattern: string, flags?: string): RegExp; + (pattern: string, flags?: string): RegExp; + prototype: RegExp; + + // Non-standard extensions + $1: string; + $2: string; + $3: string; + $4: string; + $5: string; + $6: string; + $7: string; + $8: string; + $9: string; + lastMatch: string; +} + +declare var RegExp: RegExpConstructor; + +interface Error { + name: string; + message: string; +} + +interface ErrorConstructor { + new (message?: string): Error; + (message?: string): Error; + prototype: Error; +} + +declare var Error: ErrorConstructor; + +interface EvalError extends Error { +} + +interface EvalErrorConstructor { + new (message?: string): EvalError; + (message?: string): EvalError; + prototype: EvalError; +} + +declare var EvalError: EvalErrorConstructor; + +interface RangeError extends Error { +} + +interface RangeErrorConstructor { + new (message?: string): RangeError; + (message?: string): RangeError; + prototype: RangeError; +} + +declare var RangeError: RangeErrorConstructor; + +interface ReferenceError extends Error { +} + +interface ReferenceErrorConstructor { + new (message?: string): ReferenceError; + (message?: string): ReferenceError; + prototype: ReferenceError; +} + +declare var ReferenceError: ReferenceErrorConstructor; + +interface SyntaxError extends Error { +} + +interface SyntaxErrorConstructor { + new (message?: string): SyntaxError; + (message?: string): SyntaxError; + prototype: SyntaxError; +} + +declare var SyntaxError: SyntaxErrorConstructor; + +interface TypeError extends Error { +} + +interface TypeErrorConstructor { + new (message?: string): TypeError; + (message?: string): TypeError; + prototype: TypeError; +} + +declare var TypeError: TypeErrorConstructor; + +interface URIError extends Error { +} + +interface URIErrorConstructor { + new (message?: string): URIError; + (message?: string): URIError; + prototype: URIError; +} + +declare var URIError: URIErrorConstructor; + +interface JSON { + /** + * Converts a JavaScript Object Notation (JSON) string into an object. + * @param text A valid JSON string. + * @param reviver A function that transforms the results. This function is called for each member of the object. + * If a member contains nested objects, the nested objects are transformed before the parent object is. + */ + parse(text: string, reviver?: (key: any, value: any) => any): any; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + */ + stringify(value: any): string; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer A function that transforms the results. + */ + stringify(value: any, replacer: (key: string, value: any) => any): string; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer Array that transforms the results. + */ + stringify(value: any, replacer: any[]): string; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer A function that transforms the results. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + stringify(value: any, replacer: (key: string, value: any) => any, space: string | number): string; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer Array that transforms the results. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + stringify(value: any, replacer: any[], space: string | number): string; +} +/** + * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format. + */ +declare var JSON: JSON; + + +///////////////////////////// +/// ECMAScript Array API (specially handled by compiler) +///////////////////////////// + +interface Array { + /** + * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. + */ + length: number; + /** + * Returns a string representation of an array. + */ + toString(): string; + toLocaleString(): string; + /** + * Appends new elements to an array, and returns the new length of the array. + * @param items New elements of the Array. + */ + push(...items: T[]): number; + /** + * Removes the last element from an array and returns it. + */ + pop(): T; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: U[]): T[]; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: T[]): T[]; + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + /** + * Reverses the elements in an Array. + */ + reverse(): T[]; + /** + * Removes the first element from an array and returns it. + */ + shift(): T; + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): T[]; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: T, b: T) => number): T[]; + + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + */ + splice(start: number): T[]; + + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the array in place of the deleted elements. + */ + splice(start: number, deleteCount: number, ...items: T[]): T[]; + + /** + * Inserts new elements at the start of an array. + * @param items Elements to insert at the start of the Array. + */ + unshift(...items: T[]): number; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + indexOf(searchElement: T, fromIndex?: number): number; + + /** + * Returns the index of the last occurrence of a specified value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. + */ + lastIndexOf(searchElement: T, fromIndex?: number): number; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; + + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[]; + + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + [n: number]: T; +} + +interface ArrayConstructor { + new (arrayLength?: number): any[]; + new (arrayLength: number): T[]; + new (...items: T[]): T[]; + (arrayLength?: number): any[]; + (arrayLength: number): T[]; + (...items: T[]): T[]; + isArray(arg: any): arg is Array; + prototype: Array; +} + +declare var Array: ArrayConstructor; + +interface TypedPropertyDescriptor { + enumerable?: boolean; + configurable?: boolean; + writable?: boolean; + value?: T; + get?: () => T; + set?: (value: T) => void; +} + +declare type ClassDecorator = (target: TFunction) => TFunction | void; +declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; +declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; + +declare type PromiseConstructorLike = new (executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void) => PromiseLike; + +interface PromiseLike { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: (value: T) => TResult | PromiseLike, onrejected?: (reason: any) => TResult | PromiseLike): PromiseLike; + then(onfulfilled?: (value: T) => TResult | PromiseLike, onrejected?: (reason: any) => void): PromiseLike; +} + +interface ArrayLike { + length: number; + [n: number]: T; +} + + +/** + * Represents a raw buffer of binary data, which is used to store data for the + * different typed arrays. ArrayBuffers cannot be read from or written to directly, + * but can be passed to a typed array or DataView Object to interpret the raw + * buffer as needed. + */ +interface ArrayBuffer { + /** + * Read-only. The length of the ArrayBuffer (in bytes). + */ + byteLength: number; + + /** + * Returns a section of an ArrayBuffer. + */ + slice(begin:number, end?:number): ArrayBuffer; +} + +interface ArrayBufferConstructor { + prototype: ArrayBuffer; + new (byteLength: number): ArrayBuffer; + isView(arg: any): arg is ArrayBufferView; +} +declare var ArrayBuffer: ArrayBufferConstructor; + +interface ArrayBufferView { + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; +} + +interface DataView { + buffer: ArrayBuffer; + byteLength: number; + byteOffset: number; + /** + * Gets the Float32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getFloat32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Float64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getFloat64(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Int8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getInt8(byteOffset: number): number; + + /** + * Gets the Int16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getInt16(byteOffset: number, littleEndian?: boolean): number; + /** + * Gets the Int32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getInt32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Uint8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getUint8(byteOffset: number): number; + + /** + * Gets the Uint16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getUint16(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Uint32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getUint32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Stores an Float32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Float64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Int8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + setInt8(byteOffset: number, value: number): void; + + /** + * Stores an Int16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setInt16(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Int32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setInt32(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Uint8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + setUint8(byteOffset: number, value: number): void; + + /** + * Stores an Uint16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setUint16(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Uint32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setUint32(byteOffset: number, value: number, littleEndian?: boolean): void; +} + +interface DataViewConstructor { + new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView; +} +declare var DataView: DataViewConstructor; + +/** + * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +interface Int8Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Int8Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Int8Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): Int8Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int8Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Int8Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Int8Array; + + /** + * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Int8Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} +interface Int8ArrayConstructor { + prototype: Int8Array; + new (length: number): Int8Array; + new (array: ArrayLike): Int8Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; + +} +declare var Int8Array: Int8ArrayConstructor; + +/** + * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint8Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Uint8Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Uint8Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): Uint8Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint8Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint8Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Uint8Array; + + /** + * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint8Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint8ArrayConstructor { + prototype: Uint8Array; + new (length: number): Uint8Array; + new (array: ArrayLike): Uint8Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; + +} +declare var Uint8Array: Uint8ArrayConstructor; + +/** + * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. + * If the requested number of bytes could not be allocated an exception is raised. + */ +interface Uint8ClampedArray { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Uint8ClampedArray; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Uint8ClampedArray; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): Uint8ClampedArray; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint8ClampedArray; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: Uint8ClampedArray, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint8ClampedArray; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Uint8ClampedArray; + + /** + * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint8ClampedArray; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint8ClampedArrayConstructor { + prototype: Uint8ClampedArray; + new (length: number): Uint8ClampedArray; + new (array: ArrayLike): Uint8ClampedArray; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint8ClampedArray; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; +} +declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; + +/** + * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Int16Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Int16Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Int16Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): Int16Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int16Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Int16Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Int16Array; + + /** + * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Int16Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Int16ArrayConstructor { + prototype: Int16Array; + new (length: number): Int16Array; + new (array: ArrayLike): Int16Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; + +} +declare var Int16Array: Int16ArrayConstructor; + +/** + * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint16Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Uint16Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Uint16Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): Uint16Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint16Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint16Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Uint16Array; + + /** + * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint16Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint16ArrayConstructor { + prototype: Uint16Array; + new (length: number): Uint16Array; + new (array: ArrayLike): Uint16Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; + +} +declare var Uint16Array: Uint16ArrayConstructor; +/** + * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Int32Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Int32Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Int32Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): Int32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int32Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Int32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Int32Array; + + /** + * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Int32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Int32ArrayConstructor { + prototype: Int32Array; + new (length: number): Int32Array; + new (array: ArrayLike): Int32Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; +} +declare var Int32Array: Int32ArrayConstructor; + +/** + * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint32Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Uint32Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Uint32Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): Uint32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint32Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Uint32Array; + + /** + * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint32ArrayConstructor { + prototype: Uint32Array; + new (length: number): Uint32Array; + new (array: ArrayLike): Uint32Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; +} +declare var Uint32Array: Uint32ArrayConstructor; + +/** + * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number + * of bytes could not be allocated an exception is raised. + */ +interface Float32Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Float32Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Float32Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): Float32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Float32Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Float32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Float32Array; + + /** + * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Float32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Float32ArrayConstructor { + prototype: Float32Array; + new (length: number): Float32Array; + new (array: ArrayLike): Float32Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; + +} +declare var Float32Array: Float32ArrayConstructor; + +/** + * A typed array of 64-bit float values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +interface Float64Array { + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBuffer; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): Float64Array; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): Float64Array; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): Float64Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; + + /** + * Returns the index of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Float64Array; + + /** + * Sets a value or an array of values. + * @param index The index of the location to set. + * @param value The value to set. + */ + set(index: number, value: number): void; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Float64Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): Float64Array; + + /** + * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Float64Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Float64ArrayConstructor { + prototype: Float64Array; + new (length: number): Float64Array; + new (array: ArrayLike): Float64Array; + new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array; + + /** + * The size in bytes of each element in the array. + */ + BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; +} +declare var Float64Array: Float64ArrayConstructor; +///////////////////////////// +/// ECMAScript Internationalization API +///////////////////////////// + +declare module Intl { + interface CollatorOptions { + usage?: string; + localeMatcher?: string; + numeric?: boolean; + caseFirst?: string; + sensitivity?: string; + ignorePunctuation?: boolean; + } + + interface ResolvedCollatorOptions { + locale: string; + usage: string; + sensitivity: string; + ignorePunctuation: boolean; + collation: string; + caseFirst: string; + numeric: boolean; + } + + interface Collator { + compare(x: string, y: string): number; + resolvedOptions(): ResolvedCollatorOptions; + } + var Collator: { + new (locales?: string[], options?: CollatorOptions): Collator; + new (locale?: string, options?: CollatorOptions): Collator; + (locales?: string[], options?: CollatorOptions): Collator; + (locale?: string, options?: CollatorOptions): Collator; + supportedLocalesOf(locales: string[], options?: CollatorOptions): string[]; + supportedLocalesOf(locale: string, options?: CollatorOptions): string[]; + } + + interface NumberFormatOptions { + localeMatcher?: string; + style?: string; + currency?: string; + currencyDisplay?: string; + useGrouping?: boolean; + minimumIntegerDigits?: number; + minimumFractionDigits?: number; + maximumFractionDigits?: number; + minimumSignificantDigits?: number; + maximumSignificantDigits?: number; + } + + interface ResolvedNumberFormatOptions { + locale: string; + numberingSystem: string; + style: string; + currency?: string; + currencyDisplay?: string; + minimumIntegerDigits: number; + minimumFractionDigits: number; + maximumFractionDigits: number; + minimumSignificantDigits?: number; + maximumSignificantDigits?: number; + useGrouping: boolean; + } + + interface NumberFormat { + format(value: number): string; + resolvedOptions(): ResolvedNumberFormatOptions; + } + var NumberFormat: { + new (locales?: string[], options?: NumberFormatOptions): NumberFormat; + new (locale?: string, options?: NumberFormatOptions): NumberFormat; + (locales?: string[], options?: NumberFormatOptions): NumberFormat; + (locale?: string, options?: NumberFormatOptions): NumberFormat; + supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[]; + supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[]; + } + + interface DateTimeFormatOptions { + localeMatcher?: string; + weekday?: string; + era?: string; + year?: string; + month?: string; + day?: string; + hour?: string; + minute?: string; + second?: string; + timeZoneName?: string; + formatMatcher?: string; + hour12?: boolean; + timeZone?: string; + } + + interface ResolvedDateTimeFormatOptions { + locale: string; + calendar: string; + numberingSystem: string; + timeZone: string; + hour12?: boolean; + weekday?: string; + era?: string; + year?: string; + month?: string; + day?: string; + hour?: string; + minute?: string; + second?: string; + timeZoneName?: string; + } + + interface DateTimeFormat { + format(date?: Date | number): string; + resolvedOptions(): ResolvedDateTimeFormatOptions; + } + var DateTimeFormat: { + new (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat; + new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat; + (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat; + (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat; + supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[]; + supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[]; + } +} + +interface String { + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number; + + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number; +} + +interface Number { + /** + * Converts a number to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string; + + /** + * Converts a number to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string; +} + +interface Date { + /** + * Converts a date and time to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string; + /** + * Converts a date to a string by using the current or specified locale. + * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a time to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a date and time to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a date to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a time to a string by using the current or specified locale. + * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string; +} + + +///////////////////////////// +/// IE DOM APIs +///////////////////////////// + +interface Algorithm { + name?: string; +} + +interface AriaRequestEventInit extends EventInit { + attributeName?: string; + attributeValue?: string; +} + +interface ClipboardEventInit extends EventInit { + data?: string; + dataType?: string; +} + +interface CommandEventInit extends EventInit { + commandName?: string; + detail?: string; +} + +interface CompositionEventInit extends UIEventInit { + data?: string; +} + +interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation { + arrayOfDomainStrings?: string[]; +} + +interface CustomEventInit extends EventInit { + detail?: any; +} + +interface DeviceAccelerationDict { + x?: number; + y?: number; + z?: number; +} + +interface DeviceRotationRateDict { + alpha?: number; + beta?: number; + gamma?: number; +} + +interface EventInit { + bubbles?: boolean; + cancelable?: boolean; +} + +interface ExceptionInformation { + domain?: string; +} + +interface FocusEventInit extends UIEventInit { + relatedTarget?: EventTarget; +} + +interface HashChangeEventInit extends EventInit { + newURL?: string; + oldURL?: string; +} + +interface KeyAlgorithm { + name?: string; +} + +interface KeyboardEventInit extends SharedKeyboardAndMouseEventInit { + key?: string; + location?: number; + repeat?: boolean; +} + +interface MouseEventInit extends SharedKeyboardAndMouseEventInit { + screenX?: number; + screenY?: number; + clientX?: number; + clientY?: number; + button?: number; + buttons?: number; + relatedTarget?: EventTarget; +} + +interface MsZoomToOptions { + contentX?: number; + contentY?: number; + viewportX?: string; + viewportY?: string; + scaleFactor?: number; + animate?: string; +} + +interface MutationObserverInit { + childList?: boolean; + attributes?: boolean; + characterData?: boolean; + subtree?: boolean; + attributeOldValue?: boolean; + characterDataOldValue?: boolean; + attributeFilter?: string[]; +} + +interface ObjectURLOptions { + oneTimeOnly?: boolean; +} + +interface PointerEventInit extends MouseEventInit { + pointerId?: number; + width?: number; + height?: number; + pressure?: number; + tiltX?: number; + tiltY?: number; + pointerType?: string; + isPrimary?: boolean; +} + +interface PositionOptions { + enableHighAccuracy?: boolean; + timeout?: number; + maximumAge?: number; +} + +interface SharedKeyboardAndMouseEventInit extends UIEventInit { + ctrlKey?: boolean; + shiftKey?: boolean; + altKey?: boolean; + metaKey?: boolean; + keyModifierStateAltGraph?: boolean; + keyModifierStateCapsLock?: boolean; + keyModifierStateFn?: boolean; + keyModifierStateFnLock?: boolean; + keyModifierStateHyper?: boolean; + keyModifierStateNumLock?: boolean; + keyModifierStateOS?: boolean; + keyModifierStateScrollLock?: boolean; + keyModifierStateSuper?: boolean; + keyModifierStateSymbol?: boolean; + keyModifierStateSymbolLock?: boolean; +} + +interface StoreExceptionsInformation extends ExceptionInformation { + siteName?: string; + explanationString?: string; + detailURI?: string; +} + +interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation { + arrayOfDomainStrings?: string[]; +} + +interface UIEventInit extends EventInit { + view?: Window; + detail?: number; +} + +interface WebGLContextAttributes { + alpha?: boolean; + depth?: boolean; + stencil?: boolean; + antialias?: boolean; + premultipliedAlpha?: boolean; + preserveDrawingBuffer?: boolean; +} + +interface WebGLContextEventInit extends EventInit { + statusMessage?: string; +} + +interface WheelEventInit extends MouseEventInit { + deltaX?: number; + deltaY?: number; + deltaZ?: number; + deltaMode?: number; +} + +interface EventListener { + (evt: Event): void; +} + +interface ANGLE_instanced_arrays { + drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void; + drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void; + vertexAttribDivisorANGLE(index: number, divisor: number): void; + VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; +} + +declare var ANGLE_instanced_arrays: { + prototype: ANGLE_instanced_arrays; + new(): ANGLE_instanced_arrays; + VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; +} + +interface AnalyserNode extends AudioNode { + fftSize: number; + frequencyBinCount: number; + maxDecibels: number; + minDecibels: number; + smoothingTimeConstant: number; + getByteFrequencyData(array: Uint8Array): void; + getByteTimeDomainData(array: Uint8Array): void; + getFloatFrequencyData(array: Float32Array): void; + getFloatTimeDomainData(array: Float32Array): void; +} + +declare var AnalyserNode: { + prototype: AnalyserNode; + new(): AnalyserNode; +} + +interface AnimationEvent extends Event { + animationName: string; + elapsedTime: number; + initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void; +} + +declare var AnimationEvent: { + prototype: AnimationEvent; + new(): AnimationEvent; +} + +interface ApplicationCache extends EventTarget { + oncached: (ev: Event) => any; + onchecking: (ev: Event) => any; + ondownloading: (ev: Event) => any; + onerror: (ev: Event) => any; + onnoupdate: (ev: Event) => any; + onobsolete: (ev: Event) => any; + onprogress: (ev: ProgressEvent) => any; + onupdateready: (ev: Event) => any; + status: number; + abort(): void; + swapCache(): void; + update(): void; + CHECKING: number; + DOWNLOADING: number; + IDLE: number; + OBSOLETE: number; + UNCACHED: number; + UPDATEREADY: number; + addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "downloading", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "noupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "obsolete", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "updateready", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var ApplicationCache: { + prototype: ApplicationCache; + new(): ApplicationCache; + CHECKING: number; + DOWNLOADING: number; + IDLE: number; + OBSOLETE: number; + UNCACHED: number; + UPDATEREADY: number; +} + +interface AriaRequestEvent extends Event { + attributeName: string; + attributeValue: string; +} + +declare var AriaRequestEvent: { + prototype: AriaRequestEvent; + new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent; +} + +interface Attr extends Node { + name: string; + ownerElement: Element; + specified: boolean; + value: string; +} + +declare var Attr: { + prototype: Attr; + new(): Attr; +} + +interface AudioBuffer { + duration: number; + length: number; + numberOfChannels: number; + sampleRate: number; + getChannelData(channel: number): Float32Array; +} + +declare var AudioBuffer: { + prototype: AudioBuffer; + new(): AudioBuffer; +} + +interface AudioBufferSourceNode extends AudioNode { + buffer: AudioBuffer; + loop: boolean; + loopEnd: number; + loopStart: number; + onended: (ev: Event) => any; + playbackRate: AudioParam; + start(when?: number, offset?: number, duration?: number): void; + stop(when?: number): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var AudioBufferSourceNode: { + prototype: AudioBufferSourceNode; + new(): AudioBufferSourceNode; +} + +interface AudioContext extends EventTarget { + currentTime: number; + destination: AudioDestinationNode; + listener: AudioListener; + sampleRate: number; + createAnalyser(): AnalyserNode; + createBiquadFilter(): BiquadFilterNode; + createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; + createBufferSource(): AudioBufferSourceNode; + createChannelMerger(numberOfInputs?: number): ChannelMergerNode; + createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; + createConvolver(): ConvolverNode; + createDelay(maxDelayTime?: number): DelayNode; + createDynamicsCompressor(): DynamicsCompressorNode; + createGain(): GainNode; + createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; + createOscillator(): OscillatorNode; + createPanner(): PannerNode; + createPeriodicWave(real: Float32Array, imag: Float32Array): PeriodicWave; + createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; + createStereoPanner(): StereoPannerNode; + createWaveShaper(): WaveShaperNode; + decodeAudioData(audioData: ArrayBuffer, successCallback: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): void; +} + +declare var AudioContext: { + prototype: AudioContext; + new(): AudioContext; +} + +interface AudioDestinationNode extends AudioNode { + maxChannelCount: number; +} + +declare var AudioDestinationNode: { + prototype: AudioDestinationNode; + new(): AudioDestinationNode; +} + +interface AudioListener { + dopplerFactor: number; + speedOfSound: number; + setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; + setPosition(x: number, y: number, z: number): void; + setVelocity(x: number, y: number, z: number): void; +} + +declare var AudioListener: { + prototype: AudioListener; + new(): AudioListener; +} + +interface AudioNode extends EventTarget { + channelCount: number; + channelCountMode: string; + channelInterpretation: string; + context: AudioContext; + numberOfInputs: number; + numberOfOutputs: number; + connect(destination: AudioNode, output?: number, input?: number): void; + disconnect(output?: number): void; +} + +declare var AudioNode: { + prototype: AudioNode; + new(): AudioNode; +} + +interface AudioParam { + defaultValue: number; + value: number; + cancelScheduledValues(startTime: number): void; + exponentialRampToValueAtTime(value: number, endTime: number): void; + linearRampToValueAtTime(value: number, endTime: number): void; + setTargetAtTime(target: number, startTime: number, timeConstant: number): void; + setValueAtTime(value: number, startTime: number): void; + setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): void; +} + +declare var AudioParam: { + prototype: AudioParam; + new(): AudioParam; +} + +interface AudioProcessingEvent extends Event { + inputBuffer: AudioBuffer; + outputBuffer: AudioBuffer; + playbackTime: number; +} + +declare var AudioProcessingEvent: { + prototype: AudioProcessingEvent; + new(): AudioProcessingEvent; +} + +interface AudioTrack { + enabled: boolean; + id: string; + kind: string; + label: string; + language: string; + sourceBuffer: SourceBuffer; +} + +declare var AudioTrack: { + prototype: AudioTrack; + new(): AudioTrack; +} + +interface AudioTrackList extends EventTarget { + length: number; + onaddtrack: (ev: TrackEvent) => any; + onchange: (ev: Event) => any; + onremovetrack: (ev: TrackEvent) => any; + getTrackById(id: string): AudioTrack; + item(index: number): AudioTrack; + addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + [index: number]: AudioTrack; +} + +declare var AudioTrackList: { + prototype: AudioTrackList; + new(): AudioTrackList; +} + +interface BarProp { + visible: boolean; +} + +declare var BarProp: { + prototype: BarProp; + new(): BarProp; +} + +interface BeforeUnloadEvent extends Event { + returnValue: any; +} + +declare var BeforeUnloadEvent: { + prototype: BeforeUnloadEvent; + new(): BeforeUnloadEvent; +} + +interface BiquadFilterNode extends AudioNode { + Q: AudioParam; + detune: AudioParam; + frequency: AudioParam; + gain: AudioParam; + type: string; + getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; +} + +declare var BiquadFilterNode: { + prototype: BiquadFilterNode; + new(): BiquadFilterNode; +} + +interface Blob { + size: number; + type: string; + msClose(): void; + msDetachStream(): any; + slice(start?: number, end?: number, contentType?: string): Blob; +} + +declare var Blob: { + prototype: Blob; + new (blobParts?: any[], options?: BlobPropertyBag): Blob; +} + +interface CDATASection extends Text { +} + +declare var CDATASection: { + prototype: CDATASection; + new(): CDATASection; +} + +interface CSS { + supports(property: string, value?: string): boolean; +} +declare var CSS: CSS; + +interface CSSConditionRule extends CSSGroupingRule { + conditionText: string; +} + +declare var CSSConditionRule: { + prototype: CSSConditionRule; + new(): CSSConditionRule; +} + +interface CSSFontFaceRule extends CSSRule { + style: CSSStyleDeclaration; +} + +declare var CSSFontFaceRule: { + prototype: CSSFontFaceRule; + new(): CSSFontFaceRule; +} + +interface CSSGroupingRule extends CSSRule { + cssRules: CSSRuleList; + deleteRule(index?: number): void; + insertRule(rule: string, index?: number): number; +} + +declare var CSSGroupingRule: { + prototype: CSSGroupingRule; + new(): CSSGroupingRule; +} + +interface CSSImportRule extends CSSRule { + href: string; + media: MediaList; + styleSheet: CSSStyleSheet; +} + +declare var CSSImportRule: { + prototype: CSSImportRule; + new(): CSSImportRule; +} + +interface CSSKeyframeRule extends CSSRule { + keyText: string; + style: CSSStyleDeclaration; +} + +declare var CSSKeyframeRule: { + prototype: CSSKeyframeRule; + new(): CSSKeyframeRule; +} + +interface CSSKeyframesRule extends CSSRule { + cssRules: CSSRuleList; + name: string; + appendRule(rule: string): void; + deleteRule(rule: string): void; + findRule(rule: string): CSSKeyframeRule; +} + +declare var CSSKeyframesRule: { + prototype: CSSKeyframesRule; + new(): CSSKeyframesRule; +} + +interface CSSMediaRule extends CSSConditionRule { + media: MediaList; +} + +declare var CSSMediaRule: { + prototype: CSSMediaRule; + new(): CSSMediaRule; +} + +interface CSSNamespaceRule extends CSSRule { + namespaceURI: string; + prefix: string; +} + +declare var CSSNamespaceRule: { + prototype: CSSNamespaceRule; + new(): CSSNamespaceRule; +} + +interface CSSPageRule extends CSSRule { + pseudoClass: string; + selector: string; + selectorText: string; + style: CSSStyleDeclaration; +} + +declare var CSSPageRule: { + prototype: CSSPageRule; + new(): CSSPageRule; +} + +interface CSSRule { + cssText: string; + parentRule: CSSRule; + parentStyleSheet: CSSStyleSheet; + type: number; + CHARSET_RULE: number; + FONT_FACE_RULE: number; + IMPORT_RULE: number; + KEYFRAMES_RULE: number; + KEYFRAME_RULE: number; + MEDIA_RULE: number; + NAMESPACE_RULE: number; + PAGE_RULE: number; + STYLE_RULE: number; + SUPPORTS_RULE: number; + UNKNOWN_RULE: number; + VIEWPORT_RULE: number; +} + +declare var CSSRule: { + prototype: CSSRule; + new(): CSSRule; + CHARSET_RULE: number; + FONT_FACE_RULE: number; + IMPORT_RULE: number; + KEYFRAMES_RULE: number; + KEYFRAME_RULE: number; + MEDIA_RULE: number; + NAMESPACE_RULE: number; + PAGE_RULE: number; + STYLE_RULE: number; + SUPPORTS_RULE: number; + UNKNOWN_RULE: number; + VIEWPORT_RULE: number; +} + +interface CSSRuleList { + length: number; + item(index: number): CSSRule; + [index: number]: CSSRule; +} + +declare var CSSRuleList: { + prototype: CSSRuleList; + new(): CSSRuleList; +} + +interface CSSStyleDeclaration { + alignContent: string; + alignItems: string; + alignSelf: string; + alignmentBaseline: string; + animation: string; + animationDelay: string; + animationDirection: string; + animationDuration: string; + animationFillMode: string; + animationIterationCount: string; + animationName: string; + animationPlayState: string; + animationTimingFunction: string; + backfaceVisibility: string; + background: string; + backgroundAttachment: string; + backgroundClip: string; + backgroundColor: string; + backgroundImage: string; + backgroundOrigin: string; + backgroundPosition: string; + backgroundPositionX: string; + backgroundPositionY: string; + backgroundRepeat: string; + backgroundSize: string; + baselineShift: string; + border: string; + borderBottom: string; + borderBottomColor: string; + borderBottomLeftRadius: string; + borderBottomRightRadius: string; + borderBottomStyle: string; + borderBottomWidth: string; + borderCollapse: string; + borderColor: string; + borderImage: string; + borderImageOutset: string; + borderImageRepeat: string; + borderImageSlice: string; + borderImageSource: string; + borderImageWidth: string; + borderLeft: string; + borderLeftColor: string; + borderLeftStyle: string; + borderLeftWidth: string; + borderRadius: string; + borderRight: string; + borderRightColor: string; + borderRightStyle: string; + borderRightWidth: string; + borderSpacing: string; + borderStyle: string; + borderTop: string; + borderTopColor: string; + borderTopLeftRadius: string; + borderTopRightRadius: string; + borderTopStyle: string; + borderTopWidth: string; + borderWidth: string; + bottom: string; + boxShadow: string; + boxSizing: string; + breakAfter: string; + breakBefore: string; + breakInside: string; + captionSide: string; + clear: string; + clip: string; + clipPath: string; + clipRule: string; + color: string; + colorInterpolationFilters: string; + columnCount: any; + columnFill: string; + columnGap: any; + columnRule: string; + columnRuleColor: any; + columnRuleStyle: string; + columnRuleWidth: any; + columnSpan: string; + columnWidth: any; + columns: string; + content: string; + counterIncrement: string; + counterReset: string; + cssFloat: string; + cssText: string; + cursor: string; + direction: string; + display: string; + dominantBaseline: string; + emptyCells: string; + enableBackground: string; + fill: string; + fillOpacity: string; + fillRule: string; + filter: string; + flex: string; + flexBasis: string; + flexDirection: string; + flexFlow: string; + flexGrow: string; + flexShrink: string; + flexWrap: string; + floodColor: string; + floodOpacity: string; + font: string; + fontFamily: string; + fontFeatureSettings: string; + fontSize: string; + fontSizeAdjust: string; + fontStretch: string; + fontStyle: string; + fontVariant: string; + fontWeight: string; + glyphOrientationHorizontal: string; + glyphOrientationVertical: string; + height: string; + imeMode: string; + justifyContent: string; + kerning: string; + left: string; + length: number; + letterSpacing: string; + lightingColor: string; + lineHeight: string; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: string; + marginLeft: string; + marginRight: string; + marginTop: string; + marker: string; + markerEnd: string; + markerMid: string; + markerStart: string; + mask: string; + maxHeight: string; + maxWidth: string; + minHeight: string; + minWidth: string; + msContentZoomChaining: string; + msContentZoomLimit: string; + msContentZoomLimitMax: any; + msContentZoomLimitMin: any; + msContentZoomSnap: string; + msContentZoomSnapPoints: string; + msContentZoomSnapType: string; + msContentZooming: string; + msFlowFrom: string; + msFlowInto: string; + msFontFeatureSettings: string; + msGridColumn: any; + msGridColumnAlign: string; + msGridColumnSpan: any; + msGridColumns: string; + msGridRow: any; + msGridRowAlign: string; + msGridRowSpan: any; + msGridRows: string; + msHighContrastAdjust: string; + msHyphenateLimitChars: string; + msHyphenateLimitLines: any; + msHyphenateLimitZone: any; + msHyphens: string; + msImeAlign: string; + msOverflowStyle: string; + msScrollChaining: string; + msScrollLimit: string; + msScrollLimitXMax: any; + msScrollLimitXMin: any; + msScrollLimitYMax: any; + msScrollLimitYMin: any; + msScrollRails: string; + msScrollSnapPointsX: string; + msScrollSnapPointsY: string; + msScrollSnapType: string; + msScrollSnapX: string; + msScrollSnapY: string; + msScrollTranslation: string; + msTextCombineHorizontal: string; + msTextSizeAdjust: any; + msTouchAction: string; + msTouchSelect: string; + msUserSelect: string; + msWrapFlow: string; + msWrapMargin: any; + msWrapThrough: string; + opacity: string; + order: string; + orphans: string; + outline: string; + outlineColor: string; + outlineStyle: string; + outlineWidth: string; + overflow: string; + overflowX: string; + overflowY: string; + padding: string; + paddingBottom: string; + paddingLeft: string; + paddingRight: string; + paddingTop: string; + pageBreakAfter: string; + pageBreakBefore: string; + pageBreakInside: string; + parentRule: CSSRule; + perspective: string; + perspectiveOrigin: string; + pointerEvents: string; + position: string; + quotes: string; + right: string; + rubyAlign: string; + rubyOverhang: string; + rubyPosition: string; + stopColor: string; + stopOpacity: string; + stroke: string; + strokeDasharray: string; + strokeDashoffset: string; + strokeLinecap: string; + strokeLinejoin: string; + strokeMiterlimit: string; + strokeOpacity: string; + strokeWidth: string; + tableLayout: string; + textAlign: string; + textAlignLast: string; + textAnchor: string; + textDecoration: string; + textFillColor: string; + textIndent: string; + textJustify: string; + textKashida: string; + textKashidaSpace: string; + textOverflow: string; + textShadow: string; + textTransform: string; + textUnderlinePosition: string; + top: string; + touchAction: string; + transform: string; + transformOrigin: string; + transformStyle: string; + transition: string; + transitionDelay: string; + transitionDuration: string; + transitionProperty: string; + transitionTimingFunction: string; + unicodeBidi: string; + verticalAlign: string; + visibility: string; + webkitAlignContent: string; + webkitAlignItems: string; + webkitAlignSelf: string; + webkitAnimation: string; + webkitAnimationDelay: string; + webkitAnimationDirection: string; + webkitAnimationDuration: string; + webkitAnimationFillMode: string; + webkitAnimationIterationCount: string; + webkitAnimationName: string; + webkitAnimationPlayState: string; + webkitAnimationTimingFunction: string; + webkitAppearance: string; + webkitBackfaceVisibility: string; + webkitBackground: string; + webkitBackgroundAttachment: string; + webkitBackgroundClip: string; + webkitBackgroundColor: string; + webkitBackgroundImage: string; + webkitBackgroundOrigin: string; + webkitBackgroundPosition: string; + webkitBackgroundPositionX: string; + webkitBackgroundPositionY: string; + webkitBackgroundRepeat: string; + webkitBackgroundSize: string; + webkitBorderBottomLeftRadius: string; + webkitBorderBottomRightRadius: string; + webkitBorderImage: string; + webkitBorderImageOutset: string; + webkitBorderImageRepeat: string; + webkitBorderImageSlice: string; + webkitBorderImageSource: string; + webkitBorderImageWidth: string; + webkitBorderRadius: string; + webkitBorderTopLeftRadius: string; + webkitBorderTopRightRadius: string; + webkitBoxAlign: string; + webkitBoxDirection: string; + webkitBoxFlex: string; + webkitBoxOrdinalGroup: string; + webkitBoxOrient: string; + webkitBoxPack: string; + webkitBoxSizing: string; + webkitColumnBreakAfter: string; + webkitColumnBreakBefore: string; + webkitColumnBreakInside: string; + webkitColumnCount: any; + webkitColumnGap: any; + webkitColumnRule: string; + webkitColumnRuleColor: any; + webkitColumnRuleStyle: string; + webkitColumnRuleWidth: any; + webkitColumnSpan: string; + webkitColumnWidth: any; + webkitColumns: string; + webkitFilter: string; + webkitFlex: string; + webkitFlexBasis: string; + webkitFlexDirection: string; + webkitFlexFlow: string; + webkitFlexGrow: string; + webkitFlexShrink: string; + webkitFlexWrap: string; + webkitJustifyContent: string; + webkitOrder: string; + webkitPerspective: string; + webkitPerspectiveOrigin: string; + webkitTapHighlightColor: string; + webkitTextFillColor: string; + webkitTextSizeAdjust: any; + webkitTransform: string; + webkitTransformOrigin: string; + webkitTransformStyle: string; + webkitTransition: string; + webkitTransitionDelay: string; + webkitTransitionDuration: string; + webkitTransitionProperty: string; + webkitTransitionTimingFunction: string; + webkitUserSelect: string; + webkitWritingMode: string; + whiteSpace: string; + widows: string; + width: string; + wordBreak: string; + wordSpacing: string; + wordWrap: string; + writingMode: string; + zIndex: string; + zoom: string; + getPropertyPriority(propertyName: string): string; + getPropertyValue(propertyName: string): string; + item(index: number): string; + removeProperty(propertyName: string): string; + setProperty(propertyName: string, value: string, priority?: string): void; + [index: number]: string; +} + +declare var CSSStyleDeclaration: { + prototype: CSSStyleDeclaration; + new(): CSSStyleDeclaration; +} + +interface CSSStyleRule extends CSSRule { + readOnly: boolean; + selectorText: string; + style: CSSStyleDeclaration; +} + +declare var CSSStyleRule: { + prototype: CSSStyleRule; + new(): CSSStyleRule; +} + +interface CSSStyleSheet extends StyleSheet { + cssRules: CSSRuleList; + cssText: string; + href: string; + id: string; + imports: StyleSheetList; + isAlternate: boolean; + isPrefAlternate: boolean; + ownerRule: CSSRule; + owningElement: Element; + pages: StyleSheetPageList; + readOnly: boolean; + rules: CSSRuleList; + addImport(bstrURL: string, lIndex?: number): number; + addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number; + addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number; + deleteRule(index?: number): void; + insertRule(rule: string, index?: number): number; + removeImport(lIndex: number): void; + removeRule(lIndex: number): void; +} + +declare var CSSStyleSheet: { + prototype: CSSStyleSheet; + new(): CSSStyleSheet; +} + +interface CSSSupportsRule extends CSSConditionRule { +} + +declare var CSSSupportsRule: { + prototype: CSSSupportsRule; + new(): CSSSupportsRule; +} + +interface CanvasGradient { + addColorStop(offset: number, color: string): void; +} + +declare var CanvasGradient: { + prototype: CanvasGradient; + new(): CanvasGradient; +} + +interface CanvasPattern { +} + +declare var CanvasPattern: { + prototype: CanvasPattern; + new(): CanvasPattern; +} + +interface CanvasRenderingContext2D { + canvas: HTMLCanvasElement; + fillStyle: string | CanvasGradient | CanvasPattern; + font: string; + globalAlpha: number; + globalCompositeOperation: string; + lineCap: string; + lineDashOffset: number; + lineJoin: string; + lineWidth: number; + miterLimit: number; + msFillRule: string; + msImageSmoothingEnabled: boolean; + shadowBlur: number; + shadowColor: string; + shadowOffsetX: number; + shadowOffsetY: number; + strokeStyle: string | CanvasGradient | CanvasPattern; + textAlign: string; + textBaseline: string; + arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + beginPath(): void; + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; + clearRect(x: number, y: number, w: number, h: number): void; + clip(fillRule?: string): void; + closePath(): void; + createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData; + createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; + createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern; + createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; + drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void; + fill(fillRule?: string): void; + fillRect(x: number, y: number, w: number, h: number): void; + fillText(text: string, x: number, y: number, maxWidth?: number): void; + getImageData(sx: number, sy: number, sw: number, sh: number): ImageData; + getLineDash(): number[]; + isPointInPath(x: number, y: number, fillRule?: string): boolean; + lineTo(x: number, y: number): void; + measureText(text: string): TextMetrics; + moveTo(x: number, y: number): void; + putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void; + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + rect(x: number, y: number, w: number, h: number): void; + restore(): void; + rotate(angle: number): void; + save(): void; + scale(x: number, y: number): void; + setLineDash(segments: number[]): void; + setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; + stroke(): void; + strokeRect(x: number, y: number, w: number, h: number): void; + strokeText(text: string, x: number, y: number, maxWidth?: number): void; + transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; + translate(x: number, y: number): void; +} + +declare var CanvasRenderingContext2D: { + prototype: CanvasRenderingContext2D; + new(): CanvasRenderingContext2D; +} + +interface ChannelMergerNode extends AudioNode { +} + +declare var ChannelMergerNode: { + prototype: ChannelMergerNode; + new(): ChannelMergerNode; +} + +interface ChannelSplitterNode extends AudioNode { +} + +declare var ChannelSplitterNode: { + prototype: ChannelSplitterNode; + new(): ChannelSplitterNode; +} + +interface CharacterData extends Node, ChildNode { + data: string; + length: number; + appendData(arg: string): void; + deleteData(offset: number, count: number): void; + insertData(offset: number, arg: string): void; + replaceData(offset: number, count: number, arg: string): void; + substringData(offset: number, count: number): string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var CharacterData: { + prototype: CharacterData; + new(): CharacterData; +} + +interface ClientRect { + bottom: number; + height: number; + left: number; + right: number; + top: number; + width: number; +} + +declare var ClientRect: { + prototype: ClientRect; + new(): ClientRect; +} + +interface ClientRectList { + length: number; + item(index: number): ClientRect; + [index: number]: ClientRect; +} + +declare var ClientRectList: { + prototype: ClientRectList; + new(): ClientRectList; +} + +interface ClipboardEvent extends Event { + clipboardData: DataTransfer; +} + +declare var ClipboardEvent: { + prototype: ClipboardEvent; + new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; +} + +interface CloseEvent extends Event { + code: number; + reason: string; + wasClean: boolean; + initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void; +} + +declare var CloseEvent: { + prototype: CloseEvent; + new(): CloseEvent; +} + +interface CommandEvent extends Event { + commandName: string; + detail: string; +} + +declare var CommandEvent: { + prototype: CommandEvent; + new(type: string, eventInitDict?: CommandEventInit): CommandEvent; +} + +interface Comment extends CharacterData { + text: string; +} + +declare var Comment: { + prototype: Comment; + new(): Comment; +} + +interface CompositionEvent extends UIEvent { + data: string; + locale: string; + initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void; +} + +declare var CompositionEvent: { + prototype: CompositionEvent; + new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent; +} + +interface Console { + assert(test?: boolean, message?: string, ...optionalParams: any[]): void; + clear(): void; + count(countTitle?: string): void; + debug(message?: string, ...optionalParams: any[]): void; + dir(value?: any, ...optionalParams: any[]): void; + dirxml(value: any): void; + error(message?: any, ...optionalParams: any[]): void; + group(groupTitle?: string): void; + groupCollapsed(groupTitle?: string): void; + groupEnd(): void; + info(message?: any, ...optionalParams: any[]): void; + log(message?: any, ...optionalParams: any[]): void; + msIsIndependentlyComposed(element: Element): boolean; + profile(reportName?: string): void; + profileEnd(): void; + select(element: Element): void; + time(timerName?: string): void; + timeEnd(timerName?: string): void; + trace(): void; + warn(message?: any, ...optionalParams: any[]): void; +} + +declare var Console: { + prototype: Console; + new(): Console; +} + +interface ConvolverNode extends AudioNode { + buffer: AudioBuffer; + normalize: boolean; +} + +declare var ConvolverNode: { + prototype: ConvolverNode; + new(): ConvolverNode; +} + +interface Coordinates { + accuracy: number; + altitude: number; + altitudeAccuracy: number; + heading: number; + latitude: number; + longitude: number; + speed: number; +} + +declare var Coordinates: { + prototype: Coordinates; + new(): Coordinates; +} + +interface Crypto extends Object, RandomSource { + subtle: SubtleCrypto; +} + +declare var Crypto: { + prototype: Crypto; + new(): Crypto; +} + +interface CryptoKey { + algorithm: KeyAlgorithm; + extractable: boolean; + type: string; + usages: string[]; +} + +declare var CryptoKey: { + prototype: CryptoKey; + new(): CryptoKey; +} + +interface CryptoKeyPair { + privateKey: CryptoKey; + publicKey: CryptoKey; +} + +declare var CryptoKeyPair: { + prototype: CryptoKeyPair; + new(): CryptoKeyPair; +} + +interface CustomEvent extends Event { + detail: any; + initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void; +} + +declare var CustomEvent: { + prototype: CustomEvent; + new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent; +} + +interface DOMError { + name: string; + toString(): string; +} + +declare var DOMError: { + prototype: DOMError; + new(): DOMError; +} + +interface DOMException { + code: number; + message: string; + name: string; + toString(): string; + ABORT_ERR: number; + DATA_CLONE_ERR: number; + DOMSTRING_SIZE_ERR: number; + HIERARCHY_REQUEST_ERR: number; + INDEX_SIZE_ERR: number; + INUSE_ATTRIBUTE_ERR: number; + INVALID_ACCESS_ERR: number; + INVALID_CHARACTER_ERR: number; + INVALID_MODIFICATION_ERR: number; + INVALID_NODE_TYPE_ERR: number; + INVALID_STATE_ERR: number; + NAMESPACE_ERR: number; + NETWORK_ERR: number; + NOT_FOUND_ERR: number; + NOT_SUPPORTED_ERR: number; + NO_DATA_ALLOWED_ERR: number; + NO_MODIFICATION_ALLOWED_ERR: number; + PARSE_ERR: number; + QUOTA_EXCEEDED_ERR: number; + SECURITY_ERR: number; + SERIALIZE_ERR: number; + SYNTAX_ERR: number; + TIMEOUT_ERR: number; + TYPE_MISMATCH_ERR: number; + URL_MISMATCH_ERR: number; + VALIDATION_ERR: number; + WRONG_DOCUMENT_ERR: number; +} + +declare var DOMException: { + prototype: DOMException; + new(): DOMException; + ABORT_ERR: number; + DATA_CLONE_ERR: number; + DOMSTRING_SIZE_ERR: number; + HIERARCHY_REQUEST_ERR: number; + INDEX_SIZE_ERR: number; + INUSE_ATTRIBUTE_ERR: number; + INVALID_ACCESS_ERR: number; + INVALID_CHARACTER_ERR: number; + INVALID_MODIFICATION_ERR: number; + INVALID_NODE_TYPE_ERR: number; + INVALID_STATE_ERR: number; + NAMESPACE_ERR: number; + NETWORK_ERR: number; + NOT_FOUND_ERR: number; + NOT_SUPPORTED_ERR: number; + NO_DATA_ALLOWED_ERR: number; + NO_MODIFICATION_ALLOWED_ERR: number; + PARSE_ERR: number; + QUOTA_EXCEEDED_ERR: number; + SECURITY_ERR: number; + SERIALIZE_ERR: number; + SYNTAX_ERR: number; + TIMEOUT_ERR: number; + TYPE_MISMATCH_ERR: number; + URL_MISMATCH_ERR: number; + VALIDATION_ERR: number; + WRONG_DOCUMENT_ERR: number; +} + +interface DOMImplementation { + createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document; + createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; + createHTMLDocument(title: string): Document; + hasFeature(feature: string, version: string): boolean; +} + +declare var DOMImplementation: { + prototype: DOMImplementation; + new(): DOMImplementation; +} + +interface DOMParser { + parseFromString(source: string, mimeType: string): Document; +} + +declare var DOMParser: { + prototype: DOMParser; + new(): DOMParser; +} + +interface DOMSettableTokenList extends DOMTokenList { + value: string; +} + +declare var DOMSettableTokenList: { + prototype: DOMSettableTokenList; + new(): DOMSettableTokenList; +} + +interface DOMStringList { + length: number; + contains(str: string): boolean; + item(index: number): string; + [index: number]: string; +} + +declare var DOMStringList: { + prototype: DOMStringList; + new(): DOMStringList; +} + +interface DOMStringMap { + [name: string]: string; +} + +declare var DOMStringMap: { + prototype: DOMStringMap; + new(): DOMStringMap; +} + +interface DOMTokenList { + length: number; + add(...token: string[]): void; + contains(token: string): boolean; + item(index: number): string; + remove(...token: string[]): void; + toString(): string; + toggle(token: string, force?: boolean): boolean; + [index: number]: string; +} + +declare var DOMTokenList: { + prototype: DOMTokenList; + new(): DOMTokenList; +} + +interface DataCue extends TextTrackCue { + data: ArrayBuffer; +} + +declare var DataCue: { + prototype: DataCue; + new(): DataCue; +} + +interface DataTransfer { + dropEffect: string; + effectAllowed: string; + files: FileList; + items: DataTransferItemList; + types: DOMStringList; + clearData(format?: string): boolean; + getData(format: string): string; + setData(format: string, data: string): boolean; +} + +declare var DataTransfer: { + prototype: DataTransfer; + new(): DataTransfer; +} + +interface DataTransferItem { + kind: string; + type: string; + getAsFile(): File; + getAsString(_callback: FunctionStringCallback): void; +} + +declare var DataTransferItem: { + prototype: DataTransferItem; + new(): DataTransferItem; +} + +interface DataTransferItemList { + length: number; + add(data: File): DataTransferItem; + clear(): void; + item(index: number): File; + remove(index: number): void; + [index: number]: File; +} + +declare var DataTransferItemList: { + prototype: DataTransferItemList; + new(): DataTransferItemList; +} + +interface DeferredPermissionRequest { + id: number; + type: string; + uri: string; + allow(): void; + deny(): void; +} + +declare var DeferredPermissionRequest: { + prototype: DeferredPermissionRequest; + new(): DeferredPermissionRequest; +} + +interface DelayNode extends AudioNode { + delayTime: AudioParam; +} + +declare var DelayNode: { + prototype: DelayNode; + new(): DelayNode; +} + +interface DeviceAcceleration { + x: number; + y: number; + z: number; +} + +declare var DeviceAcceleration: { + prototype: DeviceAcceleration; + new(): DeviceAcceleration; +} + +interface DeviceMotionEvent extends Event { + acceleration: DeviceAcceleration; + accelerationIncludingGravity: DeviceAcceleration; + interval: number; + rotationRate: DeviceRotationRate; + initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict, accelerationIncludingGravity: DeviceAccelerationDict, rotationRate: DeviceRotationRateDict, interval: number): void; +} + +declare var DeviceMotionEvent: { + prototype: DeviceMotionEvent; + new(): DeviceMotionEvent; +} + +interface DeviceOrientationEvent extends Event { + absolute: boolean; + alpha: number; + beta: number; + gamma: number; + initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number, beta: number, gamma: number, absolute: boolean): void; +} + +declare var DeviceOrientationEvent: { + prototype: DeviceOrientationEvent; + new(): DeviceOrientationEvent; +} + +interface DeviceRotationRate { + alpha: number; + beta: number; + gamma: number; +} + +declare var DeviceRotationRate: { + prototype: DeviceRotationRate; + new(): DeviceRotationRate; +} + +interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent { + /** + * Sets or gets the URL for the current document. + */ + URL: string; + /** + * Gets the URL for the document, stripped of any character encoding. + */ + URLUnencoded: string; + /** + * Gets the object that has the focus when the parent document has focus. + */ + activeElement: Element; + /** + * Sets or gets the color of all active links in the document. + */ + alinkColor: string; + /** + * Returns a reference to the collection of elements contained by the object. + */ + all: HTMLCollection; + /** + * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. + */ + anchors: HTMLCollection; + /** + * Retrieves a collection of all applet objects in the document. + */ + applets: HTMLCollection; + /** + * Deprecated. Sets or retrieves a value that indicates the background color behind the object. + */ + bgColor: string; + /** + * Specifies the beginning and end of the document body. + */ + body: HTMLElement; + characterSet: string; + /** + * Gets or sets the character set used to encode the object. + */ + charset: string; + /** + * Gets a value that indicates whether standards-compliant mode is switched on for the object. + */ + compatMode: string; + cookie: string; + /** + * Gets the default character set from the current regional language settings. + */ + defaultCharset: string; + defaultView: Window; + /** + * Sets or gets a value that indicates whether the document can be edited. + */ + designMode: string; + /** + * Sets or retrieves a value that indicates the reading order of the object. + */ + dir: string; + /** + * Gets an object representing the document type declaration associated with the current document. + */ + doctype: DocumentType; + /** + * Gets a reference to the root node of the document. + */ + documentElement: HTMLElement; + /** + * Sets or gets the security domain of the document. + */ + domain: string; + /** + * Retrieves a collection of all embed objects in the document. + */ + embeds: HTMLCollection; + /** + * Sets or gets the foreground (text) color of the document. + */ + fgColor: string; + /** + * Retrieves a collection, in source order, of all form objects in the document. + */ + forms: HTMLCollection; + fullscreenElement: Element; + fullscreenEnabled: boolean; + head: HTMLHeadElement; + hidden: boolean; + /** + * Retrieves a collection, in source order, of img objects in the document. + */ + images: HTMLCollection; + /** + * Gets the implementation object of the current document. + */ + implementation: DOMImplementation; + /** + * Returns the character encoding used to create the webpage that is loaded into the document object. + */ + inputEncoding: string; + /** + * Gets the date that the page was last modified, if the page supplies one. + */ + lastModified: string; + /** + * Sets or gets the color of the document links. + */ + linkColor: string; + /** + * Retrieves a collection of all a objects that specify the href property and all area objects in the document. + */ + links: HTMLCollection; + /** + * Contains information about the current URL. + */ + location: Location; + media: string; + msCSSOMElementFloatMetrics: boolean; + msCapsLockWarningOff: boolean; + msHidden: boolean; + msVisibilityState: string; + /** + * Fires when the user aborts the download. + * @param ev The event. + */ + onabort: (ev: Event) => any; + /** + * Fires when the object is set as the active element. + * @param ev The event. + */ + onactivate: (ev: UIEvent) => any; + /** + * Fires immediately before the object is set as the active element. + * @param ev The event. + */ + onbeforeactivate: (ev: UIEvent) => any; + /** + * Fires immediately before the activeElement is changed from the current object to another object in the parent document. + * @param ev The event. + */ + onbeforedeactivate: (ev: UIEvent) => any; + /** + * Fires when the object loses the input focus. + * @param ev The focus event. + */ + onblur: (ev: FocusEvent) => any; + /** + * Occurs when playback is possible, but would require further buffering. + * @param ev The event. + */ + oncanplay: (ev: Event) => any; + oncanplaythrough: (ev: Event) => any; + /** + * Fires when the contents of the object or selection have changed. + * @param ev The event. + */ + onchange: (ev: Event) => any; + /** + * Fires when the user clicks the left mouse button on the object + * @param ev The mouse event. + */ + onclick: (ev: MouseEvent) => any; + /** + * Fires when the user clicks the right mouse button in the client area, opening the context menu. + * @param ev The mouse event. + */ + oncontextmenu: (ev: PointerEvent) => any; + /** + * Fires when the user double-clicks the object. + * @param ev The mouse event. + */ + ondblclick: (ev: MouseEvent) => any; + /** + * Fires when the activeElement is changed from the current object to another object in the parent document. + * @param ev The UI Event + */ + ondeactivate: (ev: UIEvent) => any; + /** + * Fires on the source object continuously during a drag operation. + * @param ev The event. + */ + ondrag: (ev: DragEvent) => any; + /** + * Fires on the source object when the user releases the mouse at the close of a drag operation. + * @param ev The event. + */ + ondragend: (ev: DragEvent) => any; + /** + * Fires on the target element when the user drags the object to a valid drop target. + * @param ev The drag event. + */ + ondragenter: (ev: DragEvent) => any; + /** + * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. + * @param ev The drag event. + */ + ondragleave: (ev: DragEvent) => any; + /** + * Fires on the target element continuously while the user drags the object over a valid drop target. + * @param ev The event. + */ + ondragover: (ev: DragEvent) => any; + /** + * Fires on the source object when the user starts to drag a text selection or selected object. + * @param ev The event. + */ + ondragstart: (ev: DragEvent) => any; + ondrop: (ev: DragEvent) => any; + /** + * Occurs when the duration attribute is updated. + * @param ev The event. + */ + ondurationchange: (ev: Event) => any; + /** + * Occurs when the media element is reset to its initial state. + * @param ev The event. + */ + onemptied: (ev: Event) => any; + /** + * Occurs when the end of playback is reached. + * @param ev The event + */ + onended: (ev: Event) => any; + /** + * Fires when an error occurs during object loading. + * @param ev The event. + */ + onerror: (ev: Event) => any; + /** + * Fires when the object receives focus. + * @param ev The event. + */ + onfocus: (ev: FocusEvent) => any; + onfullscreenchange: (ev: Event) => any; + onfullscreenerror: (ev: Event) => any; + oninput: (ev: Event) => any; + /** + * Fires when the user presses a key. + * @param ev The keyboard event + */ + onkeydown: (ev: KeyboardEvent) => any; + /** + * Fires when the user presses an alphanumeric key. + * @param ev The event. + */ + onkeypress: (ev: KeyboardEvent) => any; + /** + * Fires when the user releases a key. + * @param ev The keyboard event + */ + onkeyup: (ev: KeyboardEvent) => any; + /** + * Fires immediately after the browser loads the object. + * @param ev The event. + */ + onload: (ev: Event) => any; + /** + * Occurs when media data is loaded at the current playback position. + * @param ev The event. + */ + onloadeddata: (ev: Event) => any; + /** + * Occurs when the duration and dimensions of the media have been determined. + * @param ev The event. + */ + onloadedmetadata: (ev: Event) => any; + /** + * Occurs when Internet Explorer begins looking for media data. + * @param ev The event. + */ + onloadstart: (ev: Event) => any; + /** + * Fires when the user clicks the object with either mouse button. + * @param ev The mouse event. + */ + onmousedown: (ev: MouseEvent) => any; + /** + * Fires when the user moves the mouse over the object. + * @param ev The mouse event. + */ + onmousemove: (ev: MouseEvent) => any; + /** + * Fires when the user moves the mouse pointer outside the boundaries of the object. + * @param ev The mouse event. + */ + onmouseout: (ev: MouseEvent) => any; + /** + * Fires when the user moves the mouse pointer into the object. + * @param ev The mouse event. + */ + onmouseover: (ev: MouseEvent) => any; + /** + * Fires when the user releases a mouse button while the mouse is over the object. + * @param ev The mouse event. + */ + onmouseup: (ev: MouseEvent) => any; + /** + * Fires when the wheel button is rotated. + * @param ev The mouse event + */ + onmousewheel: (ev: MouseWheelEvent) => any; + onmscontentzoom: (ev: UIEvent) => any; + onmsgesturechange: (ev: MSGestureEvent) => any; + onmsgesturedoubletap: (ev: MSGestureEvent) => any; + onmsgestureend: (ev: MSGestureEvent) => any; + onmsgesturehold: (ev: MSGestureEvent) => any; + onmsgesturestart: (ev: MSGestureEvent) => any; + onmsgesturetap: (ev: MSGestureEvent) => any; + onmsinertiastart: (ev: MSGestureEvent) => any; + onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any; + onmspointercancel: (ev: MSPointerEvent) => any; + onmspointerdown: (ev: MSPointerEvent) => any; + onmspointerenter: (ev: MSPointerEvent) => any; + onmspointerleave: (ev: MSPointerEvent) => any; + onmspointermove: (ev: MSPointerEvent) => any; + onmspointerout: (ev: MSPointerEvent) => any; + onmspointerover: (ev: MSPointerEvent) => any; + onmspointerup: (ev: MSPointerEvent) => any; + /** + * Occurs when an item is removed from a Jump List of a webpage running in Site Mode. + * @param ev The event. + */ + onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any; + /** + * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode. + * @param ev The event. + */ + onmsthumbnailclick: (ev: MSSiteModeEvent) => any; + /** + * Occurs when playback is paused. + * @param ev The event. + */ + onpause: (ev: Event) => any; + /** + * Occurs when the play method is requested. + * @param ev The event. + */ + onplay: (ev: Event) => any; + /** + * Occurs when the audio or video has started playing. + * @param ev The event. + */ + onplaying: (ev: Event) => any; + onpointerlockchange: (ev: Event) => any; + onpointerlockerror: (ev: Event) => any; + /** + * Occurs to indicate progress while downloading media data. + * @param ev The event. + */ + onprogress: (ev: ProgressEvent) => any; + /** + * Occurs when the playback rate is increased or decreased. + * @param ev The event. + */ + onratechange: (ev: Event) => any; + /** + * Fires when the state of the object has changed. + * @param ev The event + */ + onreadystatechange: (ev: ProgressEvent) => any; + /** + * Fires when the user resets a form. + * @param ev The event. + */ + onreset: (ev: Event) => any; + /** + * Fires when the user repositions the scroll box in the scroll bar on the object. + * @param ev The event. + */ + onscroll: (ev: UIEvent) => any; + /** + * Occurs when the seek operation ends. + * @param ev The event. + */ + onseeked: (ev: Event) => any; + /** + * Occurs when the current playback position is moved. + * @param ev The event. + */ + onseeking: (ev: Event) => any; + /** + * Fires when the current selection changes. + * @param ev The event. + */ + onselect: (ev: UIEvent) => any; + onselectstart: (ev: Event) => any; + /** + * Occurs when the download has stopped. + * @param ev The event. + */ + onstalled: (ev: Event) => any; + /** + * Fires when the user clicks the Stop button or leaves the Web page. + * @param ev The event. + */ + onstop: (ev: Event) => any; + onsubmit: (ev: Event) => any; + /** + * Occurs if the load operation has been intentionally halted. + * @param ev The event. + */ + onsuspend: (ev: Event) => any; + /** + * Occurs to indicate the current playback position. + * @param ev The event. + */ + ontimeupdate: (ev: Event) => any; + ontouchcancel: (ev: TouchEvent) => any; + ontouchend: (ev: TouchEvent) => any; + ontouchmove: (ev: TouchEvent) => any; + ontouchstart: (ev: TouchEvent) => any; + /** + * Occurs when the volume is changed, or playback is muted or unmuted. + * @param ev The event. + */ + onvolumechange: (ev: Event) => any; + /** + * Occurs when playback stops because the next frame of a video resource is not available. + * @param ev The event. + */ + onwaiting: (ev: Event) => any; + onwebkitfullscreenchange: (ev: Event) => any; + onwebkitfullscreenerror: (ev: Event) => any; + plugins: HTMLCollection; + pointerLockElement: Element; + /** + * Retrieves a value that indicates the current state of the object. + */ + readyState: string; + /** + * Gets the URL of the location that referred the user to the current page. + */ + referrer: string; + /** + * Gets the root svg element in the document hierarchy. + */ + rootElement: SVGSVGElement; + /** + * Retrieves a collection of all script objects in the document. + */ + scripts: HTMLCollection; + security: string; + /** + * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. + */ + styleSheets: StyleSheetList; + /** + * Contains the title of the document. + */ + title: string; + visibilityState: string; + /** + * Sets or gets the color of the links that the user has visited. + */ + vlinkColor: string; + webkitCurrentFullScreenElement: Element; + webkitFullscreenElement: Element; + webkitFullscreenEnabled: boolean; + webkitIsFullScreen: boolean; + xmlEncoding: string; + xmlStandalone: boolean; + /** + * Gets or sets the version attribute specified in the declaration of an XML document. + */ + xmlVersion: string; + adoptNode(source: Node): Node; + captureEvents(): void; + clear(): void; + /** + * Closes an output stream and forces the sent data to display. + */ + close(): void; + /** + * Creates an attribute object with a specified name. + * @param name String that sets the attribute object's name. + */ + createAttribute(name: string): Attr; + createAttributeNS(namespaceURI: string, qualifiedName: string): Attr; + createCDATASection(data: string): CDATASection; + /** + * Creates a comment object with the specified data. + * @param data Sets the comment object's data. + */ + createComment(data: string): Comment; + /** + * Creates a new document. + */ + createDocumentFragment(): DocumentFragment; + /** + * Creates an instance of the element for the specified tag. + * @param tagName The name of an element. + */ + createElement(tagName: "a"): HTMLAnchorElement; + createElement(tagName: "abbr"): HTMLPhraseElement; + createElement(tagName: "acronym"): HTMLPhraseElement; + createElement(tagName: "address"): HTMLBlockElement; + createElement(tagName: "applet"): HTMLAppletElement; + createElement(tagName: "area"): HTMLAreaElement; + createElement(tagName: "audio"): HTMLAudioElement; + createElement(tagName: "b"): HTMLPhraseElement; + createElement(tagName: "base"): HTMLBaseElement; + createElement(tagName: "basefont"): HTMLBaseFontElement; + createElement(tagName: "bdo"): HTMLPhraseElement; + createElement(tagName: "big"): HTMLPhraseElement; + createElement(tagName: "blockquote"): HTMLBlockElement; + createElement(tagName: "body"): HTMLBodyElement; + createElement(tagName: "br"): HTMLBRElement; + createElement(tagName: "button"): HTMLButtonElement; + createElement(tagName: "canvas"): HTMLCanvasElement; + createElement(tagName: "caption"): HTMLTableCaptionElement; + createElement(tagName: "center"): HTMLBlockElement; + createElement(tagName: "cite"): HTMLPhraseElement; + createElement(tagName: "code"): HTMLPhraseElement; + createElement(tagName: "col"): HTMLTableColElement; + createElement(tagName: "colgroup"): HTMLTableColElement; + createElement(tagName: "datalist"): HTMLDataListElement; + createElement(tagName: "dd"): HTMLDDElement; + createElement(tagName: "del"): HTMLModElement; + createElement(tagName: "dfn"): HTMLPhraseElement; + createElement(tagName: "dir"): HTMLDirectoryElement; + createElement(tagName: "div"): HTMLDivElement; + createElement(tagName: "dl"): HTMLDListElement; + createElement(tagName: "dt"): HTMLDTElement; + createElement(tagName: "em"): HTMLPhraseElement; + createElement(tagName: "embed"): HTMLEmbedElement; + createElement(tagName: "fieldset"): HTMLFieldSetElement; + createElement(tagName: "font"): HTMLFontElement; + createElement(tagName: "form"): HTMLFormElement; + createElement(tagName: "frame"): HTMLFrameElement; + createElement(tagName: "frameset"): HTMLFrameSetElement; + createElement(tagName: "h1"): HTMLHeadingElement; + createElement(tagName: "h2"): HTMLHeadingElement; + createElement(tagName: "h3"): HTMLHeadingElement; + createElement(tagName: "h4"): HTMLHeadingElement; + createElement(tagName: "h5"): HTMLHeadingElement; + createElement(tagName: "h6"): HTMLHeadingElement; + createElement(tagName: "head"): HTMLHeadElement; + createElement(tagName: "hr"): HTMLHRElement; + createElement(tagName: "html"): HTMLHtmlElement; + createElement(tagName: "i"): HTMLPhraseElement; + createElement(tagName: "iframe"): HTMLIFrameElement; + createElement(tagName: "img"): HTMLImageElement; + createElement(tagName: "input"): HTMLInputElement; + createElement(tagName: "ins"): HTMLModElement; + createElement(tagName: "isindex"): HTMLIsIndexElement; + createElement(tagName: "kbd"): HTMLPhraseElement; + createElement(tagName: "keygen"): HTMLBlockElement; + createElement(tagName: "label"): HTMLLabelElement; + createElement(tagName: "legend"): HTMLLegendElement; + createElement(tagName: "li"): HTMLLIElement; + createElement(tagName: "link"): HTMLLinkElement; + createElement(tagName: "listing"): HTMLBlockElement; + createElement(tagName: "map"): HTMLMapElement; + createElement(tagName: "marquee"): HTMLMarqueeElement; + createElement(tagName: "menu"): HTMLMenuElement; + createElement(tagName: "meta"): HTMLMetaElement; + createElement(tagName: "nextid"): HTMLNextIdElement; + createElement(tagName: "nobr"): HTMLPhraseElement; + createElement(tagName: "object"): HTMLObjectElement; + createElement(tagName: "ol"): HTMLOListElement; + createElement(tagName: "optgroup"): HTMLOptGroupElement; + createElement(tagName: "option"): HTMLOptionElement; + createElement(tagName: "p"): HTMLParagraphElement; + createElement(tagName: "param"): HTMLParamElement; + createElement(tagName: "plaintext"): HTMLBlockElement; + createElement(tagName: "pre"): HTMLPreElement; + createElement(tagName: "progress"): HTMLProgressElement; + createElement(tagName: "q"): HTMLQuoteElement; + createElement(tagName: "rt"): HTMLPhraseElement; + createElement(tagName: "ruby"): HTMLPhraseElement; + createElement(tagName: "s"): HTMLPhraseElement; + createElement(tagName: "samp"): HTMLPhraseElement; + createElement(tagName: "script"): HTMLScriptElement; + createElement(tagName: "select"): HTMLSelectElement; + createElement(tagName: "small"): HTMLPhraseElement; + createElement(tagName: "source"): HTMLSourceElement; + createElement(tagName: "span"): HTMLSpanElement; + createElement(tagName: "strike"): HTMLPhraseElement; + createElement(tagName: "strong"): HTMLPhraseElement; + createElement(tagName: "style"): HTMLStyleElement; + createElement(tagName: "sub"): HTMLPhraseElement; + createElement(tagName: "sup"): HTMLPhraseElement; + createElement(tagName: "table"): HTMLTableElement; + createElement(tagName: "tbody"): HTMLTableSectionElement; + createElement(tagName: "td"): HTMLTableDataCellElement; + createElement(tagName: "textarea"): HTMLTextAreaElement; + createElement(tagName: "tfoot"): HTMLTableSectionElement; + createElement(tagName: "th"): HTMLTableHeaderCellElement; + createElement(tagName: "thead"): HTMLTableSectionElement; + createElement(tagName: "title"): HTMLTitleElement; + createElement(tagName: "tr"): HTMLTableRowElement; + createElement(tagName: "track"): HTMLTrackElement; + createElement(tagName: "tt"): HTMLPhraseElement; + createElement(tagName: "u"): HTMLPhraseElement; + createElement(tagName: "ul"): HTMLUListElement; + createElement(tagName: "var"): HTMLPhraseElement; + createElement(tagName: "video"): HTMLVideoElement; + createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement; + createElement(tagName: "xmp"): HTMLBlockElement; + createElement(tagName: string): HTMLElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement + createElementNS(namespaceURI: string, qualifiedName: string): Element; + createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; + createNSResolver(nodeResolver: Node): XPathNSResolver; + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator; + createProcessingInstruction(target: string, data: string): ProcessingInstruction; + /** + * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. + */ + createRange(): Range; + /** + * Creates a text string from the specified value. + * @param data String that specifies the nodeValue property of the text node. + */ + createTextNode(data: string): Text; + createTouch(view: any, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch; + createTouchList(...touches: Touch[]): TouchList; + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker; + /** + * Returns the element for the specified x coordinate and the specified y coordinate. + * @param x The x-offset + * @param y The y-offset + */ + elementFromPoint(x: number, y: number): Element; + evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult; + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + */ + execCommand(commandId: string, showUI?: boolean, value?: any): boolean; + /** + * Displays help information for the given command identifier. + * @param commandId Displays help information for the given command identifier. + */ + execCommandShowHelp(commandId: string): boolean; + exitFullscreen(): void; + exitPointerLock(): void; + /** + * Causes the element to receive the focus and executes the code specified by the onfocus event. + */ + focus(): void; + /** + * Returns a reference to the first object with the specified value of the ID or NAME attribute. + * @param elementId String that specifies the ID value. Case-insensitive. + */ + getElementById(elementId: string): HTMLElement; + getElementsByClassName(classNames: string): NodeListOf; + /** + * Gets a collection of objects based on the value of the NAME or ID attribute. + * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. + */ + getElementsByName(elementName: string): NodeListOf; + /** + * Retrieves a collection of objects based on the specified element name. + * @param name Specifies the name of an element. + */ + getElementsByTagName(tagname: "a"): NodeListOf; + getElementsByTagName(tagname: "abbr"): NodeListOf; + getElementsByTagName(tagname: "acronym"): NodeListOf; + getElementsByTagName(tagname: "address"): NodeListOf; + getElementsByTagName(tagname: "applet"): NodeListOf; + getElementsByTagName(tagname: "area"): NodeListOf; + getElementsByTagName(tagname: "article"): NodeListOf; + getElementsByTagName(tagname: "aside"): NodeListOf; + getElementsByTagName(tagname: "audio"): NodeListOf; + getElementsByTagName(tagname: "b"): NodeListOf; + getElementsByTagName(tagname: "base"): NodeListOf; + getElementsByTagName(tagname: "basefont"): NodeListOf; + getElementsByTagName(tagname: "bdo"): NodeListOf; + getElementsByTagName(tagname: "big"): NodeListOf; + getElementsByTagName(tagname: "blockquote"): NodeListOf; + getElementsByTagName(tagname: "body"): NodeListOf; + getElementsByTagName(tagname: "br"): NodeListOf; + getElementsByTagName(tagname: "button"): NodeListOf; + getElementsByTagName(tagname: "canvas"): NodeListOf; + getElementsByTagName(tagname: "caption"): NodeListOf; + getElementsByTagName(tagname: "center"): NodeListOf; + getElementsByTagName(tagname: "circle"): NodeListOf; + getElementsByTagName(tagname: "cite"): NodeListOf; + getElementsByTagName(tagname: "clippath"): NodeListOf; + getElementsByTagName(tagname: "code"): NodeListOf; + getElementsByTagName(tagname: "col"): NodeListOf; + getElementsByTagName(tagname: "colgroup"): NodeListOf; + getElementsByTagName(tagname: "datalist"): NodeListOf; + getElementsByTagName(tagname: "dd"): NodeListOf; + getElementsByTagName(tagname: "defs"): NodeListOf; + getElementsByTagName(tagname: "del"): NodeListOf; + getElementsByTagName(tagname: "desc"): NodeListOf; + getElementsByTagName(tagname: "dfn"): NodeListOf; + getElementsByTagName(tagname: "dir"): NodeListOf; + getElementsByTagName(tagname: "div"): NodeListOf; + getElementsByTagName(tagname: "dl"): NodeListOf; + getElementsByTagName(tagname: "dt"): NodeListOf; + getElementsByTagName(tagname: "ellipse"): NodeListOf; + getElementsByTagName(tagname: "em"): NodeListOf; + getElementsByTagName(tagname: "embed"): NodeListOf; + getElementsByTagName(tagname: "feblend"): NodeListOf; + getElementsByTagName(tagname: "fecolormatrix"): NodeListOf; + getElementsByTagName(tagname: "fecomponenttransfer"): NodeListOf; + getElementsByTagName(tagname: "fecomposite"): NodeListOf; + getElementsByTagName(tagname: "feconvolvematrix"): NodeListOf; + getElementsByTagName(tagname: "fediffuselighting"): NodeListOf; + getElementsByTagName(tagname: "fedisplacementmap"): NodeListOf; + getElementsByTagName(tagname: "fedistantlight"): NodeListOf; + getElementsByTagName(tagname: "feflood"): NodeListOf; + getElementsByTagName(tagname: "fefunca"): NodeListOf; + getElementsByTagName(tagname: "fefuncb"): NodeListOf; + getElementsByTagName(tagname: "fefuncg"): NodeListOf; + getElementsByTagName(tagname: "fefuncr"): NodeListOf; + getElementsByTagName(tagname: "fegaussianblur"): NodeListOf; + getElementsByTagName(tagname: "feimage"): NodeListOf; + getElementsByTagName(tagname: "femerge"): NodeListOf; + getElementsByTagName(tagname: "femergenode"): NodeListOf; + getElementsByTagName(tagname: "femorphology"): NodeListOf; + getElementsByTagName(tagname: "feoffset"): NodeListOf; + getElementsByTagName(tagname: "fepointlight"): NodeListOf; + getElementsByTagName(tagname: "fespecularlighting"): NodeListOf; + getElementsByTagName(tagname: "fespotlight"): NodeListOf; + getElementsByTagName(tagname: "fetile"): NodeListOf; + getElementsByTagName(tagname: "feturbulence"): NodeListOf; + getElementsByTagName(tagname: "fieldset"): NodeListOf; + getElementsByTagName(tagname: "figcaption"): NodeListOf; + getElementsByTagName(tagname: "figure"): NodeListOf; + getElementsByTagName(tagname: "filter"): NodeListOf; + getElementsByTagName(tagname: "font"): NodeListOf; + getElementsByTagName(tagname: "footer"): NodeListOf; + getElementsByTagName(tagname: "foreignobject"): NodeListOf; + getElementsByTagName(tagname: "form"): NodeListOf; + getElementsByTagName(tagname: "frame"): NodeListOf; + getElementsByTagName(tagname: "frameset"): NodeListOf; + getElementsByTagName(tagname: "g"): NodeListOf; + getElementsByTagName(tagname: "h1"): NodeListOf; + getElementsByTagName(tagname: "h2"): NodeListOf; + getElementsByTagName(tagname: "h3"): NodeListOf; + getElementsByTagName(tagname: "h4"): NodeListOf; + getElementsByTagName(tagname: "h5"): NodeListOf; + getElementsByTagName(tagname: "h6"): NodeListOf; + getElementsByTagName(tagname: "head"): NodeListOf; + getElementsByTagName(tagname: "header"): NodeListOf; + getElementsByTagName(tagname: "hgroup"): NodeListOf; + getElementsByTagName(tagname: "hr"): NodeListOf; + getElementsByTagName(tagname: "html"): NodeListOf; + getElementsByTagName(tagname: "i"): NodeListOf; + getElementsByTagName(tagname: "iframe"): NodeListOf; + getElementsByTagName(tagname: "image"): NodeListOf; + getElementsByTagName(tagname: "img"): NodeListOf; + getElementsByTagName(tagname: "input"): NodeListOf; + getElementsByTagName(tagname: "ins"): NodeListOf; + getElementsByTagName(tagname: "isindex"): NodeListOf; + getElementsByTagName(tagname: "kbd"): NodeListOf; + getElementsByTagName(tagname: "keygen"): NodeListOf; + getElementsByTagName(tagname: "label"): NodeListOf; + getElementsByTagName(tagname: "legend"): NodeListOf; + getElementsByTagName(tagname: "li"): NodeListOf; + getElementsByTagName(tagname: "line"): NodeListOf; + getElementsByTagName(tagname: "lineargradient"): NodeListOf; + getElementsByTagName(tagname: "link"): NodeListOf; + getElementsByTagName(tagname: "listing"): NodeListOf; + getElementsByTagName(tagname: "map"): NodeListOf; + getElementsByTagName(tagname: "mark"): NodeListOf; + getElementsByTagName(tagname: "marker"): NodeListOf; + getElementsByTagName(tagname: "marquee"): NodeListOf; + getElementsByTagName(tagname: "mask"): NodeListOf; + getElementsByTagName(tagname: "menu"): NodeListOf; + getElementsByTagName(tagname: "meta"): NodeListOf; + getElementsByTagName(tagname: "metadata"): NodeListOf; + getElementsByTagName(tagname: "nav"): NodeListOf; + getElementsByTagName(tagname: "nextid"): NodeListOf; + getElementsByTagName(tagname: "nobr"): NodeListOf; + getElementsByTagName(tagname: "noframes"): NodeListOf; + getElementsByTagName(tagname: "noscript"): NodeListOf; + getElementsByTagName(tagname: "object"): NodeListOf; + getElementsByTagName(tagname: "ol"): NodeListOf; + getElementsByTagName(tagname: "optgroup"): NodeListOf; + getElementsByTagName(tagname: "option"): NodeListOf; + getElementsByTagName(tagname: "p"): NodeListOf; + getElementsByTagName(tagname: "param"): NodeListOf; + getElementsByTagName(tagname: "path"): NodeListOf; + getElementsByTagName(tagname: "pattern"): NodeListOf; + getElementsByTagName(tagname: "plaintext"): NodeListOf; + getElementsByTagName(tagname: "polygon"): NodeListOf; + getElementsByTagName(tagname: "polyline"): NodeListOf; + getElementsByTagName(tagname: "pre"): NodeListOf; + getElementsByTagName(tagname: "progress"): NodeListOf; + getElementsByTagName(tagname: "q"): NodeListOf; + getElementsByTagName(tagname: "radialgradient"): NodeListOf; + getElementsByTagName(tagname: "rect"): NodeListOf; + getElementsByTagName(tagname: "rt"): NodeListOf; + getElementsByTagName(tagname: "ruby"): NodeListOf; + getElementsByTagName(tagname: "s"): NodeListOf; + getElementsByTagName(tagname: "samp"): NodeListOf; + getElementsByTagName(tagname: "script"): NodeListOf; + getElementsByTagName(tagname: "section"): NodeListOf; + getElementsByTagName(tagname: "select"): NodeListOf; + getElementsByTagName(tagname: "small"): NodeListOf; + getElementsByTagName(tagname: "source"): NodeListOf; + getElementsByTagName(tagname: "span"): NodeListOf; + getElementsByTagName(tagname: "stop"): NodeListOf; + getElementsByTagName(tagname: "strike"): NodeListOf; + getElementsByTagName(tagname: "strong"): NodeListOf; + getElementsByTagName(tagname: "style"): NodeListOf; + getElementsByTagName(tagname: "sub"): NodeListOf; + getElementsByTagName(tagname: "sup"): NodeListOf; + getElementsByTagName(tagname: "svg"): NodeListOf; + getElementsByTagName(tagname: "switch"): NodeListOf; + getElementsByTagName(tagname: "symbol"): NodeListOf; + getElementsByTagName(tagname: "table"): NodeListOf; + getElementsByTagName(tagname: "tbody"): NodeListOf; + getElementsByTagName(tagname: "td"): NodeListOf; + getElementsByTagName(tagname: "text"): NodeListOf; + getElementsByTagName(tagname: "textpath"): NodeListOf; + getElementsByTagName(tagname: "textarea"): NodeListOf; + getElementsByTagName(tagname: "tfoot"): NodeListOf; + getElementsByTagName(tagname: "th"): NodeListOf; + getElementsByTagName(tagname: "thead"): NodeListOf; + getElementsByTagName(tagname: "title"): NodeListOf; + getElementsByTagName(tagname: "tr"): NodeListOf; + getElementsByTagName(tagname: "track"): NodeListOf; + getElementsByTagName(tagname: "tspan"): NodeListOf; + getElementsByTagName(tagname: "tt"): NodeListOf; + getElementsByTagName(tagname: "u"): NodeListOf; + getElementsByTagName(tagname: "ul"): NodeListOf; + getElementsByTagName(tagname: "use"): NodeListOf; + getElementsByTagName(tagname: "var"): NodeListOf; + getElementsByTagName(tagname: "video"): NodeListOf; + getElementsByTagName(tagname: "view"): NodeListOf; + getElementsByTagName(tagname: "wbr"): NodeListOf; + getElementsByTagName(tagname: "x-ms-webview"): NodeListOf; + getElementsByTagName(tagname: "xmp"): NodeListOf; + getElementsByTagName(tagname: string): NodeListOf; + getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf; + /** + * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. + */ + getSelection(): Selection; + /** + * Gets a value indicating whether the object currently has focus. + */ + hasFocus(): boolean; + importNode(importedNode: Node, deep: boolean): Node; + msElementsFromPoint(x: number, y: number): NodeList; + msElementsFromRect(left: number, top: number, width: number, height: number): NodeList; + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + */ + open(url?: string, name?: string, features?: string, replace?: boolean): Document; + /** + * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. + * @param commandId Specifies a command identifier. + */ + queryCommandEnabled(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. + * @param commandId String that specifies a command identifier. + */ + queryCommandIndeterm(commandId: string): boolean; + /** + * Returns a Boolean value that indicates the current state of the command. + * @param commandId String that specifies a command identifier. + */ + queryCommandState(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the current command is supported on the current range. + * @param commandId Specifies a command identifier. + */ + queryCommandSupported(commandId: string): boolean; + /** + * Retrieves the string associated with a command. + * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers. + */ + queryCommandText(commandId: string): string; + /** + * Returns the current value of the document, range, or current selection for the given command. + * @param commandId String that specifies a command identifier. + */ + queryCommandValue(commandId: string): string; + releaseEvents(): void; + /** + * Allows updating the print settings for the page. + */ + updateSettings(): void; + webkitCancelFullScreen(): void; + webkitExitFullscreen(): void; + /** + * Writes one or more HTML expressions to a document in the specified window. + * @param content Specifies the text and HTML tags to write. + */ + write(...content: string[]): void; + /** + * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. + * @param content The text and HTML tags to write. + */ + writeln(...content: string[]): void; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "fullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "fullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void; + addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerlockchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointerlockerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var Document: { + prototype: Document; + new(): Document; +} + +interface DocumentFragment extends Node, NodeSelector { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var DocumentFragment: { + prototype: DocumentFragment; + new(): DocumentFragment; +} + +interface DocumentType extends Node, ChildNode { + entities: NamedNodeMap; + internalSubset: string; + name: string; + notations: NamedNodeMap; + publicId: string; + systemId: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var DocumentType: { + prototype: DocumentType; + new(): DocumentType; +} + +interface DragEvent extends MouseEvent { + dataTransfer: DataTransfer; + initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void; + msConvertURL(file: File, targetType: string, targetURL?: string): void; +} + +declare var DragEvent: { + prototype: DragEvent; + new(): DragEvent; +} + +interface DynamicsCompressorNode extends AudioNode { + attack: AudioParam; + knee: AudioParam; + ratio: AudioParam; + reduction: AudioParam; + release: AudioParam; + threshold: AudioParam; +} + +declare var DynamicsCompressorNode: { + prototype: DynamicsCompressorNode; + new(): DynamicsCompressorNode; +} + +interface EXT_texture_filter_anisotropic { + MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; + TEXTURE_MAX_ANISOTROPY_EXT: number; +} + +declare var EXT_texture_filter_anisotropic: { + prototype: EXT_texture_filter_anisotropic; + new(): EXT_texture_filter_anisotropic; + MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; + TEXTURE_MAX_ANISOTROPY_EXT: number; +} + +interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode { + classList: DOMTokenList; + clientHeight: number; + clientLeft: number; + clientTop: number; + clientWidth: number; + msContentZoomFactor: number; + msRegionOverflow: string; + onariarequest: (ev: AriaRequestEvent) => any; + oncommand: (ev: CommandEvent) => any; + ongotpointercapture: (ev: PointerEvent) => any; + onlostpointercapture: (ev: PointerEvent) => any; + onmsgesturechange: (ev: MSGestureEvent) => any; + onmsgesturedoubletap: (ev: MSGestureEvent) => any; + onmsgestureend: (ev: MSGestureEvent) => any; + onmsgesturehold: (ev: MSGestureEvent) => any; + onmsgesturestart: (ev: MSGestureEvent) => any; + onmsgesturetap: (ev: MSGestureEvent) => any; + onmsgotpointercapture: (ev: MSPointerEvent) => any; + onmsinertiastart: (ev: MSGestureEvent) => any; + onmslostpointercapture: (ev: MSPointerEvent) => any; + onmspointercancel: (ev: MSPointerEvent) => any; + onmspointerdown: (ev: MSPointerEvent) => any; + onmspointerenter: (ev: MSPointerEvent) => any; + onmspointerleave: (ev: MSPointerEvent) => any; + onmspointermove: (ev: MSPointerEvent) => any; + onmspointerout: (ev: MSPointerEvent) => any; + onmspointerover: (ev: MSPointerEvent) => any; + onmspointerup: (ev: MSPointerEvent) => any; + ontouchcancel: (ev: TouchEvent) => any; + ontouchend: (ev: TouchEvent) => any; + ontouchmove: (ev: TouchEvent) => any; + ontouchstart: (ev: TouchEvent) => any; + onwebkitfullscreenchange: (ev: Event) => any; + onwebkitfullscreenerror: (ev: Event) => any; + scrollHeight: number; + scrollLeft: number; + scrollTop: number; + scrollWidth: number; + tagName: string; + id: string; + className: string; + getAttribute(name?: string): string; + getAttributeNS(namespaceURI: string, localName: string): string; + getAttributeNode(name: string): Attr; + getAttributeNodeNS(namespaceURI: string, localName: string): Attr; + getBoundingClientRect(): ClientRect; + getClientRects(): ClientRectList; + getElementsByTagName(name: "a"): NodeListOf; + getElementsByTagName(name: "abbr"): NodeListOf; + getElementsByTagName(name: "acronym"): NodeListOf; + getElementsByTagName(name: "address"): NodeListOf; + getElementsByTagName(name: "applet"): NodeListOf; + getElementsByTagName(name: "area"): NodeListOf; + getElementsByTagName(name: "article"): NodeListOf; + getElementsByTagName(name: "aside"): NodeListOf; + getElementsByTagName(name: "audio"): NodeListOf; + getElementsByTagName(name: "b"): NodeListOf; + getElementsByTagName(name: "base"): NodeListOf; + getElementsByTagName(name: "basefont"): NodeListOf; + getElementsByTagName(name: "bdo"): NodeListOf; + getElementsByTagName(name: "big"): NodeListOf; + getElementsByTagName(name: "blockquote"): NodeListOf; + getElementsByTagName(name: "body"): NodeListOf; + getElementsByTagName(name: "br"): NodeListOf; + getElementsByTagName(name: "button"): NodeListOf; + getElementsByTagName(name: "canvas"): NodeListOf; + getElementsByTagName(name: "caption"): NodeListOf; + getElementsByTagName(name: "center"): NodeListOf; + getElementsByTagName(name: "circle"): NodeListOf; + getElementsByTagName(name: "cite"): NodeListOf; + getElementsByTagName(name: "clippath"): NodeListOf; + getElementsByTagName(name: "code"): NodeListOf; + getElementsByTagName(name: "col"): NodeListOf; + getElementsByTagName(name: "colgroup"): NodeListOf; + getElementsByTagName(name: "datalist"): NodeListOf; + getElementsByTagName(name: "dd"): NodeListOf; + getElementsByTagName(name: "defs"): NodeListOf; + getElementsByTagName(name: "del"): NodeListOf; + getElementsByTagName(name: "desc"): NodeListOf; + getElementsByTagName(name: "dfn"): NodeListOf; + getElementsByTagName(name: "dir"): NodeListOf; + getElementsByTagName(name: "div"): NodeListOf; + getElementsByTagName(name: "dl"): NodeListOf; + getElementsByTagName(name: "dt"): NodeListOf; + getElementsByTagName(name: "ellipse"): NodeListOf; + getElementsByTagName(name: "em"): NodeListOf; + getElementsByTagName(name: "embed"): NodeListOf; + getElementsByTagName(name: "feblend"): NodeListOf; + getElementsByTagName(name: "fecolormatrix"): NodeListOf; + getElementsByTagName(name: "fecomponenttransfer"): NodeListOf; + getElementsByTagName(name: "fecomposite"): NodeListOf; + getElementsByTagName(name: "feconvolvematrix"): NodeListOf; + getElementsByTagName(name: "fediffuselighting"): NodeListOf; + getElementsByTagName(name: "fedisplacementmap"): NodeListOf; + getElementsByTagName(name: "fedistantlight"): NodeListOf; + getElementsByTagName(name: "feflood"): NodeListOf; + getElementsByTagName(name: "fefunca"): NodeListOf; + getElementsByTagName(name: "fefuncb"): NodeListOf; + getElementsByTagName(name: "fefuncg"): NodeListOf; + getElementsByTagName(name: "fefuncr"): NodeListOf; + getElementsByTagName(name: "fegaussianblur"): NodeListOf; + getElementsByTagName(name: "feimage"): NodeListOf; + getElementsByTagName(name: "femerge"): NodeListOf; + getElementsByTagName(name: "femergenode"): NodeListOf; + getElementsByTagName(name: "femorphology"): NodeListOf; + getElementsByTagName(name: "feoffset"): NodeListOf; + getElementsByTagName(name: "fepointlight"): NodeListOf; + getElementsByTagName(name: "fespecularlighting"): NodeListOf; + getElementsByTagName(name: "fespotlight"): NodeListOf; + getElementsByTagName(name: "fetile"): NodeListOf; + getElementsByTagName(name: "feturbulence"): NodeListOf; + getElementsByTagName(name: "fieldset"): NodeListOf; + getElementsByTagName(name: "figcaption"): NodeListOf; + getElementsByTagName(name: "figure"): NodeListOf; + getElementsByTagName(name: "filter"): NodeListOf; + getElementsByTagName(name: "font"): NodeListOf; + getElementsByTagName(name: "footer"): NodeListOf; + getElementsByTagName(name: "foreignobject"): NodeListOf; + getElementsByTagName(name: "form"): NodeListOf; + getElementsByTagName(name: "frame"): NodeListOf; + getElementsByTagName(name: "frameset"): NodeListOf; + getElementsByTagName(name: "g"): NodeListOf; + getElementsByTagName(name: "h1"): NodeListOf; + getElementsByTagName(name: "h2"): NodeListOf; + getElementsByTagName(name: "h3"): NodeListOf; + getElementsByTagName(name: "h4"): NodeListOf; + getElementsByTagName(name: "h5"): NodeListOf; + getElementsByTagName(name: "h6"): NodeListOf; + getElementsByTagName(name: "head"): NodeListOf; + getElementsByTagName(name: "header"): NodeListOf; + getElementsByTagName(name: "hgroup"): NodeListOf; + getElementsByTagName(name: "hr"): NodeListOf; + getElementsByTagName(name: "html"): NodeListOf; + getElementsByTagName(name: "i"): NodeListOf; + getElementsByTagName(name: "iframe"): NodeListOf; + getElementsByTagName(name: "image"): NodeListOf; + getElementsByTagName(name: "img"): NodeListOf; + getElementsByTagName(name: "input"): NodeListOf; + getElementsByTagName(name: "ins"): NodeListOf; + getElementsByTagName(name: "isindex"): NodeListOf; + getElementsByTagName(name: "kbd"): NodeListOf; + getElementsByTagName(name: "keygen"): NodeListOf; + getElementsByTagName(name: "label"): NodeListOf; + getElementsByTagName(name: "legend"): NodeListOf; + getElementsByTagName(name: "li"): NodeListOf; + getElementsByTagName(name: "line"): NodeListOf; + getElementsByTagName(name: "lineargradient"): NodeListOf; + getElementsByTagName(name: "link"): NodeListOf; + getElementsByTagName(name: "listing"): NodeListOf; + getElementsByTagName(name: "map"): NodeListOf; + getElementsByTagName(name: "mark"): NodeListOf; + getElementsByTagName(name: "marker"): NodeListOf; + getElementsByTagName(name: "marquee"): NodeListOf; + getElementsByTagName(name: "mask"): NodeListOf; + getElementsByTagName(name: "menu"): NodeListOf; + getElementsByTagName(name: "meta"): NodeListOf; + getElementsByTagName(name: "metadata"): NodeListOf; + getElementsByTagName(name: "nav"): NodeListOf; + getElementsByTagName(name: "nextid"): NodeListOf; + getElementsByTagName(name: "nobr"): NodeListOf; + getElementsByTagName(name: "noframes"): NodeListOf; + getElementsByTagName(name: "noscript"): NodeListOf; + getElementsByTagName(name: "object"): NodeListOf; + getElementsByTagName(name: "ol"): NodeListOf; + getElementsByTagName(name: "optgroup"): NodeListOf; + getElementsByTagName(name: "option"): NodeListOf; + getElementsByTagName(name: "p"): NodeListOf; + getElementsByTagName(name: "param"): NodeListOf; + getElementsByTagName(name: "path"): NodeListOf; + getElementsByTagName(name: "pattern"): NodeListOf; + getElementsByTagName(name: "plaintext"): NodeListOf; + getElementsByTagName(name: "polygon"): NodeListOf; + getElementsByTagName(name: "polyline"): NodeListOf; + getElementsByTagName(name: "pre"): NodeListOf; + getElementsByTagName(name: "progress"): NodeListOf; + getElementsByTagName(name: "q"): NodeListOf; + getElementsByTagName(name: "radialgradient"): NodeListOf; + getElementsByTagName(name: "rect"): NodeListOf; + getElementsByTagName(name: "rt"): NodeListOf; + getElementsByTagName(name: "ruby"): NodeListOf; + getElementsByTagName(name: "s"): NodeListOf; + getElementsByTagName(name: "samp"): NodeListOf; + getElementsByTagName(name: "script"): NodeListOf; + getElementsByTagName(name: "section"): NodeListOf; + getElementsByTagName(name: "select"): NodeListOf; + getElementsByTagName(name: "small"): NodeListOf; + getElementsByTagName(name: "source"): NodeListOf; + getElementsByTagName(name: "span"): NodeListOf; + getElementsByTagName(name: "stop"): NodeListOf; + getElementsByTagName(name: "strike"): NodeListOf; + getElementsByTagName(name: "strong"): NodeListOf; + getElementsByTagName(name: "style"): NodeListOf; + getElementsByTagName(name: "sub"): NodeListOf; + getElementsByTagName(name: "sup"): NodeListOf; + getElementsByTagName(name: "svg"): NodeListOf; + getElementsByTagName(name: "switch"): NodeListOf; + getElementsByTagName(name: "symbol"): NodeListOf; + getElementsByTagName(name: "table"): NodeListOf; + getElementsByTagName(name: "tbody"): NodeListOf; + getElementsByTagName(name: "td"): NodeListOf; + getElementsByTagName(name: "text"): NodeListOf; + getElementsByTagName(name: "textpath"): NodeListOf; + getElementsByTagName(name: "textarea"): NodeListOf; + getElementsByTagName(name: "tfoot"): NodeListOf; + getElementsByTagName(name: "th"): NodeListOf; + getElementsByTagName(name: "thead"): NodeListOf; + getElementsByTagName(name: "title"): NodeListOf; + getElementsByTagName(name: "tr"): NodeListOf; + getElementsByTagName(name: "track"): NodeListOf; + getElementsByTagName(name: "tspan"): NodeListOf; + getElementsByTagName(name: "tt"): NodeListOf; + getElementsByTagName(name: "u"): NodeListOf; + getElementsByTagName(name: "ul"): NodeListOf; + getElementsByTagName(name: "use"): NodeListOf; + getElementsByTagName(name: "var"): NodeListOf; + getElementsByTagName(name: "video"): NodeListOf; + getElementsByTagName(name: "view"): NodeListOf; + getElementsByTagName(name: "wbr"): NodeListOf; + getElementsByTagName(name: "x-ms-webview"): NodeListOf; + getElementsByTagName(name: "xmp"): NodeListOf; + getElementsByTagName(name: string): NodeListOf; + getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf; + hasAttribute(name: string): boolean; + hasAttributeNS(namespaceURI: string, localName: string): boolean; + msGetRegionContent(): MSRangeCollection; + msGetUntransformedBounds(): ClientRect; + msMatchesSelector(selectors: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + msZoomTo(args: MsZoomToOptions): void; + releasePointerCapture(pointerId: number): void; + removeAttribute(name?: string): void; + removeAttributeNS(namespaceURI: string, localName: string): void; + removeAttributeNode(oldAttr: Attr): Attr; + requestFullscreen(): void; + requestPointerLock(): void; + setAttribute(name?: string, value?: string): void; + setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void; + setAttributeNode(newAttr: Attr): Attr; + setAttributeNodeNS(newAttr: Attr): Attr; + setPointerCapture(pointerId: number): void; + webkitMatchesSelector(selectors: string): boolean; + webkitRequestFullScreen(): void; + webkitRequestFullscreen(): void; + getElementsByClassName(classNames: string): NodeListOf; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var Element: { + prototype: Element; + new(): Element; +} + +interface ErrorEvent extends Event { + colno: number; + error: any; + filename: string; + lineno: number; + message: string; + initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void; +} + +declare var ErrorEvent: { + prototype: ErrorEvent; + new(): ErrorEvent; +} + +interface Event { + bubbles: boolean; + cancelBubble: boolean; + cancelable: boolean; + currentTarget: EventTarget; + defaultPrevented: boolean; + eventPhase: number; + isTrusted: boolean; + returnValue: boolean; + srcElement: Element; + target: EventTarget; + timeStamp: number; + type: string; + initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void; + preventDefault(): void; + stopImmediatePropagation(): void; + stopPropagation(): void; + AT_TARGET: number; + BUBBLING_PHASE: number; + CAPTURING_PHASE: number; +} + +declare var Event: { + prototype: Event; + new(type: string, eventInitDict?: EventInit): Event; + AT_TARGET: number; + BUBBLING_PHASE: number; + CAPTURING_PHASE: number; +} + +interface EventTarget { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + dispatchEvent(evt: Event): boolean; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var EventTarget: { + prototype: EventTarget; + new(): EventTarget; +} + +interface External { +} + +declare var External: { + prototype: External; + new(): External; +} + +interface File extends Blob { + lastModifiedDate: any; + name: string; +} + +declare var File: { + prototype: File; + new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File; +} + +interface FileList { + length: number; + item(index: number): File; + [index: number]: File; +} + +declare var FileList: { + prototype: FileList; + new(): FileList; +} + +interface FileReader extends EventTarget, MSBaseReader { + error: DOMError; + readAsArrayBuffer(blob: Blob): void; + readAsBinaryString(blob: Blob): void; + readAsDataURL(blob: Blob): void; + readAsText(blob: Blob, encoding?: string): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var FileReader: { + prototype: FileReader; + new(): FileReader; +} + +interface FocusEvent extends UIEvent { + relatedTarget: EventTarget; + initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void; +} + +declare var FocusEvent: { + prototype: FocusEvent; + new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent; +} + +interface FormData { + append(name: any, value: any, blobName?: string): void; +} + +declare var FormData: { + prototype: FormData; + new (form?: HTMLFormElement): FormData; +} + +interface GainNode extends AudioNode { + gain: AudioParam; +} + +declare var GainNode: { + prototype: GainNode; + new(): GainNode; +} + +interface Gamepad { + axes: number[]; + buttons: GamepadButton[]; + connected: boolean; + id: string; + index: number; + mapping: string; + timestamp: number; +} + +declare var Gamepad: { + prototype: Gamepad; + new(): Gamepad; +} + +interface GamepadButton { + pressed: boolean; + value: number; +} + +declare var GamepadButton: { + prototype: GamepadButton; + new(): GamepadButton; +} + +interface GamepadEvent extends Event { + gamepad: Gamepad; +} + +declare var GamepadEvent: { + prototype: GamepadEvent; + new(): GamepadEvent; +} + +interface Geolocation { + clearWatch(watchId: number): void; + getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void; + watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number; +} + +declare var Geolocation: { + prototype: Geolocation; + new(): Geolocation; +} + +interface HTMLAllCollection extends HTMLCollection { + namedItem(name: string): Element; +} + +declare var HTMLAllCollection: { + prototype: HTMLAllCollection; + new(): HTMLAllCollection; +} + +interface HTMLAnchorElement extends HTMLElement { + Methods: string; + /** + * Sets or retrieves the character set used to encode the object. + */ + charset: string; + /** + * Sets or retrieves the coordinates of the object. + */ + coords: string; + /** + * Contains the anchor portion of the URL including the hash sign (#). + */ + hash: string; + /** + * Contains the hostname and port values of the URL. + */ + host: string; + /** + * Contains the hostname of a URL. + */ + hostname: string; + /** + * Sets or retrieves a destination URL or an anchor point. + */ + href: string; + /** + * Sets or retrieves the language code of the object. + */ + hreflang: string; + mimeType: string; + /** + * Sets or retrieves the shape of the object. + */ + name: string; + nameProp: string; + /** + * Contains the pathname of the URL. + */ + pathname: string; + /** + * Sets or retrieves the port number associated with a URL. + */ + port: string; + /** + * Contains the protocol of the URL. + */ + protocol: string; + protocolLong: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + rel: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + rev: string; + /** + * Sets or retrieves the substring of the href property that follows the question mark. + */ + search: string; + /** + * Sets or retrieves the shape of the object. + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + /** + * Retrieves or sets the text of the object as a string. + */ + text: string; + type: string; + urn: string; + /** + * Returns a string representation of an object. + */ + toString(): string; +} + +declare var HTMLAnchorElement: { + prototype: HTMLAnchorElement; + new(): HTMLAnchorElement; +} + +interface HTMLAppletElement extends HTMLElement { + /** + * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. + */ + BaseHref: string; + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Gets or sets the optional alternative HTML script to execute if the object fails to load. + */ + altHtml: string; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + */ + archive: string; + border: string; + code: string; + /** + * Sets or retrieves the URL of the component. + */ + codeBase: string; + /** + * Sets or retrieves the Internet media type for the code associated with the object. + */ + codeType: string; + /** + * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned. + */ + contentDocument: Document; + /** + * Sets or retrieves the URL that references the data of the object. + */ + data: string; + /** + * Sets or retrieves a character string that can be used to implement your own declare functionality for the object. + */ + declare: boolean; + form: HTMLFormElement; + /** + * Sets or retrieves the height of the object. + */ + height: string; + hspace: number; + /** + * Sets or retrieves the shape of the object. + */ + name: string; + object: string; + /** + * Sets or retrieves a message to be displayed while an object is loading. + */ + standby: string; + /** + * Returns the content type of the object. + */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + useMap: string; + vspace: number; + width: number; +} + +declare var HTMLAppletElement: { + prototype: HTMLAppletElement; + new(): HTMLAppletElement; +} + +interface HTMLAreaElement extends HTMLElement { + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Sets or retrieves the coordinates of the object. + */ + coords: string; + /** + * Sets or retrieves the subsection of the href property that follows the number sign (#). + */ + hash: string; + /** + * Sets or retrieves the hostname and port number of the location or URL. + */ + host: string; + /** + * Sets or retrieves the host name part of the location or URL. + */ + hostname: string; + /** + * Sets or retrieves a destination URL or an anchor point. + */ + href: string; + /** + * Sets or gets whether clicks in this region cause action. + */ + noHref: boolean; + /** + * Sets or retrieves the file name or path specified by the object. + */ + pathname: string; + /** + * Sets or retrieves the port number associated with a URL. + */ + port: string; + /** + * Sets or retrieves the protocol portion of a URL. + */ + protocol: string; + rel: string; + /** + * Sets or retrieves the substring of the href property that follows the question mark. + */ + search: string; + /** + * Sets or retrieves the shape of the object. + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + /** + * Returns a string representation of an object. + */ + toString(): string; +} + +declare var HTMLAreaElement: { + prototype: HTMLAreaElement; + new(): HTMLAreaElement; +} + +interface HTMLAreasCollection extends HTMLCollection { + /** + * Adds an element to the areas, controlRange, or options collection. + */ + add(element: HTMLElement, before?: HTMLElement | number): void; + /** + * Removes an element from the collection. + */ + remove(index?: number): void; +} + +declare var HTMLAreasCollection: { + prototype: HTMLAreasCollection; + new(): HTMLAreasCollection; +} + +interface HTMLAudioElement extends HTMLMediaElement { +} + +declare var HTMLAudioElement: { + prototype: HTMLAudioElement; + new(): HTMLAudioElement; +} + +interface HTMLBRElement extends HTMLElement { + /** + * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. + */ + clear: string; +} + +declare var HTMLBRElement: { + prototype: HTMLBRElement; + new(): HTMLBRElement; +} + +interface HTMLBaseElement extends HTMLElement { + /** + * Gets or sets the baseline URL on which relative links are based. + */ + href: string; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; +} + +declare var HTMLBaseElement: { + prototype: HTMLBaseElement; + new(): HTMLBaseElement; +} + +interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty { + /** + * Sets or retrieves the current typeface family. + */ + face: string; + /** + * Sets or retrieves the font size of the object. + */ + size: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLBaseFontElement: { + prototype: HTMLBaseFontElement; + new(): HTMLBaseFontElement; +} + +interface HTMLBlockElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + cite: string; + clear: string; + /** + * Sets or retrieves the width of the object. + */ + width: number; +} + +declare var HTMLBlockElement: { + prototype: HTMLBlockElement; + new(): HTMLBlockElement; +} + +interface HTMLBodyElement extends HTMLElement { + aLink: any; + background: string; + bgColor: any; + bgProperties: string; + link: any; + noWrap: boolean; + onafterprint: (ev: Event) => any; + onbeforeprint: (ev: Event) => any; + onbeforeunload: (ev: BeforeUnloadEvent) => any; + onblur: (ev: FocusEvent) => any; + onerror: (ev: Event) => any; + onfocus: (ev: FocusEvent) => any; + onhashchange: (ev: HashChangeEvent) => any; + onload: (ev: Event) => any; + onmessage: (ev: MessageEvent) => any; + onoffline: (ev: Event) => any; + ononline: (ev: Event) => any; + onorientationchange: (ev: Event) => any; + onpagehide: (ev: PageTransitionEvent) => any; + onpageshow: (ev: PageTransitionEvent) => any; + onpopstate: (ev: PopStateEvent) => any; + onresize: (ev: UIEvent) => any; + onstorage: (ev: StorageEvent) => any; + onunload: (ev: Event) => any; + text: any; + vLink: any; + createTextRange(): TextRange; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLBodyElement: { + prototype: HTMLBodyElement; + new(): HTMLBodyElement; +} + +interface HTMLButtonElement extends HTMLElement { + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + */ + formMethod: string; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + */ + formNoValidate: string; + /** + * Overrides the target attribute on a form element. + */ + formTarget: string; + /** + * Sets or retrieves the name of the object. + */ + name: string; + status: any; + /** + * Gets the classification and default behavior of the button. + */ + type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + validity: ValidityState; + /** + * Sets or retrieves the default or selected value of the control. + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Creates a TextRange object for the element. + */ + createTextRange(): TextRange; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; +} + +declare var HTMLButtonElement: { + prototype: HTMLButtonElement; + new(): HTMLButtonElement; +} + +interface HTMLCanvasElement extends HTMLElement { + /** + * Gets or sets the height of a canvas element on a document. + */ + height: number; + /** + * Gets or sets the width of a canvas element on a document. + */ + width: number; + /** + * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. + * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); + */ + getContext(contextId: "2d"): CanvasRenderingContext2D; + getContext(contextId: "experimental-webgl"): WebGLRenderingContext; + getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext; + /** + * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing. + */ + msToBlob(): Blob; + /** + * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. + * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. + */ + toDataURL(type?: string, ...args: any[]): string; +} + +declare var HTMLCanvasElement: { + prototype: HTMLCanvasElement; + new(): HTMLCanvasElement; +} + +interface HTMLCollection { + /** + * Sets or retrieves the number of objects in a collection. + */ + length: number; + /** + * Retrieves an object from various collections. + */ + item(nameOrIndex?: any, optionalIndex?: any): Element; + /** + * Retrieves a select object or an object from an options collection. + */ + namedItem(name: string): Element; + [index: number]: Element; +} + +declare var HTMLCollection: { + prototype: HTMLCollection; + new(): HTMLCollection; +} + +interface HTMLDDElement extends HTMLElement { + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + noWrap: boolean; +} + +declare var HTMLDDElement: { + prototype: HTMLDDElement; + new(): HTMLDDElement; +} + +interface HTMLDListElement extends HTMLElement { + compact: boolean; +} + +declare var HTMLDListElement: { + prototype: HTMLDListElement; + new(): HTMLDListElement; +} + +interface HTMLDTElement extends HTMLElement { + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + noWrap: boolean; +} + +declare var HTMLDTElement: { + prototype: HTMLDTElement; + new(): HTMLDTElement; +} + +interface HTMLDataListElement extends HTMLElement { + options: HTMLCollection; +} + +declare var HTMLDataListElement: { + prototype: HTMLDataListElement; + new(): HTMLDataListElement; +} + +interface HTMLDirectoryElement extends HTMLElement { + compact: boolean; +} + +declare var HTMLDirectoryElement: { + prototype: HTMLDirectoryElement; + new(): HTMLDirectoryElement; +} + +interface HTMLDivElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + noWrap: boolean; +} + +declare var HTMLDivElement: { + prototype: HTMLDivElement; + new(): HTMLDivElement; +} + +interface HTMLDocument extends Document { +} + +declare var HTMLDocument: { + prototype: HTMLDocument; + new(): HTMLDocument; +} + +interface HTMLElement extends Element { + accessKey: string; + children: HTMLCollection; + contentEditable: string; + dataset: DOMStringMap; + dir: string; + draggable: boolean; + hidden: boolean; + hideFocus: boolean; + innerHTML: string; + innerText: string; + isContentEditable: boolean; + lang: string; + offsetHeight: number; + offsetLeft: number; + offsetParent: Element; + offsetTop: number; + offsetWidth: number; + onabort: (ev: Event) => any; + onactivate: (ev: UIEvent) => any; + onbeforeactivate: (ev: UIEvent) => any; + onbeforecopy: (ev: DragEvent) => any; + onbeforecut: (ev: DragEvent) => any; + onbeforedeactivate: (ev: UIEvent) => any; + onbeforepaste: (ev: DragEvent) => any; + onblur: (ev: FocusEvent) => any; + oncanplay: (ev: Event) => any; + oncanplaythrough: (ev: Event) => any; + onchange: (ev: Event) => any; + onclick: (ev: MouseEvent) => any; + oncontextmenu: (ev: PointerEvent) => any; + oncopy: (ev: DragEvent) => any; + oncuechange: (ev: Event) => any; + oncut: (ev: DragEvent) => any; + ondblclick: (ev: MouseEvent) => any; + ondeactivate: (ev: UIEvent) => any; + ondrag: (ev: DragEvent) => any; + ondragend: (ev: DragEvent) => any; + ondragenter: (ev: DragEvent) => any; + ondragleave: (ev: DragEvent) => any; + ondragover: (ev: DragEvent) => any; + ondragstart: (ev: DragEvent) => any; + ondrop: (ev: DragEvent) => any; + ondurationchange: (ev: Event) => any; + onemptied: (ev: Event) => any; + onended: (ev: Event) => any; + onerror: (ev: Event) => any; + onfocus: (ev: FocusEvent) => any; + oninput: (ev: Event) => any; + onkeydown: (ev: KeyboardEvent) => any; + onkeypress: (ev: KeyboardEvent) => any; + onkeyup: (ev: KeyboardEvent) => any; + onload: (ev: Event) => any; + onloadeddata: (ev: Event) => any; + onloadedmetadata: (ev: Event) => any; + onloadstart: (ev: Event) => any; + onmousedown: (ev: MouseEvent) => any; + onmouseenter: (ev: MouseEvent) => any; + onmouseleave: (ev: MouseEvent) => any; + onmousemove: (ev: MouseEvent) => any; + onmouseout: (ev: MouseEvent) => any; + onmouseover: (ev: MouseEvent) => any; + onmouseup: (ev: MouseEvent) => any; + onmousewheel: (ev: MouseWheelEvent) => any; + onmscontentzoom: (ev: UIEvent) => any; + onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any; + onpaste: (ev: DragEvent) => any; + onpause: (ev: Event) => any; + onplay: (ev: Event) => any; + onplaying: (ev: Event) => any; + onprogress: (ev: ProgressEvent) => any; + onratechange: (ev: Event) => any; + onreset: (ev: Event) => any; + onscroll: (ev: UIEvent) => any; + onseeked: (ev: Event) => any; + onseeking: (ev: Event) => any; + onselect: (ev: UIEvent) => any; + onselectstart: (ev: Event) => any; + onstalled: (ev: Event) => any; + onsubmit: (ev: Event) => any; + onsuspend: (ev: Event) => any; + ontimeupdate: (ev: Event) => any; + onvolumechange: (ev: Event) => any; + onwaiting: (ev: Event) => any; + outerHTML: string; + outerText: string; + spellcheck: boolean; + style: CSSStyleDeclaration; + tabIndex: number; + title: string; + blur(): void; + click(): void; + contains(child: HTMLElement): boolean; + dragDrop(): boolean; + focus(): void; + insertAdjacentElement(position: string, insertedElement: Element): Element; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + msGetInputContext(): MSInputMethodContext; + scrollIntoView(top?: boolean): void; + setActive(): void; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLElement: { + prototype: HTMLElement; + new(): HTMLElement; +} + +interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { + /** + * Sets or retrieves the height of the object. + */ + height: string; + hidden: any; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + msPlayToDisabled: boolean; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + msPlayToPreferredSourceUri: string; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + msPlayToPrimary: boolean; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + msPlayToSource: any; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Retrieves the palette used for the embedded document. + */ + palette: string; + /** + * Retrieves the URL of the plug-in used to view an embedded document. + */ + pluginspage: string; + readyState: string; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + src: string; + /** + * Sets or retrieves the height and width units of the embed object. + */ + units: string; + /** + * Sets or retrieves the width of the object. + */ + width: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLEmbedElement: { + prototype: HTMLEmbedElement; + new(): HTMLEmbedElement; +} + +interface HTMLFieldSetElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + validity: ValidityState; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; +} + +declare var HTMLFieldSetElement: { + prototype: HTMLFieldSetElement; + new(): HTMLFieldSetElement; +} + +interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { + /** + * Sets or retrieves the current typeface family. + */ + face: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLFontElement: { + prototype: HTMLFontElement; + new(): HTMLFontElement; +} + +interface HTMLFormElement extends HTMLElement { + /** + * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. + */ + acceptCharset: string; + /** + * Sets or retrieves the URL to which the form content is sent for processing. + */ + action: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + */ + autocomplete: string; + /** + * Retrieves a collection, in source order, of all controls in a given form. + */ + elements: HTMLCollection; + /** + * Sets or retrieves the MIME encoding for the form. + */ + encoding: string; + /** + * Sets or retrieves the encoding type for the form. + */ + enctype: string; + /** + * Sets or retrieves the number of objects in a collection. + */ + length: number; + /** + * Sets or retrieves how to send the form data to the server. + */ + method: string; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Designates a form that is not validated when submitted. + */ + noValidate: boolean; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Retrieves a form object or an object from an elements collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + item(name?: any, index?: any): any; + /** + * Retrieves a form object or an object from an elements collection. + */ + namedItem(name: string): any; + /** + * Fires when the user resets a form. + */ + reset(): void; + /** + * Fires when a FORM is about to be submitted. + */ + submit(): void; + [name: string]: any; +} + +declare var HTMLFormElement: { + prototype: HTMLFormElement; + new(): HTMLFormElement; +} + +interface HTMLFrameElement extends HTMLElement, GetSVGDocument { + /** + * Specifies the properties of a border drawn around an object. + */ + border: string; + /** + * Sets or retrieves the border color of the object. + */ + borderColor: any; + /** + * Retrieves the document object of the page or frame. + */ + contentDocument: Document; + /** + * Retrieves the object of the specified. + */ + contentWindow: Window; + /** + * Sets or retrieves whether to display a border for the frame. + */ + frameBorder: string; + /** + * Sets or retrieves the amount of additional space between the frames. + */ + frameSpacing: any; + /** + * Sets or retrieves the height of the object. + */ + height: string | number; + /** + * Sets or retrieves a URI to a long description of the object. + */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + */ + name: string; + /** + * Sets or retrieves whether the user can resize the frame. + */ + noResize: boolean; + /** + * Raised when the object has been completely received from the server. + */ + onload: (ev: Event) => any; + /** + * Sets or retrieves whether the frame can be scrolled. + */ + scrolling: string; + /** + * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. + */ + security: any; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + src: string; + /** + * Sets or retrieves the width of the object. + */ + width: string | number; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLFrameElement: { + prototype: HTMLFrameElement; + new(): HTMLFrameElement; +} + +interface HTMLFrameSetElement extends HTMLElement { + border: string; + /** + * Sets or retrieves the border color of the object. + */ + borderColor: any; + /** + * Sets or retrieves the frame widths of the object. + */ + cols: string; + /** + * Sets or retrieves whether to display a border for the frame. + */ + frameBorder: string; + /** + * Sets or retrieves the amount of additional space between the frames. + */ + frameSpacing: any; + name: string; + onafterprint: (ev: Event) => any; + onbeforeprint: (ev: Event) => any; + onbeforeunload: (ev: BeforeUnloadEvent) => any; + /** + * Fires when the object loses the input focus. + */ + onblur: (ev: FocusEvent) => any; + onerror: (ev: Event) => any; + /** + * Fires when the object receives focus. + */ + onfocus: (ev: FocusEvent) => any; + onhashchange: (ev: HashChangeEvent) => any; + onload: (ev: Event) => any; + onmessage: (ev: MessageEvent) => any; + onoffline: (ev: Event) => any; + ononline: (ev: Event) => any; + onorientationchange: (ev: Event) => any; + onpagehide: (ev: PageTransitionEvent) => any; + onpageshow: (ev: PageTransitionEvent) => any; + onresize: (ev: UIEvent) => any; + onstorage: (ev: StorageEvent) => any; + onunload: (ev: Event) => any; + /** + * Sets or retrieves the frame heights of the object. + */ + rows: string; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLFrameSetElement: { + prototype: HTMLFrameSetElement; + new(): HTMLFrameSetElement; +} + +interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + /** + * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. + */ + noShade: boolean; + /** + * Sets or retrieves the width of the object. + */ + width: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLHRElement: { + prototype: HTMLHRElement; + new(): HTMLHRElement; +} + +interface HTMLHeadElement extends HTMLElement { + profile: string; +} + +declare var HTMLHeadElement: { + prototype: HTMLHeadElement; + new(): HTMLHeadElement; +} + +interface HTMLHeadingElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + align: string; + clear: string; +} + +declare var HTMLHeadingElement: { + prototype: HTMLHeadingElement; + new(): HTMLHeadingElement; +} + +interface HTMLHtmlElement extends HTMLElement { + /** + * Sets or retrieves the DTD version that governs the current document. + */ + version: string; +} + +declare var HTMLHtmlElement: { + prototype: HTMLHtmlElement; + new(): HTMLHtmlElement; +} + +interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + allowFullscreen: boolean; + /** + * Specifies the properties of a border drawn around an object. + */ + border: string; + /** + * Retrieves the document object of the page or frame. + */ + contentDocument: Document; + /** + * Retrieves the object of the specified. + */ + contentWindow: Window; + /** + * Sets or retrieves whether to display a border for the frame. + */ + frameBorder: string; + /** + * Sets or retrieves the amount of additional space between the frames. + */ + frameSpacing: any; + /** + * Sets or retrieves the height of the object. + */ + height: string; + /** + * Sets or retrieves the horizontal margin for the object. + */ + hspace: number; + /** + * Sets or retrieves a URI to a long description of the object. + */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + */ + name: string; + /** + * Sets or retrieves whether the user can resize the frame. + */ + noResize: boolean; + /** + * Raised when the object has been completely received from the server. + */ + onload: (ev: Event) => any; + sandbox: DOMSettableTokenList; + /** + * Sets or retrieves whether the frame can be scrolled. + */ + scrolling: string; + /** + * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. + */ + security: any; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + src: string; + /** + * Sets or retrieves the vertical margin for the object. + */ + vspace: number; + /** + * Sets or retrieves the width of the object. + */ + width: string; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLIFrameElement: { + prototype: HTMLIFrameElement; + new(): HTMLIFrameElement; +} + +interface HTMLImageElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Specifies the properties of a border drawn around an object. + */ + border: string; + /** + * Retrieves whether the object is fully loaded. + */ + complete: boolean; + crossOrigin: string; + currentSrc: string; + /** + * Sets or retrieves the height of the object. + */ + height: number; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + hspace: number; + /** + * Sets or retrieves whether the image is a server-side image map. + */ + isMap: boolean; + /** + * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. + */ + longDesc: string; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + msPlayToDisabled: boolean; + msPlayToPreferredSourceUri: string; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + msPlayToPrimary: boolean; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + msPlayToSource: any; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * The original height of the image resource before sizing. + */ + naturalHeight: number; + /** + * The original width of the image resource before sizing. + */ + naturalWidth: number; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + srcset: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + useMap: string; + /** + * Sets or retrieves the vertical margin for the object. + */ + vspace: number; + /** + * Sets or retrieves the width of the object. + */ + width: number; + x: number; + y: number; + msGetAsCastingSource(): any; +} + +declare var HTMLImageElement: { + prototype: HTMLImageElement; + new(): HTMLImageElement; + create(): HTMLImageElement; +} + +interface HTMLInputElement extends HTMLElement { + /** + * Sets or retrieves a comma-separated list of content types. + */ + accept: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + */ + autocomplete: string; + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + border: string; + /** + * Sets or retrieves the state of the check box or radio button. + */ + checked: boolean; + /** + * Retrieves whether the object is fully loaded. + */ + complete: boolean; + /** + * Sets or retrieves the state of the check box or radio button. + */ + defaultChecked: boolean; + /** + * Sets or retrieves the initial contents of the object. + */ + defaultValue: string; + disabled: boolean; + /** + * Returns a FileList object on a file type input object. + */ + files: FileList; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + */ + formMethod: string; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + */ + formNoValidate: string; + /** + * Overrides the target attribute on a form element. + */ + formTarget: string; + /** + * Sets or retrieves the height of the object. + */ + height: string; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + hspace: number; + indeterminate: boolean; + /** + * Specifies the ID of a pre-defined datalist of options for an input element. + */ + list: HTMLElement; + /** + * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. + */ + max: string; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + */ + maxLength: number; + /** + * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. + */ + min: string; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + */ + multiple: boolean; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Gets or sets a string containing a regular expression that the user's input must match. + */ + pattern: string; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + */ + placeholder: string; + readOnly: boolean; + /** + * When present, marks an element that can't be submitted without a value. + */ + required: boolean; + /** + * Gets or sets the end position or offset of a text selection. + */ + selectionEnd: number; + /** + * Gets or sets the starting position or offset of a text selection. + */ + selectionStart: number; + size: number; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + status: boolean; + /** + * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. + */ + step: string; + /** + * Returns the content type of the object. + */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + validity: ValidityState; + /** + * Returns the value of the data at the cursor's current position. + */ + value: string; + valueAsDate: Date; + /** + * Returns the input field value as a number. + */ + valueAsNumber: number; + /** + * Sets or retrieves the vertical margin for the object. + */ + vspace: number; + /** + * Sets or retrieves the width of the object. + */ + width: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Creates a TextRange object for the element. + */ + createTextRange(): TextRange; + /** + * Makes the selection equal to the current object. + */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + */ + setSelectionRange(start: number, end: number): void; + /** + * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. + * @param n Value to decrement the value by. + */ + stepDown(n?: number): void; + /** + * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. + * @param n Value to increment the value by. + */ + stepUp(n?: number): void; +} + +declare var HTMLInputElement: { + prototype: HTMLInputElement; + new(): HTMLInputElement; +} + +interface HTMLIsIndexElement extends HTMLElement { + /** + * Sets or retrieves the URL to which the form content is sent for processing. + */ + action: string; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + prompt: string; +} + +declare var HTMLIsIndexElement: { + prototype: HTMLIsIndexElement; + new(): HTMLIsIndexElement; +} + +interface HTMLLIElement extends HTMLElement { + type: string; + /** + * Sets or retrieves the value of a list item. + */ + value: number; +} + +declare var HTMLLIElement: { + prototype: HTMLLIElement; + new(): HTMLLIElement; +} + +interface HTMLLabelElement extends HTMLElement { + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Sets or retrieves the object to which the given label object is assigned. + */ + htmlFor: string; +} + +declare var HTMLLabelElement: { + prototype: HTMLLabelElement; + new(): HTMLLabelElement; +} + +interface HTMLLegendElement extends HTMLElement { + /** + * Retrieves a reference to the form that the object is embedded in. + */ + align: string; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; +} + +declare var HTMLLegendElement: { + prototype: HTMLLegendElement; + new(): HTMLLegendElement; +} + +interface HTMLLinkElement extends HTMLElement, LinkStyle { + /** + * Sets or retrieves the character set used to encode the object. + */ + charset: string; + disabled: boolean; + /** + * Sets or retrieves a destination URL or an anchor point. + */ + href: string; + /** + * Sets or retrieves the language code of the object. + */ + hreflang: string; + /** + * Sets or retrieves the media type. + */ + media: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + rel: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + rev: string; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + /** + * Sets or retrieves the MIME type of the object. + */ + type: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLLinkElement: { + prototype: HTMLLinkElement; + new(): HTMLLinkElement; +} + +interface HTMLMapElement extends HTMLElement { + /** + * Retrieves a collection of the area objects defined for the given map object. + */ + areas: HTMLAreasCollection; + /** + * Sets or retrieves the name of the object. + */ + name: string; +} + +declare var HTMLMapElement: { + prototype: HTMLMapElement; + new(): HTMLMapElement; +} + +interface HTMLMarqueeElement extends HTMLElement { + behavior: string; + bgColor: any; + direction: string; + height: string; + hspace: number; + loop: number; + onbounce: (ev: Event) => any; + onfinish: (ev: Event) => any; + onstart: (ev: Event) => any; + scrollAmount: number; + scrollDelay: number; + trueSpeed: boolean; + vspace: number; + width: string; + start(): void; + stop(): void; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "bounce", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "finish", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "start", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLMarqueeElement: { + prototype: HTMLMarqueeElement; + new(): HTMLMarqueeElement; +} + +interface HTMLMediaElement extends HTMLElement { + /** + * Returns an AudioTrackList object with the audio tracks for a given video element. + */ + audioTracks: AudioTrackList; + /** + * Gets or sets a value that indicates whether to start playing the media automatically. + */ + autoplay: boolean; + /** + * Gets a collection of buffered time ranges. + */ + buffered: TimeRanges; + /** + * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). + */ + controls: boolean; + /** + * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. + */ + currentSrc: string; + /** + * Gets or sets the current playback position, in seconds. + */ + currentTime: number; + defaultMuted: boolean; + /** + * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. + */ + defaultPlaybackRate: number; + /** + * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. + */ + duration: number; + /** + * Gets information about whether the playback has ended or not. + */ + ended: boolean; + /** + * Returns an object representing the current error state of the audio or video element. + */ + error: MediaError; + /** + * Gets or sets a flag to specify whether playback should restart after it completes. + */ + loop: boolean; + /** + * Specifies the purpose of the audio or video media, such as background audio or alerts. + */ + msAudioCategory: string; + /** + * Specifies the output device id that the audio will be sent to. + */ + msAudioDeviceType: string; + msGraphicsTrustStatus: MSGraphicsTrust; + /** + * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element. + */ + msKeys: MSMediaKeys; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + msPlayToDisabled: boolean; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + msPlayToPreferredSourceUri: string; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + msPlayToPrimary: boolean; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + msPlayToSource: any; + /** + * Specifies whether or not to enable low-latency playback on the media element. + */ + msRealTime: boolean; + /** + * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. + */ + muted: boolean; + /** + * Gets the current network activity for the element. + */ + networkState: number; + onmsneedkey: (ev: MSMediaKeyNeededEvent) => any; + /** + * Gets a flag that specifies whether playback is paused. + */ + paused: boolean; + /** + * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. + */ + playbackRate: number; + /** + * Gets TimeRanges for the current media resource that has been played. + */ + played: TimeRanges; + /** + * Gets or sets the current playback position, in seconds. + */ + preload: string; + readyState: any; + /** + * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. + */ + seekable: TimeRanges; + /** + * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource. + */ + seeking: boolean; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + textTracks: TextTrackList; + videoTracks: VideoTrackList; + /** + * Gets or sets the volume level for audio portions of the media element. + */ + volume: number; + addTextTrack(kind: string, label?: string, language?: string): TextTrack; + /** + * Returns a string that specifies whether the client can play a given media resource type. + */ + canPlayType(type: string): string; + /** + * Fires immediately after the client loads the object. + */ + load(): void; + /** + * Clears all effects from the media pipeline. + */ + msClearEffects(): void; + msGetAsCastingSource(): any; + /** + * Inserts the specified audio effect into media pipeline. + */ + msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; + msSetMediaKeys(mediaKeys: MSMediaKeys): void; + /** + * Specifies the media protection manager for a given media pipeline. + */ + msSetMediaProtectionManager(mediaProtectionManager?: any): void; + /** + * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. + */ + pause(): void; + /** + * Loads and starts playback of a media resource. + */ + play(): void; + HAVE_CURRENT_DATA: number; + HAVE_ENOUGH_DATA: number; + HAVE_FUTURE_DATA: number; + HAVE_METADATA: number; + HAVE_NOTHING: number; + NETWORK_EMPTY: number; + NETWORK_IDLE: number; + NETWORK_LOADING: number; + NETWORK_NO_SOURCE: number; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLMediaElement: { + prototype: HTMLMediaElement; + new(): HTMLMediaElement; + HAVE_CURRENT_DATA: number; + HAVE_ENOUGH_DATA: number; + HAVE_FUTURE_DATA: number; + HAVE_METADATA: number; + HAVE_NOTHING: number; + NETWORK_EMPTY: number; + NETWORK_IDLE: number; + NETWORK_LOADING: number; + NETWORK_NO_SOURCE: number; +} + +interface HTMLMenuElement extends HTMLElement { + compact: boolean; + type: string; +} + +declare var HTMLMenuElement: { + prototype: HTMLMenuElement; + new(): HTMLMenuElement; +} + +interface HTMLMetaElement extends HTMLElement { + /** + * Sets or retrieves the character set used to encode the object. + */ + charset: string; + /** + * Gets or sets meta-information to associate with httpEquiv or name. + */ + content: string; + /** + * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. + */ + httpEquiv: string; + /** + * Sets or retrieves the value specified in the content attribute of the meta object. + */ + name: string; + /** + * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. + */ + scheme: string; + /** + * Sets or retrieves the URL property that will be loaded after the specified time has elapsed. + */ + url: string; +} + +declare var HTMLMetaElement: { + prototype: HTMLMetaElement; + new(): HTMLMetaElement; +} + +interface HTMLModElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + cite: string; + /** + * Sets or retrieves the date and time of a modification to the object. + */ + dateTime: string; +} + +declare var HTMLModElement: { + prototype: HTMLModElement; + new(): HTMLModElement; +} + +interface HTMLNextIdElement extends HTMLElement { + n: string; +} + +declare var HTMLNextIdElement: { + prototype: HTMLNextIdElement; + new(): HTMLNextIdElement; +} + +interface HTMLOListElement extends HTMLElement { + compact: boolean; + /** + * The starting number. + */ + start: number; + type: string; +} + +declare var HTMLOListElement: { + prototype: HTMLOListElement; + new(): HTMLOListElement; +} + +interface HTMLObjectElement extends HTMLElement, GetSVGDocument { + /** + * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. + */ + BaseHref: string; + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Gets or sets the optional alternative HTML script to execute if the object fails to load. + */ + altHtml: string; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + */ + archive: string; + border: string; + /** + * Sets or retrieves the URL of the file containing the compiled Java class. + */ + code: string; + /** + * Sets or retrieves the URL of the component. + */ + codeBase: string; + /** + * Sets or retrieves the Internet media type for the code associated with the object. + */ + codeType: string; + /** + * Retrieves the document object of the page or frame. + */ + contentDocument: Document; + /** + * Sets or retrieves the URL that references the data of the object. + */ + data: string; + declare: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Sets or retrieves the height of the object. + */ + height: string; + hspace: number; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + msPlayToDisabled: boolean; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + msPlayToPreferredSourceUri: string; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + msPlayToPrimary: boolean; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + msPlayToSource: any; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Retrieves the contained object. + */ + object: any; + readyState: number; + /** + * Sets or retrieves a message to be displayed while an object is loading. + */ + standby: string; + /** + * Sets or retrieves the MIME type of the object. + */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + validity: ValidityState; + vspace: number; + /** + * Sets or retrieves the width of the object. + */ + width: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLObjectElement: { + prototype: HTMLObjectElement; + new(): HTMLObjectElement; +} + +interface HTMLOptGroupElement extends HTMLElement { + /** + * Sets or retrieves the status of an option. + */ + defaultSelected: boolean; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Sets or retrieves the ordinal position of an option in a list box. + */ + index: number; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + */ + label: string; + /** + * Sets or retrieves whether the option in the list box is the default item. + */ + selected: boolean; + /** + * Sets or retrieves the text string specified by the option tag. + */ + text: string; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + value: string; +} + +declare var HTMLOptGroupElement: { + prototype: HTMLOptGroupElement; + new(): HTMLOptGroupElement; +} + +interface HTMLOptionElement extends HTMLElement { + /** + * Sets or retrieves the status of an option. + */ + defaultSelected: boolean; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Sets or retrieves the ordinal position of an option in a list box. + */ + index: number; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + */ + label: string; + /** + * Sets or retrieves whether the option in the list box is the default item. + */ + selected: boolean; + /** + * Sets or retrieves the text string specified by the option tag. + */ + text: string; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + value: string; +} + +declare var HTMLOptionElement: { + prototype: HTMLOptionElement; + new(): HTMLOptionElement; + create(): HTMLOptionElement; +} + +interface HTMLParagraphElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + clear: string; +} + +declare var HTMLParagraphElement: { + prototype: HTMLParagraphElement; + new(): HTMLParagraphElement; +} + +interface HTMLParamElement extends HTMLElement { + /** + * Sets or retrieves the name of an input parameter for an element. + */ + name: string; + /** + * Sets or retrieves the content type of the resource designated by the value attribute. + */ + type: string; + /** + * Sets or retrieves the value of an input parameter for an element. + */ + value: string; + /** + * Sets or retrieves the data type of the value attribute. + */ + valueType: string; +} + +declare var HTMLParamElement: { + prototype: HTMLParamElement; + new(): HTMLParamElement; +} + +interface HTMLPhraseElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + cite: string; + /** + * Sets or retrieves the date and time of a modification to the object. + */ + dateTime: string; +} + +declare var HTMLPhraseElement: { + prototype: HTMLPhraseElement; + new(): HTMLPhraseElement; +} + +interface HTMLPreElement extends HTMLElement { + /** + * Indicates a citation by rendering text in italic type. + */ + cite: string; + clear: string; + /** + * Sets or gets a value that you can use to implement your own width functionality for the object. + */ + width: number; +} + +declare var HTMLPreElement: { + prototype: HTMLPreElement; + new(): HTMLPreElement; +} + +interface HTMLProgressElement extends HTMLElement { + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Defines the maximum, or "done" value for a progress element. + */ + max: number; + /** + * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). + */ + position: number; + /** + * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. + */ + value: number; +} + +declare var HTMLProgressElement: { + prototype: HTMLProgressElement; + new(): HTMLProgressElement; +} + +interface HTMLQuoteElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + cite: string; + /** + * Sets or retrieves the date and time of a modification to the object. + */ + dateTime: string; +} + +declare var HTMLQuoteElement: { + prototype: HTMLQuoteElement; + new(): HTMLQuoteElement; +} + +interface HTMLScriptElement extends HTMLElement { + async: boolean; + /** + * Sets or retrieves the character set used to encode the object. + */ + charset: string; + /** + * Sets or retrieves the status of the script. + */ + defer: boolean; + /** + * Sets or retrieves the event for which the script is written. + */ + event: string; + /** + * Sets or retrieves the object that is bound to the event script. + */ + htmlFor: string; + /** + * Retrieves the URL to an external file that contains the source code or data. + */ + src: string; + /** + * Retrieves or sets the text of the object as a string. + */ + text: string; + /** + * Sets or retrieves the MIME type for the associated scripting engine. + */ + type: string; +} + +declare var HTMLScriptElement: { + prototype: HTMLScriptElement; + new(): HTMLScriptElement; +} + +interface HTMLSelectElement extends HTMLElement { + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Sets or retrieves the number of objects in a collection. + */ + length: number; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + */ + multiple: boolean; + /** + * Sets or retrieves the name of the object. + */ + name: string; + options: HTMLSelectElement; + /** + * When present, marks an element that can't be submitted without a value. + */ + required: boolean; + /** + * Sets or retrieves the index of the selected option in a select object. + */ + selectedIndex: number; + /** + * Sets or retrieves the number of rows in the list box. + */ + size: number; + /** + * Retrieves the type of select control based on the value of the MULTIPLE attribute. + */ + type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + validity: ValidityState; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + willValidate: boolean; + /** + * Adds an element to the areas, controlRange, or options collection. + * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. + * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. + */ + add(element: HTMLElement, before?: HTMLElement | number): void; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Retrieves a select object or an object from an options collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + item(name?: any, index?: any): any; + /** + * Retrieves a select object or an object from an options collection. + * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. + */ + namedItem(name: string): any; + /** + * Removes an element from the collection. + * @param index Number that specifies the zero-based index of the element to remove from the collection. + */ + remove(index?: number): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + [name: string]: any; +} + +declare var HTMLSelectElement: { + prototype: HTMLSelectElement; + new(): HTMLSelectElement; +} + +interface HTMLSourceElement extends HTMLElement { + /** + * Gets or sets the intended media type of the media source. + */ + media: string; + msKeySystem: string; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + /** + * Gets or sets the MIME type of a media resource. + */ + type: string; +} + +declare var HTMLSourceElement: { + prototype: HTMLSourceElement; + new(): HTMLSourceElement; +} + +interface HTMLSpanElement extends HTMLElement { +} + +declare var HTMLSpanElement: { + prototype: HTMLSpanElement; + new(): HTMLSpanElement; +} + +interface HTMLStyleElement extends HTMLElement, LinkStyle { + /** + * Sets or retrieves the media type. + */ + media: string; + /** + * Retrieves the CSS language in which the style sheet is written. + */ + type: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLStyleElement: { + prototype: HTMLStyleElement; + new(): HTMLStyleElement; +} + +interface HTMLTableCaptionElement extends HTMLElement { + /** + * Sets or retrieves the alignment of the caption or legend. + */ + align: string; + /** + * Sets or retrieves whether the caption appears at the top or bottom of the table. + */ + vAlign: string; +} + +declare var HTMLTableCaptionElement: { + prototype: HTMLTableCaptionElement; + new(): HTMLTableCaptionElement; +} + +interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment { + /** + * Sets or retrieves abbreviated text for the object. + */ + abbr: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + /** + * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. + */ + axis: string; + bgColor: any; + /** + * Retrieves the position of the object in the cells collection of a row. + */ + cellIndex: number; + /** + * Sets or retrieves the number columns in the table that the object should span. + */ + colSpan: number; + /** + * Sets or retrieves a list of header cells that provide information for the object. + */ + headers: string; + /** + * Sets or retrieves the height of the object. + */ + height: any; + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + noWrap: boolean; + /** + * Sets or retrieves how many rows in a table the cell should span. + */ + rowSpan: number; + /** + * Sets or retrieves the group of cells in a table to which the object's information applies. + */ + scope: string; + /** + * Sets or retrieves the width of the object. + */ + width: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLTableCellElement: { + prototype: HTMLTableCellElement; + new(): HTMLTableCellElement; +} + +interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment { + /** + * Sets or retrieves the alignment of the object relative to the display or table. + */ + align: string; + /** + * Sets or retrieves the number of columns in the group. + */ + span: number; + /** + * Sets or retrieves the width of the object. + */ + width: any; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLTableColElement: { + prototype: HTMLTableColElement; + new(): HTMLTableColElement; +} + +interface HTMLTableDataCellElement extends HTMLTableCellElement { +} + +declare var HTMLTableDataCellElement: { + prototype: HTMLTableDataCellElement; + new(): HTMLTableDataCellElement; +} + +interface HTMLTableElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + align: string; + bgColor: any; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + border: string; + /** + * Sets or retrieves the border color of the object. + */ + borderColor: any; + /** + * Retrieves the caption object of a table. + */ + caption: HTMLTableCaptionElement; + /** + * Sets or retrieves the amount of space between the border of the cell and the content of the cell. + */ + cellPadding: string; + /** + * Sets or retrieves the amount of space between cells in a table. + */ + cellSpacing: string; + /** + * Sets or retrieves the number of columns in the table. + */ + cols: number; + /** + * Sets or retrieves the way the border frame around the table is displayed. + */ + frame: string; + /** + * Sets or retrieves the height of the object. + */ + height: any; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + rows: HTMLCollection; + /** + * Sets or retrieves which dividing lines (inner borders) are displayed. + */ + rules: string; + /** + * Sets or retrieves a description and/or structure of the object. + */ + summary: string; + /** + * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. + */ + tBodies: HTMLCollection; + /** + * Retrieves the tFoot object of the table. + */ + tFoot: HTMLTableSectionElement; + /** + * Retrieves the tHead object of the table. + */ + tHead: HTMLTableSectionElement; + /** + * Sets or retrieves the width of the object. + */ + width: string; + /** + * Creates an empty caption element in the table. + */ + createCaption(): HTMLElement; + /** + * Creates an empty tBody element in the table. + */ + createTBody(): HTMLElement; + /** + * Creates an empty tFoot element in the table. + */ + createTFoot(): HTMLElement; + /** + * Returns the tHead element object if successful, or null otherwise. + */ + createTHead(): HTMLElement; + /** + * Deletes the caption element and its contents from the table. + */ + deleteCaption(): void; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + deleteRow(index?: number): void; + /** + * Deletes the tFoot element and its contents from the table. + */ + deleteTFoot(): void; + /** + * Deletes the tHead element and its contents from the table. + */ + deleteTHead(): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + insertRow(index?: number): HTMLElement; +} + +declare var HTMLTableElement: { + prototype: HTMLTableElement; + new(): HTMLTableElement; +} + +interface HTMLTableHeaderCellElement extends HTMLTableCellElement { + /** + * Sets or retrieves the group of cells in a table to which the object's information applies. + */ + scope: string; +} + +declare var HTMLTableHeaderCellElement: { + prototype: HTMLTableHeaderCellElement; + new(): HTMLTableHeaderCellElement; +} + +interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + align: string; + bgColor: any; + /** + * Retrieves a collection of all cells in the table row. + */ + cells: HTMLCollection; + /** + * Sets or retrieves the height of the object. + */ + height: any; + /** + * Retrieves the position of the object in the rows collection for the table. + */ + rowIndex: number; + /** + * Retrieves the position of the object in the collection. + */ + sectionRowIndex: number; + /** + * Removes the specified cell from the table row, as well as from the cells collection. + * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. + */ + deleteCell(index?: number): void; + /** + * Creates a new cell in the table row, and adds the cell to the cells collection. + * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. + */ + insertCell(index?: number): HTMLElement; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLTableRowElement: { + prototype: HTMLTableRowElement; + new(): HTMLTableRowElement; +} + +interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + align: string; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + rows: HTMLCollection; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + deleteRow(index?: number): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + insertRow(index?: number): HTMLElement; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLTableSectionElement: { + prototype: HTMLTableSectionElement; + new(): HTMLTableSectionElement; +} + +interface HTMLTextAreaElement extends HTMLElement { + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + /** + * Sets or retrieves the width of the object. + */ + cols: number; + /** + * Sets or retrieves the initial contents of the object. + */ + defaultValue: string; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + form: HTMLFormElement; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + */ + maxLength: number; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + */ + placeholder: string; + /** + * Sets or retrieves the value indicated whether the content of the object is read-only. + */ + readOnly: boolean; + /** + * When present, marks an element that can't be submitted without a value. + */ + required: boolean; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + rows: number; + /** + * Gets or sets the end position or offset of a text selection. + */ + selectionEnd: number; + /** + * Gets or sets the starting position or offset of a text selection. + */ + selectionStart: number; + /** + * Sets or retrieves the value indicating whether the control is selected. + */ + status: any; + /** + * Retrieves the type of control. + */ + type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + validity: ValidityState; + /** + * Retrieves or sets the text in the entry field of the textArea element. + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + willValidate: boolean; + /** + * Sets or retrieves how to handle wordwrapping in the object. + */ + wrap: string; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Creates a TextRange object for the element. + */ + createTextRange(): TextRange; + /** + * Highlights the input area of a form element. + */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + */ + setSelectionRange(start: number, end: number): void; +} + +declare var HTMLTextAreaElement: { + prototype: HTMLTextAreaElement; + new(): HTMLTextAreaElement; +} + +interface HTMLTitleElement extends HTMLElement { + /** + * Retrieves or sets the text of the object as a string. + */ + text: string; +} + +declare var HTMLTitleElement: { + prototype: HTMLTitleElement; + new(): HTMLTitleElement; +} + +interface HTMLTrackElement extends HTMLElement { + default: boolean; + kind: string; + label: string; + readyState: number; + src: string; + srclang: string; + track: TextTrack; + ERROR: number; + LOADED: number; + LOADING: number; + NONE: number; +} + +declare var HTMLTrackElement: { + prototype: HTMLTrackElement; + new(): HTMLTrackElement; + ERROR: number; + LOADED: number; + LOADING: number; + NONE: number; +} + +interface HTMLUListElement extends HTMLElement { + compact: boolean; + type: string; +} + +declare var HTMLUListElement: { + prototype: HTMLUListElement; + new(): HTMLUListElement; +} + +interface HTMLUnknownElement extends HTMLElement { +} + +declare var HTMLUnknownElement: { + prototype: HTMLUnknownElement; + new(): HTMLUnknownElement; +} + +interface HTMLVideoElement extends HTMLMediaElement { + /** + * Gets or sets the height of the video element. + */ + height: number; + msHorizontalMirror: boolean; + msIsLayoutOptimalForPlayback: boolean; + msIsStereo3D: boolean; + msStereo3DPackingMode: string; + msStereo3DRenderMode: string; + msZoom: boolean; + onMSVideoFormatChanged: (ev: Event) => any; + onMSVideoFrameStepCompleted: (ev: Event) => any; + onMSVideoOptimalLayoutChanged: (ev: Event) => any; + /** + * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. + */ + poster: string; + /** + * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. + */ + videoHeight: number; + /** + * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. + */ + videoWidth: number; + webkitDisplayingFullscreen: boolean; + webkitSupportsFullscreen: boolean; + /** + * Gets or sets the width of the video element. + */ + width: number; + getVideoPlaybackQuality(): VideoPlaybackQuality; + msFrameStep(forward: boolean): void; + msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; + msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void; + webkitEnterFullScreen(): void; + webkitEnterFullscreen(): void; + webkitExitFullScreen(): void; + webkitExitFullscreen(): void; + addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSVideoFormatChanged", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "MSVideoFrameStepCompleted", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "MSVideoOptimalLayoutChanged", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void; + addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var HTMLVideoElement: { + prototype: HTMLVideoElement; + new(): HTMLVideoElement; +} + +interface HashChangeEvent extends Event { + newURL: string; + oldURL: string; +} + +declare var HashChangeEvent: { + prototype: HashChangeEvent; + new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; +} + +interface History { + length: number; + state: any; + back(distance?: any): void; + forward(distance?: any): void; + go(delta?: any): void; + pushState(statedata: any, title?: string, url?: string): void; + replaceState(statedata: any, title?: string, url?: string): void; +} + +declare var History: { + prototype: History; + new(): History; +} + +interface IDBCursor { + direction: string; + key: any; + primaryKey: any; + source: any; + advance(count: number): void; + continue(key?: any): void; + delete(): IDBRequest; + update(value: any): IDBRequest; + NEXT: string; + NEXT_NO_DUPLICATE: string; + PREV: string; + PREV_NO_DUPLICATE: string; +} + +declare var IDBCursor: { + prototype: IDBCursor; + new(): IDBCursor; + NEXT: string; + NEXT_NO_DUPLICATE: string; + PREV: string; + PREV_NO_DUPLICATE: string; +} + +interface IDBCursorWithValue extends IDBCursor { + value: any; +} + +declare var IDBCursorWithValue: { + prototype: IDBCursorWithValue; + new(): IDBCursorWithValue; +} + +interface IDBDatabase extends EventTarget { + name: string; + objectStoreNames: DOMStringList; + onabort: (ev: Event) => any; + onerror: (ev: Event) => any; + version: string; + close(): void; + createObjectStore(name: string, optionalParameters?: any): IDBObjectStore; + deleteObjectStore(name: string): void; + transaction(storeNames: any, mode?: string): IDBTransaction; + addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var IDBDatabase: { + prototype: IDBDatabase; + new(): IDBDatabase; +} + +interface IDBFactory { + cmp(first: any, second: any): number; + deleteDatabase(name: string): IDBOpenDBRequest; + open(name: string, version?: number): IDBOpenDBRequest; +} + +declare var IDBFactory: { + prototype: IDBFactory; + new(): IDBFactory; +} + +interface IDBIndex { + keyPath: string; + name: string; + objectStore: IDBObjectStore; + unique: boolean; + count(key?: any): IDBRequest; + get(key: any): IDBRequest; + getKey(key: any): IDBRequest; + openCursor(range?: IDBKeyRange, direction?: string): IDBRequest; + openKeyCursor(range?: IDBKeyRange, direction?: string): IDBRequest; +} + +declare var IDBIndex: { + prototype: IDBIndex; + new(): IDBIndex; +} + +interface IDBKeyRange { + lower: any; + lowerOpen: boolean; + upper: any; + upperOpen: boolean; +} + +declare var IDBKeyRange: { + prototype: IDBKeyRange; + new(): IDBKeyRange; + bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; + lowerBound(bound: any, open?: boolean): IDBKeyRange; + only(value: any): IDBKeyRange; + upperBound(bound: any, open?: boolean): IDBKeyRange; +} + +interface IDBObjectStore { + indexNames: DOMStringList; + keyPath: string; + name: string; + transaction: IDBTransaction; + add(value: any, key?: any): IDBRequest; + clear(): IDBRequest; + count(key?: any): IDBRequest; + createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex; + delete(key: any): IDBRequest; + deleteIndex(indexName: string): void; + get(key: any): IDBRequest; + index(name: string): IDBIndex; + openCursor(range?: any, direction?: string): IDBRequest; + put(value: any, key?: any): IDBRequest; +} + +declare var IDBObjectStore: { + prototype: IDBObjectStore; + new(): IDBObjectStore; +} + +interface IDBOpenDBRequest extends IDBRequest { + onblocked: (ev: Event) => any; + onupgradeneeded: (ev: IDBVersionChangeEvent) => any; + addEventListener(type: "blocked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "upgradeneeded", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var IDBOpenDBRequest: { + prototype: IDBOpenDBRequest; + new(): IDBOpenDBRequest; +} + +interface IDBRequest extends EventTarget { + error: DOMError; + onerror: (ev: Event) => any; + onsuccess: (ev: Event) => any; + readyState: string; + result: any; + source: any; + transaction: IDBTransaction; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var IDBRequest: { + prototype: IDBRequest; + new(): IDBRequest; +} + +interface IDBTransaction extends EventTarget { + db: IDBDatabase; + error: DOMError; + mode: string; + onabort: (ev: Event) => any; + oncomplete: (ev: Event) => any; + onerror: (ev: Event) => any; + abort(): void; + objectStore(name: string): IDBObjectStore; + READ_ONLY: string; + READ_WRITE: string; + VERSION_CHANGE: string; + addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var IDBTransaction: { + prototype: IDBTransaction; + new(): IDBTransaction; + READ_ONLY: string; + READ_WRITE: string; + VERSION_CHANGE: string; +} + +interface IDBVersionChangeEvent extends Event { + newVersion: number; + oldVersion: number; +} + +declare var IDBVersionChangeEvent: { + prototype: IDBVersionChangeEvent; + new(): IDBVersionChangeEvent; +} + +interface ImageData { + data: number[]; + height: number; + width: number; +} + +declare var ImageData: { + prototype: ImageData; + new(width: number, height: number): ImageData; + new(array: Uint8ClampedArray, width: number, height: number): ImageData; +} + +interface KeyboardEvent extends UIEvent { + altKey: boolean; + char: string; + charCode: number; + ctrlKey: boolean; + key: string; + keyCode: number; + locale: string; + location: number; + metaKey: boolean; + repeat: boolean; + shiftKey: boolean; + which: number; + getModifierState(keyArg: string): boolean; + initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void; + DOM_KEY_LOCATION_JOYSTICK: number; + DOM_KEY_LOCATION_LEFT: number; + DOM_KEY_LOCATION_MOBILE: number; + DOM_KEY_LOCATION_NUMPAD: number; + DOM_KEY_LOCATION_RIGHT: number; + DOM_KEY_LOCATION_STANDARD: number; +} + +declare var KeyboardEvent: { + prototype: KeyboardEvent; + new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; + DOM_KEY_LOCATION_JOYSTICK: number; + DOM_KEY_LOCATION_LEFT: number; + DOM_KEY_LOCATION_MOBILE: number; + DOM_KEY_LOCATION_NUMPAD: number; + DOM_KEY_LOCATION_RIGHT: number; + DOM_KEY_LOCATION_STANDARD: number; +} + +interface Location { + hash: string; + host: string; + hostname: string; + href: string; + origin: string; + pathname: string; + port: string; + protocol: string; + search: string; + assign(url: string): void; + reload(forcedReload?: boolean): void; + replace(url: string): void; + toString(): string; +} + +declare var Location: { + prototype: Location; + new(): Location; +} + +interface LongRunningScriptDetectedEvent extends Event { + executionTime: number; + stopPageScriptExecution: boolean; +} + +declare var LongRunningScriptDetectedEvent: { + prototype: LongRunningScriptDetectedEvent; + new(): LongRunningScriptDetectedEvent; +} + +interface MSApp { + clearTemporaryWebDataAsync(): MSAppAsyncOperation; + createBlobFromRandomAccessStream(type: string, seeker: any): Blob; + createDataPackage(object: any): any; + createDataPackageFromSelection(): any; + createFileFromStorageFile(storageFile: any): File; + createStreamFromInputStream(type: string, inputStream: any): MSStream; + execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void; + execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any; + getCurrentPriority(): string; + getHtmlPrintDocumentSourceAsync(htmlDoc: any): any; + getViewId(view: any): any; + isTaskScheduledAtPriorityOrHigher(priority: string): boolean; + pageHandlesAllApplicationActivations(enabled: boolean): void; + suppressSubdownloadCredentialPrompts(suppress: boolean): void; + terminateApp(exceptionObject: any): void; + CURRENT: string; + HIGH: string; + IDLE: string; + NORMAL: string; +} +declare var MSApp: MSApp; + +interface MSAppAsyncOperation extends EventTarget { + error: DOMError; + oncomplete: (ev: Event) => any; + onerror: (ev: Event) => any; + readyState: number; + result: any; + start(): void; + COMPLETED: number; + ERROR: number; + STARTED: number; + addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var MSAppAsyncOperation: { + prototype: MSAppAsyncOperation; + new(): MSAppAsyncOperation; + COMPLETED: number; + ERROR: number; + STARTED: number; +} + +interface MSBlobBuilder { + append(data: any, endings?: string): void; + getBlob(contentType?: string): Blob; +} + +declare var MSBlobBuilder: { + prototype: MSBlobBuilder; + new(): MSBlobBuilder; +} + +interface MSCSSMatrix { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; + inverse(): MSCSSMatrix; + multiply(secondMatrix: MSCSSMatrix): MSCSSMatrix; + rotate(angleX: number, angleY?: number, angleZ?: number): MSCSSMatrix; + rotateAxisAngle(x: number, y: number, z: number, angle: number): MSCSSMatrix; + scale(scaleX: number, scaleY?: number, scaleZ?: number): MSCSSMatrix; + setMatrixValue(value: string): void; + skewX(angle: number): MSCSSMatrix; + skewY(angle: number): MSCSSMatrix; + toString(): string; + translate(x: number, y: number, z?: number): MSCSSMatrix; +} + +declare var MSCSSMatrix: { + prototype: MSCSSMatrix; + new(text?: string): MSCSSMatrix; +} + +interface MSGesture { + target: Element; + addPointer(pointerId: number): void; + stop(): void; +} + +declare var MSGesture: { + prototype: MSGesture; + new(): MSGesture; +} + +interface MSGestureEvent extends UIEvent { + clientX: number; + clientY: number; + expansion: number; + gestureObject: any; + hwTimestamp: number; + offsetX: number; + offsetY: number; + rotation: number; + scale: number; + screenX: number; + screenY: number; + translationX: number; + translationY: number; + velocityAngular: number; + velocityExpansion: number; + velocityX: number; + velocityY: number; + initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void; + MSGESTURE_FLAG_BEGIN: number; + MSGESTURE_FLAG_CANCEL: number; + MSGESTURE_FLAG_END: number; + MSGESTURE_FLAG_INERTIA: number; + MSGESTURE_FLAG_NONE: number; +} + +declare var MSGestureEvent: { + prototype: MSGestureEvent; + new(): MSGestureEvent; + MSGESTURE_FLAG_BEGIN: number; + MSGESTURE_FLAG_CANCEL: number; + MSGESTURE_FLAG_END: number; + MSGESTURE_FLAG_INERTIA: number; + MSGESTURE_FLAG_NONE: number; +} + +interface MSGraphicsTrust { + constrictionActive: boolean; + status: string; +} + +declare var MSGraphicsTrust: { + prototype: MSGraphicsTrust; + new(): MSGraphicsTrust; +} + +interface MSHTMLWebViewElement extends HTMLElement { + canGoBack: boolean; + canGoForward: boolean; + containsFullScreenElement: boolean; + documentTitle: string; + height: number; + settings: MSWebViewSettings; + src: string; + width: number; + addWebAllowedObject(name: string, applicationObject: any): void; + buildLocalStreamUri(contentIdentifier: string, relativePath: string): string; + capturePreviewToBlobAsync(): MSWebViewAsyncOperation; + captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation; + getDeferredPermissionRequestById(id: number): DeferredPermissionRequest; + getDeferredPermissionRequests(): DeferredPermissionRequest[]; + goBack(): void; + goForward(): void; + invokeScriptAsync(scriptName: string, ...args: any[]): MSWebViewAsyncOperation; + navigate(uri: string): void; + navigateToLocalStreamUri(source: string, streamResolver: any): void; + navigateToString(contents: string): void; + navigateWithHttpRequestMessage(requestMessage: any): void; + refresh(): void; + stop(): void; +} + +declare var MSHTMLWebViewElement: { + prototype: MSHTMLWebViewElement; + new(): MSHTMLWebViewElement; +} + +interface MSInputMethodContext extends EventTarget { + compositionEndOffset: number; + compositionStartOffset: number; + oncandidatewindowhide: (ev: Event) => any; + oncandidatewindowshow: (ev: Event) => any; + oncandidatewindowupdate: (ev: Event) => any; + target: HTMLElement; + getCandidateWindowClientRect(): ClientRect; + getCompositionAlternatives(): string[]; + hasComposition(): boolean; + isCandidateWindowVisible(): boolean; + addEventListener(type: "MSCandidateWindowHide", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "MSCandidateWindowShow", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "MSCandidateWindowUpdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var MSInputMethodContext: { + prototype: MSInputMethodContext; + new(): MSInputMethodContext; +} + +interface MSManipulationEvent extends UIEvent { + currentState: number; + inertiaDestinationX: number; + inertiaDestinationY: number; + lastState: number; + initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, currentState: number): void; + MS_MANIPULATION_STATE_ACTIVE: number; + MS_MANIPULATION_STATE_CANCELLED: number; + MS_MANIPULATION_STATE_COMMITTED: number; + MS_MANIPULATION_STATE_DRAGGING: number; + MS_MANIPULATION_STATE_INERTIA: number; + MS_MANIPULATION_STATE_PRESELECT: number; + MS_MANIPULATION_STATE_SELECTING: number; + MS_MANIPULATION_STATE_STOPPED: number; +} + +declare var MSManipulationEvent: { + prototype: MSManipulationEvent; + new(): MSManipulationEvent; + MS_MANIPULATION_STATE_ACTIVE: number; + MS_MANIPULATION_STATE_CANCELLED: number; + MS_MANIPULATION_STATE_COMMITTED: number; + MS_MANIPULATION_STATE_DRAGGING: number; + MS_MANIPULATION_STATE_INERTIA: number; + MS_MANIPULATION_STATE_PRESELECT: number; + MS_MANIPULATION_STATE_SELECTING: number; + MS_MANIPULATION_STATE_STOPPED: number; +} + +interface MSMediaKeyError { + code: number; + systemCode: number; + MS_MEDIA_KEYERR_CLIENT: number; + MS_MEDIA_KEYERR_DOMAIN: number; + MS_MEDIA_KEYERR_HARDWARECHANGE: number; + MS_MEDIA_KEYERR_OUTPUT: number; + MS_MEDIA_KEYERR_SERVICE: number; + MS_MEDIA_KEYERR_UNKNOWN: number; +} + +declare var MSMediaKeyError: { + prototype: MSMediaKeyError; + new(): MSMediaKeyError; + MS_MEDIA_KEYERR_CLIENT: number; + MS_MEDIA_KEYERR_DOMAIN: number; + MS_MEDIA_KEYERR_HARDWARECHANGE: number; + MS_MEDIA_KEYERR_OUTPUT: number; + MS_MEDIA_KEYERR_SERVICE: number; + MS_MEDIA_KEYERR_UNKNOWN: number; +} + +interface MSMediaKeyMessageEvent extends Event { + destinationURL: string; + message: Uint8Array; +} + +declare var MSMediaKeyMessageEvent: { + prototype: MSMediaKeyMessageEvent; + new(): MSMediaKeyMessageEvent; +} + +interface MSMediaKeyNeededEvent extends Event { + initData: Uint8Array; +} + +declare var MSMediaKeyNeededEvent: { + prototype: MSMediaKeyNeededEvent; + new(): MSMediaKeyNeededEvent; +} + +interface MSMediaKeySession extends EventTarget { + error: MSMediaKeyError; + keySystem: string; + sessionId: string; + close(): void; + update(key: Uint8Array): void; +} + +declare var MSMediaKeySession: { + prototype: MSMediaKeySession; + new(): MSMediaKeySession; +} + +interface MSMediaKeys { + keySystem: string; + createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): MSMediaKeySession; +} + +declare var MSMediaKeys: { + prototype: MSMediaKeys; + new(keySystem: string): MSMediaKeys; + isTypeSupported(keySystem: string, type?: string): boolean; +} + +interface MSMimeTypesCollection { + length: number; +} + +declare var MSMimeTypesCollection: { + prototype: MSMimeTypesCollection; + new(): MSMimeTypesCollection; +} + +interface MSPluginsCollection { + length: number; + refresh(reload?: boolean): void; +} + +declare var MSPluginsCollection: { + prototype: MSPluginsCollection; + new(): MSPluginsCollection; +} + +interface MSPointerEvent extends MouseEvent { + currentPoint: any; + height: number; + hwTimestamp: number; + intermediatePoints: any; + isPrimary: boolean; + pointerId: number; + pointerType: any; + pressure: number; + rotation: number; + tiltX: number; + tiltY: number; + width: number; + getCurrentPoint(element: Element): void; + getIntermediatePoints(element: Element): void; + initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void; +} + +declare var MSPointerEvent: { + prototype: MSPointerEvent; + new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent; +} + +interface MSRangeCollection { + length: number; + item(index: number): Range; + [index: number]: Range; +} + +declare var MSRangeCollection: { + prototype: MSRangeCollection; + new(): MSRangeCollection; +} + +interface MSSiteModeEvent extends Event { + actionURL: string; + buttonID: number; +} + +declare var MSSiteModeEvent: { + prototype: MSSiteModeEvent; + new(): MSSiteModeEvent; +} + +interface MSStream { + type: string; + msClose(): void; + msDetachStream(): any; +} + +declare var MSStream: { + prototype: MSStream; + new(): MSStream; +} + +interface MSStreamReader extends EventTarget, MSBaseReader { + error: DOMError; + readAsArrayBuffer(stream: MSStream, size?: number): void; + readAsBinaryString(stream: MSStream, size?: number): void; + readAsBlob(stream: MSStream, size?: number): void; + readAsDataURL(stream: MSStream, size?: number): void; + readAsText(stream: MSStream, encoding?: string, size?: number): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var MSStreamReader: { + prototype: MSStreamReader; + new(): MSStreamReader; +} + +interface MSWebViewAsyncOperation extends EventTarget { + error: DOMError; + oncomplete: (ev: Event) => any; + onerror: (ev: Event) => any; + readyState: number; + result: any; + target: MSHTMLWebViewElement; + type: number; + start(): void; + COMPLETED: number; + ERROR: number; + STARTED: number; + TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number; + TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; + TYPE_INVOKE_SCRIPT: number; + addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var MSWebViewAsyncOperation: { + prototype: MSWebViewAsyncOperation; + new(): MSWebViewAsyncOperation; + COMPLETED: number; + ERROR: number; + STARTED: number; + TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number; + TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; + TYPE_INVOKE_SCRIPT: number; +} + +interface MSWebViewSettings { + isIndexedDBEnabled: boolean; + isJavaScriptEnabled: boolean; +} + +declare var MSWebViewSettings: { + prototype: MSWebViewSettings; + new(): MSWebViewSettings; +} + +interface MediaElementAudioSourceNode extends AudioNode { +} + +declare var MediaElementAudioSourceNode: { + prototype: MediaElementAudioSourceNode; + new(): MediaElementAudioSourceNode; +} + +interface MediaError { + code: number; + msExtendedCode: number; + MEDIA_ERR_ABORTED: number; + MEDIA_ERR_DECODE: number; + MEDIA_ERR_NETWORK: number; + MEDIA_ERR_SRC_NOT_SUPPORTED: number; + MS_MEDIA_ERR_ENCRYPTED: number; +} + +declare var MediaError: { + prototype: MediaError; + new(): MediaError; + MEDIA_ERR_ABORTED: number; + MEDIA_ERR_DECODE: number; + MEDIA_ERR_NETWORK: number; + MEDIA_ERR_SRC_NOT_SUPPORTED: number; + MS_MEDIA_ERR_ENCRYPTED: number; +} + +interface MediaList { + length: number; + mediaText: string; + appendMedium(newMedium: string): void; + deleteMedium(oldMedium: string): void; + item(index: number): string; + toString(): string; + [index: number]: string; +} + +declare var MediaList: { + prototype: MediaList; + new(): MediaList; +} + +interface MediaQueryList { + matches: boolean; + media: string; + addListener(listener: MediaQueryListListener): void; + removeListener(listener: MediaQueryListListener): void; +} + +declare var MediaQueryList: { + prototype: MediaQueryList; + new(): MediaQueryList; +} + +interface MediaSource extends EventTarget { + activeSourceBuffers: SourceBufferList; + duration: number; + readyState: number; + sourceBuffers: SourceBufferList; + addSourceBuffer(type: string): SourceBuffer; + endOfStream(error?: number): void; + removeSourceBuffer(sourceBuffer: SourceBuffer): void; +} + +declare var MediaSource: { + prototype: MediaSource; + new(): MediaSource; + isTypeSupported(type: string): boolean; +} + +interface MessageChannel { + port1: MessagePort; + port2: MessagePort; +} + +declare var MessageChannel: { + prototype: MessageChannel; + new(): MessageChannel; +} + +interface MessageEvent extends Event { + data: any; + origin: string; + ports: any; + source: Window; + initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: Window): void; +} + +declare var MessageEvent: { + prototype: MessageEvent; + new(type: string, eventInitDict?: MessageEventInit): MessageEvent; +} + +interface MessagePort extends EventTarget { + onmessage: (ev: MessageEvent) => any; + close(): void; + postMessage(message?: any, ports?: any): void; + start(): void; + addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var MessagePort: { + prototype: MessagePort; + new(): MessagePort; +} + +interface MimeType { + description: string; + enabledPlugin: Plugin; + suffixes: string; + type: string; +} + +declare var MimeType: { + prototype: MimeType; + new(): MimeType; +} + +interface MimeTypeArray { + length: number; + item(index: number): Plugin; + namedItem(type: string): Plugin; + [index: number]: Plugin; +} + +declare var MimeTypeArray: { + prototype: MimeTypeArray; + new(): MimeTypeArray; +} + +interface MouseEvent extends UIEvent { + altKey: boolean; + button: number; + buttons: number; + clientX: number; + clientY: number; + ctrlKey: boolean; + fromElement: Element; + layerX: number; + layerY: number; + metaKey: boolean; + movementX: number; + movementY: number; + offsetX: number; + offsetY: number; + pageX: number; + pageY: number; + relatedTarget: EventTarget; + screenX: number; + screenY: number; + shiftKey: boolean; + toElement: Element; + which: number; + x: number; + y: number; + getModifierState(keyArg: string): boolean; + initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget): void; +} + +declare var MouseEvent: { + prototype: MouseEvent; + new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent; +} + +interface MouseWheelEvent extends MouseEvent { + wheelDelta: number; + wheelDeltaX: number; + wheelDeltaY: number; + initMouseWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, wheelDeltaArg: number): void; +} + +declare var MouseWheelEvent: { + prototype: MouseWheelEvent; + new(): MouseWheelEvent; +} + +interface MutationEvent extends Event { + attrChange: number; + attrName: string; + newValue: string; + prevValue: string; + relatedNode: Node; + initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void; + ADDITION: number; + MODIFICATION: number; + REMOVAL: number; +} + +declare var MutationEvent: { + prototype: MutationEvent; + new(): MutationEvent; + ADDITION: number; + MODIFICATION: number; + REMOVAL: number; +} + +interface MutationObserver { + disconnect(): void; + observe(target: Node, options: MutationObserverInit): void; + takeRecords(): MutationRecord[]; +} + +declare var MutationObserver: { + prototype: MutationObserver; + new(callback: MutationCallback): MutationObserver; +} + +interface MutationRecord { + addedNodes: NodeList; + attributeName: string; + attributeNamespace: string; + nextSibling: Node; + oldValue: string; + previousSibling: Node; + removedNodes: NodeList; + target: Node; + type: string; +} + +declare var MutationRecord: { + prototype: MutationRecord; + new(): MutationRecord; +} + +interface NamedNodeMap { + length: number; + getNamedItem(name: string): Attr; + getNamedItemNS(namespaceURI: string, localName: string): Attr; + item(index: number): Attr; + removeNamedItem(name: string): Attr; + removeNamedItemNS(namespaceURI: string, localName: string): Attr; + setNamedItem(arg: Attr): Attr; + setNamedItemNS(arg: Attr): Attr; + [index: number]: Attr; +} + +declare var NamedNodeMap: { + prototype: NamedNodeMap; + new(): NamedNodeMap; +} + +interface NavigationCompletedEvent extends NavigationEvent { + isSuccess: boolean; + webErrorStatus: number; +} + +declare var NavigationCompletedEvent: { + prototype: NavigationCompletedEvent; + new(): NavigationCompletedEvent; +} + +interface NavigationEvent extends Event { + uri: string; +} + +declare var NavigationEvent: { + prototype: NavigationEvent; + new(): NavigationEvent; +} + +interface NavigationEventWithReferrer extends NavigationEvent { + referer: string; +} + +declare var NavigationEventWithReferrer: { + prototype: NavigationEventWithReferrer; + new(): NavigationEventWithReferrer; +} + +interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver { + appCodeName: string; + appMinorVersion: string; + browserLanguage: string; + connectionSpeed: number; + cookieEnabled: boolean; + cpuClass: string; + language: string; + maxTouchPoints: number; + mimeTypes: MSMimeTypesCollection; + msManipulationViewsEnabled: boolean; + msMaxTouchPoints: number; + msPointerEnabled: boolean; + plugins: MSPluginsCollection; + pointerEnabled: boolean; + systemLanguage: string; + userLanguage: string; + webdriver: boolean; + getGamepads(): Gamepad[]; + javaEnabled(): boolean; + msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var Navigator: { + prototype: Navigator; + new(): Navigator; +} + +interface Node extends EventTarget { + attributes: NamedNodeMap; + baseURI: string; + childNodes: NodeList; + firstChild: Node; + lastChild: Node; + localName: string; + namespaceURI: string; + nextSibling: Node; + nodeName: string; + nodeType: number; + nodeValue: string; + ownerDocument: Document; + parentElement: HTMLElement; + parentNode: Node; + prefix: string; + previousSibling: Node; + textContent: string; + appendChild(newChild: Node): Node; + cloneNode(deep?: boolean): Node; + compareDocumentPosition(other: Node): number; + hasAttributes(): boolean; + hasChildNodes(): boolean; + insertBefore(newChild: Node, refChild?: Node): Node; + isDefaultNamespace(namespaceURI: string): boolean; + isEqualNode(arg: Node): boolean; + isSameNode(other: Node): boolean; + lookupNamespaceURI(prefix: string): string; + lookupPrefix(namespaceURI: string): string; + normalize(): void; + removeChild(oldChild: Node): Node; + replaceChild(newChild: Node, oldChild: Node): Node; + ATTRIBUTE_NODE: number; + CDATA_SECTION_NODE: number; + COMMENT_NODE: number; + DOCUMENT_FRAGMENT_NODE: number; + DOCUMENT_NODE: number; + DOCUMENT_POSITION_CONTAINED_BY: number; + DOCUMENT_POSITION_CONTAINS: number; + DOCUMENT_POSITION_DISCONNECTED: number; + DOCUMENT_POSITION_FOLLOWING: number; + DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; + DOCUMENT_POSITION_PRECEDING: number; + DOCUMENT_TYPE_NODE: number; + ELEMENT_NODE: number; + ENTITY_NODE: number; + ENTITY_REFERENCE_NODE: number; + NOTATION_NODE: number; + PROCESSING_INSTRUCTION_NODE: number; + TEXT_NODE: number; +} + +declare var Node: { + prototype: Node; + new(): Node; + ATTRIBUTE_NODE: number; + CDATA_SECTION_NODE: number; + COMMENT_NODE: number; + DOCUMENT_FRAGMENT_NODE: number; + DOCUMENT_NODE: number; + DOCUMENT_POSITION_CONTAINED_BY: number; + DOCUMENT_POSITION_CONTAINS: number; + DOCUMENT_POSITION_DISCONNECTED: number; + DOCUMENT_POSITION_FOLLOWING: number; + DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; + DOCUMENT_POSITION_PRECEDING: number; + DOCUMENT_TYPE_NODE: number; + ELEMENT_NODE: number; + ENTITY_NODE: number; + ENTITY_REFERENCE_NODE: number; + NOTATION_NODE: number; + PROCESSING_INSTRUCTION_NODE: number; + TEXT_NODE: number; +} + +interface NodeFilter { + acceptNode(n: Node): number; +} + +declare var NodeFilter: { + FILTER_ACCEPT: number; + FILTER_REJECT: number; + FILTER_SKIP: number; + SHOW_ALL: number; + SHOW_ATTRIBUTE: number; + SHOW_CDATA_SECTION: number; + SHOW_COMMENT: number; + SHOW_DOCUMENT: number; + SHOW_DOCUMENT_FRAGMENT: number; + SHOW_DOCUMENT_TYPE: number; + SHOW_ELEMENT: number; + SHOW_ENTITY: number; + SHOW_ENTITY_REFERENCE: number; + SHOW_NOTATION: number; + SHOW_PROCESSING_INSTRUCTION: number; + SHOW_TEXT: number; +} + +interface NodeIterator { + expandEntityReferences: boolean; + filter: NodeFilter; + root: Node; + whatToShow: number; + detach(): void; + nextNode(): Node; + previousNode(): Node; +} + +declare var NodeIterator: { + prototype: NodeIterator; + new(): NodeIterator; +} + +interface NodeList { + length: number; + item(index: number): Node; + [index: number]: Node; +} + +declare var NodeList: { + prototype: NodeList; + new(): NodeList; +} + +interface OES_element_index_uint { +} + +declare var OES_element_index_uint: { + prototype: OES_element_index_uint; + new(): OES_element_index_uint; +} + +interface OES_standard_derivatives { + FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; +} + +declare var OES_standard_derivatives: { + prototype: OES_standard_derivatives; + new(): OES_standard_derivatives; + FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; +} + +interface OES_texture_float { +} + +declare var OES_texture_float: { + prototype: OES_texture_float; + new(): OES_texture_float; +} + +interface OES_texture_float_linear { +} + +declare var OES_texture_float_linear: { + prototype: OES_texture_float_linear; + new(): OES_texture_float_linear; +} + +interface OfflineAudioCompletionEvent extends Event { + renderedBuffer: AudioBuffer; +} + +declare var OfflineAudioCompletionEvent: { + prototype: OfflineAudioCompletionEvent; + new(): OfflineAudioCompletionEvent; +} + +interface OfflineAudioContext extends AudioContext { + oncomplete: (ev: Event) => any; + startRendering(): void; + addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var OfflineAudioContext: { + prototype: OfflineAudioContext; + new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; +} + +interface OscillatorNode extends AudioNode { + detune: AudioParam; + frequency: AudioParam; + onended: (ev: Event) => any; + type: string; + setPeriodicWave(periodicWave: PeriodicWave): void; + start(when?: number): void; + stop(when?: number): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var OscillatorNode: { + prototype: OscillatorNode; + new(): OscillatorNode; +} + +interface PageTransitionEvent extends Event { + persisted: boolean; +} + +declare var PageTransitionEvent: { + prototype: PageTransitionEvent; + new(): PageTransitionEvent; +} + +interface PannerNode extends AudioNode { + coneInnerAngle: number; + coneOuterAngle: number; + coneOuterGain: number; + distanceModel: string; + maxDistance: number; + panningModel: string; + refDistance: number; + rolloffFactor: number; + setOrientation(x: number, y: number, z: number): void; + setPosition(x: number, y: number, z: number): void; + setVelocity(x: number, y: number, z: number): void; +} + +declare var PannerNode: { + prototype: PannerNode; + new(): PannerNode; +} + +interface PerfWidgetExternal { + activeNetworkRequestCount: number; + averageFrameTime: number; + averagePaintTime: number; + extraInformationEnabled: boolean; + independentRenderingEnabled: boolean; + irDisablingContentString: string; + irStatusAvailable: boolean; + maxCpuSpeed: number; + paintRequestsPerSecond: number; + performanceCounter: number; + performanceCounterFrequency: number; + addEventListener(eventType: string, callback: Function): void; + getMemoryUsage(): number; + getProcessCpuUsage(): number; + getRecentCpuUsage(last: number): any; + getRecentFrames(last: number): any; + getRecentMemoryUsage(last: number): any; + getRecentPaintRequests(last: number): any; + removeEventListener(eventType: string, callback: Function): void; + repositionWindow(x: number, y: number): void; + resizeWindow(width: number, height: number): void; +} + +declare var PerfWidgetExternal: { + prototype: PerfWidgetExternal; + new(): PerfWidgetExternal; +} + +interface Performance { + navigation: PerformanceNavigation; + timing: PerformanceTiming; + clearMarks(markName?: string): void; + clearMeasures(measureName?: string): void; + clearResourceTimings(): void; + getEntries(): any; + getEntriesByName(name: string, entryType?: string): any; + getEntriesByType(entryType: string): any; + getMarks(markName?: string): any; + getMeasures(measureName?: string): any; + mark(markName: string): void; + measure(measureName: string, startMarkName?: string, endMarkName?: string): void; + now(): number; + setResourceTimingBufferSize(maxSize: number): void; + toJSON(): any; +} + +declare var Performance: { + prototype: Performance; + new(): Performance; +} + +interface PerformanceEntry { + duration: number; + entryType: string; + name: string; + startTime: number; +} + +declare var PerformanceEntry: { + prototype: PerformanceEntry; + new(): PerformanceEntry; +} + +interface PerformanceMark extends PerformanceEntry { +} + +declare var PerformanceMark: { + prototype: PerformanceMark; + new(): PerformanceMark; +} + +interface PerformanceMeasure extends PerformanceEntry { +} + +declare var PerformanceMeasure: { + prototype: PerformanceMeasure; + new(): PerformanceMeasure; +} + +interface PerformanceNavigation { + redirectCount: number; + type: number; + toJSON(): any; + TYPE_BACK_FORWARD: number; + TYPE_NAVIGATE: number; + TYPE_RELOAD: number; + TYPE_RESERVED: number; +} + +declare var PerformanceNavigation: { + prototype: PerformanceNavigation; + new(): PerformanceNavigation; + TYPE_BACK_FORWARD: number; + TYPE_NAVIGATE: number; + TYPE_RELOAD: number; + TYPE_RESERVED: number; +} + +interface PerformanceNavigationTiming extends PerformanceEntry { + connectEnd: number; + connectStart: number; + domComplete: number; + domContentLoadedEventEnd: number; + domContentLoadedEventStart: number; + domInteractive: number; + domLoading: number; + domainLookupEnd: number; + domainLookupStart: number; + fetchStart: number; + loadEventEnd: number; + loadEventStart: number; + navigationStart: number; + redirectCount: number; + redirectEnd: number; + redirectStart: number; + requestStart: number; + responseEnd: number; + responseStart: number; + type: string; + unloadEventEnd: number; + unloadEventStart: number; +} + +declare var PerformanceNavigationTiming: { + prototype: PerformanceNavigationTiming; + new(): PerformanceNavigationTiming; +} + +interface PerformanceResourceTiming extends PerformanceEntry { + connectEnd: number; + connectStart: number; + domainLookupEnd: number; + domainLookupStart: number; + fetchStart: number; + initiatorType: string; + redirectEnd: number; + redirectStart: number; + requestStart: number; + responseEnd: number; + responseStart: number; +} + +declare var PerformanceResourceTiming: { + prototype: PerformanceResourceTiming; + new(): PerformanceResourceTiming; +} + +interface PerformanceTiming { + connectEnd: number; + connectStart: number; + domComplete: number; + domContentLoadedEventEnd: number; + domContentLoadedEventStart: number; + domInteractive: number; + domLoading: number; + domainLookupEnd: number; + domainLookupStart: number; + fetchStart: number; + loadEventEnd: number; + loadEventStart: number; + msFirstPaint: number; + navigationStart: number; + redirectEnd: number; + redirectStart: number; + requestStart: number; + responseEnd: number; + responseStart: number; + unloadEventEnd: number; + unloadEventStart: number; + toJSON(): any; +} + +declare var PerformanceTiming: { + prototype: PerformanceTiming; + new(): PerformanceTiming; +} + +interface PeriodicWave { +} + +declare var PeriodicWave: { + prototype: PeriodicWave; + new(): PeriodicWave; +} + +interface PermissionRequest extends DeferredPermissionRequest { + state: string; + defer(): void; +} + +declare var PermissionRequest: { + prototype: PermissionRequest; + new(): PermissionRequest; +} + +interface PermissionRequestedEvent extends Event { + permissionRequest: PermissionRequest; +} + +declare var PermissionRequestedEvent: { + prototype: PermissionRequestedEvent; + new(): PermissionRequestedEvent; +} + +interface Plugin { + description: string; + filename: string; + length: number; + name: string; + version: string; + item(index: number): MimeType; + namedItem(type: string): MimeType; + [index: number]: MimeType; +} + +declare var Plugin: { + prototype: Plugin; + new(): Plugin; +} + +interface PluginArray { + length: number; + item(index: number): Plugin; + namedItem(name: string): Plugin; + refresh(reload?: boolean): void; + [index: number]: Plugin; +} + +declare var PluginArray: { + prototype: PluginArray; + new(): PluginArray; +} + +interface PointerEvent extends MouseEvent { + currentPoint: any; + height: number; + hwTimestamp: number; + intermediatePoints: any; + isPrimary: boolean; + pointerId: number; + pointerType: any; + pressure: number; + rotation: number; + tiltX: number; + tiltY: number; + width: number; + getCurrentPoint(element: Element): void; + getIntermediatePoints(element: Element): void; + initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void; +} + +declare var PointerEvent: { + prototype: PointerEvent; + new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent; +} + +interface PopStateEvent extends Event { + state: any; + initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void; +} + +declare var PopStateEvent: { + prototype: PopStateEvent; + new(): PopStateEvent; +} + +interface Position { + coords: Coordinates; + timestamp: number; +} + +declare var Position: { + prototype: Position; + new(): Position; +} + +interface PositionError { + code: number; + message: string; + toString(): string; + PERMISSION_DENIED: number; + POSITION_UNAVAILABLE: number; + TIMEOUT: number; +} + +declare var PositionError: { + prototype: PositionError; + new(): PositionError; + PERMISSION_DENIED: number; + POSITION_UNAVAILABLE: number; + TIMEOUT: number; +} + +interface ProcessingInstruction extends CharacterData { + target: string; +} + +declare var ProcessingInstruction: { + prototype: ProcessingInstruction; + new(): ProcessingInstruction; +} + +interface ProgressEvent extends Event { + lengthComputable: boolean; + loaded: number; + total: number; + initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void; +} + +declare var ProgressEvent: { + prototype: ProgressEvent; + new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; +} + +interface Range { + collapsed: boolean; + commonAncestorContainer: Node; + endContainer: Node; + endOffset: number; + startContainer: Node; + startOffset: number; + cloneContents(): DocumentFragment; + cloneRange(): Range; + collapse(toStart: boolean): void; + compareBoundaryPoints(how: number, sourceRange: Range): number; + createContextualFragment(fragment: string): DocumentFragment; + deleteContents(): void; + detach(): void; + expand(Unit: string): boolean; + extractContents(): DocumentFragment; + getBoundingClientRect(): ClientRect; + getClientRects(): ClientRectList; + insertNode(newNode: Node): void; + selectNode(refNode: Node): void; + selectNodeContents(refNode: Node): void; + setEnd(refNode: Node, offset: number): void; + setEndAfter(refNode: Node): void; + setEndBefore(refNode: Node): void; + setStart(refNode: Node, offset: number): void; + setStartAfter(refNode: Node): void; + setStartBefore(refNode: Node): void; + surroundContents(newParent: Node): void; + toString(): string; + END_TO_END: number; + END_TO_START: number; + START_TO_END: number; + START_TO_START: number; +} + +declare var Range: { + prototype: Range; + new(): Range; + END_TO_END: number; + END_TO_START: number; + START_TO_END: number; + START_TO_START: number; +} + +interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { + target: SVGAnimatedString; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGAElement: { + prototype: SVGAElement; + new(): SVGAElement; +} + +interface SVGAngle { + unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + SVG_ANGLETYPE_DEG: number; + SVG_ANGLETYPE_GRAD: number; + SVG_ANGLETYPE_RAD: number; + SVG_ANGLETYPE_UNKNOWN: number; + SVG_ANGLETYPE_UNSPECIFIED: number; +} + +declare var SVGAngle: { + prototype: SVGAngle; + new(): SVGAngle; + SVG_ANGLETYPE_DEG: number; + SVG_ANGLETYPE_GRAD: number; + SVG_ANGLETYPE_RAD: number; + SVG_ANGLETYPE_UNKNOWN: number; + SVG_ANGLETYPE_UNSPECIFIED: number; +} + +interface SVGAnimatedAngle { + animVal: SVGAngle; + baseVal: SVGAngle; +} + +declare var SVGAnimatedAngle: { + prototype: SVGAnimatedAngle; + new(): SVGAnimatedAngle; +} + +interface SVGAnimatedBoolean { + animVal: boolean; + baseVal: boolean; +} + +declare var SVGAnimatedBoolean: { + prototype: SVGAnimatedBoolean; + new(): SVGAnimatedBoolean; +} + +interface SVGAnimatedEnumeration { + animVal: number; + baseVal: number; +} + +declare var SVGAnimatedEnumeration: { + prototype: SVGAnimatedEnumeration; + new(): SVGAnimatedEnumeration; +} + +interface SVGAnimatedInteger { + animVal: number; + baseVal: number; +} + +declare var SVGAnimatedInteger: { + prototype: SVGAnimatedInteger; + new(): SVGAnimatedInteger; +} + +interface SVGAnimatedLength { + animVal: SVGLength; + baseVal: SVGLength; +} + +declare var SVGAnimatedLength: { + prototype: SVGAnimatedLength; + new(): SVGAnimatedLength; +} + +interface SVGAnimatedLengthList { + animVal: SVGLengthList; + baseVal: SVGLengthList; +} + +declare var SVGAnimatedLengthList: { + prototype: SVGAnimatedLengthList; + new(): SVGAnimatedLengthList; +} + +interface SVGAnimatedNumber { + animVal: number; + baseVal: number; +} + +declare var SVGAnimatedNumber: { + prototype: SVGAnimatedNumber; + new(): SVGAnimatedNumber; +} + +interface SVGAnimatedNumberList { + animVal: SVGNumberList; + baseVal: SVGNumberList; +} + +declare var SVGAnimatedNumberList: { + prototype: SVGAnimatedNumberList; + new(): SVGAnimatedNumberList; +} + +interface SVGAnimatedPreserveAspectRatio { + animVal: SVGPreserveAspectRatio; + baseVal: SVGPreserveAspectRatio; +} + +declare var SVGAnimatedPreserveAspectRatio: { + prototype: SVGAnimatedPreserveAspectRatio; + new(): SVGAnimatedPreserveAspectRatio; +} + +interface SVGAnimatedRect { + animVal: SVGRect; + baseVal: SVGRect; +} + +declare var SVGAnimatedRect: { + prototype: SVGAnimatedRect; + new(): SVGAnimatedRect; +} + +interface SVGAnimatedString { + animVal: string; + baseVal: string; +} + +declare var SVGAnimatedString: { + prototype: SVGAnimatedString; + new(): SVGAnimatedString; +} + +interface SVGAnimatedTransformList { + animVal: SVGTransformList; + baseVal: SVGTransformList; +} + +declare var SVGAnimatedTransformList: { + prototype: SVGAnimatedTransformList; + new(): SVGAnimatedTransformList; +} + +interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + cx: SVGAnimatedLength; + cy: SVGAnimatedLength; + r: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGCircleElement: { + prototype: SVGCircleElement; + new(): SVGCircleElement; +} + +interface SVGClipPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes { + clipPathUnits: SVGAnimatedEnumeration; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGClipPathElement: { + prototype: SVGClipPathElement; + new(): SVGClipPathElement; +} + +interface SVGComponentTransferFunctionElement extends SVGElement { + amplitude: SVGAnimatedNumber; + exponent: SVGAnimatedNumber; + intercept: SVGAnimatedNumber; + offset: SVGAnimatedNumber; + slope: SVGAnimatedNumber; + tableValues: SVGAnimatedNumberList; + type: SVGAnimatedEnumeration; + SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; + SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; + SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; + SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; + SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; + SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; +} + +declare var SVGComponentTransferFunctionElement: { + prototype: SVGComponentTransferFunctionElement; + new(): SVGComponentTransferFunctionElement; + SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; + SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; + SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; + SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; + SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; + SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; +} + +interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGDefsElement: { + prototype: SVGDefsElement; + new(): SVGDefsElement; +} + +interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGDescElement: { + prototype: SVGDescElement; + new(): SVGDescElement; +} + +interface SVGElement extends Element { + id: string; + onclick: (ev: MouseEvent) => any; + ondblclick: (ev: MouseEvent) => any; + onfocusin: (ev: FocusEvent) => any; + onfocusout: (ev: FocusEvent) => any; + onload: (ev: Event) => any; + onmousedown: (ev: MouseEvent) => any; + onmousemove: (ev: MouseEvent) => any; + onmouseout: (ev: MouseEvent) => any; + onmouseover: (ev: MouseEvent) => any; + onmouseup: (ev: MouseEvent) => any; + ownerSVGElement: SVGSVGElement; + viewportElement: SVGElement; + xmlbase: string; + className: any; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGElement: { + prototype: SVGElement; + new(): SVGElement; +} + +interface SVGElementInstance extends EventTarget { + childNodes: SVGElementInstanceList; + correspondingElement: SVGElement; + correspondingUseElement: SVGUseElement; + firstChild: SVGElementInstance; + lastChild: SVGElementInstance; + nextSibling: SVGElementInstance; + parentNode: SVGElementInstance; + previousSibling: SVGElementInstance; +} + +declare var SVGElementInstance: { + prototype: SVGElementInstance; + new(): SVGElementInstance; +} + +interface SVGElementInstanceList { + length: number; + item(index: number): SVGElementInstance; +} + +declare var SVGElementInstanceList: { + prototype: SVGElementInstanceList; + new(): SVGElementInstanceList; +} + +interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + cx: SVGAnimatedLength; + cy: SVGAnimatedLength; + rx: SVGAnimatedLength; + ry: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGEllipseElement: { + prototype: SVGEllipseElement; + new(): SVGEllipseElement; +} + +interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + in2: SVGAnimatedString; + mode: SVGAnimatedEnumeration; + SVG_FEBLEND_MODE_COLOR: number; + SVG_FEBLEND_MODE_COLOR_BURN: number; + SVG_FEBLEND_MODE_COLOR_DODGE: number; + SVG_FEBLEND_MODE_DARKEN: number; + SVG_FEBLEND_MODE_DIFFERENCE: number; + SVG_FEBLEND_MODE_EXCLUSION: number; + SVG_FEBLEND_MODE_HARD_LIGHT: number; + SVG_FEBLEND_MODE_HUE: number; + SVG_FEBLEND_MODE_LIGHTEN: number; + SVG_FEBLEND_MODE_LUMINOSITY: number; + SVG_FEBLEND_MODE_MULTIPLY: number; + SVG_FEBLEND_MODE_NORMAL: number; + SVG_FEBLEND_MODE_OVERLAY: number; + SVG_FEBLEND_MODE_SATURATION: number; + SVG_FEBLEND_MODE_SCREEN: number; + SVG_FEBLEND_MODE_SOFT_LIGHT: number; + SVG_FEBLEND_MODE_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEBlendElement: { + prototype: SVGFEBlendElement; + new(): SVGFEBlendElement; + SVG_FEBLEND_MODE_COLOR: number; + SVG_FEBLEND_MODE_COLOR_BURN: number; + SVG_FEBLEND_MODE_COLOR_DODGE: number; + SVG_FEBLEND_MODE_DARKEN: number; + SVG_FEBLEND_MODE_DIFFERENCE: number; + SVG_FEBLEND_MODE_EXCLUSION: number; + SVG_FEBLEND_MODE_HARD_LIGHT: number; + SVG_FEBLEND_MODE_HUE: number; + SVG_FEBLEND_MODE_LIGHTEN: number; + SVG_FEBLEND_MODE_LUMINOSITY: number; + SVG_FEBLEND_MODE_MULTIPLY: number; + SVG_FEBLEND_MODE_NORMAL: number; + SVG_FEBLEND_MODE_OVERLAY: number; + SVG_FEBLEND_MODE_SATURATION: number; + SVG_FEBLEND_MODE_SCREEN: number; + SVG_FEBLEND_MODE_SOFT_LIGHT: number; + SVG_FEBLEND_MODE_UNKNOWN: number; +} + +interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + type: SVGAnimatedEnumeration; + values: SVGAnimatedNumberList; + SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; + SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; + SVG_FECOLORMATRIX_TYPE_MATRIX: number; + SVG_FECOLORMATRIX_TYPE_SATURATE: number; + SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEColorMatrixElement: { + prototype: SVGFEColorMatrixElement; + new(): SVGFEColorMatrixElement; + SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; + SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; + SVG_FECOLORMATRIX_TYPE_MATRIX: number; + SVG_FECOLORMATRIX_TYPE_SATURATE: number; + SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; +} + +interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEComponentTransferElement: { + prototype: SVGFEComponentTransferElement; + new(): SVGFEComponentTransferElement; +} + +interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + in2: SVGAnimatedString; + k1: SVGAnimatedNumber; + k2: SVGAnimatedNumber; + k3: SVGAnimatedNumber; + k4: SVGAnimatedNumber; + operator: SVGAnimatedEnumeration; + SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; + SVG_FECOMPOSITE_OPERATOR_ATOP: number; + SVG_FECOMPOSITE_OPERATOR_IN: number; + SVG_FECOMPOSITE_OPERATOR_OUT: number; + SVG_FECOMPOSITE_OPERATOR_OVER: number; + SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; + SVG_FECOMPOSITE_OPERATOR_XOR: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFECompositeElement: { + prototype: SVGFECompositeElement; + new(): SVGFECompositeElement; + SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; + SVG_FECOMPOSITE_OPERATOR_ATOP: number; + SVG_FECOMPOSITE_OPERATOR_IN: number; + SVG_FECOMPOSITE_OPERATOR_OUT: number; + SVG_FECOMPOSITE_OPERATOR_OVER: number; + SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; + SVG_FECOMPOSITE_OPERATOR_XOR: number; +} + +interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + bias: SVGAnimatedNumber; + divisor: SVGAnimatedNumber; + edgeMode: SVGAnimatedEnumeration; + in1: SVGAnimatedString; + kernelMatrix: SVGAnimatedNumberList; + kernelUnitLengthX: SVGAnimatedNumber; + kernelUnitLengthY: SVGAnimatedNumber; + orderX: SVGAnimatedInteger; + orderY: SVGAnimatedInteger; + preserveAlpha: SVGAnimatedBoolean; + targetX: SVGAnimatedInteger; + targetY: SVGAnimatedInteger; + SVG_EDGEMODE_DUPLICATE: number; + SVG_EDGEMODE_NONE: number; + SVG_EDGEMODE_UNKNOWN: number; + SVG_EDGEMODE_WRAP: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEConvolveMatrixElement: { + prototype: SVGFEConvolveMatrixElement; + new(): SVGFEConvolveMatrixElement; + SVG_EDGEMODE_DUPLICATE: number; + SVG_EDGEMODE_NONE: number; + SVG_EDGEMODE_UNKNOWN: number; + SVG_EDGEMODE_WRAP: number; +} + +interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + diffuseConstant: SVGAnimatedNumber; + in1: SVGAnimatedString; + kernelUnitLengthX: SVGAnimatedNumber; + kernelUnitLengthY: SVGAnimatedNumber; + surfaceScale: SVGAnimatedNumber; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEDiffuseLightingElement: { + prototype: SVGFEDiffuseLightingElement; + new(): SVGFEDiffuseLightingElement; +} + +interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + in2: SVGAnimatedString; + scale: SVGAnimatedNumber; + xChannelSelector: SVGAnimatedEnumeration; + yChannelSelector: SVGAnimatedEnumeration; + SVG_CHANNEL_A: number; + SVG_CHANNEL_B: number; + SVG_CHANNEL_G: number; + SVG_CHANNEL_R: number; + SVG_CHANNEL_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEDisplacementMapElement: { + prototype: SVGFEDisplacementMapElement; + new(): SVGFEDisplacementMapElement; + SVG_CHANNEL_A: number; + SVG_CHANNEL_B: number; + SVG_CHANNEL_G: number; + SVG_CHANNEL_R: number; + SVG_CHANNEL_UNKNOWN: number; +} + +interface SVGFEDistantLightElement extends SVGElement { + azimuth: SVGAnimatedNumber; + elevation: SVGAnimatedNumber; +} + +declare var SVGFEDistantLightElement: { + prototype: SVGFEDistantLightElement; + new(): SVGFEDistantLightElement; +} + +interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEFloodElement: { + prototype: SVGFEFloodElement; + new(): SVGFEFloodElement; +} + +interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { +} + +declare var SVGFEFuncAElement: { + prototype: SVGFEFuncAElement; + new(): SVGFEFuncAElement; +} + +interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { +} + +declare var SVGFEFuncBElement: { + prototype: SVGFEFuncBElement; + new(): SVGFEFuncBElement; +} + +interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { +} + +declare var SVGFEFuncGElement: { + prototype: SVGFEFuncGElement; + new(): SVGFEFuncGElement; +} + +interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { +} + +declare var SVGFEFuncRElement: { + prototype: SVGFEFuncRElement; + new(): SVGFEFuncRElement; +} + +interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + stdDeviationX: SVGAnimatedNumber; + stdDeviationY: SVGAnimatedNumber; + setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEGaussianBlurElement: { + prototype: SVGFEGaussianBlurElement; + new(): SVGFEGaussianBlurElement; +} + +interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired { + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEImageElement: { + prototype: SVGFEImageElement; + new(): SVGFEImageElement; +} + +interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEMergeElement: { + prototype: SVGFEMergeElement; + new(): SVGFEMergeElement; +} + +interface SVGFEMergeNodeElement extends SVGElement { + in1: SVGAnimatedString; +} + +declare var SVGFEMergeNodeElement: { + prototype: SVGFEMergeNodeElement; + new(): SVGFEMergeNodeElement; +} + +interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + operator: SVGAnimatedEnumeration; + radiusX: SVGAnimatedNumber; + radiusY: SVGAnimatedNumber; + SVG_MORPHOLOGY_OPERATOR_DILATE: number; + SVG_MORPHOLOGY_OPERATOR_ERODE: number; + SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEMorphologyElement: { + prototype: SVGFEMorphologyElement; + new(): SVGFEMorphologyElement; + SVG_MORPHOLOGY_OPERATOR_DILATE: number; + SVG_MORPHOLOGY_OPERATOR_ERODE: number; + SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; +} + +interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + dx: SVGAnimatedNumber; + dy: SVGAnimatedNumber; + in1: SVGAnimatedString; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFEOffsetElement: { + prototype: SVGFEOffsetElement; + new(): SVGFEOffsetElement; +} + +interface SVGFEPointLightElement extends SVGElement { + x: SVGAnimatedNumber; + y: SVGAnimatedNumber; + z: SVGAnimatedNumber; +} + +declare var SVGFEPointLightElement: { + prototype: SVGFEPointLightElement; + new(): SVGFEPointLightElement; +} + +interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + kernelUnitLengthX: SVGAnimatedNumber; + kernelUnitLengthY: SVGAnimatedNumber; + specularConstant: SVGAnimatedNumber; + specularExponent: SVGAnimatedNumber; + surfaceScale: SVGAnimatedNumber; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFESpecularLightingElement: { + prototype: SVGFESpecularLightingElement; + new(): SVGFESpecularLightingElement; +} + +interface SVGFESpotLightElement extends SVGElement { + limitingConeAngle: SVGAnimatedNumber; + pointsAtX: SVGAnimatedNumber; + pointsAtY: SVGAnimatedNumber; + pointsAtZ: SVGAnimatedNumber; + specularExponent: SVGAnimatedNumber; + x: SVGAnimatedNumber; + y: SVGAnimatedNumber; + z: SVGAnimatedNumber; +} + +declare var SVGFESpotLightElement: { + prototype: SVGFESpotLightElement; + new(): SVGFESpotLightElement; +} + +interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + in1: SVGAnimatedString; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFETileElement: { + prototype: SVGFETileElement; + new(): SVGFETileElement; +} + +interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + baseFrequencyX: SVGAnimatedNumber; + baseFrequencyY: SVGAnimatedNumber; + numOctaves: SVGAnimatedInteger; + seed: SVGAnimatedNumber; + stitchTiles: SVGAnimatedEnumeration; + type: SVGAnimatedEnumeration; + SVG_STITCHTYPE_NOSTITCH: number; + SVG_STITCHTYPE_STITCH: number; + SVG_STITCHTYPE_UNKNOWN: number; + SVG_TURBULENCE_TYPE_FRACTALNOISE: number; + SVG_TURBULENCE_TYPE_TURBULENCE: number; + SVG_TURBULENCE_TYPE_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFETurbulenceElement: { + prototype: SVGFETurbulenceElement; + new(): SVGFETurbulenceElement; + SVG_STITCHTYPE_NOSTITCH: number; + SVG_STITCHTYPE_STITCH: number; + SVG_STITCHTYPE_UNKNOWN: number; + SVG_TURBULENCE_TYPE_FRACTALNOISE: number; + SVG_TURBULENCE_TYPE_TURBULENCE: number; + SVG_TURBULENCE_TYPE_UNKNOWN: number; +} + +interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired { + filterResX: SVGAnimatedInteger; + filterResY: SVGAnimatedInteger; + filterUnits: SVGAnimatedEnumeration; + height: SVGAnimatedLength; + primitiveUnits: SVGAnimatedEnumeration; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + setFilterRes(filterResX: number, filterResY: number): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGFilterElement: { + prototype: SVGFilterElement; + new(): SVGFilterElement; +} + +interface SVGForeignObjectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + height: SVGAnimatedLength; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGForeignObjectElement: { + prototype: SVGForeignObjectElement; + new(): SVGForeignObjectElement; +} + +interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGGElement: { + prototype: SVGGElement; + new(): SVGGElement; +} + +interface SVGGradientElement extends SVGElement, SVGStylable, SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes { + gradientTransform: SVGAnimatedTransformList; + gradientUnits: SVGAnimatedEnumeration; + spreadMethod: SVGAnimatedEnumeration; + SVG_SPREADMETHOD_PAD: number; + SVG_SPREADMETHOD_REFLECT: number; + SVG_SPREADMETHOD_REPEAT: number; + SVG_SPREADMETHOD_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGGradientElement: { + prototype: SVGGradientElement; + new(): SVGGradientElement; + SVG_SPREADMETHOD_PAD: number; + SVG_SPREADMETHOD_REFLECT: number; + SVG_SPREADMETHOD_REPEAT: number; + SVG_SPREADMETHOD_UNKNOWN: number; +} + +interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { + height: SVGAnimatedLength; + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGImageElement: { + prototype: SVGImageElement; + new(): SVGImageElement; +} + +interface SVGLength { + unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + SVG_LENGTHTYPE_CM: number; + SVG_LENGTHTYPE_EMS: number; + SVG_LENGTHTYPE_EXS: number; + SVG_LENGTHTYPE_IN: number; + SVG_LENGTHTYPE_MM: number; + SVG_LENGTHTYPE_NUMBER: number; + SVG_LENGTHTYPE_PC: number; + SVG_LENGTHTYPE_PERCENTAGE: number; + SVG_LENGTHTYPE_PT: number; + SVG_LENGTHTYPE_PX: number; + SVG_LENGTHTYPE_UNKNOWN: number; +} + +declare var SVGLength: { + prototype: SVGLength; + new(): SVGLength; + SVG_LENGTHTYPE_CM: number; + SVG_LENGTHTYPE_EMS: number; + SVG_LENGTHTYPE_EXS: number; + SVG_LENGTHTYPE_IN: number; + SVG_LENGTHTYPE_MM: number; + SVG_LENGTHTYPE_NUMBER: number; + SVG_LENGTHTYPE_PC: number; + SVG_LENGTHTYPE_PERCENTAGE: number; + SVG_LENGTHTYPE_PT: number; + SVG_LENGTHTYPE_PX: number; + SVG_LENGTHTYPE_UNKNOWN: number; +} + +interface SVGLengthList { + numberOfItems: number; + appendItem(newItem: SVGLength): SVGLength; + clear(): void; + getItem(index: number): SVGLength; + initialize(newItem: SVGLength): SVGLength; + insertItemBefore(newItem: SVGLength, index: number): SVGLength; + removeItem(index: number): SVGLength; + replaceItem(newItem: SVGLength, index: number): SVGLength; +} + +declare var SVGLengthList: { + prototype: SVGLengthList; + new(): SVGLengthList; +} + +interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + x1: SVGAnimatedLength; + x2: SVGAnimatedLength; + y1: SVGAnimatedLength; + y2: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGLineElement: { + prototype: SVGLineElement; + new(): SVGLineElement; +} + +interface SVGLinearGradientElement extends SVGGradientElement { + x1: SVGAnimatedLength; + x2: SVGAnimatedLength; + y1: SVGAnimatedLength; + y2: SVGAnimatedLength; +} + +declare var SVGLinearGradientElement: { + prototype: SVGLinearGradientElement; + new(): SVGLinearGradientElement; +} + +interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox { + markerHeight: SVGAnimatedLength; + markerUnits: SVGAnimatedEnumeration; + markerWidth: SVGAnimatedLength; + orientAngle: SVGAnimatedAngle; + orientType: SVGAnimatedEnumeration; + refX: SVGAnimatedLength; + refY: SVGAnimatedLength; + setOrientToAngle(angle: SVGAngle): void; + setOrientToAuto(): void; + SVG_MARKERUNITS_STROKEWIDTH: number; + SVG_MARKERUNITS_UNKNOWN: number; + SVG_MARKERUNITS_USERSPACEONUSE: number; + SVG_MARKER_ORIENT_ANGLE: number; + SVG_MARKER_ORIENT_AUTO: number; + SVG_MARKER_ORIENT_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGMarkerElement: { + prototype: SVGMarkerElement; + new(): SVGMarkerElement; + SVG_MARKERUNITS_STROKEWIDTH: number; + SVG_MARKERUNITS_UNKNOWN: number; + SVG_MARKERUNITS_USERSPACEONUSE: number; + SVG_MARKER_ORIENT_ANGLE: number; + SVG_MARKER_ORIENT_AUTO: number; + SVG_MARKER_ORIENT_UNKNOWN: number; +} + +interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes { + height: SVGAnimatedLength; + maskContentUnits: SVGAnimatedEnumeration; + maskUnits: SVGAnimatedEnumeration; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGMaskElement: { + prototype: SVGMaskElement; + new(): SVGMaskElement; +} + +interface SVGMatrix { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + flipX(): SVGMatrix; + flipY(): SVGMatrix; + inverse(): SVGMatrix; + multiply(secondMatrix: SVGMatrix): SVGMatrix; + rotate(angle: number): SVGMatrix; + rotateFromVector(x: number, y: number): SVGMatrix; + scale(scaleFactor: number): SVGMatrix; + scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix; + skewX(angle: number): SVGMatrix; + skewY(angle: number): SVGMatrix; + translate(x: number, y: number): SVGMatrix; +} + +declare var SVGMatrix: { + prototype: SVGMatrix; + new(): SVGMatrix; +} + +interface SVGMetadataElement extends SVGElement { +} + +declare var SVGMetadataElement: { + prototype: SVGMetadataElement; + new(): SVGMetadataElement; +} + +interface SVGNumber { + value: number; +} + +declare var SVGNumber: { + prototype: SVGNumber; + new(): SVGNumber; +} + +interface SVGNumberList { + numberOfItems: number; + appendItem(newItem: SVGNumber): SVGNumber; + clear(): void; + getItem(index: number): SVGNumber; + initialize(newItem: SVGNumber): SVGNumber; + insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; + removeItem(index: number): SVGNumber; + replaceItem(newItem: SVGNumber, index: number): SVGNumber; +} + +declare var SVGNumberList: { + prototype: SVGNumberList; + new(): SVGNumberList; +} + +interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData { + createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs; + createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel; + createSVGPathSegClosePath(): SVGPathSegClosePath; + createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs; + createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel; + createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs; + createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel; + createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs; + createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel; + createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs; + createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel; + createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs; + createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs; + createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel; + createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel; + createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs; + createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel; + createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs; + createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel; + getPathSegAtLength(distance: number): number; + getPointAtLength(distance: number): SVGPoint; + getTotalLength(): number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGPathElement: { + prototype: SVGPathElement; + new(): SVGPathElement; +} + +interface SVGPathSeg { + pathSegType: number; + pathSegTypeAsLetter: string; + PATHSEG_ARC_ABS: number; + PATHSEG_ARC_REL: number; + PATHSEG_CLOSEPATH: number; + PATHSEG_CURVETO_CUBIC_ABS: number; + PATHSEG_CURVETO_CUBIC_REL: number; + PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; + PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; + PATHSEG_CURVETO_QUADRATIC_ABS: number; + PATHSEG_CURVETO_QUADRATIC_REL: number; + PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; + PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; + PATHSEG_LINETO_ABS: number; + PATHSEG_LINETO_HORIZONTAL_ABS: number; + PATHSEG_LINETO_HORIZONTAL_REL: number; + PATHSEG_LINETO_REL: number; + PATHSEG_LINETO_VERTICAL_ABS: number; + PATHSEG_LINETO_VERTICAL_REL: number; + PATHSEG_MOVETO_ABS: number; + PATHSEG_MOVETO_REL: number; + PATHSEG_UNKNOWN: number; +} + +declare var SVGPathSeg: { + prototype: SVGPathSeg; + new(): SVGPathSeg; + PATHSEG_ARC_ABS: number; + PATHSEG_ARC_REL: number; + PATHSEG_CLOSEPATH: number; + PATHSEG_CURVETO_CUBIC_ABS: number; + PATHSEG_CURVETO_CUBIC_REL: number; + PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; + PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; + PATHSEG_CURVETO_QUADRATIC_ABS: number; + PATHSEG_CURVETO_QUADRATIC_REL: number; + PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; + PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; + PATHSEG_LINETO_ABS: number; + PATHSEG_LINETO_HORIZONTAL_ABS: number; + PATHSEG_LINETO_HORIZONTAL_REL: number; + PATHSEG_LINETO_REL: number; + PATHSEG_LINETO_VERTICAL_ABS: number; + PATHSEG_LINETO_VERTICAL_REL: number; + PATHSEG_MOVETO_ABS: number; + PATHSEG_MOVETO_REL: number; + PATHSEG_UNKNOWN: number; +} + +interface SVGPathSegArcAbs extends SVGPathSeg { + angle: number; + largeArcFlag: boolean; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; +} + +declare var SVGPathSegArcAbs: { + prototype: SVGPathSegArcAbs; + new(): SVGPathSegArcAbs; +} + +interface SVGPathSegArcRel extends SVGPathSeg { + angle: number; + largeArcFlag: boolean; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; +} + +declare var SVGPathSegArcRel: { + prototype: SVGPathSegArcRel; + new(): SVGPathSegArcRel; +} + +interface SVGPathSegClosePath extends SVGPathSeg { +} + +declare var SVGPathSegClosePath: { + prototype: SVGPathSegClosePath; + new(): SVGPathSegClosePath; +} + +interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicAbs: { + prototype: SVGPathSegCurvetoCubicAbs; + new(): SVGPathSegCurvetoCubicAbs; +} + +interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicRel: { + prototype: SVGPathSegCurvetoCubicRel; + new(): SVGPathSegCurvetoCubicRel; +} + +interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { + x: number; + x2: number; + y: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicSmoothAbs: { + prototype: SVGPathSegCurvetoCubicSmoothAbs; + new(): SVGPathSegCurvetoCubicSmoothAbs; +} + +interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { + x: number; + x2: number; + y: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicSmoothRel: { + prototype: SVGPathSegCurvetoCubicSmoothRel; + new(): SVGPathSegCurvetoCubicSmoothRel; +} + +interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { + x: number; + x1: number; + y: number; + y1: number; +} + +declare var SVGPathSegCurvetoQuadraticAbs: { + prototype: SVGPathSegCurvetoQuadraticAbs; + new(): SVGPathSegCurvetoQuadraticAbs; +} + +interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { + x: number; + x1: number; + y: number; + y1: number; +} + +declare var SVGPathSegCurvetoQuadraticRel: { + prototype: SVGPathSegCurvetoQuadraticRel; + new(): SVGPathSegCurvetoQuadraticRel; +} + +interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegCurvetoQuadraticSmoothAbs: { + prototype: SVGPathSegCurvetoQuadraticSmoothAbs; + new(): SVGPathSegCurvetoQuadraticSmoothAbs; +} + +interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegCurvetoQuadraticSmoothRel: { + prototype: SVGPathSegCurvetoQuadraticSmoothRel; + new(): SVGPathSegCurvetoQuadraticSmoothRel; +} + +interface SVGPathSegLinetoAbs extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegLinetoAbs: { + prototype: SVGPathSegLinetoAbs; + new(): SVGPathSegLinetoAbs; +} + +interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { + x: number; +} + +declare var SVGPathSegLinetoHorizontalAbs: { + prototype: SVGPathSegLinetoHorizontalAbs; + new(): SVGPathSegLinetoHorizontalAbs; +} + +interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { + x: number; +} + +declare var SVGPathSegLinetoHorizontalRel: { + prototype: SVGPathSegLinetoHorizontalRel; + new(): SVGPathSegLinetoHorizontalRel; +} + +interface SVGPathSegLinetoRel extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegLinetoRel: { + prototype: SVGPathSegLinetoRel; + new(): SVGPathSegLinetoRel; +} + +interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { + y: number; +} + +declare var SVGPathSegLinetoVerticalAbs: { + prototype: SVGPathSegLinetoVerticalAbs; + new(): SVGPathSegLinetoVerticalAbs; +} + +interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { + y: number; +} + +declare var SVGPathSegLinetoVerticalRel: { + prototype: SVGPathSegLinetoVerticalRel; + new(): SVGPathSegLinetoVerticalRel; +} + +interface SVGPathSegList { + numberOfItems: number; + appendItem(newItem: SVGPathSeg): SVGPathSeg; + clear(): void; + getItem(index: number): SVGPathSeg; + initialize(newItem: SVGPathSeg): SVGPathSeg; + insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg; + removeItem(index: number): SVGPathSeg; + replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg; +} + +declare var SVGPathSegList: { + prototype: SVGPathSegList; + new(): SVGPathSegList; +} + +interface SVGPathSegMovetoAbs extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegMovetoAbs: { + prototype: SVGPathSegMovetoAbs; + new(): SVGPathSegMovetoAbs; +} + +interface SVGPathSegMovetoRel extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegMovetoRel: { + prototype: SVGPathSegMovetoRel; + new(): SVGPathSegMovetoRel; +} + +interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, SVGUnitTypes { + height: SVGAnimatedLength; + patternContentUnits: SVGAnimatedEnumeration; + patternTransform: SVGAnimatedTransformList; + patternUnits: SVGAnimatedEnumeration; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGPatternElement: { + prototype: SVGPatternElement; + new(): SVGPatternElement; +} + +interface SVGPoint { + x: number; + y: number; + matrixTransform(matrix: SVGMatrix): SVGPoint; +} + +declare var SVGPoint: { + prototype: SVGPoint; + new(): SVGPoint; +} + +interface SVGPointList { + numberOfItems: number; + appendItem(newItem: SVGPoint): SVGPoint; + clear(): void; + getItem(index: number): SVGPoint; + initialize(newItem: SVGPoint): SVGPoint; + insertItemBefore(newItem: SVGPoint, index: number): SVGPoint; + removeItem(index: number): SVGPoint; + replaceItem(newItem: SVGPoint, index: number): SVGPoint; +} + +declare var SVGPointList: { + prototype: SVGPointList; + new(): SVGPointList; +} + +interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGPolygonElement: { + prototype: SVGPolygonElement; + new(): SVGPolygonElement; +} + +interface SVGPolylineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGPolylineElement: { + prototype: SVGPolylineElement; + new(): SVGPolylineElement; +} + +interface SVGPreserveAspectRatio { + align: number; + meetOrSlice: number; + SVG_MEETORSLICE_MEET: number; + SVG_MEETORSLICE_SLICE: number; + SVG_MEETORSLICE_UNKNOWN: number; + SVG_PRESERVEASPECTRATIO_NONE: number; + SVG_PRESERVEASPECTRATIO_UNKNOWN: number; + SVG_PRESERVEASPECTRATIO_XMAXYMAX: number; + SVG_PRESERVEASPECTRATIO_XMAXYMID: number; + SVG_PRESERVEASPECTRATIO_XMAXYMIN: number; + SVG_PRESERVEASPECTRATIO_XMIDYMAX: number; + SVG_PRESERVEASPECTRATIO_XMIDYMID: number; + SVG_PRESERVEASPECTRATIO_XMIDYMIN: number; + SVG_PRESERVEASPECTRATIO_XMINYMAX: number; + SVG_PRESERVEASPECTRATIO_XMINYMID: number; + SVG_PRESERVEASPECTRATIO_XMINYMIN: number; +} + +declare var SVGPreserveAspectRatio: { + prototype: SVGPreserveAspectRatio; + new(): SVGPreserveAspectRatio; + SVG_MEETORSLICE_MEET: number; + SVG_MEETORSLICE_SLICE: number; + SVG_MEETORSLICE_UNKNOWN: number; + SVG_PRESERVEASPECTRATIO_NONE: number; + SVG_PRESERVEASPECTRATIO_UNKNOWN: number; + SVG_PRESERVEASPECTRATIO_XMAXYMAX: number; + SVG_PRESERVEASPECTRATIO_XMAXYMID: number; + SVG_PRESERVEASPECTRATIO_XMAXYMIN: number; + SVG_PRESERVEASPECTRATIO_XMIDYMAX: number; + SVG_PRESERVEASPECTRATIO_XMIDYMID: number; + SVG_PRESERVEASPECTRATIO_XMIDYMIN: number; + SVG_PRESERVEASPECTRATIO_XMINYMAX: number; + SVG_PRESERVEASPECTRATIO_XMINYMID: number; + SVG_PRESERVEASPECTRATIO_XMINYMIN: number; +} + +interface SVGRadialGradientElement extends SVGGradientElement { + cx: SVGAnimatedLength; + cy: SVGAnimatedLength; + fx: SVGAnimatedLength; + fy: SVGAnimatedLength; + r: SVGAnimatedLength; +} + +declare var SVGRadialGradientElement: { + prototype: SVGRadialGradientElement; + new(): SVGRadialGradientElement; +} + +interface SVGRect { + height: number; + width: number; + x: number; + y: number; +} + +declare var SVGRect: { + prototype: SVGRect; + new(): SVGRect; +} + +interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + height: SVGAnimatedLength; + rx: SVGAnimatedLength; + ry: SVGAnimatedLength; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGRectElement: { + prototype: SVGRectElement; + new(): SVGRectElement; +} + +interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { + contentScriptType: string; + contentStyleType: string; + currentScale: number; + currentTranslate: SVGPoint; + height: SVGAnimatedLength; + onabort: (ev: Event) => any; + onerror: (ev: Event) => any; + onresize: (ev: UIEvent) => any; + onscroll: (ev: UIEvent) => any; + onunload: (ev: Event) => any; + onzoom: (ev: SVGZoomEvent) => any; + pixelUnitToMillimeterX: number; + pixelUnitToMillimeterY: number; + screenPixelToMillimeterX: number; + screenPixelToMillimeterY: number; + viewport: SVGRect; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + checkEnclosure(element: SVGElement, rect: SVGRect): boolean; + checkIntersection(element: SVGElement, rect: SVGRect): boolean; + createSVGAngle(): SVGAngle; + createSVGLength(): SVGLength; + createSVGMatrix(): SVGMatrix; + createSVGNumber(): SVGNumber; + createSVGPoint(): SVGPoint; + createSVGRect(): SVGRect; + createSVGTransform(): SVGTransform; + createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; + deselectAll(): void; + forceRedraw(): void; + getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; + getCurrentTime(): number; + getElementById(elementId: string): Element; + getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeList; + getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeList; + pauseAnimations(): void; + setCurrentTime(seconds: number): void; + suspendRedraw(maxWaitMilliseconds: number): number; + unpauseAnimations(): void; + unsuspendRedraw(suspendHandleID: number): void; + unsuspendRedrawAll(): void; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "SVGAbort", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "SVGError", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "SVGUnload", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "SVGZoom", listener: (ev: SVGZoomEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGSVGElement: { + prototype: SVGSVGElement; + new(): SVGSVGElement; +} + +interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, SVGURIReference { + type: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGScriptElement: { + prototype: SVGScriptElement; + new(): SVGScriptElement; +} + +interface SVGStopElement extends SVGElement, SVGStylable { + offset: SVGAnimatedNumber; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGStopElement: { + prototype: SVGStopElement; + new(): SVGStopElement; +} + +interface SVGStringList { + numberOfItems: number; + appendItem(newItem: string): string; + clear(): void; + getItem(index: number): string; + initialize(newItem: string): string; + insertItemBefore(newItem: string, index: number): string; + removeItem(index: number): string; + replaceItem(newItem: string, index: number): string; +} + +declare var SVGStringList: { + prototype: SVGStringList; + new(): SVGStringList; +} + +interface SVGStyleElement extends SVGElement, SVGLangSpace { + media: string; + title: string; + type: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGStyleElement: { + prototype: SVGStyleElement; + new(): SVGStyleElement; +} + +interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGSwitchElement: { + prototype: SVGSwitchElement; + new(): SVGSwitchElement; +} + +interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGSymbolElement: { + prototype: SVGSymbolElement; + new(): SVGSymbolElement; +} + +interface SVGTSpanElement extends SVGTextPositioningElement { +} + +declare var SVGTSpanElement: { + prototype: SVGTSpanElement; + new(): SVGTSpanElement; +} + +interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { + lengthAdjust: SVGAnimatedEnumeration; + textLength: SVGAnimatedLength; + getCharNumAtPosition(point: SVGPoint): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): SVGPoint; + getExtentOfChar(charnum: number): SVGRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): SVGPoint; + getSubStringLength(charnum: number, nchars: number): number; + selectSubString(charnum: number, nchars: number): void; + LENGTHADJUST_SPACING: number; + LENGTHADJUST_SPACINGANDGLYPHS: number; + LENGTHADJUST_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGTextContentElement: { + prototype: SVGTextContentElement; + new(): SVGTextContentElement; + LENGTHADJUST_SPACING: number; + LENGTHADJUST_SPACINGANDGLYPHS: number; + LENGTHADJUST_UNKNOWN: number; +} + +interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGTextElement: { + prototype: SVGTextElement; + new(): SVGTextElement; +} + +interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { + method: SVGAnimatedEnumeration; + spacing: SVGAnimatedEnumeration; + startOffset: SVGAnimatedLength; + TEXTPATH_METHODTYPE_ALIGN: number; + TEXTPATH_METHODTYPE_STRETCH: number; + TEXTPATH_METHODTYPE_UNKNOWN: number; + TEXTPATH_SPACINGTYPE_AUTO: number; + TEXTPATH_SPACINGTYPE_EXACT: number; + TEXTPATH_SPACINGTYPE_UNKNOWN: number; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGTextPathElement: { + prototype: SVGTextPathElement; + new(): SVGTextPathElement; + TEXTPATH_METHODTYPE_ALIGN: number; + TEXTPATH_METHODTYPE_STRETCH: number; + TEXTPATH_METHODTYPE_UNKNOWN: number; + TEXTPATH_SPACINGTYPE_AUTO: number; + TEXTPATH_SPACINGTYPE_EXACT: number; + TEXTPATH_SPACINGTYPE_UNKNOWN: number; +} + +interface SVGTextPositioningElement extends SVGTextContentElement { + dx: SVGAnimatedLengthList; + dy: SVGAnimatedLengthList; + rotate: SVGAnimatedNumberList; + x: SVGAnimatedLengthList; + y: SVGAnimatedLengthList; +} + +declare var SVGTextPositioningElement: { + prototype: SVGTextPositioningElement; + new(): SVGTextPositioningElement; +} + +interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGTitleElement: { + prototype: SVGTitleElement; + new(): SVGTitleElement; +} + +interface SVGTransform { + angle: number; + matrix: SVGMatrix; + type: number; + setMatrix(matrix: SVGMatrix): void; + setRotate(angle: number, cx: number, cy: number): void; + setScale(sx: number, sy: number): void; + setSkewX(angle: number): void; + setSkewY(angle: number): void; + setTranslate(tx: number, ty: number): void; + SVG_TRANSFORM_MATRIX: number; + SVG_TRANSFORM_ROTATE: number; + SVG_TRANSFORM_SCALE: number; + SVG_TRANSFORM_SKEWX: number; + SVG_TRANSFORM_SKEWY: number; + SVG_TRANSFORM_TRANSLATE: number; + SVG_TRANSFORM_UNKNOWN: number; +} + +declare var SVGTransform: { + prototype: SVGTransform; + new(): SVGTransform; + SVG_TRANSFORM_MATRIX: number; + SVG_TRANSFORM_ROTATE: number; + SVG_TRANSFORM_SCALE: number; + SVG_TRANSFORM_SKEWX: number; + SVG_TRANSFORM_SKEWY: number; + SVG_TRANSFORM_TRANSLATE: number; + SVG_TRANSFORM_UNKNOWN: number; +} + +interface SVGTransformList { + numberOfItems: number; + appendItem(newItem: SVGTransform): SVGTransform; + clear(): void; + consolidate(): SVGTransform; + createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; + getItem(index: number): SVGTransform; + initialize(newItem: SVGTransform): SVGTransform; + insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; + removeItem(index: number): SVGTransform; + replaceItem(newItem: SVGTransform, index: number): SVGTransform; +} + +declare var SVGTransformList: { + prototype: SVGTransformList; + new(): SVGTransformList; +} + +interface SVGUnitTypes { + SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number; + SVG_UNIT_TYPE_UNKNOWN: number; + SVG_UNIT_TYPE_USERSPACEONUSE: number; +} +declare var SVGUnitTypes: SVGUnitTypes; + +interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { + animatedInstanceRoot: SVGElementInstance; + height: SVGAnimatedLength; + instanceRoot: SVGElementInstance; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGUseElement: { + prototype: SVGUseElement; + new(): SVGUseElement; +} + +interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { + viewTarget: SVGStringList; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var SVGViewElement: { + prototype: SVGViewElement; + new(): SVGViewElement; +} + +interface SVGZoomAndPan { + SVG_ZOOMANDPAN_DISABLE: number; + SVG_ZOOMANDPAN_MAGNIFY: number; + SVG_ZOOMANDPAN_UNKNOWN: number; +} +declare var SVGZoomAndPan: SVGZoomAndPan; + +interface SVGZoomEvent extends UIEvent { + newScale: number; + newTranslate: SVGPoint; + previousScale: number; + previousTranslate: SVGPoint; + zoomRectScreen: SVGRect; +} + +declare var SVGZoomEvent: { + prototype: SVGZoomEvent; + new(): SVGZoomEvent; +} + +interface Screen extends EventTarget { + availHeight: number; + availWidth: number; + bufferDepth: number; + colorDepth: number; + deviceXDPI: number; + deviceYDPI: number; + fontSmoothingEnabled: boolean; + height: number; + logicalXDPI: number; + logicalYDPI: number; + msOrientation: string; + onmsorientationchange: (ev: Event) => any; + pixelDepth: number; + systemXDPI: number; + systemYDPI: number; + width: number; + msLockOrientation(orientations: string | string[]): boolean; + msUnlockOrientation(): void; + addEventListener(type: "MSOrientationChange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var Screen: { + prototype: Screen; + new(): Screen; +} + +interface ScriptNotifyEvent extends Event { + callingUri: string; + value: string; +} + +declare var ScriptNotifyEvent: { + prototype: ScriptNotifyEvent; + new(): ScriptNotifyEvent; +} + +interface ScriptProcessorNode extends AudioNode { + bufferSize: number; + onaudioprocess: (ev: AudioProcessingEvent) => any; + addEventListener(type: "audioprocess", listener: (ev: AudioProcessingEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var ScriptProcessorNode: { + prototype: ScriptProcessorNode; + new(): ScriptProcessorNode; +} + +interface Selection { + anchorNode: Node; + anchorOffset: number; + focusNode: Node; + focusOffset: number; + isCollapsed: boolean; + rangeCount: number; + type: string; + addRange(range: Range): void; + collapse(parentNode: Node, offset: number): void; + collapseToEnd(): void; + collapseToStart(): void; + containsNode(node: Node, partlyContained: boolean): boolean; + deleteFromDocument(): void; + empty(): void; + extend(newNode: Node, offset: number): void; + getRangeAt(index: number): Range; + removeAllRanges(): void; + removeRange(range: Range): void; + selectAllChildren(parentNode: Node): void; + setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void; + toString(): string; +} + +declare var Selection: { + prototype: Selection; + new(): Selection; +} + +interface SourceBuffer extends EventTarget { + appendWindowEnd: number; + appendWindowStart: number; + audioTracks: AudioTrackList; + buffered: TimeRanges; + mode: string; + timestampOffset: number; + updating: boolean; + videoTracks: VideoTrackList; + abort(): void; + appendBuffer(data: ArrayBuffer | ArrayBufferView): void; + appendStream(stream: MSStream, maxSize?: number): void; + remove(start: number, end: number): void; +} + +declare var SourceBuffer: { + prototype: SourceBuffer; + new(): SourceBuffer; +} + +interface SourceBufferList extends EventTarget { + length: number; + item(index: number): SourceBuffer; + [index: number]: SourceBuffer; +} + +declare var SourceBufferList: { + prototype: SourceBufferList; + new(): SourceBufferList; +} + +interface StereoPannerNode extends AudioNode { + pan: AudioParam; +} + +declare var StereoPannerNode: { + prototype: StereoPannerNode; + new(): StereoPannerNode; +} + +interface Storage { + length: number; + clear(): void; + getItem(key: string): any; + key(index: number): string; + removeItem(key: string): void; + setItem(key: string, data: string): void; + [key: string]: any; + [index: number]: string; +} + +declare var Storage: { + prototype: Storage; + new(): Storage; +} + +interface StorageEvent extends Event { + key: string; + newValue: any; + oldValue: any; + storageArea: Storage; + url: string; + initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void; +} + +declare var StorageEvent: { + prototype: StorageEvent; + new(): StorageEvent; +} + +interface StyleMedia { + type: string; + matchMedium(mediaquery: string): boolean; +} + +declare var StyleMedia: { + prototype: StyleMedia; + new(): StyleMedia; +} + +interface StyleSheet { + disabled: boolean; + href: string; + media: MediaList; + ownerNode: Node; + parentStyleSheet: StyleSheet; + title: string; + type: string; +} + +declare var StyleSheet: { + prototype: StyleSheet; + new(): StyleSheet; +} + +interface StyleSheetList { + length: number; + item(index?: number): StyleSheet; + [index: number]: StyleSheet; +} + +declare var StyleSheetList: { + prototype: StyleSheetList; + new(): StyleSheetList; +} + +interface StyleSheetPageList { + length: number; + item(index: number): CSSPageRule; + [index: number]: CSSPageRule; +} + +declare var StyleSheetPageList: { + prototype: StyleSheetPageList; + new(): StyleSheetPageList; +} + +interface SubtleCrypto { + decrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; + deriveBits(algorithm: string | Algorithm, baseKey: CryptoKey, length: number): any; + deriveKey(algorithm: string | Algorithm, baseKey: CryptoKey, derivedKeyType: string | Algorithm, extractable: boolean, keyUsages: string[]): any; + digest(algorithm: string | Algorithm, data: ArrayBufferView): any; + encrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; + exportKey(format: string, key: CryptoKey): any; + generateKey(algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; + importKey(format: string, keyData: ArrayBufferView, algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; + sign(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; + unwrapKey(format: string, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; + verify(algorithm: string | Algorithm, key: CryptoKey, signature: ArrayBufferView, data: ArrayBufferView): any; + wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): any; +} + +declare var SubtleCrypto: { + prototype: SubtleCrypto; + new(): SubtleCrypto; +} + +interface Text extends CharacterData { + wholeText: string; + replaceWholeText(content: string): Text; + splitText(offset: number): Text; +} + +declare var Text: { + prototype: Text; + new(): Text; +} + +interface TextEvent extends UIEvent { + data: string; + inputMethod: number; + locale: string; + initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void; + DOM_INPUT_METHOD_DROP: number; + DOM_INPUT_METHOD_HANDWRITING: number; + DOM_INPUT_METHOD_IME: number; + DOM_INPUT_METHOD_KEYBOARD: number; + DOM_INPUT_METHOD_MULTIMODAL: number; + DOM_INPUT_METHOD_OPTION: number; + DOM_INPUT_METHOD_PASTE: number; + DOM_INPUT_METHOD_SCRIPT: number; + DOM_INPUT_METHOD_UNKNOWN: number; + DOM_INPUT_METHOD_VOICE: number; +} + +declare var TextEvent: { + prototype: TextEvent; + new(): TextEvent; + DOM_INPUT_METHOD_DROP: number; + DOM_INPUT_METHOD_HANDWRITING: number; + DOM_INPUT_METHOD_IME: number; + DOM_INPUT_METHOD_KEYBOARD: number; + DOM_INPUT_METHOD_MULTIMODAL: number; + DOM_INPUT_METHOD_OPTION: number; + DOM_INPUT_METHOD_PASTE: number; + DOM_INPUT_METHOD_SCRIPT: number; + DOM_INPUT_METHOD_UNKNOWN: number; + DOM_INPUT_METHOD_VOICE: number; +} + +interface TextMetrics { + width: number; +} + +declare var TextMetrics: { + prototype: TextMetrics; + new(): TextMetrics; +} + +interface TextRange { + boundingHeight: number; + boundingLeft: number; + boundingTop: number; + boundingWidth: number; + htmlText: string; + offsetLeft: number; + offsetTop: number; + text: string; + collapse(start?: boolean): void; + compareEndPoints(how: string, sourceRange: TextRange): number; + duplicate(): TextRange; + execCommand(cmdID: string, showUI?: boolean, value?: any): boolean; + execCommandShowHelp(cmdID: string): boolean; + expand(Unit: string): boolean; + findText(string: string, count?: number, flags?: number): boolean; + getBookmark(): string; + getBoundingClientRect(): ClientRect; + getClientRects(): ClientRectList; + inRange(range: TextRange): boolean; + isEqual(range: TextRange): boolean; + move(unit: string, count?: number): number; + moveEnd(unit: string, count?: number): number; + moveStart(unit: string, count?: number): number; + moveToBookmark(bookmark: string): boolean; + moveToElementText(element: Element): void; + moveToPoint(x: number, y: number): void; + parentElement(): Element; + pasteHTML(html: string): void; + queryCommandEnabled(cmdID: string): boolean; + queryCommandIndeterm(cmdID: string): boolean; + queryCommandState(cmdID: string): boolean; + queryCommandSupported(cmdID: string): boolean; + queryCommandText(cmdID: string): string; + queryCommandValue(cmdID: string): any; + scrollIntoView(fStart?: boolean): void; + select(): void; + setEndPoint(how: string, SourceRange: TextRange): void; +} + +declare var TextRange: { + prototype: TextRange; + new(): TextRange; +} + +interface TextRangeCollection { + length: number; + item(index: number): TextRange; + [index: number]: TextRange; +} + +declare var TextRangeCollection: { + prototype: TextRangeCollection; + new(): TextRangeCollection; +} + +interface TextTrack extends EventTarget { + activeCues: TextTrackCueList; + cues: TextTrackCueList; + inBandMetadataTrackDispatchType: string; + kind: string; + label: string; + language: string; + mode: any; + oncuechange: (ev: Event) => any; + onerror: (ev: Event) => any; + onload: (ev: Event) => any; + readyState: number; + addCue(cue: TextTrackCue): void; + removeCue(cue: TextTrackCue): void; + DISABLED: number; + ERROR: number; + HIDDEN: number; + LOADED: number; + LOADING: number; + NONE: number; + SHOWING: number; + addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var TextTrack: { + prototype: TextTrack; + new(): TextTrack; + DISABLED: number; + ERROR: number; + HIDDEN: number; + LOADED: number; + LOADING: number; + NONE: number; + SHOWING: number; +} + +interface TextTrackCue extends EventTarget { + endTime: number; + id: string; + onenter: (ev: Event) => any; + onexit: (ev: Event) => any; + pauseOnExit: boolean; + startTime: number; + text: string; + track: TextTrack; + getCueAsHTML(): DocumentFragment; + addEventListener(type: "enter", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "exit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var TextTrackCue: { + prototype: TextTrackCue; + new(startTime: number, endTime: number, text: string): TextTrackCue; +} + +interface TextTrackCueList { + length: number; + getCueById(id: string): TextTrackCue; + item(index: number): TextTrackCue; + [index: number]: TextTrackCue; +} + +declare var TextTrackCueList: { + prototype: TextTrackCueList; + new(): TextTrackCueList; +} + +interface TextTrackList extends EventTarget { + length: number; + onaddtrack: (ev: TrackEvent) => any; + item(index: number): TextTrack; + addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + [index: number]: TextTrack; +} + +declare var TextTrackList: { + prototype: TextTrackList; + new(): TextTrackList; +} + +interface TimeRanges { + length: number; + end(index: number): number; + start(index: number): number; +} + +declare var TimeRanges: { + prototype: TimeRanges; + new(): TimeRanges; +} + +interface Touch { + clientX: number; + clientY: number; + identifier: number; + pageX: number; + pageY: number; + screenX: number; + screenY: number; + target: EventTarget; +} + +declare var Touch: { + prototype: Touch; + new(): Touch; +} + +interface TouchEvent extends UIEvent { + altKey: boolean; + changedTouches: TouchList; + ctrlKey: boolean; + metaKey: boolean; + shiftKey: boolean; + targetTouches: TouchList; + touches: TouchList; +} + +declare var TouchEvent: { + prototype: TouchEvent; + new(): TouchEvent; +} + +interface TouchList { + length: number; + item(index: number): Touch; + [index: number]: Touch; +} + +declare var TouchList: { + prototype: TouchList; + new(): TouchList; +} + +interface TrackEvent extends Event { + track: any; +} + +declare var TrackEvent: { + prototype: TrackEvent; + new(): TrackEvent; +} + +interface TransitionEvent extends Event { + elapsedTime: number; + propertyName: string; + initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void; +} + +declare var TransitionEvent: { + prototype: TransitionEvent; + new(): TransitionEvent; +} + +interface TreeWalker { + currentNode: Node; + expandEntityReferences: boolean; + filter: NodeFilter; + root: Node; + whatToShow: number; + firstChild(): Node; + lastChild(): Node; + nextNode(): Node; + nextSibling(): Node; + parentNode(): Node; + previousNode(): Node; + previousSibling(): Node; +} + +declare var TreeWalker: { + prototype: TreeWalker; + new(): TreeWalker; +} + +interface UIEvent extends Event { + detail: number; + view: Window; + initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void; +} + +declare var UIEvent: { + prototype: UIEvent; + new(type: string, eventInitDict?: UIEventInit): UIEvent; +} + +interface URL { + createObjectURL(object: any, options?: ObjectURLOptions): string; + revokeObjectURL(url: string): void; +} +declare var URL: URL; + +interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { + mediaType: string; +} + +declare var UnviewableContentIdentifiedEvent: { + prototype: UnviewableContentIdentifiedEvent; + new(): UnviewableContentIdentifiedEvent; +} + +interface ValidityState { + badInput: boolean; + customError: boolean; + patternMismatch: boolean; + rangeOverflow: boolean; + rangeUnderflow: boolean; + stepMismatch: boolean; + tooLong: boolean; + typeMismatch: boolean; + valid: boolean; + valueMissing: boolean; +} + +declare var ValidityState: { + prototype: ValidityState; + new(): ValidityState; +} + +interface VideoPlaybackQuality { + corruptedVideoFrames: number; + creationTime: number; + droppedVideoFrames: number; + totalFrameDelay: number; + totalVideoFrames: number; +} + +declare var VideoPlaybackQuality: { + prototype: VideoPlaybackQuality; + new(): VideoPlaybackQuality; +} + +interface VideoTrack { + id: string; + kind: string; + label: string; + language: string; + selected: boolean; + sourceBuffer: SourceBuffer; +} + +declare var VideoTrack: { + prototype: VideoTrack; + new(): VideoTrack; +} + +interface VideoTrackList extends EventTarget { + length: number; + onaddtrack: (ev: TrackEvent) => any; + onchange: (ev: Event) => any; + onremovetrack: (ev: TrackEvent) => any; + selectedIndex: number; + getTrackById(id: string): VideoTrack; + item(index: number): VideoTrack; + addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + [index: number]: VideoTrack; +} + +declare var VideoTrackList: { + prototype: VideoTrackList; + new(): VideoTrackList; +} + +interface WEBGL_compressed_texture_s3tc { + COMPRESSED_RGBA_S3TC_DXT1_EXT: number; + COMPRESSED_RGBA_S3TC_DXT3_EXT: number; + COMPRESSED_RGBA_S3TC_DXT5_EXT: number; + COMPRESSED_RGB_S3TC_DXT1_EXT: number; +} + +declare var WEBGL_compressed_texture_s3tc: { + prototype: WEBGL_compressed_texture_s3tc; + new(): WEBGL_compressed_texture_s3tc; + COMPRESSED_RGBA_S3TC_DXT1_EXT: number; + COMPRESSED_RGBA_S3TC_DXT3_EXT: number; + COMPRESSED_RGBA_S3TC_DXT5_EXT: number; + COMPRESSED_RGB_S3TC_DXT1_EXT: number; +} + +interface WEBGL_debug_renderer_info { + UNMASKED_RENDERER_WEBGL: number; + UNMASKED_VENDOR_WEBGL: number; +} + +declare var WEBGL_debug_renderer_info: { + prototype: WEBGL_debug_renderer_info; + new(): WEBGL_debug_renderer_info; + UNMASKED_RENDERER_WEBGL: number; + UNMASKED_VENDOR_WEBGL: number; +} + +interface WEBGL_depth_texture { + UNSIGNED_INT_24_8_WEBGL: number; +} + +declare var WEBGL_depth_texture: { + prototype: WEBGL_depth_texture; + new(): WEBGL_depth_texture; + UNSIGNED_INT_24_8_WEBGL: number; +} + +interface WaveShaperNode extends AudioNode { + curve: Float32Array; + oversample: string; +} + +declare var WaveShaperNode: { + prototype: WaveShaperNode; + new(): WaveShaperNode; +} + +interface WebGLActiveInfo { + name: string; + size: number; + type: number; +} + +declare var WebGLActiveInfo: { + prototype: WebGLActiveInfo; + new(): WebGLActiveInfo; +} + +interface WebGLBuffer extends WebGLObject { +} + +declare var WebGLBuffer: { + prototype: WebGLBuffer; + new(): WebGLBuffer; +} + +interface WebGLContextEvent extends Event { + statusMessage: string; +} + +declare var WebGLContextEvent: { + prototype: WebGLContextEvent; + new(): WebGLContextEvent; +} + +interface WebGLFramebuffer extends WebGLObject { +} + +declare var WebGLFramebuffer: { + prototype: WebGLFramebuffer; + new(): WebGLFramebuffer; +} + +interface WebGLObject { +} + +declare var WebGLObject: { + prototype: WebGLObject; + new(): WebGLObject; +} + +interface WebGLProgram extends WebGLObject { +} + +declare var WebGLProgram: { + prototype: WebGLProgram; + new(): WebGLProgram; +} + +interface WebGLRenderbuffer extends WebGLObject { +} + +declare var WebGLRenderbuffer: { + prototype: WebGLRenderbuffer; + new(): WebGLRenderbuffer; +} + +interface WebGLRenderingContext { + canvas: HTMLCanvasElement; + drawingBufferHeight: number; + drawingBufferWidth: number; + activeTexture(texture: number): void; + attachShader(program: WebGLProgram, shader: WebGLShader): void; + bindAttribLocation(program: WebGLProgram, index: number, name: string): void; + bindBuffer(target: number, buffer: WebGLBuffer): void; + bindFramebuffer(target: number, framebuffer: WebGLFramebuffer): void; + bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer): void; + bindTexture(target: number, texture: WebGLTexture): void; + blendColor(red: number, green: number, blue: number, alpha: number): void; + blendEquation(mode: number): void; + blendEquationSeparate(modeRGB: number, modeAlpha: number): void; + blendFunc(sfactor: number, dfactor: number): void; + blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void; + bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, usage: number): void; + bufferSubData(target: number, offset: number, data: ArrayBufferView | ArrayBuffer): void; + checkFramebufferStatus(target: number): number; + clear(mask: number): void; + clearColor(red: number, green: number, blue: number, alpha: number): void; + clearDepth(depth: number): void; + clearStencil(s: number): void; + colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void; + compileShader(shader: WebGLShader): void; + compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: ArrayBufferView): void; + compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: ArrayBufferView): void; + copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void; + copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void; + createBuffer(): WebGLBuffer; + createFramebuffer(): WebGLFramebuffer; + createProgram(): WebGLProgram; + createRenderbuffer(): WebGLRenderbuffer; + createShader(type: number): WebGLShader; + createTexture(): WebGLTexture; + cullFace(mode: number): void; + deleteBuffer(buffer: WebGLBuffer): void; + deleteFramebuffer(framebuffer: WebGLFramebuffer): void; + deleteProgram(program: WebGLProgram): void; + deleteRenderbuffer(renderbuffer: WebGLRenderbuffer): void; + deleteShader(shader: WebGLShader): void; + deleteTexture(texture: WebGLTexture): void; + depthFunc(func: number): void; + depthMask(flag: boolean): void; + depthRange(zNear: number, zFar: number): void; + detachShader(program: WebGLProgram, shader: WebGLShader): void; + disable(cap: number): void; + disableVertexAttribArray(index: number): void; + drawArrays(mode: number, first: number, count: number): void; + drawElements(mode: number, count: number, type: number, offset: number): void; + enable(cap: number): void; + enableVertexAttribArray(index: number): void; + finish(): void; + flush(): void; + framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer): void; + framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture, level: number): void; + frontFace(mode: number): void; + generateMipmap(target: number): void; + getActiveAttrib(program: WebGLProgram, index: number): WebGLActiveInfo; + getActiveUniform(program: WebGLProgram, index: number): WebGLActiveInfo; + getAttachedShaders(program: WebGLProgram): WebGLShader[]; + getAttribLocation(program: WebGLProgram, name: string): number; + getBufferParameter(target: number, pname: number): any; + getContextAttributes(): WebGLContextAttributes; + getError(): number; + getExtension(name: string): any; + getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any; + getParameter(pname: number): any; + getProgramInfoLog(program: WebGLProgram): string; + getProgramParameter(program: WebGLProgram, pname: number): any; + getRenderbufferParameter(target: number, pname: number): any; + getShaderInfoLog(shader: WebGLShader): string; + getShaderParameter(shader: WebGLShader, pname: number): any; + getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat; + getShaderSource(shader: WebGLShader): string; + getSupportedExtensions(): string[]; + getTexParameter(target: number, pname: number): any; + getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; + getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation; + getVertexAttrib(index: number, pname: number): any; + getVertexAttribOffset(index: number, pname: number): number; + hint(target: number, mode: number): void; + isBuffer(buffer: WebGLBuffer): boolean; + isContextLost(): boolean; + isEnabled(cap: number): boolean; + isFramebuffer(framebuffer: WebGLFramebuffer): boolean; + isProgram(program: WebGLProgram): boolean; + isRenderbuffer(renderbuffer: WebGLRenderbuffer): boolean; + isShader(shader: WebGLShader): boolean; + isTexture(texture: WebGLTexture): boolean; + lineWidth(width: number): void; + linkProgram(program: WebGLProgram): void; + pixelStorei(pname: number, param: number): void; + polygonOffset(factor: number, units: number): void; + readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void; + renderbufferStorage(target: number, internalformat: number, width: number, height: number): void; + sampleCoverage(value: number, invert: boolean): void; + scissor(x: number, y: number, width: number, height: number): void; + shaderSource(shader: WebGLShader, source: string): void; + stencilFunc(func: number, ref: number, mask: number): void; + stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void; + stencilMask(mask: number): void; + stencilMaskSeparate(face: number, mask: number): void; + stencilOp(fail: number, zfail: number, zpass: number): void; + stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void; + texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView): void; + texImage2D(target: number, level: number, internalformat: number, format: number, type: number, image: HTMLImageElement): void; + texImage2D(target: number, level: number, internalformat: number, format: number, type: number, canvas: HTMLCanvasElement): void; + texImage2D(target: number, level: number, internalformat: number, format: number, type: number, video: HTMLVideoElement): void; + texImage2D(target: number, level: number, internalformat: number, format: number, type: number, pixels: ImageData): void; + texParameterf(target: number, pname: number, param: number): void; + texParameteri(target: number, pname: number, param: number): void; + texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void; + texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, image: HTMLImageElement): void; + texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, canvas: HTMLCanvasElement): void; + texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, video: HTMLVideoElement): void; + texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, pixels: ImageData): void; + uniform1f(location: WebGLUniformLocation, x: number): void; + uniform1fv(location: WebGLUniformLocation, v: Float32Array): void; + uniform1i(location: WebGLUniformLocation, x: number): void; + uniform1iv(location: WebGLUniformLocation, v: Int32Array): void; + uniform2f(location: WebGLUniformLocation, x: number, y: number): void; + uniform2fv(location: WebGLUniformLocation, v: Float32Array): void; + uniform2i(location: WebGLUniformLocation, x: number, y: number): void; + uniform2iv(location: WebGLUniformLocation, v: Int32Array): void; + uniform3f(location: WebGLUniformLocation, x: number, y: number, z: number): void; + uniform3fv(location: WebGLUniformLocation, v: Float32Array): void; + uniform3i(location: WebGLUniformLocation, x: number, y: number, z: number): void; + uniform3iv(location: WebGLUniformLocation, v: Int32Array): void; + uniform4f(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void; + uniform4fv(location: WebGLUniformLocation, v: Float32Array): void; + uniform4i(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void; + uniform4iv(location: WebGLUniformLocation, v: Int32Array): void; + uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array): void; + uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array): void; + uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array): void; + useProgram(program: WebGLProgram): void; + validateProgram(program: WebGLProgram): void; + vertexAttrib1f(indx: number, x: number): void; + vertexAttrib1fv(indx: number, values: Float32Array): void; + vertexAttrib2f(indx: number, x: number, y: number): void; + vertexAttrib2fv(indx: number, values: Float32Array): void; + vertexAttrib3f(indx: number, x: number, y: number, z: number): void; + vertexAttrib3fv(indx: number, values: Float32Array): void; + vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): void; + vertexAttrib4fv(indx: number, values: Float32Array): void; + vertexAttribPointer(indx: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void; + viewport(x: number, y: number, width: number, height: number): void; + ACTIVE_ATTRIBUTES: number; + ACTIVE_TEXTURE: number; + ACTIVE_UNIFORMS: number; + ALIASED_LINE_WIDTH_RANGE: number; + ALIASED_POINT_SIZE_RANGE: number; + ALPHA: number; + ALPHA_BITS: number; + ALWAYS: number; + ARRAY_BUFFER: number; + ARRAY_BUFFER_BINDING: number; + ATTACHED_SHADERS: number; + BACK: number; + BLEND: number; + BLEND_COLOR: number; + BLEND_DST_ALPHA: number; + BLEND_DST_RGB: number; + BLEND_EQUATION: number; + BLEND_EQUATION_ALPHA: number; + BLEND_EQUATION_RGB: number; + BLEND_SRC_ALPHA: number; + BLEND_SRC_RGB: number; + BLUE_BITS: number; + BOOL: number; + BOOL_VEC2: number; + BOOL_VEC3: number; + BOOL_VEC4: number; + BROWSER_DEFAULT_WEBGL: number; + BUFFER_SIZE: number; + BUFFER_USAGE: number; + BYTE: number; + CCW: number; + CLAMP_TO_EDGE: number; + COLOR_ATTACHMENT0: number; + COLOR_BUFFER_BIT: number; + COLOR_CLEAR_VALUE: number; + COLOR_WRITEMASK: number; + COMPILE_STATUS: number; + COMPRESSED_TEXTURE_FORMATS: number; + CONSTANT_ALPHA: number; + CONSTANT_COLOR: number; + CONTEXT_LOST_WEBGL: number; + CULL_FACE: number; + CULL_FACE_MODE: number; + CURRENT_PROGRAM: number; + CURRENT_VERTEX_ATTRIB: number; + CW: number; + DECR: number; + DECR_WRAP: number; + DELETE_STATUS: number; + DEPTH_ATTACHMENT: number; + DEPTH_BITS: number; + DEPTH_BUFFER_BIT: number; + DEPTH_CLEAR_VALUE: number; + DEPTH_COMPONENT: number; + DEPTH_COMPONENT16: number; + DEPTH_FUNC: number; + DEPTH_RANGE: number; + DEPTH_STENCIL: number; + DEPTH_STENCIL_ATTACHMENT: number; + DEPTH_TEST: number; + DEPTH_WRITEMASK: number; + DITHER: number; + DONT_CARE: number; + DST_ALPHA: number; + DST_COLOR: number; + DYNAMIC_DRAW: number; + ELEMENT_ARRAY_BUFFER: number; + ELEMENT_ARRAY_BUFFER_BINDING: number; + EQUAL: number; + FASTEST: number; + FLOAT: number; + FLOAT_MAT2: number; + FLOAT_MAT3: number; + FLOAT_MAT4: number; + FLOAT_VEC2: number; + FLOAT_VEC3: number; + FLOAT_VEC4: number; + FRAGMENT_SHADER: number; + FRAMEBUFFER: number; + FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number; + FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number; + FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number; + FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number; + FRAMEBUFFER_BINDING: number; + FRAMEBUFFER_COMPLETE: number; + FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number; + FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number; + FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number; + FRAMEBUFFER_UNSUPPORTED: number; + FRONT: number; + FRONT_AND_BACK: number; + FRONT_FACE: number; + FUNC_ADD: number; + FUNC_REVERSE_SUBTRACT: number; + FUNC_SUBTRACT: number; + GENERATE_MIPMAP_HINT: number; + GEQUAL: number; + GREATER: number; + GREEN_BITS: number; + HIGH_FLOAT: number; + HIGH_INT: number; + IMPLEMENTATION_COLOR_READ_FORMAT: number; + IMPLEMENTATION_COLOR_READ_TYPE: number; + INCR: number; + INCR_WRAP: number; + INT: number; + INT_VEC2: number; + INT_VEC3: number; + INT_VEC4: number; + INVALID_ENUM: number; + INVALID_FRAMEBUFFER_OPERATION: number; + INVALID_OPERATION: number; + INVALID_VALUE: number; + INVERT: number; + KEEP: number; + LEQUAL: number; + LESS: number; + LINEAR: number; + LINEAR_MIPMAP_LINEAR: number; + LINEAR_MIPMAP_NEAREST: number; + LINES: number; + LINE_LOOP: number; + LINE_STRIP: number; + LINE_WIDTH: number; + LINK_STATUS: number; + LOW_FLOAT: number; + LOW_INT: number; + LUMINANCE: number; + LUMINANCE_ALPHA: number; + MAX_COMBINED_TEXTURE_IMAGE_UNITS: number; + MAX_CUBE_MAP_TEXTURE_SIZE: number; + MAX_FRAGMENT_UNIFORM_VECTORS: number; + MAX_RENDERBUFFER_SIZE: number; + MAX_TEXTURE_IMAGE_UNITS: number; + MAX_TEXTURE_SIZE: number; + MAX_VARYING_VECTORS: number; + MAX_VERTEX_ATTRIBS: number; + MAX_VERTEX_TEXTURE_IMAGE_UNITS: number; + MAX_VERTEX_UNIFORM_VECTORS: number; + MAX_VIEWPORT_DIMS: number; + MEDIUM_FLOAT: number; + MEDIUM_INT: number; + MIRRORED_REPEAT: number; + NEAREST: number; + NEAREST_MIPMAP_LINEAR: number; + NEAREST_MIPMAP_NEAREST: number; + NEVER: number; + NICEST: number; + NONE: number; + NOTEQUAL: number; + NO_ERROR: number; + ONE: number; + ONE_MINUS_CONSTANT_ALPHA: number; + ONE_MINUS_CONSTANT_COLOR: number; + ONE_MINUS_DST_ALPHA: number; + ONE_MINUS_DST_COLOR: number; + ONE_MINUS_SRC_ALPHA: number; + ONE_MINUS_SRC_COLOR: number; + OUT_OF_MEMORY: number; + PACK_ALIGNMENT: number; + POINTS: number; + POLYGON_OFFSET_FACTOR: number; + POLYGON_OFFSET_FILL: number; + POLYGON_OFFSET_UNITS: number; + RED_BITS: number; + RENDERBUFFER: number; + RENDERBUFFER_ALPHA_SIZE: number; + RENDERBUFFER_BINDING: number; + RENDERBUFFER_BLUE_SIZE: number; + RENDERBUFFER_DEPTH_SIZE: number; + RENDERBUFFER_GREEN_SIZE: number; + RENDERBUFFER_HEIGHT: number; + RENDERBUFFER_INTERNAL_FORMAT: number; + RENDERBUFFER_RED_SIZE: number; + RENDERBUFFER_STENCIL_SIZE: number; + RENDERBUFFER_WIDTH: number; + RENDERER: number; + REPEAT: number; + REPLACE: number; + RGB: number; + RGB565: number; + RGB5_A1: number; + RGBA: number; + RGBA4: number; + SAMPLER_2D: number; + SAMPLER_CUBE: number; + SAMPLES: number; + SAMPLE_ALPHA_TO_COVERAGE: number; + SAMPLE_BUFFERS: number; + SAMPLE_COVERAGE: number; + SAMPLE_COVERAGE_INVERT: number; + SAMPLE_COVERAGE_VALUE: number; + SCISSOR_BOX: number; + SCISSOR_TEST: number; + SHADER_TYPE: number; + SHADING_LANGUAGE_VERSION: number; + SHORT: number; + SRC_ALPHA: number; + SRC_ALPHA_SATURATE: number; + SRC_COLOR: number; + STATIC_DRAW: number; + STENCIL_ATTACHMENT: number; + STENCIL_BACK_FAIL: number; + STENCIL_BACK_FUNC: number; + STENCIL_BACK_PASS_DEPTH_FAIL: number; + STENCIL_BACK_PASS_DEPTH_PASS: number; + STENCIL_BACK_REF: number; + STENCIL_BACK_VALUE_MASK: number; + STENCIL_BACK_WRITEMASK: number; + STENCIL_BITS: number; + STENCIL_BUFFER_BIT: number; + STENCIL_CLEAR_VALUE: number; + STENCIL_FAIL: number; + STENCIL_FUNC: number; + STENCIL_INDEX: number; + STENCIL_INDEX8: number; + STENCIL_PASS_DEPTH_FAIL: number; + STENCIL_PASS_DEPTH_PASS: number; + STENCIL_REF: number; + STENCIL_TEST: number; + STENCIL_VALUE_MASK: number; + STENCIL_WRITEMASK: number; + STREAM_DRAW: number; + SUBPIXEL_BITS: number; + TEXTURE: number; + TEXTURE0: number; + TEXTURE1: number; + TEXTURE10: number; + TEXTURE11: number; + TEXTURE12: number; + TEXTURE13: number; + TEXTURE14: number; + TEXTURE15: number; + TEXTURE16: number; + TEXTURE17: number; + TEXTURE18: number; + TEXTURE19: number; + TEXTURE2: number; + TEXTURE20: number; + TEXTURE21: number; + TEXTURE22: number; + TEXTURE23: number; + TEXTURE24: number; + TEXTURE25: number; + TEXTURE26: number; + TEXTURE27: number; + TEXTURE28: number; + TEXTURE29: number; + TEXTURE3: number; + TEXTURE30: number; + TEXTURE31: number; + TEXTURE4: number; + TEXTURE5: number; + TEXTURE6: number; + TEXTURE7: number; + TEXTURE8: number; + TEXTURE9: number; + TEXTURE_2D: number; + TEXTURE_BINDING_2D: number; + TEXTURE_BINDING_CUBE_MAP: number; + TEXTURE_CUBE_MAP: number; + TEXTURE_CUBE_MAP_NEGATIVE_X: number; + TEXTURE_CUBE_MAP_NEGATIVE_Y: number; + TEXTURE_CUBE_MAP_NEGATIVE_Z: number; + TEXTURE_CUBE_MAP_POSITIVE_X: number; + TEXTURE_CUBE_MAP_POSITIVE_Y: number; + TEXTURE_CUBE_MAP_POSITIVE_Z: number; + TEXTURE_MAG_FILTER: number; + TEXTURE_MIN_FILTER: number; + TEXTURE_WRAP_S: number; + TEXTURE_WRAP_T: number; + TRIANGLES: number; + TRIANGLE_FAN: number; + TRIANGLE_STRIP: number; + UNPACK_ALIGNMENT: number; + UNPACK_COLORSPACE_CONVERSION_WEBGL: number; + UNPACK_FLIP_Y_WEBGL: number; + UNPACK_PREMULTIPLY_ALPHA_WEBGL: number; + UNSIGNED_BYTE: number; + UNSIGNED_INT: number; + UNSIGNED_SHORT: number; + UNSIGNED_SHORT_4_4_4_4: number; + UNSIGNED_SHORT_5_5_5_1: number; + UNSIGNED_SHORT_5_6_5: number; + VALIDATE_STATUS: number; + VENDOR: number; + VERSION: number; + VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number; + VERTEX_ATTRIB_ARRAY_ENABLED: number; + VERTEX_ATTRIB_ARRAY_NORMALIZED: number; + VERTEX_ATTRIB_ARRAY_POINTER: number; + VERTEX_ATTRIB_ARRAY_SIZE: number; + VERTEX_ATTRIB_ARRAY_STRIDE: number; + VERTEX_ATTRIB_ARRAY_TYPE: number; + VERTEX_SHADER: number; + VIEWPORT: number; + ZERO: number; +} + +declare var WebGLRenderingContext: { + prototype: WebGLRenderingContext; + new(): WebGLRenderingContext; + ACTIVE_ATTRIBUTES: number; + ACTIVE_TEXTURE: number; + ACTIVE_UNIFORMS: number; + ALIASED_LINE_WIDTH_RANGE: number; + ALIASED_POINT_SIZE_RANGE: number; + ALPHA: number; + ALPHA_BITS: number; + ALWAYS: number; + ARRAY_BUFFER: number; + ARRAY_BUFFER_BINDING: number; + ATTACHED_SHADERS: number; + BACK: number; + BLEND: number; + BLEND_COLOR: number; + BLEND_DST_ALPHA: number; + BLEND_DST_RGB: number; + BLEND_EQUATION: number; + BLEND_EQUATION_ALPHA: number; + BLEND_EQUATION_RGB: number; + BLEND_SRC_ALPHA: number; + BLEND_SRC_RGB: number; + BLUE_BITS: number; + BOOL: number; + BOOL_VEC2: number; + BOOL_VEC3: number; + BOOL_VEC4: number; + BROWSER_DEFAULT_WEBGL: number; + BUFFER_SIZE: number; + BUFFER_USAGE: number; + BYTE: number; + CCW: number; + CLAMP_TO_EDGE: number; + COLOR_ATTACHMENT0: number; + COLOR_BUFFER_BIT: number; + COLOR_CLEAR_VALUE: number; + COLOR_WRITEMASK: number; + COMPILE_STATUS: number; + COMPRESSED_TEXTURE_FORMATS: number; + CONSTANT_ALPHA: number; + CONSTANT_COLOR: number; + CONTEXT_LOST_WEBGL: number; + CULL_FACE: number; + CULL_FACE_MODE: number; + CURRENT_PROGRAM: number; + CURRENT_VERTEX_ATTRIB: number; + CW: number; + DECR: number; + DECR_WRAP: number; + DELETE_STATUS: number; + DEPTH_ATTACHMENT: number; + DEPTH_BITS: number; + DEPTH_BUFFER_BIT: number; + DEPTH_CLEAR_VALUE: number; + DEPTH_COMPONENT: number; + DEPTH_COMPONENT16: number; + DEPTH_FUNC: number; + DEPTH_RANGE: number; + DEPTH_STENCIL: number; + DEPTH_STENCIL_ATTACHMENT: number; + DEPTH_TEST: number; + DEPTH_WRITEMASK: number; + DITHER: number; + DONT_CARE: number; + DST_ALPHA: number; + DST_COLOR: number; + DYNAMIC_DRAW: number; + ELEMENT_ARRAY_BUFFER: number; + ELEMENT_ARRAY_BUFFER_BINDING: number; + EQUAL: number; + FASTEST: number; + FLOAT: number; + FLOAT_MAT2: number; + FLOAT_MAT3: number; + FLOAT_MAT4: number; + FLOAT_VEC2: number; + FLOAT_VEC3: number; + FLOAT_VEC4: number; + FRAGMENT_SHADER: number; + FRAMEBUFFER: number; + FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number; + FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number; + FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number; + FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number; + FRAMEBUFFER_BINDING: number; + FRAMEBUFFER_COMPLETE: number; + FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number; + FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number; + FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number; + FRAMEBUFFER_UNSUPPORTED: number; + FRONT: number; + FRONT_AND_BACK: number; + FRONT_FACE: number; + FUNC_ADD: number; + FUNC_REVERSE_SUBTRACT: number; + FUNC_SUBTRACT: number; + GENERATE_MIPMAP_HINT: number; + GEQUAL: number; + GREATER: number; + GREEN_BITS: number; + HIGH_FLOAT: number; + HIGH_INT: number; + IMPLEMENTATION_COLOR_READ_FORMAT: number; + IMPLEMENTATION_COLOR_READ_TYPE: number; + INCR: number; + INCR_WRAP: number; + INT: number; + INT_VEC2: number; + INT_VEC3: number; + INT_VEC4: number; + INVALID_ENUM: number; + INVALID_FRAMEBUFFER_OPERATION: number; + INVALID_OPERATION: number; + INVALID_VALUE: number; + INVERT: number; + KEEP: number; + LEQUAL: number; + LESS: number; + LINEAR: number; + LINEAR_MIPMAP_LINEAR: number; + LINEAR_MIPMAP_NEAREST: number; + LINES: number; + LINE_LOOP: number; + LINE_STRIP: number; + LINE_WIDTH: number; + LINK_STATUS: number; + LOW_FLOAT: number; + LOW_INT: number; + LUMINANCE: number; + LUMINANCE_ALPHA: number; + MAX_COMBINED_TEXTURE_IMAGE_UNITS: number; + MAX_CUBE_MAP_TEXTURE_SIZE: number; + MAX_FRAGMENT_UNIFORM_VECTORS: number; + MAX_RENDERBUFFER_SIZE: number; + MAX_TEXTURE_IMAGE_UNITS: number; + MAX_TEXTURE_SIZE: number; + MAX_VARYING_VECTORS: number; + MAX_VERTEX_ATTRIBS: number; + MAX_VERTEX_TEXTURE_IMAGE_UNITS: number; + MAX_VERTEX_UNIFORM_VECTORS: number; + MAX_VIEWPORT_DIMS: number; + MEDIUM_FLOAT: number; + MEDIUM_INT: number; + MIRRORED_REPEAT: number; + NEAREST: number; + NEAREST_MIPMAP_LINEAR: number; + NEAREST_MIPMAP_NEAREST: number; + NEVER: number; + NICEST: number; + NONE: number; + NOTEQUAL: number; + NO_ERROR: number; + ONE: number; + ONE_MINUS_CONSTANT_ALPHA: number; + ONE_MINUS_CONSTANT_COLOR: number; + ONE_MINUS_DST_ALPHA: number; + ONE_MINUS_DST_COLOR: number; + ONE_MINUS_SRC_ALPHA: number; + ONE_MINUS_SRC_COLOR: number; + OUT_OF_MEMORY: number; + PACK_ALIGNMENT: number; + POINTS: number; + POLYGON_OFFSET_FACTOR: number; + POLYGON_OFFSET_FILL: number; + POLYGON_OFFSET_UNITS: number; + RED_BITS: number; + RENDERBUFFER: number; + RENDERBUFFER_ALPHA_SIZE: number; + RENDERBUFFER_BINDING: number; + RENDERBUFFER_BLUE_SIZE: number; + RENDERBUFFER_DEPTH_SIZE: number; + RENDERBUFFER_GREEN_SIZE: number; + RENDERBUFFER_HEIGHT: number; + RENDERBUFFER_INTERNAL_FORMAT: number; + RENDERBUFFER_RED_SIZE: number; + RENDERBUFFER_STENCIL_SIZE: number; + RENDERBUFFER_WIDTH: number; + RENDERER: number; + REPEAT: number; + REPLACE: number; + RGB: number; + RGB565: number; + RGB5_A1: number; + RGBA: number; + RGBA4: number; + SAMPLER_2D: number; + SAMPLER_CUBE: number; + SAMPLES: number; + SAMPLE_ALPHA_TO_COVERAGE: number; + SAMPLE_BUFFERS: number; + SAMPLE_COVERAGE: number; + SAMPLE_COVERAGE_INVERT: number; + SAMPLE_COVERAGE_VALUE: number; + SCISSOR_BOX: number; + SCISSOR_TEST: number; + SHADER_TYPE: number; + SHADING_LANGUAGE_VERSION: number; + SHORT: number; + SRC_ALPHA: number; + SRC_ALPHA_SATURATE: number; + SRC_COLOR: number; + STATIC_DRAW: number; + STENCIL_ATTACHMENT: number; + STENCIL_BACK_FAIL: number; + STENCIL_BACK_FUNC: number; + STENCIL_BACK_PASS_DEPTH_FAIL: number; + STENCIL_BACK_PASS_DEPTH_PASS: number; + STENCIL_BACK_REF: number; + STENCIL_BACK_VALUE_MASK: number; + STENCIL_BACK_WRITEMASK: number; + STENCIL_BITS: number; + STENCIL_BUFFER_BIT: number; + STENCIL_CLEAR_VALUE: number; + STENCIL_FAIL: number; + STENCIL_FUNC: number; + STENCIL_INDEX: number; + STENCIL_INDEX8: number; + STENCIL_PASS_DEPTH_FAIL: number; + STENCIL_PASS_DEPTH_PASS: number; + STENCIL_REF: number; + STENCIL_TEST: number; + STENCIL_VALUE_MASK: number; + STENCIL_WRITEMASK: number; + STREAM_DRAW: number; + SUBPIXEL_BITS: number; + TEXTURE: number; + TEXTURE0: number; + TEXTURE1: number; + TEXTURE10: number; + TEXTURE11: number; + TEXTURE12: number; + TEXTURE13: number; + TEXTURE14: number; + TEXTURE15: number; + TEXTURE16: number; + TEXTURE17: number; + TEXTURE18: number; + TEXTURE19: number; + TEXTURE2: number; + TEXTURE20: number; + TEXTURE21: number; + TEXTURE22: number; + TEXTURE23: number; + TEXTURE24: number; + TEXTURE25: number; + TEXTURE26: number; + TEXTURE27: number; + TEXTURE28: number; + TEXTURE29: number; + TEXTURE3: number; + TEXTURE30: number; + TEXTURE31: number; + TEXTURE4: number; + TEXTURE5: number; + TEXTURE6: number; + TEXTURE7: number; + TEXTURE8: number; + TEXTURE9: number; + TEXTURE_2D: number; + TEXTURE_BINDING_2D: number; + TEXTURE_BINDING_CUBE_MAP: number; + TEXTURE_CUBE_MAP: number; + TEXTURE_CUBE_MAP_NEGATIVE_X: number; + TEXTURE_CUBE_MAP_NEGATIVE_Y: number; + TEXTURE_CUBE_MAP_NEGATIVE_Z: number; + TEXTURE_CUBE_MAP_POSITIVE_X: number; + TEXTURE_CUBE_MAP_POSITIVE_Y: number; + TEXTURE_CUBE_MAP_POSITIVE_Z: number; + TEXTURE_MAG_FILTER: number; + TEXTURE_MIN_FILTER: number; + TEXTURE_WRAP_S: number; + TEXTURE_WRAP_T: number; + TRIANGLES: number; + TRIANGLE_FAN: number; + TRIANGLE_STRIP: number; + UNPACK_ALIGNMENT: number; + UNPACK_COLORSPACE_CONVERSION_WEBGL: number; + UNPACK_FLIP_Y_WEBGL: number; + UNPACK_PREMULTIPLY_ALPHA_WEBGL: number; + UNSIGNED_BYTE: number; + UNSIGNED_INT: number; + UNSIGNED_SHORT: number; + UNSIGNED_SHORT_4_4_4_4: number; + UNSIGNED_SHORT_5_5_5_1: number; + UNSIGNED_SHORT_5_6_5: number; + VALIDATE_STATUS: number; + VENDOR: number; + VERSION: number; + VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number; + VERTEX_ATTRIB_ARRAY_ENABLED: number; + VERTEX_ATTRIB_ARRAY_NORMALIZED: number; + VERTEX_ATTRIB_ARRAY_POINTER: number; + VERTEX_ATTRIB_ARRAY_SIZE: number; + VERTEX_ATTRIB_ARRAY_STRIDE: number; + VERTEX_ATTRIB_ARRAY_TYPE: number; + VERTEX_SHADER: number; + VIEWPORT: number; + ZERO: number; +} + +interface WebGLShader extends WebGLObject { +} + +declare var WebGLShader: { + prototype: WebGLShader; + new(): WebGLShader; +} + +interface WebGLShaderPrecisionFormat { + precision: number; + rangeMax: number; + rangeMin: number; +} + +declare var WebGLShaderPrecisionFormat: { + prototype: WebGLShaderPrecisionFormat; + new(): WebGLShaderPrecisionFormat; +} + +interface WebGLTexture extends WebGLObject { +} + +declare var WebGLTexture: { + prototype: WebGLTexture; + new(): WebGLTexture; +} + +interface WebGLUniformLocation { +} + +declare var WebGLUniformLocation: { + prototype: WebGLUniformLocation; + new(): WebGLUniformLocation; +} + +interface WebKitCSSMatrix { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; + inverse(): WebKitCSSMatrix; + multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix; + rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix; + rotateAxisAngle(x: number, y: number, z: number, angle: number): WebKitCSSMatrix; + scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix; + setMatrixValue(value: string): void; + skewX(angle: number): WebKitCSSMatrix; + skewY(angle: number): WebKitCSSMatrix; + toString(): string; + translate(x: number, y: number, z?: number): WebKitCSSMatrix; +} + +declare var WebKitCSSMatrix: { + prototype: WebKitCSSMatrix; + new(text?: string): WebKitCSSMatrix; +} + +interface WebKitPoint { + x: number; + y: number; +} + +declare var WebKitPoint: { + prototype: WebKitPoint; + new(x?: number, y?: number): WebKitPoint; +} + +interface WebSocket extends EventTarget { + binaryType: string; + bufferedAmount: number; + extensions: string; + onclose: (ev: CloseEvent) => any; + onerror: (ev: Event) => any; + onmessage: (ev: MessageEvent) => any; + onopen: (ev: Event) => any; + protocol: string; + readyState: number; + url: string; + close(code?: number, reason?: string): void; + send(data: any): void; + CLOSED: number; + CLOSING: number; + CONNECTING: number; + OPEN: number; + addEventListener(type: "close", listener: (ev: CloseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; + addEventListener(type: "open", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var WebSocket: { + prototype: WebSocket; + new(url: string, protocols?: string | string[]): WebSocket; + CLOSED: number; + CLOSING: number; + CONNECTING: number; + OPEN: number; +} + +interface WheelEvent extends MouseEvent { + deltaMode: number; + deltaX: number; + deltaY: number; + deltaZ: number; + getCurrentPoint(element: Element): void; + initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void; + DOM_DELTA_LINE: number; + DOM_DELTA_PAGE: number; + DOM_DELTA_PIXEL: number; +} + +declare var WheelEvent: { + prototype: WheelEvent; + new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent; + DOM_DELTA_LINE: number; + DOM_DELTA_PAGE: number; + DOM_DELTA_PIXEL: number; +} + +interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64 { + animationStartTime: number; + applicationCache: ApplicationCache; + clientInformation: Navigator; + closed: boolean; + crypto: Crypto; + defaultStatus: string; + devicePixelRatio: number; + doNotTrack: string; + document: Document; + event: Event; + external: External; + frameElement: Element; + frames: Window; + history: History; + innerHeight: number; + innerWidth: number; + length: number; + location: Location; + locationbar: BarProp; + menubar: BarProp; + msAnimationStartTime: number; + name: string; + navigator: Navigator; + offscreenBuffering: string | boolean; + onabort: (ev: Event) => any; + onafterprint: (ev: Event) => any; + onbeforeprint: (ev: Event) => any; + onbeforeunload: (ev: BeforeUnloadEvent) => any; + onblur: (ev: FocusEvent) => any; + oncanplay: (ev: Event) => any; + oncanplaythrough: (ev: Event) => any; + onchange: (ev: Event) => any; + onclick: (ev: MouseEvent) => any; + oncompassneedscalibration: (ev: Event) => any; + oncontextmenu: (ev: PointerEvent) => any; + ondblclick: (ev: MouseEvent) => any; + ondevicemotion: (ev: DeviceMotionEvent) => any; + ondeviceorientation: (ev: DeviceOrientationEvent) => any; + ondrag: (ev: DragEvent) => any; + ondragend: (ev: DragEvent) => any; + ondragenter: (ev: DragEvent) => any; + ondragleave: (ev: DragEvent) => any; + ondragover: (ev: DragEvent) => any; + ondragstart: (ev: DragEvent) => any; + ondrop: (ev: DragEvent) => any; + ondurationchange: (ev: Event) => any; + onemptied: (ev: Event) => any; + onended: (ev: Event) => any; + onerror: ErrorEventHandler; + onfocus: (ev: FocusEvent) => any; + onhashchange: (ev: HashChangeEvent) => any; + oninput: (ev: Event) => any; + onkeydown: (ev: KeyboardEvent) => any; + onkeypress: (ev: KeyboardEvent) => any; + onkeyup: (ev: KeyboardEvent) => any; + onload: (ev: Event) => any; + onloadeddata: (ev: Event) => any; + onloadedmetadata: (ev: Event) => any; + onloadstart: (ev: Event) => any; + onmessage: (ev: MessageEvent) => any; + onmousedown: (ev: MouseEvent) => any; + onmouseenter: (ev: MouseEvent) => any; + onmouseleave: (ev: MouseEvent) => any; + onmousemove: (ev: MouseEvent) => any; + onmouseout: (ev: MouseEvent) => any; + onmouseover: (ev: MouseEvent) => any; + onmouseup: (ev: MouseEvent) => any; + onmousewheel: (ev: MouseWheelEvent) => any; + onmsgesturechange: (ev: MSGestureEvent) => any; + onmsgesturedoubletap: (ev: MSGestureEvent) => any; + onmsgestureend: (ev: MSGestureEvent) => any; + onmsgesturehold: (ev: MSGestureEvent) => any; + onmsgesturestart: (ev: MSGestureEvent) => any; + onmsgesturetap: (ev: MSGestureEvent) => any; + onmsinertiastart: (ev: MSGestureEvent) => any; + onmspointercancel: (ev: MSPointerEvent) => any; + onmspointerdown: (ev: MSPointerEvent) => any; + onmspointerenter: (ev: MSPointerEvent) => any; + onmspointerleave: (ev: MSPointerEvent) => any; + onmspointermove: (ev: MSPointerEvent) => any; + onmspointerout: (ev: MSPointerEvent) => any; + onmspointerover: (ev: MSPointerEvent) => any; + onmspointerup: (ev: MSPointerEvent) => any; + onoffline: (ev: Event) => any; + ononline: (ev: Event) => any; + onorientationchange: (ev: Event) => any; + onpagehide: (ev: PageTransitionEvent) => any; + onpageshow: (ev: PageTransitionEvent) => any; + onpause: (ev: Event) => any; + onplay: (ev: Event) => any; + onplaying: (ev: Event) => any; + onpopstate: (ev: PopStateEvent) => any; + onprogress: (ev: ProgressEvent) => any; + onratechange: (ev: Event) => any; + onreadystatechange: (ev: ProgressEvent) => any; + onreset: (ev: Event) => any; + onresize: (ev: UIEvent) => any; + onscroll: (ev: UIEvent) => any; + onseeked: (ev: Event) => any; + onseeking: (ev: Event) => any; + onselect: (ev: UIEvent) => any; + onstalled: (ev: Event) => any; + onstorage: (ev: StorageEvent) => any; + onsubmit: (ev: Event) => any; + onsuspend: (ev: Event) => any; + ontimeupdate: (ev: Event) => any; + ontouchcancel: any; + ontouchend: any; + ontouchmove: any; + ontouchstart: any; + onunload: (ev: Event) => any; + onvolumechange: (ev: Event) => any; + onwaiting: (ev: Event) => any; + opener: Window; + orientation: string | number; + outerHeight: number; + outerWidth: number; + pageXOffset: number; + pageYOffset: number; + parent: Window; + performance: Performance; + personalbar: BarProp; + screen: Screen; + screenLeft: number; + screenTop: number; + screenX: number; + screenY: number; + scrollX: number; + scrollY: number; + scrollbars: BarProp; + self: Window; + status: string; + statusbar: BarProp; + styleMedia: StyleMedia; + toolbar: BarProp; + top: Window; + window: Window; + URL: URL; + alert(message?: any): void; + blur(): void; + cancelAnimationFrame(handle: number): void; + captureEvents(): void; + close(): void; + confirm(message?: string): boolean; + focus(): void; + getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; + getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList; + getSelection(): Selection; + matchMedia(mediaQuery: string): MediaQueryList; + moveBy(x?: number, y?: number): void; + moveTo(x?: number, y?: number): void; + msCancelRequestAnimationFrame(handle: number): void; + msMatchMedia(mediaQuery: string): MediaQueryList; + msRequestAnimationFrame(callback: FrameRequestCallback): number; + msWriteProfilerMark(profilerMarkName: string): void; + open(url?: string, target?: string, features?: string, replace?: boolean): any; + postMessage(message: any, targetOrigin: string, ports?: any): void; + print(): void; + prompt(message?: string, _default?: string): string; + releaseEvents(): void; + requestAnimationFrame(callback: FrameRequestCallback): number; + resizeBy(x?: number, y?: number): void; + resizeTo(x?: number, y?: number): void; + scroll(x?: number, y?: number): void; + scrollBy(x?: number, y?: number): void; + scrollTo(x?: number, y?: number): void; + webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; + webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; + addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; + addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "compassneedscalibration", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "devicemotion", listener: (ev: DeviceMotionEvent) => any, useCapture?: boolean): void; + addEventListener(type: "deviceorientation", listener: (ev: DeviceOrientationEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; + addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; + addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; + addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; + addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; + addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; + addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + [index: number]: Window; +} + +declare var Window: { + prototype: Window; + new(): Window; +} + +interface Worker extends EventTarget, AbstractWorker { + onmessage: (ev: MessageEvent) => any; + postMessage(message: any, ports?: any): void; + terminate(): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var Worker: { + prototype: Worker; + new(stringUrl: string): Worker; +} + +interface XMLDocument extends Document { +} + +declare var XMLDocument: { + prototype: XMLDocument; + new(): XMLDocument; +} + +interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { + msCaching: string; + onreadystatechange: (ev: ProgressEvent) => any; + readyState: number; + response: any; + responseBody: any; + responseText: string; + responseType: string; + responseXML: any; + status: number; + statusText: string; + timeout: number; + upload: XMLHttpRequestUpload; + withCredentials: boolean; + abort(): void; + getAllResponseHeaders(): string; + getResponseHeader(header: string): string; + msCachingEnabled(): boolean; + open(method: string, url: string, async?: boolean, user?: string, password?: string): void; + overrideMimeType(mime: string): void; + send(data?: Document): void; + send(data?: string): void; + send(data?: any): void; + setRequestHeader(header: string, value: string): void; + DONE: number; + HEADERS_RECEIVED: number; + LOADING: number; + OPENED: number; + UNSENT: number; + addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var XMLHttpRequest: { + prototype: XMLHttpRequest; + new(): XMLHttpRequest; + DONE: number; + HEADERS_RECEIVED: number; + LOADING: number; + OPENED: number; + UNSENT: number; + create(): XMLHttpRequest; +} + +interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var XMLHttpRequestUpload: { + prototype: XMLHttpRequestUpload; + new(): XMLHttpRequestUpload; +} + +interface XMLSerializer { + serializeToString(target: Node): string; +} + +declare var XMLSerializer: { + prototype: XMLSerializer; + new(): XMLSerializer; +} + +interface XPathEvaluator { + createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; + createNSResolver(nodeResolver?: Node): XPathNSResolver; + evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult; +} + +declare var XPathEvaluator: { + prototype: XPathEvaluator; + new(): XPathEvaluator; +} + +interface XPathExpression { + evaluate(contextNode: Node, type: number, result: XPathResult): XPathExpression; +} + +declare var XPathExpression: { + prototype: XPathExpression; + new(): XPathExpression; +} + +interface XPathNSResolver { + lookupNamespaceURI(prefix: string): string; +} + +declare var XPathNSResolver: { + prototype: XPathNSResolver; + new(): XPathNSResolver; +} + +interface XPathResult { + booleanValue: boolean; + invalidIteratorState: boolean; + numberValue: number; + resultType: number; + singleNodeValue: Node; + snapshotLength: number; + stringValue: string; + iterateNext(): Node; + snapshotItem(index: number): Node; + ANY_TYPE: number; + ANY_UNORDERED_NODE_TYPE: number; + BOOLEAN_TYPE: number; + FIRST_ORDERED_NODE_TYPE: number; + NUMBER_TYPE: number; + ORDERED_NODE_ITERATOR_TYPE: number; + ORDERED_NODE_SNAPSHOT_TYPE: number; + STRING_TYPE: number; + UNORDERED_NODE_ITERATOR_TYPE: number; + UNORDERED_NODE_SNAPSHOT_TYPE: number; +} + +declare var XPathResult: { + prototype: XPathResult; + new(): XPathResult; + ANY_TYPE: number; + ANY_UNORDERED_NODE_TYPE: number; + BOOLEAN_TYPE: number; + FIRST_ORDERED_NODE_TYPE: number; + NUMBER_TYPE: number; + ORDERED_NODE_ITERATOR_TYPE: number; + ORDERED_NODE_SNAPSHOT_TYPE: number; + STRING_TYPE: number; + UNORDERED_NODE_ITERATOR_TYPE: number; + UNORDERED_NODE_SNAPSHOT_TYPE: number; +} + +interface XSLTProcessor { + clearParameters(): void; + getParameter(namespaceURI: string, localName: string): any; + importStylesheet(style: Node): void; + removeParameter(namespaceURI: string, localName: string): void; + reset(): void; + setParameter(namespaceURI: string, localName: string, value: any): void; + transformToDocument(source: Node): Document; + transformToFragment(source: Node, document: Document): DocumentFragment; +} + +declare var XSLTProcessor: { + prototype: XSLTProcessor; + new(): XSLTProcessor; +} + +interface AbstractWorker { + onerror: (ev: Event) => any; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +interface ChildNode { + remove(): void; +} + +interface DOML2DeprecatedColorProperty { + color: string; +} + +interface DOML2DeprecatedSizeProperty { + size: number; +} + +interface DocumentEvent { + createEvent(eventInterface:"AnimationEvent"): AnimationEvent; + createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent; + createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent; + createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent; + createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent; + createEvent(eventInterface:"CloseEvent"): CloseEvent; + createEvent(eventInterface:"CommandEvent"): CommandEvent; + createEvent(eventInterface:"CompositionEvent"): CompositionEvent; + createEvent(eventInterface:"CustomEvent"): CustomEvent; + createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent; + createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent; + createEvent(eventInterface:"DragEvent"): DragEvent; + createEvent(eventInterface:"ErrorEvent"): ErrorEvent; + createEvent(eventInterface:"Event"): Event; + createEvent(eventInterface:"Events"): Event; + createEvent(eventInterface:"FocusEvent"): FocusEvent; + createEvent(eventInterface:"GamepadEvent"): GamepadEvent; + createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent; + createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent; + createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent; + createEvent(eventInterface:"LongRunningScriptDetectedEvent"): LongRunningScriptDetectedEvent; + createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent; + createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent; + createEvent(eventInterface:"MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent; + createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent; + createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent; + createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent; + createEvent(eventInterface:"MessageEvent"): MessageEvent; + createEvent(eventInterface:"MouseEvent"): MouseEvent; + createEvent(eventInterface:"MouseEvents"): MouseEvent; + createEvent(eventInterface:"MouseWheelEvent"): MouseWheelEvent; + createEvent(eventInterface:"MutationEvent"): MutationEvent; + createEvent(eventInterface:"MutationEvents"): MutationEvent; + createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent; + createEvent(eventInterface:"NavigationEvent"): NavigationEvent; + createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer; + createEvent(eventInterface:"OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; + createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent; + createEvent(eventInterface:"PermissionRequestedEvent"): PermissionRequestedEvent; + createEvent(eventInterface:"PointerEvent"): PointerEvent; + createEvent(eventInterface:"PopStateEvent"): PopStateEvent; + createEvent(eventInterface:"ProgressEvent"): ProgressEvent; + createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent; + createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent; + createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent; + createEvent(eventInterface:"StorageEvent"): StorageEvent; + createEvent(eventInterface:"TextEvent"): TextEvent; + createEvent(eventInterface:"TouchEvent"): TouchEvent; + createEvent(eventInterface:"TrackEvent"): TrackEvent; + createEvent(eventInterface:"TransitionEvent"): TransitionEvent; + createEvent(eventInterface:"UIEvent"): UIEvent; + createEvent(eventInterface:"UIEvents"): UIEvent; + createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent; + createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent; + createEvent(eventInterface:"WheelEvent"): WheelEvent; + createEvent(eventInterface: string): Event; +} + +interface ElementTraversal { + childElementCount: number; + firstElementChild: Element; + lastElementChild: Element; + nextElementSibling: Element; + previousElementSibling: Element; +} + +interface GetSVGDocument { + getSVGDocument(): Document; +} + +interface GlobalEventHandlers { + onpointercancel: (ev: PointerEvent) => any; + onpointerdown: (ev: PointerEvent) => any; + onpointerenter: (ev: PointerEvent) => any; + onpointerleave: (ev: PointerEvent) => any; + onpointermove: (ev: PointerEvent) => any; + onpointerout: (ev: PointerEvent) => any; + onpointerover: (ev: PointerEvent) => any; + onpointerup: (ev: PointerEvent) => any; + onwheel: (ev: WheelEvent) => any; + addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; + addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +interface HTMLTableAlignment { + /** + * Sets or retrieves a value that you can use to implement your own ch functionality for the object. + */ + ch: string; + /** + * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. + */ + chOff: string; + /** + * Sets or retrieves how text and other content are vertically aligned within the object that contains them. + */ + vAlign: string; +} + +interface IDBEnvironment { + indexedDB: IDBFactory; + msIndexedDB: IDBFactory; +} + +interface LinkStyle { + sheet: StyleSheet; +} + +interface MSBaseReader { + onabort: (ev: Event) => any; + onerror: (ev: Event) => any; + onload: (ev: Event) => any; + onloadend: (ev: ProgressEvent) => any; + onloadstart: (ev: Event) => any; + onprogress: (ev: ProgressEvent) => any; + readyState: number; + result: any; + abort(): void; + DONE: number; + EMPTY: number; + LOADING: number; + addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +interface MSFileSaver { + msSaveBlob(blob: any, defaultName?: string): boolean; + msSaveOrOpenBlob(blob: any, defaultName?: string): boolean; +} + +interface MSNavigatorDoNotTrack { + confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean; + confirmWebWideTrackingException(args: ExceptionInformation): boolean; + removeSiteSpecificTrackingException(args: ExceptionInformation): void; + removeWebWideTrackingException(args: ExceptionInformation): void; + storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void; + storeWebWideTrackingException(args: StoreExceptionsInformation): void; +} + +interface NavigatorContentUtils { +} + +interface NavigatorGeolocation { + geolocation: Geolocation; +} + +interface NavigatorID { + appName: string; + appVersion: string; + platform: string; + product: string; + productSub: string; + userAgent: string; + vendor: string; + vendorSub: string; +} + +interface NavigatorOnLine { + onLine: boolean; +} + +interface NavigatorStorageUtils { +} + +interface NodeSelector { + querySelector(selectors: string): Element; + querySelectorAll(selectors: string): NodeListOf; +} + +interface RandomSource { + getRandomValues(array: ArrayBufferView): ArrayBufferView; +} + +interface SVGAnimatedPathData { + pathSegList: SVGPathSegList; +} + +interface SVGAnimatedPoints { + animatedPoints: SVGPointList; + points: SVGPointList; +} + +interface SVGExternalResourcesRequired { + externalResourcesRequired: SVGAnimatedBoolean; +} + +interface SVGFilterPrimitiveStandardAttributes extends SVGStylable { + height: SVGAnimatedLength; + result: SVGAnimatedString; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; +} + +interface SVGFitToViewBox { + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + viewBox: SVGAnimatedRect; +} + +interface SVGLangSpace { + xmllang: string; + xmlspace: string; +} + +interface SVGLocatable { + farthestViewportElement: SVGElement; + nearestViewportElement: SVGElement; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(element: SVGElement): SVGMatrix; +} + +interface SVGStylable { + className: any; + style: CSSStyleDeclaration; +} + +interface SVGTests { + requiredExtensions: SVGStringList; + requiredFeatures: SVGStringList; + systemLanguage: SVGStringList; + hasExtension(extension: string): boolean; +} + +interface SVGTransformable extends SVGLocatable { + transform: SVGAnimatedTransformList; +} + +interface SVGURIReference { + href: SVGAnimatedString; +} + +interface WindowBase64 { + atob(encodedString: string): string; + btoa(rawString: string): string; +} + +interface WindowConsole { + console: Console; +} + +interface WindowLocalStorage { + localStorage: Storage; +} + +interface WindowSessionStorage { + sessionStorage: Storage; +} + +interface WindowTimers extends Object, WindowTimersExtension { + clearInterval(handle: number): void; + clearTimeout(handle: number): void; + setInterval(handler: any, timeout?: any, ...args: any[]): number; + setTimeout(handler: any, timeout?: any, ...args: any[]): number; +} + +interface WindowTimersExtension { + clearImmediate(handle: number): void; + msClearImmediate(handle: number): void; + msSetImmediate(expression: any, ...args: any[]): number; + setImmediate(expression: any, ...args: any[]): number; +} + +interface XMLHttpRequestEventTarget { + onabort: (ev: Event) => any; + onerror: (ev: Event) => any; + onload: (ev: Event) => any; + onloadend: (ev: ProgressEvent) => any; + onloadstart: (ev: Event) => any; + onprogress: (ev: ProgressEvent) => any; + ontimeout: (ev: ProgressEvent) => any; + addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; + addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; + addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +interface NodeListOf extends NodeList { + length: number; + item(index: number): TNode; + [index: number]: TNode; +} + +interface BlobPropertyBag { + type?: string; + endings?: string; +} + +interface FilePropertyBag { + type?: string; + lastModified?: number; +} + +interface EventListenerObject { + handleEvent(evt: Event): void; +} + +interface MessageEventInit extends EventInit { + data?: any; + origin?: string; + lastEventId?: string; + channel?: string; + source?: any; + ports?: MessagePort[]; +} + +interface ProgressEventInit extends EventInit { + lengthComputable?: boolean; + loaded?: number; + total?: number; +} + +declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; + +interface ErrorEventHandler { + (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; +} +interface PositionCallback { + (position: Position): void; +} +interface PositionErrorCallback { + (error: PositionError): void; +} +interface MediaQueryListListener { + (mql: MediaQueryList): void; +} +interface MSLaunchUriCallback { + (): void; +} +interface FrameRequestCallback { + (time: number): void; +} +interface MSUnsafeFunctionCallback { + (): any; +} +interface MSExecAtPriorityFunctionCallback { + (...args: any[]): any; +} +interface MutationCallback { + (mutations: MutationRecord[], observer: MutationObserver): void; +} +interface DecodeSuccessCallback { + (decodedData: AudioBuffer): void; +} +interface DecodeErrorCallback { + (): void; +} +interface FunctionStringCallback { + (data: string): void; +} +declare var Audio: {new(src?: string): HTMLAudioElement; }; +declare var Image: {new(width?: number, height?: number): HTMLImageElement; }; +declare var Option: {new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; }; +declare var animationStartTime: number; +declare var applicationCache: ApplicationCache; +declare var clientInformation: Navigator; +declare var closed: boolean; +declare var crypto: Crypto; +declare var defaultStatus: string; +declare var devicePixelRatio: number; +declare var doNotTrack: string; +declare var document: Document; +declare var event: Event; +declare var external: External; +declare var frameElement: Element; +declare var frames: Window; +declare var history: History; +declare var innerHeight: number; +declare var innerWidth: number; +declare var length: number; +declare var location: Location; +declare var locationbar: BarProp; +declare var menubar: BarProp; +declare var msAnimationStartTime: number; +declare var name: string; +declare var navigator: Navigator; +declare var offscreenBuffering: string | boolean; +declare var onabort: (ev: Event) => any; +declare var onafterprint: (ev: Event) => any; +declare var onbeforeprint: (ev: Event) => any; +declare var onbeforeunload: (ev: BeforeUnloadEvent) => any; +declare var onblur: (ev: FocusEvent) => any; +declare var oncanplay: (ev: Event) => any; +declare var oncanplaythrough: (ev: Event) => any; +declare var onchange: (ev: Event) => any; +declare var onclick: (ev: MouseEvent) => any; +declare var oncompassneedscalibration: (ev: Event) => any; +declare var oncontextmenu: (ev: PointerEvent) => any; +declare var ondblclick: (ev: MouseEvent) => any; +declare var ondevicemotion: (ev: DeviceMotionEvent) => any; +declare var ondeviceorientation: (ev: DeviceOrientationEvent) => any; +declare var ondrag: (ev: DragEvent) => any; +declare var ondragend: (ev: DragEvent) => any; +declare var ondragenter: (ev: DragEvent) => any; +declare var ondragleave: (ev: DragEvent) => any; +declare var ondragover: (ev: DragEvent) => any; +declare var ondragstart: (ev: DragEvent) => any; +declare var ondrop: (ev: DragEvent) => any; +declare var ondurationchange: (ev: Event) => any; +declare var onemptied: (ev: Event) => any; +declare var onended: (ev: Event) => any; +declare var onerror: ErrorEventHandler; +declare var onfocus: (ev: FocusEvent) => any; +declare var onhashchange: (ev: HashChangeEvent) => any; +declare var oninput: (ev: Event) => any; +declare var onkeydown: (ev: KeyboardEvent) => any; +declare var onkeypress: (ev: KeyboardEvent) => any; +declare var onkeyup: (ev: KeyboardEvent) => any; +declare var onload: (ev: Event) => any; +declare var onloadeddata: (ev: Event) => any; +declare var onloadedmetadata: (ev: Event) => any; +declare var onloadstart: (ev: Event) => any; +declare var onmessage: (ev: MessageEvent) => any; +declare var onmousedown: (ev: MouseEvent) => any; +declare var onmouseenter: (ev: MouseEvent) => any; +declare var onmouseleave: (ev: MouseEvent) => any; +declare var onmousemove: (ev: MouseEvent) => any; +declare var onmouseout: (ev: MouseEvent) => any; +declare var onmouseover: (ev: MouseEvent) => any; +declare var onmouseup: (ev: MouseEvent) => any; +declare var onmousewheel: (ev: MouseWheelEvent) => any; +declare var onmsgesturechange: (ev: MSGestureEvent) => any; +declare var onmsgesturedoubletap: (ev: MSGestureEvent) => any; +declare var onmsgestureend: (ev: MSGestureEvent) => any; +declare var onmsgesturehold: (ev: MSGestureEvent) => any; +declare var onmsgesturestart: (ev: MSGestureEvent) => any; +declare var onmsgesturetap: (ev: MSGestureEvent) => any; +declare var onmsinertiastart: (ev: MSGestureEvent) => any; +declare var onmspointercancel: (ev: MSPointerEvent) => any; +declare var onmspointerdown: (ev: MSPointerEvent) => any; +declare var onmspointerenter: (ev: MSPointerEvent) => any; +declare var onmspointerleave: (ev: MSPointerEvent) => any; +declare var onmspointermove: (ev: MSPointerEvent) => any; +declare var onmspointerout: (ev: MSPointerEvent) => any; +declare var onmspointerover: (ev: MSPointerEvent) => any; +declare var onmspointerup: (ev: MSPointerEvent) => any; +declare var onoffline: (ev: Event) => any; +declare var ononline: (ev: Event) => any; +declare var onorientationchange: (ev: Event) => any; +declare var onpagehide: (ev: PageTransitionEvent) => any; +declare var onpageshow: (ev: PageTransitionEvent) => any; +declare var onpause: (ev: Event) => any; +declare var onplay: (ev: Event) => any; +declare var onplaying: (ev: Event) => any; +declare var onpopstate: (ev: PopStateEvent) => any; +declare var onprogress: (ev: ProgressEvent) => any; +declare var onratechange: (ev: Event) => any; +declare var onreadystatechange: (ev: ProgressEvent) => any; +declare var onreset: (ev: Event) => any; +declare var onresize: (ev: UIEvent) => any; +declare var onscroll: (ev: UIEvent) => any; +declare var onseeked: (ev: Event) => any; +declare var onseeking: (ev: Event) => any; +declare var onselect: (ev: UIEvent) => any; +declare var onstalled: (ev: Event) => any; +declare var onstorage: (ev: StorageEvent) => any; +declare var onsubmit: (ev: Event) => any; +declare var onsuspend: (ev: Event) => any; +declare var ontimeupdate: (ev: Event) => any; +declare var ontouchcancel: any; +declare var ontouchend: any; +declare var ontouchmove: any; +declare var ontouchstart: any; +declare var onunload: (ev: Event) => any; +declare var onvolumechange: (ev: Event) => any; +declare var onwaiting: (ev: Event) => any; +declare var opener: Window; +declare var orientation: string | number; +declare var outerHeight: number; +declare var outerWidth: number; +declare var pageXOffset: number; +declare var pageYOffset: number; +declare var parent: Window; +declare var performance: Performance; +declare var personalbar: BarProp; +declare var screen: Screen; +declare var screenLeft: number; +declare var screenTop: number; +declare var screenX: number; +declare var screenY: number; +declare var scrollX: number; +declare var scrollY: number; +declare var scrollbars: BarProp; +declare var self: Window; +declare var status: string; +declare var statusbar: BarProp; +declare var styleMedia: StyleMedia; +declare var toolbar: BarProp; +declare var top: Window; +declare var window: Window; +declare var URL: URL; +declare function alert(message?: any): void; +declare function blur(): void; +declare function cancelAnimationFrame(handle: number): void; +declare function captureEvents(): void; +declare function close(): void; +declare function confirm(message?: string): boolean; +declare function focus(): void; +declare function getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; +declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList; +declare function getSelection(): Selection; +declare function matchMedia(mediaQuery: string): MediaQueryList; +declare function moveBy(x?: number, y?: number): void; +declare function moveTo(x?: number, y?: number): void; +declare function msCancelRequestAnimationFrame(handle: number): void; +declare function msMatchMedia(mediaQuery: string): MediaQueryList; +declare function msRequestAnimationFrame(callback: FrameRequestCallback): number; +declare function msWriteProfilerMark(profilerMarkName: string): void; +declare function open(url?: string, target?: string, features?: string, replace?: boolean): any; +declare function postMessage(message: any, targetOrigin: string, ports?: any): void; +declare function print(): void; +declare function prompt(message?: string, _default?: string): string; +declare function releaseEvents(): void; +declare function requestAnimationFrame(callback: FrameRequestCallback): number; +declare function resizeBy(x?: number, y?: number): void; +declare function resizeTo(x?: number, y?: number): void; +declare function scroll(x?: number, y?: number): void; +declare function scrollBy(x?: number, y?: number): void; +declare function scrollTo(x?: number, y?: number): void; +declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; +declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; +declare function toString(): string; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +declare function dispatchEvent(evt: Event): boolean; +declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +declare function clearInterval(handle: number): void; +declare function clearTimeout(handle: number): void; +declare function setInterval(handler: any, timeout?: any, ...args: any[]): number; +declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number; +declare function clearImmediate(handle: number): void; +declare function msClearImmediate(handle: number): void; +declare function msSetImmediate(expression: any, ...args: any[]): number; +declare function setImmediate(expression: any, ...args: any[]): number; +declare var sessionStorage: Storage; +declare var localStorage: Storage; +declare var console: Console; +declare var onpointercancel: (ev: PointerEvent) => any; +declare var onpointerdown: (ev: PointerEvent) => any; +declare var onpointerenter: (ev: PointerEvent) => any; +declare var onpointerleave: (ev: PointerEvent) => any; +declare var onpointermove: (ev: PointerEvent) => any; +declare var onpointerout: (ev: PointerEvent) => any; +declare var onpointerover: (ev: PointerEvent) => any; +declare var onpointerup: (ev: PointerEvent) => any; +declare var onwheel: (ev: WheelEvent) => any; +declare var indexedDB: IDBFactory; +declare var msIndexedDB: IDBFactory; +declare function atob(encodedString: string): string; +declare function btoa(rawString: string): string; +declare function addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "compassneedscalibration", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "devicemotion", listener: (ev: DeviceMotionEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "deviceorientation", listener: (ev: DeviceOrientationEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; +declare function addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +///////////////////////////// +/// WorkerGlobalScope APIs +///////////////////////////// +// These are only available in a Web Worker +declare function importScripts(...urls: string[]): void; + + +///////////////////////////// +/// Windows Script Host APIS +///////////////////////////// + + +interface ActiveXObject { + new (s: string): any; +} +declare var ActiveXObject: ActiveXObject; + +interface ITextWriter { + Write(s: string): void; + WriteLine(s: string): void; + Close(): void; +} + +interface TextStreamBase { + /** + * The column number of the current character position in an input stream. + */ + Column: number; + + /** + * The current line number in an input stream. + */ + Line: number; + + /** + * Closes a text stream. + * It is not necessary to close standard streams; they close automatically when the process ends. If + * you close a standard stream, be aware that any other pointers to that standard stream become invalid. + */ + Close(): void; +} + +interface TextStreamWriter extends TextStreamBase { + /** + * Sends a string to an output stream. + */ + Write(s: string): void; + + /** + * Sends a specified number of blank lines (newline characters) to an output stream. + */ + WriteBlankLines(intLines: number): void; + + /** + * Sends a string followed by a newline character to an output stream. + */ + WriteLine(s: string): void; +} + +interface TextStreamReader extends TextStreamBase { + /** + * Returns a specified number of characters from an input stream, starting at the current pointer position. + * Does not return until the ENTER key is pressed. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + Read(characters: number): string; + + /** + * Returns all characters from an input stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + ReadAll(): string; + + /** + * Returns an entire line from an input stream. + * Although this method extracts the newline character, it does not add it to the returned string. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + ReadLine(): string; + + /** + * Skips a specified number of characters when reading from an input text stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.) + */ + Skip(characters: number): void; + + /** + * Skips the next line when reading from an input text stream. + * Can only be used on a stream in reading mode, not writing or appending mode. + */ + SkipLine(): void; + + /** + * Indicates whether the stream pointer position is at the end of a line. + */ + AtEndOfLine: boolean; + + /** + * Indicates whether the stream pointer position is at the end of a stream. + */ + AtEndOfStream: boolean; +} + +declare var WScript: { + /** + * Outputs text to either a message box (under WScript.exe) or the command console window followed by + * a newline (under CScript.exe). + */ + Echo(s: any): void; + + /** + * Exposes the write-only error output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdErr: TextStreamWriter; + + /** + * Exposes the write-only output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdOut: TextStreamWriter; + Arguments: { length: number; Item(n: number): string; }; + + /** + * The full path of the currently running script. + */ + ScriptFullName: string; + + /** + * Forces the script to stop immediately, with an optional exit code. + */ + Quit(exitCode?: number): number; + + /** + * The Windows Script Host build version number. + */ + BuildVersion: number; + + /** + * Fully qualified path of the host executable. + */ + FullName: string; + + /** + * Gets/sets the script mode - interactive(true) or batch(false). + */ + Interactive: boolean; + + /** + * The name of the host executable (WScript.exe or CScript.exe). + */ + Name: string; + + /** + * Path of the directory containing the host executable. + */ + Path: string; + + /** + * The filename of the currently running script. + */ + ScriptName: string; + + /** + * Exposes the read-only input stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdIn: TextStreamReader; + + /** + * Windows Script Host version + */ + Version: string; + + /** + * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event. + */ + ConnectObject(objEventSource: any, strPrefix: string): void; + + /** + * Creates a COM object. + * @param strProgiID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + CreateObject(strProgID: string, strPrefix?: string): any; + + /** + * Disconnects a COM object from its event sources. + */ + DisconnectObject(obj: any): void; + + /** + * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file. + * @param strPathname Fully qualified path to the file containing the object persisted to disk. + * For objects in memory, pass a zero-length string. + * @param strProgID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any; + + /** + * Suspends script execution for a specified length of time, then continues execution. + * @param intTime Interval (in milliseconds) to suspend script execution. + */ + Sleep(intTime: number): void; +}; + +/** + * Allows enumerating over a COM collection, which may not have indexed item access. + */ +interface Enumerator { + /** + * Returns true if the current item is the last one in the collection, or the collection is empty, + * or the current item is undefined. + */ + atEnd(): boolean; + + /** + * Returns the current item in the collection + */ + item(): T; + + /** + * Resets the current item in the collection to the first item. If there are no items in the collection, + * the current item is set to undefined. + */ + moveFirst(): void; + + /** + * Moves the current item to the next item in the collection. If the enumerator is at the end of + * the collection or the collection is empty, the current item is set to undefined. + */ + moveNext(): void; +} + +interface EnumeratorConstructor { + new (collection: any): Enumerator; + new (collection: any): Enumerator; +} + +declare var Enumerator: EnumeratorConstructor; + +/** + * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions. + */ +interface VBArray { + /** + * Returns the number of dimensions (1-based). + */ + dimensions(): number; + + /** + * Takes an index for each dimension in the array, and returns the item at the corresponding location. + */ + getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T; + + /** + * Returns the smallest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + lbound(dimension?: number): number; + + /** + * Returns the largest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + ubound(dimension?: number): number; + + /** + * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions, + * each successive dimension is appended to the end of the array. + * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6] + */ + toArray(): T[]; +} + +interface VBArrayConstructor { + new (safeArray: any): VBArray; + new (safeArray: any): VBArray; +} + +declare var VBArray: VBArrayConstructor; diff --git a/tests/lib/react.d.ts b/tests/lib/react.d.ts new file mode 100644 index 00000000000..0a3b0fdfabf --- /dev/null +++ b/tests/lib/react.d.ts @@ -0,0 +1,1034 @@ +// Type definitions for React v0.14 +// Project: http://facebook.github.io/react/ +// Definitions by: Asana , AssureSign , Microsoft +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare namespace __React { + // + // React Elements + // ---------------------------------------------------------------------- + + type ReactType = string | ComponentClass | StatelessComponent; + + interface ReactElement

> { + type: string | ComponentClass

| StatelessComponent

; + props: P; + key: string | number; + ref: string | ((component: Component | Element) => any); + } + + interface ClassicElement

extends ReactElement

{ + type: ClassicComponentClass

; + ref: string | ((component: ClassicComponent) => any); + } + + interface DOMElement

> extends ReactElement

{ + type: string; + ref: string | ((element: Element) => any); + } + + interface ReactHTMLElement extends DOMElement> { + ref: string | ((element: HTMLElement) => any); + } + + interface ReactSVGElement extends DOMElement { + ref: string | ((element: SVGElement) => any); + } + + // + // Factories + // ---------------------------------------------------------------------- + + interface Factory

{ + (props?: P, ...children: ReactNode[]): ReactElement

; + } + + interface ClassicFactory

extends Factory

{ + (props?: P, ...children: ReactNode[]): ClassicElement

; + } + + interface DOMFactory

> extends Factory

{ + (props?: P, ...children: ReactNode[]): DOMElement

; + } + + type HTMLFactory = DOMFactory>; + type SVGFactory = DOMFactory; + + // + // React Nodes + // http://facebook.github.io/react/docs/glossary.html + // ---------------------------------------------------------------------- + + type ReactText = string | number; + type ReactChild = ReactElement | ReactText; + + // Should be Array but type aliases cannot be recursive + type ReactFragment = {} | Array; + type ReactNode = ReactChild | ReactFragment | boolean; + + // + // Top Level API + // ---------------------------------------------------------------------- + + function createClass(spec: ComponentSpec): ClassicComponentClass

; + + function createFactory

(type: string): DOMFactory

; + function createFactory

(type: ClassicComponentClass

): ClassicFactory

; + function createFactory

(type: ComponentClass

| StatelessComponent

): Factory

; + + function createElement

( + type: string, + props?: P, + ...children: ReactNode[]): DOMElement

; + function createElement

( + type: ClassicComponentClass

, + props?: P, + ...children: ReactNode[]): ClassicElement

; + function createElement

( + type: ComponentClass

| StatelessComponent

, + props?: P, + ...children: ReactNode[]): ReactElement

; + + function cloneElement

( + element: DOMElement

, + props?: P, + ...children: ReactNode[]): DOMElement

; + function cloneElement

( + element: ClassicElement

, + props?: P, + ...children: ReactNode[]): ClassicElement

; + function cloneElement

( + element: ReactElement

, + props?: P, + ...children: ReactNode[]): ReactElement

; + + function isValidElement(object: {}): boolean; + + var DOM: ReactDOM; + var PropTypes: ReactPropTypes; + var Children: ReactChildren; + + // + // Component API + // ---------------------------------------------------------------------- + + type ReactInstance = Component | Element; + + // Base component for plain JS classes + class Component implements ComponentLifecycle { + constructor(props?: P, context?: any); + setState(f: (prevState: S, props: P) => S, callback?: () => any): void; + setState(state: S, callback?: () => any): void; + forceUpdate(callBack?: () => any): void; + render(): JSX.Element; + props: P; + state: S; + context: {}; + refs: { + [key: string]: ReactInstance + }; + } + + interface ClassicComponent extends Component { + replaceState(nextState: S, callback?: () => any): void; + isMounted(): boolean; + getInitialState?(): S; + } + + interface ChildContextProvider { + getChildContext(): CC; + } + + // + // Class Interfaces + // ---------------------------------------------------------------------- + + interface StatelessComponent

{ + (props?: P, context?: any): ReactElement; + propTypes?: ValidationMap

; + contextTypes?: ValidationMap; + defaultProps?: P; + } + + interface ComponentClass

{ + new(props?: P, context?: any): Component; + propTypes?: ValidationMap

; + contextTypes?: ValidationMap; + childContextTypes?: ValidationMap; + defaultProps?: P; + } + + interface ClassicComponentClass

extends ComponentClass

{ + new(props?: P, context?: any): ClassicComponent; + getDefaultProps?(): P; + displayName?: string; + } + + // + // Component Specs and Lifecycle + // ---------------------------------------------------------------------- + + interface ComponentLifecycle { + componentWillMount?(): void; + componentDidMount?(): void; + componentWillReceiveProps?(nextProps: P, nextContext: any): void; + shouldComponentUpdate?(nextProps: P, nextState: S, nextContext: any): boolean; + componentWillUpdate?(nextProps: P, nextState: S, nextContext: any): void; + componentDidUpdate?(prevProps: P, prevState: S, prevContext: any): void; + componentWillUnmount?(): void; + } + + interface Mixin extends ComponentLifecycle { + mixins?: Mixin; + statics?: { + [key: string]: any; + }; + + displayName?: string; + propTypes?: ValidationMap; + contextTypes?: ValidationMap; + childContextTypes?: ValidationMap + + getDefaultProps?(): P; + getInitialState?(): S; + } + + interface ComponentSpec extends Mixin { + render(): ReactElement; + + [propertyName: string]: any; + } + + // + // Event System + // ---------------------------------------------------------------------- + + interface SyntheticEvent { + bubbles: boolean; + cancelable: boolean; + currentTarget: EventTarget; + defaultPrevented: boolean; + eventPhase: number; + isTrusted: boolean; + nativeEvent: Event; + preventDefault(): void; + stopPropagation(): void; + target: EventTarget; + timeStamp: Date; + type: string; + } + + interface ClipboardEvent extends SyntheticEvent { + clipboardData: DataTransfer; + } + + interface CompositionEvent extends SyntheticEvent { + data: string; + } + + interface DragEvent extends SyntheticEvent { + dataTransfer: DataTransfer; + } + + interface FocusEvent extends SyntheticEvent { + relatedTarget: EventTarget; + } + + interface FormEvent extends SyntheticEvent { + } + + interface KeyboardEvent extends SyntheticEvent { + altKey: boolean; + charCode: number; + ctrlKey: boolean; + getModifierState(key: string): boolean; + key: string; + keyCode: number; + locale: string; + location: number; + metaKey: boolean; + repeat: boolean; + shiftKey: boolean; + which: number; + } + + interface MouseEvent extends SyntheticEvent { + altKey: boolean; + button: number; + buttons: number; + clientX: number; + clientY: number; + ctrlKey: boolean; + getModifierState(key: string): boolean; + metaKey: boolean; + pageX: number; + pageY: number; + relatedTarget: EventTarget; + screenX: number; + screenY: number; + shiftKey: boolean; + } + + interface TouchEvent extends SyntheticEvent { + altKey: boolean; + changedTouches: TouchList; + ctrlKey: boolean; + getModifierState(key: string): boolean; + metaKey: boolean; + shiftKey: boolean; + targetTouches: TouchList; + touches: TouchList; + } + + interface UIEvent extends SyntheticEvent { + detail: number; + view: AbstractView; + } + + interface WheelEvent extends SyntheticEvent { + deltaMode: number; + deltaX: number; + deltaY: number; + deltaZ: number; + } + + // + // Event Handler Types + // ---------------------------------------------------------------------- + + interface EventHandler { + (event: E): void; + } + + type ReactEventHandler = EventHandler; + + type ClipboardEventHandler = EventHandler; + type CompositionEventHandler = EventHandler; + type DragEventHandler = EventHandler; + type FocusEventHandler = EventHandler; + type FormEventHandler = EventHandler; + type KeyboardEventHandler = EventHandler; + type MouseEventHandler = EventHandler; + type TouchEventHandler = EventHandler; + type UIEventHandler = EventHandler; + type WheelEventHandler = EventHandler; + + // + // Props / DOM Attributes + // ---------------------------------------------------------------------- + + interface Props { + children?: ReactNode; + key?: string | number; + ref?: string | ((component: T) => any); + } + + interface HTMLProps extends HTMLAttributes, Props { + } + + interface SVGProps extends SVGAttributes, Props { + } + + interface DOMAttributes { + dangerouslySetInnerHTML?: { + __html: string; + }; + + // Clipboard Events + onCopy?: ClipboardEventHandler; + onCut?: ClipboardEventHandler; + onPaste?: ClipboardEventHandler; + + // Composition Events + onCompositionEnd?: CompositionEventHandler; + onCompositionStart?: CompositionEventHandler; + onCompositionUpdate?: CompositionEventHandler; + + // Focus Events + onFocus?: FocusEventHandler; + onBlur?: FocusEventHandler; + + // Form Events + onChange?: FormEventHandler; + onInput?: FormEventHandler; + onSubmit?: FormEventHandler; + + // Image Events + onLoad?: ReactEventHandler; + onError?: ReactEventHandler; // also a Media Event + + // Keyboard Events + onKeyDown?: KeyboardEventHandler; + onKeyPress?: KeyboardEventHandler; + onKeyUp?: KeyboardEventHandler; + + // Media Events + onAbort?: ReactEventHandler; + onCanPlay?: ReactEventHandler; + onCanPlayThrough?: ReactEventHandler; + onDurationChange?: ReactEventHandler; + onEmptied?: ReactEventHandler; + onEncrypted?: ReactEventHandler; + onEnded?: ReactEventHandler; + onLoadedData?: ReactEventHandler; + onLoadedMetadata?: ReactEventHandler; + onLoadStart?: ReactEventHandler; + onPause?: ReactEventHandler; + onPlay?: ReactEventHandler; + onPlaying?: ReactEventHandler; + onProgress?: ReactEventHandler; + onRateChange?: ReactEventHandler; + onSeeked?: ReactEventHandler; + onSeeking?: ReactEventHandler; + onStalled?: ReactEventHandler; + onSuspend?: ReactEventHandler; + onTimeUpdate?: ReactEventHandler; + onVolumeChange?: ReactEventHandler; + onWaiting?: ReactEventHandler; + + // MouseEvents + onClick?: MouseEventHandler; + onContextMenu?: MouseEventHandler; + onDoubleClick?: MouseEventHandler; + onDrag?: DragEventHandler; + onDragEnd?: DragEventHandler; + onDragEnter?: DragEventHandler; + onDragExit?: DragEventHandler; + onDragLeave?: DragEventHandler; + onDragOver?: DragEventHandler; + onDragStart?: DragEventHandler; + onDrop?: DragEventHandler; + onMouseDown?: MouseEventHandler; + onMouseEnter?: MouseEventHandler; + onMouseLeave?: MouseEventHandler; + onMouseMove?: MouseEventHandler; + onMouseOut?: MouseEventHandler; + onMouseOver?: MouseEventHandler; + onMouseUp?: MouseEventHandler; + + // Selection Events + onSelect?: ReactEventHandler; + + // Touch Events + onTouchCancel?: TouchEventHandler; + onTouchEnd?: TouchEventHandler; + onTouchMove?: TouchEventHandler; + onTouchStart?: TouchEventHandler; + + // UI Events + onScroll?: UIEventHandler; + + // Wheel Events + onWheel?: WheelEventHandler; + } + + // This interface is not complete. Only properties accepting + // unitless numbers are listed here (see CSSProperty.js in React) + interface CSSProperties { + boxFlex?: number; + boxFlexGroup?: number; + columnCount?: number; + flex?: number | string; + flexGrow?: number; + flexShrink?: number; + fontWeight?: number | string; + lineClamp?: number; + lineHeight?: number | string; + opacity?: number; + order?: number; + orphans?: number; + widows?: number; + zIndex?: number; + zoom?: number; + + fontSize?: number | string; + + // SVG-related properties + fillOpacity?: number; + strokeOpacity?: number; + strokeWidth?: number; + + [propertyName: string]: any; + } + + interface HTMLAttributes extends DOMAttributes { + // React-specific Attributes + defaultChecked?: boolean; + defaultValue?: string | string[]; + + // Standard HTML Attributes + accept?: string; + acceptCharset?: string; + accessKey?: string; + action?: string; + allowFullScreen?: boolean; + allowTransparency?: boolean; + alt?: string; + async?: boolean; + autoComplete?: string; + autoFocus?: boolean; + autoPlay?: boolean; + capture?: boolean; + cellPadding?: number | string; + cellSpacing?: number | string; + charSet?: string; + challenge?: string; + checked?: boolean; + classID?: string; + className?: string; + cols?: number; + colSpan?: number; + content?: string; + contentEditable?: boolean; + contextMenu?: string; + controls?: boolean; + coords?: string; + crossOrigin?: string; + data?: string; + dateTime?: string; + default?: boolean; + defer?: boolean; + dir?: string; + disabled?: boolean; + download?: any; + draggable?: boolean; + encType?: string; + form?: string; + formAction?: string; + formEncType?: string; + formMethod?: string; + formNoValidate?: boolean; + formTarget?: string; + frameBorder?: number | string; + headers?: string; + height?: number | string; + hidden?: boolean; + high?: number; + href?: string; + hrefLang?: string; + htmlFor?: string; + httpEquiv?: string; + icon?: string; + id?: string; + inputMode?: string; + integrity?: string; + is?: string; + keyParams?: string; + keyType?: string; + kind?: string; + label?: string; + lang?: string; + list?: string; + loop?: boolean; + low?: number; + manifest?: string; + marginHeight?: number; + marginWidth?: number; + max?: number | string; + maxLength?: number; + media?: string; + mediaGroup?: string; + method?: string; + min?: number | string; + minLength?: number; + multiple?: boolean; + muted?: boolean; + name?: string; + noValidate?: boolean; + open?: boolean; + optimum?: number; + pattern?: string; + placeholder?: string; + poster?: string; + preload?: string; + radioGroup?: string; + readOnly?: boolean; + rel?: string; + required?: boolean; + role?: string; + rows?: number; + rowSpan?: number; + sandbox?: string; + scope?: string; + scoped?: boolean; + scrolling?: string; + seamless?: boolean; + selected?: boolean; + shape?: string; + size?: number; + sizes?: string; + span?: number; + spellCheck?: boolean; + src?: string; + srcDoc?: string; + srcLang?: string; + srcSet?: string; + start?: number; + step?: number | string; + style?: CSSProperties; + summary?: string; + tabIndex?: number; + target?: string; + title?: string; + type?: string; + useMap?: string; + value?: string | string[]; + width?: number | string; + wmode?: string; + wrap?: string; + + // RDFa Attributes + about?: string; + datatype?: string; + inlist?: any; + prefix?: string; + property?: string; + resource?: string; + typeof?: string; + vocab?: string; + + // Non-standard Attributes + autoCapitalize?: boolean; + autoCorrect?: string; + autoSave?: string; + color?: string; + itemProp?: string; + itemScope?: boolean; + itemType?: string; + itemID?: string; + itemRef?: string; + results?: number; + security?: string; + unselectable?: boolean; + } + + interface SVGAttributes extends HTMLAttributes { + clipPath?: string; + cx?: number | string; + cy?: number | string; + d?: string; + dx?: number | string; + dy?: number | string; + fill?: string; + fillOpacity?: number | string; + fontFamily?: string; + fontSize?: number | string; + fx?: number | string; + fy?: number | string; + gradientTransform?: string; + gradientUnits?: string; + markerEnd?: string; + markerMid?: string; + markerStart?: string; + offset?: number | string; + opacity?: number | string; + patternContentUnits?: string; + patternUnits?: string; + points?: string; + preserveAspectRatio?: string; + r?: number | string; + rx?: number | string; + ry?: number | string; + spreadMethod?: string; + stopColor?: string; + stopOpacity?: number | string; + stroke?: string; + strokeDasharray?: string; + strokeLinecap?: string; + strokeOpacity?: number | string; + strokeWidth?: number | string; + textAnchor?: string; + transform?: string; + version?: string; + viewBox?: string; + x1?: number | string; + x2?: number | string; + x?: number | string; + xlinkActuate?: string; + xlinkArcrole?: string; + xlinkHref?: string; + xlinkRole?: string; + xlinkShow?: string; + xlinkTitle?: string; + xlinkType?: string; + xmlBase?: string; + xmlLang?: string; + xmlSpace?: string; + y1?: number | string; + y2?: number | string + y?: number | string; + } + + // + // React.DOM + // ---------------------------------------------------------------------- + + interface ReactDOM { + // HTML + a: HTMLFactory; + abbr: HTMLFactory; + address: HTMLFactory; + area: HTMLFactory; + article: HTMLFactory; + aside: HTMLFactory; + audio: HTMLFactory; + b: HTMLFactory; + base: HTMLFactory; + bdi: HTMLFactory; + bdo: HTMLFactory; + big: HTMLFactory; + blockquote: HTMLFactory; + body: HTMLFactory; + br: HTMLFactory; + button: HTMLFactory; + canvas: HTMLFactory; + caption: HTMLFactory; + cite: HTMLFactory; + code: HTMLFactory; + col: HTMLFactory; + colgroup: HTMLFactory; + data: HTMLFactory; + datalist: HTMLFactory; + dd: HTMLFactory; + del: HTMLFactory; + details: HTMLFactory; + dfn: HTMLFactory; + dialog: HTMLFactory; + div: HTMLFactory; + dl: HTMLFactory; + dt: HTMLFactory; + em: HTMLFactory; + embed: HTMLFactory; + fieldset: HTMLFactory; + figcaption: HTMLFactory; + figure: HTMLFactory; + footer: HTMLFactory; + form: HTMLFactory; + h1: HTMLFactory; + h2: HTMLFactory; + h3: HTMLFactory; + h4: HTMLFactory; + h5: HTMLFactory; + h6: HTMLFactory; + head: HTMLFactory; + header: HTMLFactory; + hr: HTMLFactory; + html: HTMLFactory; + i: HTMLFactory; + iframe: HTMLFactory; + img: HTMLFactory; + input: HTMLFactory; + ins: HTMLFactory; + kbd: HTMLFactory; + keygen: HTMLFactory; + label: HTMLFactory; + legend: HTMLFactory; + li: HTMLFactory; + link: HTMLFactory; + main: HTMLFactory; + map: HTMLFactory; + mark: HTMLFactory; + menu: HTMLFactory; + menuitem: HTMLFactory; + meta: HTMLFactory; + meter: HTMLFactory; + nav: HTMLFactory; + noscript: HTMLFactory; + object: HTMLFactory; + ol: HTMLFactory; + optgroup: HTMLFactory; + option: HTMLFactory; + output: HTMLFactory; + p: HTMLFactory; + param: HTMLFactory; + picture: HTMLFactory; + pre: HTMLFactory; + progress: HTMLFactory; + q: HTMLFactory; + rp: HTMLFactory; + rt: HTMLFactory; + ruby: HTMLFactory; + s: HTMLFactory; + samp: HTMLFactory; + script: HTMLFactory; + section: HTMLFactory; + select: HTMLFactory; + small: HTMLFactory; + source: HTMLFactory; + span: HTMLFactory; + strong: HTMLFactory; + style: HTMLFactory; + sub: HTMLFactory; + summary: HTMLFactory; + sup: HTMLFactory; + table: HTMLFactory; + tbody: HTMLFactory; + td: HTMLFactory; + textarea: HTMLFactory; + tfoot: HTMLFactory; + th: HTMLFactory; + thead: HTMLFactory; + time: HTMLFactory; + title: HTMLFactory; + tr: HTMLFactory; + track: HTMLFactory; + u: HTMLFactory; + ul: HTMLFactory; + "var": HTMLFactory; + video: HTMLFactory; + wbr: HTMLFactory; + + // SVG + svg: SVGFactory; + circle: SVGFactory; + defs: SVGFactory; + ellipse: SVGFactory; + g: SVGFactory; + image: SVGFactory; + line: SVGFactory; + linearGradient: SVGFactory; + mask: SVGFactory; + path: SVGFactory; + pattern: SVGFactory; + polygon: SVGFactory; + polyline: SVGFactory; + radialGradient: SVGFactory; + rect: SVGFactory; + stop: SVGFactory; + text: SVGFactory; + tspan: SVGFactory; + } + + // + // React.PropTypes + // ---------------------------------------------------------------------- + + interface Validator { + (object: T, key: string, componentName: string): Error; + } + + interface Requireable extends Validator { + isRequired: Validator; + } + + interface ValidationMap { + [key: string]: Validator; + } + + interface ReactPropTypes { + any: Requireable; + array: Requireable; + bool: Requireable; + func: Requireable; + number: Requireable; + object: Requireable; + string: Requireable; + node: Requireable; + element: Requireable; + instanceOf(expectedClass: {}): Requireable; + oneOf(types: any[]): Requireable; + oneOfType(types: Validator[]): Requireable; + arrayOf(type: Validator): Requireable; + objectOf(type: Validator): Requireable; + shape(type: ValidationMap): Requireable; + } + + // + // React.Children + // ---------------------------------------------------------------------- + + interface ReactChildren { + map(children: ReactNode, fn: (child: ReactChild, index: number) => T): T[]; + forEach(children: ReactNode, fn: (child: ReactChild, index: number) => any): void; + count(children: ReactNode): number; + only(children: ReactNode): ReactChild; + toArray(children: ReactNode): ReactChild[]; + } + + // + // Browser Interfaces + // https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts + // ---------------------------------------------------------------------- + + interface AbstractView { + styleMedia: StyleMedia; + document: Document; + } + + interface Touch { + identifier: number; + target: EventTarget; + screenX: number; + screenY: number; + clientX: number; + clientY: number; + pageX: number; + pageY: number; + } + + interface TouchList { + [index: number]: Touch; + length: number; + item(index: number): Touch; + identifiedTouch(identifier: number): Touch; + } +} + +declare module "react" { + export = __React; +} + +declare namespace JSX { + import React = __React; + + interface Element extends React.ReactElement { } + interface ElementClass extends React.Component { + render(): JSX.Element; + } + interface ElementAttributesProperty { props: {}; } + + interface IntrinsicAttributes { + key?: string | number; + } + + interface IntrinsicClassAttributes { + ref?: string | ((classInstance: T) => void); + } + + interface IntrinsicElements { + // HTML + a: React.HTMLProps; + abbr: React.HTMLProps; + address: React.HTMLProps; + area: React.HTMLProps; + article: React.HTMLProps; + aside: React.HTMLProps; + audio: React.HTMLProps; + b: React.HTMLProps; + base: React.HTMLProps; + bdi: React.HTMLProps; + bdo: React.HTMLProps; + big: React.HTMLProps; + blockquote: React.HTMLProps; + body: React.HTMLProps; + br: React.HTMLProps; + button: React.HTMLProps; + canvas: React.HTMLProps; + caption: React.HTMLProps; + cite: React.HTMLProps; + code: React.HTMLProps; + col: React.HTMLProps; + colgroup: React.HTMLProps; + data: React.HTMLProps; + datalist: React.HTMLProps; + dd: React.HTMLProps; + del: React.HTMLProps; + details: React.HTMLProps; + dfn: React.HTMLProps; + dialog: React.HTMLProps; + div: React.HTMLProps; + dl: React.HTMLProps; + dt: React.HTMLProps; + em: React.HTMLProps; + embed: React.HTMLProps; + fieldset: React.HTMLProps; + figcaption: React.HTMLProps; + figure: React.HTMLProps; + footer: React.HTMLProps; + form: React.HTMLProps; + h1: React.HTMLProps; + h2: React.HTMLProps; + h3: React.HTMLProps; + h4: React.HTMLProps; + h5: React.HTMLProps; + h6: React.HTMLProps; + head: React.HTMLProps; + header: React.HTMLProps; + hr: React.HTMLProps; + html: React.HTMLProps; + i: React.HTMLProps; + iframe: React.HTMLProps; + img: React.HTMLProps; + input: React.HTMLProps; + ins: React.HTMLProps; + kbd: React.HTMLProps; + keygen: React.HTMLProps; + label: React.HTMLProps; + legend: React.HTMLProps; + li: React.HTMLProps; + link: React.HTMLProps; + main: React.HTMLProps; + map: React.HTMLProps; + mark: React.HTMLProps; + menu: React.HTMLProps; + menuitem: React.HTMLProps; + meta: React.HTMLProps; + meter: React.HTMLProps; + nav: React.HTMLProps; + noscript: React.HTMLProps; + object: React.HTMLProps; + ol: React.HTMLProps; + optgroup: React.HTMLProps; + option: React.HTMLProps; + output: React.HTMLProps; + p: React.HTMLProps; + param: React.HTMLProps; + picture: React.HTMLProps; + pre: React.HTMLProps; + progress: React.HTMLProps; + q: React.HTMLProps; + rp: React.HTMLProps; + rt: React.HTMLProps; + ruby: React.HTMLProps; + s: React.HTMLProps; + samp: React.HTMLProps; + script: React.HTMLProps; + section: React.HTMLProps; + select: React.HTMLProps; + small: React.HTMLProps; + source: React.HTMLProps; + span: React.HTMLProps; + strong: React.HTMLProps; + style: React.HTMLProps; + sub: React.HTMLProps; + summary: React.HTMLProps; + sup: React.HTMLProps; + table: React.HTMLProps; + tbody: React.HTMLProps; + td: React.HTMLProps; + textarea: React.HTMLProps; + tfoot: React.HTMLProps; + th: React.HTMLProps; + thead: React.HTMLProps; + time: React.HTMLProps; + title: React.HTMLProps; + tr: React.HTMLProps; + track: React.HTMLProps; + u: React.HTMLProps; + ul: React.HTMLProps; + "var": React.HTMLProps; + video: React.HTMLProps; + wbr: React.HTMLProps; + + // SVG + svg: React.SVGProps; + + circle: React.SVGProps; + defs: React.SVGProps; + ellipse: React.SVGProps; + g: React.SVGProps; + image: React.SVGProps; + line: React.SVGProps; + linearGradient: React.SVGProps; + mask: React.SVGProps; + path: React.SVGProps; + pattern: React.SVGProps; + polygon: React.SVGProps; + polyline: React.SVGProps; + radialGradient: React.SVGProps; + rect: React.SVGProps; + stop: React.SVGProps; + text: React.SVGProps; + tspan: React.SVGProps; + } +} diff --git a/tslint.json b/tslint.json index 3cafdbfd39c..9b010d9a896 100644 --- a/tslint.json +++ b/tslint.json @@ -40,6 +40,7 @@ "no-null": true, "boolean-trivia": true, "type-operator-spacing": true, - "prefer-const": true + "prefer-const": true, + "no-in-operator": true } }